ss-support-widget 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/x-bot-widget.js +168 -0
- package/index.html +16 -17
- package/package.json +31 -29
- package/readme.md +7 -7
- package/src/api/service.ts +80 -0
- package/src/{sse.ts → api/sse.ts} +58 -55
- package/src/authentification/token.ts +57 -0
- package/src/components/ChatWidget.tsx +488 -0
- package/src/components/chatbot-element.tsx +53 -0
- package/src/constants.ts +3 -0
- package/src/containers/App.tsx +187 -0
- package/src/{hooks.ts → hooks/hooks.ts} +31 -31
- package/src/hooks/useSignalR.ts +222 -0
- package/src/main.ts +37 -0
- package/src/services/chatConfiguration.ts +11 -0
- package/src/storage/session-storage.ts +53 -0
- package/src/types.ts +29 -0
- package/src/utils/deviceInfo.ts +13 -0
- package/src/utils/script-utils.ts +11 -0
- package/tsconfig.json +13 -13
- package/vite.config.ts +22 -22
- package/dist/chat-bot-widget.js +0 -162
- package/src/App.tsx +0 -106
- package/src/ChatWidget.tsx +0 -428
- package/src/MsgDelta.tsx +0 -6
- package/src/element.tsx +0 -100
- package/src/service.ts +0 -68
- package/src/session-storage.ts +0 -17
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
(function(){"use strict";function Jx(e,t){for(var i=0;i<t.length;i++){const o=t[i];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in e)){const u=Object.getOwnPropertyDescriptor(o,l);u&&Object.defineProperty(e,l,u.get?u:{enumerable:!0,get:()=>o[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},$a={};var Sm;function ew(){if(Sm)return $a;Sm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(o,l,u){var c=null;if(u!==void 0&&(c=""+u),l.key!==void 0&&(c=""+l.key),"key"in l){u={};for(var d in l)d!=="key"&&(u[d]=l[d])}else u=l;return l=u.ref,{$$typeof:e,type:o,key:c,ref:l!==void 0?l:null,props:u}}return $a.Fragment=t,$a.jsx=i,$a.jsxs=i,$a}var vm;function tw(){return vm||(vm=1,Yc.exports=ew()),Yc.exports}var Y=tw(),Gc={exports:{}},Ua={},Xc={exports:{}},Kc={};var xm;function nw(){return xm||(xm=1,(function(e){function t(z,J){var ce=z.length;z.push(J);e:for(;0<ce;){var ue=ce-1>>>1,N=z[ue];if(0<l(N,J))z[ue]=J,z[ce]=N,ce=ue;else break e}}function i(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var J=z[0],ce=z.pop();if(ce!==J){z[0]=ce;e:for(var ue=0,N=z.length,D=N>>>1;ue<D;){var W=2*(ue+1)-1,A=z[W],fe=W+1,me=z[fe];if(0>l(A,ce))fe<N&&0>l(me,A)?(z[ue]=me,z[fe]=ce,ue=fe):(z[ue]=A,z[W]=ce,ue=W);else if(fe<N&&0>l(me,ce))z[ue]=me,z[fe]=ce,ue=fe;else break e}}return J}function l(z,J){var ce=z.sortIndex-J.sortIndex;return ce!==0?ce:z.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var m=[],p=[],g=1,y=null,v=3,S=!1,C=!1,w=!1,R=!1,k=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function _(z){for(var J=i(p);J!==null;){if(J.callback===null)o(p);else if(J.startTime<=z)o(p),J.sortIndex=J.expirationTime,t(m,J);else break;J=i(p)}}function B(z){if(w=!1,_(z),!C)if(i(m)!==null)C=!0,T||(T=!0,x());else{var J=i(p);J!==null&&j(B,J.startTime-z)}}var T=!1,L=-1,V=5,q=-1;function F(){return R?!0:!(e.unstable_now()-q<V)}function U(){if(R=!1,T){var z=e.unstable_now();q=z;var J=!0;try{e:{C=!1,w&&(w=!1,$(L),L=-1),S=!0;var ce=v;try{t:{for(_(z),y=i(m);y!==null&&!(y.expirationTime>z&&F());){var ue=y.callback;if(typeof ue=="function"){y.callback=null,v=y.priorityLevel;var N=ue(y.expirationTime<=z);if(z=e.unstable_now(),typeof N=="function"){y.callback=N,_(z),J=!0;break t}y===i(m)&&o(m),_(z)}else o(m);y=i(m)}if(y!==null)J=!0;else{var D=i(p);D!==null&&j(B,D.startTime-z),J=!1}}break e}finally{y=null,v=ce,S=!1}J=void 0}}finally{J?x():T=!1}}}var x;if(typeof M=="function")x=function(){M(U)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,H=K.port2;K.port1.onmessage=U,x=function(){H.postMessage(null)}}else x=function(){k(U,0)};function j(z,J){L=k(function(){z(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var J=3;break;default:J=v}var ce=v;v=J;try{return z()}finally{v=ce}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ce=v;v=z;try{return J()}finally{v=ce}},e.unstable_scheduleCallback=function(z,J,ce){var ue=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ue+ce:ue):ce=ue,z){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=ce+N,z={id:g++,callback:J,priorityLevel:z,startTime:ce,expirationTime:N,sortIndex:-1},ce>ue?(z.sortIndex=ce,t(p,z),i(m)===null&&z===i(p)&&(w?($(L),L=-1):w=!0,j(B,ce-ue))):(z.sortIndex=N,t(m,z),C||S||(C=!0,T||(T=!0,x()))),z},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(z){var J=v;return function(){var ce=v;v=J;try{return z.apply(this,arguments)}finally{v=ce}}}})(Kc)),Kc}var wm;function rw(){return wm||(wm=1,Xc.exports=nw()),Xc.exports}var Qc={exports:{}},Ne={};var Em;function iw(){if(Em)return Ne;Em=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),v=Symbol.iterator;function S(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,R={};function k(D,W,A){this.props=D,this.context=W,this.refs=R,this.updater=A||C}k.prototype.isReactComponent={},k.prototype.setState=function(D,W){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,W,"setState")},k.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function $(){}$.prototype=k.prototype;function M(D,W,A){this.props=D,this.context=W,this.refs=R,this.updater=A||C}var _=M.prototype=new $;_.constructor=M,w(_,k.prototype),_.isPureReactComponent=!0;var B=Array.isArray;function T(){}var L={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function q(D,W,A){var fe=A.ref;return{$$typeof:e,type:D,key:W,ref:fe!==void 0?fe:null,props:A}}function F(D,W){return q(D.type,W,D.props)}function U(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function x(D){var W={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(A){return W[A]})}var K=/\/+/g;function H(D,W){return typeof D=="object"&&D!==null&&D.key!=null?x(""+D.key):W.toString(36)}function j(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(T,T):(D.status="pending",D.then(function(W){D.status==="pending"&&(D.status="fulfilled",D.value=W)},function(W){D.status==="pending"&&(D.status="rejected",D.reason=W)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function z(D,W,A,fe,me){var he=typeof D;(he==="undefined"||he==="boolean")&&(D=null);var be=!1;if(D===null)be=!0;else switch(he){case"bigint":case"string":case"number":be=!0;break;case"object":switch(D.$$typeof){case e:case t:be=!0;break;case g:return be=D._init,z(be(D._payload),W,A,fe,me)}}if(be)return me=me(D),be=fe===""?"."+H(D,0):fe,B(me)?(A="",be!=null&&(A=be.replace(K,"$&/")+"/"),z(me,W,A,"",function(Te){return Te})):me!=null&&(U(me)&&(me=F(me,A+(me.key==null||D&&D.key===me.key?"":(""+me.key).replace(K,"$&/")+"/")+be)),W.push(me)),1;be=0;var Ue=fe===""?".":fe+":";if(B(D))for(var Ce=0;Ce<D.length;Ce++)fe=D[Ce],he=Ue+H(fe,Ce),be+=z(fe,W,A,he,me);else if(Ce=S(D),typeof Ce=="function")for(D=Ce.call(D),Ce=0;!(fe=D.next()).done;)fe=fe.value,he=Ue+H(fe,Ce++),be+=z(fe,W,A,he,me);else if(he==="object"){if(typeof D.then=="function")return z(j(D),W,A,fe,me);throw W=String(D),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return be}function J(D,W,A){if(D==null)return D;var fe=[],me=0;return z(D,fe,"","",function(he){return W.call(A,he,me++)}),fe}function ce(D){if(D._status===-1){var W=D._result;W=W(),W.then(function(A){(D._status===0||D._status===-1)&&(D._status=1,D._result=A)},function(A){(D._status===0||D._status===-1)&&(D._status=2,D._result=A)}),D._status===-1&&(D._status=0,D._result=W)}if(D._status===1)return D._result.default;throw D._result}var ue=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},N={map:J,forEach:function(D,W,A){J(D,function(){W.apply(this,arguments)},A)},count:function(D){var W=0;return J(D,function(){W++}),W},toArray:function(D){return J(D,function(W){return W})||[]},only:function(D){if(!U(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ne.Activity=y,Ne.Children=N,Ne.Component=k,Ne.Fragment=i,Ne.Profiler=l,Ne.PureComponent=M,Ne.StrictMode=o,Ne.Suspense=m,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(D){return L.H.useMemoCache(D)}},Ne.cache=function(D){return function(){return D.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(D,W,A){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var fe=w({},D.props),me=D.key;if(W!=null)for(he in W.key!==void 0&&(me=""+W.key),W)!V.call(W,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&W.ref===void 0||(fe[he]=W[he]);var he=arguments.length-2;if(he===1)fe.children=A;else if(1<he){for(var be=Array(he),Ue=0;Ue<he;Ue++)be[Ue]=arguments[Ue+2];fe.children=be}return q(D.type,me,fe)},Ne.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Ne.createElement=function(D,W,A){var fe,me={},he=null;if(W!=null)for(fe in W.key!==void 0&&(he=""+W.key),W)V.call(W,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(me[fe]=W[fe]);var be=arguments.length-2;if(be===1)me.children=A;else if(1<be){for(var Ue=Array(be),Ce=0;Ce<be;Ce++)Ue[Ce]=arguments[Ce+2];me.children=Ue}if(D&&D.defaultProps)for(fe in be=D.defaultProps,be)me[fe]===void 0&&(me[fe]=be[fe]);return q(D,he,me)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(D){return{$$typeof:d,render:D}},Ne.isValidElement=U,Ne.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:ce}},Ne.memo=function(D,W){return{$$typeof:p,type:D,compare:W===void 0?null:W}},Ne.startTransition=function(D){var W=L.T,A={};L.T=A;try{var fe=D(),me=L.S;me!==null&&me(A,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(T,ue)}catch(he){ue(he)}finally{W!==null&&A.types!==null&&(W.types=A.types),L.T=W}},Ne.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Ne.use=function(D){return L.H.use(D)},Ne.useActionState=function(D,W,A){return L.H.useActionState(D,W,A)},Ne.useCallback=function(D,W){return L.H.useCallback(D,W)},Ne.useContext=function(D){return L.H.useContext(D)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(D,W){return L.H.useDeferredValue(D,W)},Ne.useEffect=function(D,W){return L.H.useEffect(D,W)},Ne.useEffectEvent=function(D){return L.H.useEffectEvent(D)},Ne.useId=function(){return L.H.useId()},Ne.useImperativeHandle=function(D,W,A){return L.H.useImperativeHandle(D,W,A)},Ne.useInsertionEffect=function(D,W){return L.H.useInsertionEffect(D,W)},Ne.useLayoutEffect=function(D,W){return L.H.useLayoutEffect(D,W)},Ne.useMemo=function(D,W){return L.H.useMemo(D,W)},Ne.useOptimistic=function(D,W){return L.H.useOptimistic(D,W)},Ne.useReducer=function(D,W,A){return L.H.useReducer(D,W,A)},Ne.useRef=function(D){return L.H.useRef(D)},Ne.useState=function(D){return L.H.useState(D)},Ne.useSyncExternalStore=function(D,W,A){return L.H.useSyncExternalStore(D,W,A)},Ne.useTransition=function(){return L.H.useTransition()},Ne.version="19.2.3",Ne}var Cm;function Zc(){return Cm||(Cm=1,Qc.exports=iw()),Qc.exports}var Wc={exports:{}},mn={};var Tm;function ow(){if(Tm)return mn;Tm=1;var e=Zc();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function u(m,p,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:m,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,mn.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(m,p,null,g)},mn.flushSync=function(m){var p=c.T,g=o.p;try{if(c.T=null,o.p=2,m)return m()}finally{c.T=p,o.p=g,o.d.f()}},mn.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},mn.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},mn.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,y=d(g,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:S}):g==="script"&&o.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},mn.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},mn.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,y=d(g,p.crossOrigin);o.d.L(m,g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},mn.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=d(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},mn.requestFormReset=function(m){o.d.r(m)},mn.unstable_batchedUpdates=function(m,p){return m(p)},mn.useFormState=function(m,p,g){return c.H.useFormState(m,p,g)},mn.useFormStatus=function(){return c.H.useHostTransitionStatus()},mn.version="19.2.3",mn}var _m;function Am(){if(_m)return Wc.exports;_m=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wc.exports=ow(),Wc.exports}var km;function aw(){if(km)return Ua;km=1;var e=rw(),t=Zc(),i=Am();function o(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var r=n,a=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(a=r.return),n=r.return;while(n)}return r.tag===3?a:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function m(n){if(u(n)!==n)throw Error(o(188))}function p(n){var r=n.alternate;if(!r){if(r=u(n),r===null)throw Error(o(188));return r!==n?null:n}for(var a=n,s=r;;){var f=a.return;if(f===null)break;var h=f.alternate;if(h===null){if(s=f.return,s!==null){a=s;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===a)return m(f),n;if(h===s)return m(f),r;h=h.sibling}throw Error(o(188))}if(a.return!==s.return)a=f,s=h;else{for(var b=!1,E=f.child;E;){if(E===a){b=!0,a=f,s=h;break}if(E===s){b=!0,s=f,a=h;break}E=E.sibling}if(!b){for(E=h.child;E;){if(E===a){b=!0,a=h,s=f;break}if(E===s){b=!0,s=h,a=f;break}E=E.sibling}if(!b)throw Error(o(189))}}if(a.alternate!==s)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),M=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function x(n){return n===null||typeof n!="object"?null:(n=U&&n[U]||n["@@iterator"],typeof n=="function"?n:null)}var K=Symbol.for("react.client.reference");function H(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===K?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case k:return"Profiler";case R:return"StrictMode";case B:return"Suspense";case T:return"SuspenseList";case q:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case M:return n.displayName||"Context";case $:return(n._context.displayName||"Context")+".Consumer";case _:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case L:return r=n.displayName||null,r!==null?r:H(n.type)||"Memo";case V:r=n._payload,n=n._init;try{return H(n(r))}catch{}}return null}var j=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ue=[],N=-1;function D(n){return{current:n}}function W(n){0>N||(n.current=ue[N],ue[N]=null,N--)}function A(n,r){N++,ue[N]=n.current,n.current=r}var fe=D(null),me=D(null),he=D(null),be=D(null);function Ue(n,r){switch(A(he,r),A(me,n),A(fe,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?wx(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=wx(r),n=Ex(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}W(fe),A(fe,n)}function Ce(){W(fe),W(me),W(he)}function Te(n){n.memoizedState!==null&&A(be,n);var r=fe.current,a=Ex(r,n.type);r!==a&&(A(me,n),A(fe,a))}function ze(n){me.current===n&&(W(fe),W(me)),be.current===n&&(W(be),ys._currentValue=ce)}var Ze,Qt;function Oe(n){if(Ze===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ze=r&&r[1]||"",Qt=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ze+n+Qt}var qe=!1;function Vt(n,r){if(!n||qe)return"";qe=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(ne){var ee=ne}Reflect.construct(n,[],le)}else{try{le.call()}catch(ne){ee=ne}n.call(le.prototype)}}else{try{throw Error()}catch(ne){ee=ne}(le=n())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(ne){if(ne&&ee&&typeof ne.stack=="string")return[ne.stack,ee.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=s.DetermineComponentFrameRoot(),b=h[0],E=h[1];if(b&&E){var I=b.split(`
|
|
4
|
+
`),Z=E.split(`
|
|
5
|
+
`);for(f=s=0;s<I.length&&!I[s].includes("DetermineComponentFrameRoot");)s++;for(;f<Z.length&&!Z[f].includes("DetermineComponentFrameRoot");)f++;if(s===I.length||f===Z.length)for(s=I.length-1,f=Z.length-1;1<=s&&0<=f&&I[s]!==Z[f];)f--;for(;1<=s&&0<=f;s--,f--)if(I[s]!==Z[f]){if(s!==1||f!==1)do if(s--,f--,0>f||I[s]!==Z[f]){var ie=`
|
|
6
|
+
`+I[s].replace(" at new "," at ");return n.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",n.displayName)),ie}while(1<=s&&0<=f);break}}}finally{qe=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?Oe(a):""}function zt(n,r){switch(n.tag){case 26:case 27:case 5:return Oe(n.type);case 16:return Oe("Lazy");case 13:return n.child!==r&&r!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return Vt(n.type,!1);case 11:return Vt(n.type.render,!1);case 1:return Vt(n.type,!0);case 31:return Oe("Activity");default:return""}}function mt(n){try{var r="",a=null;do r+=zt(n,a),a=n,n=n.return;while(n);return r}catch(s){return`
|
|
7
|
+
Error generating stack: `+s.message+`
|
|
8
|
+
`+s.stack}}var ct=Object.prototype.hasOwnProperty,Bt=e.unstable_scheduleCallback,ft=e.unstable_cancelCallback,Se=e.unstable_shouldYield,Hn=e.unstable_requestPaint,He=e.unstable_now,Sr=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,se=e.unstable_UserBlockingPriority,ge=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Le=e.unstable_IdlePriority,Pe=e.log,rn=e.unstable_setDisableYieldValue,Ut=null,Dt=null;function vn(n){if(typeof Pe=="function"&&rn(n),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(Ut,n)}catch{}}var at=Math.clz32?Math.clz32:on,xe=Math.log,Ve=Math.LN2;function on(n){return n>>>=0,n===0?32:31-(xe(n)/Ve|0)|0}var vr=256,lo=262144,Nu=4194304;function so(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function zu(n,r,a){var s=n.pendingLanes;if(s===0)return 0;var f=0,h=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var E=s&134217727;return E!==0?(s=E&~h,s!==0?f=so(s):(b&=E,b!==0?f=so(b):a||(a=E&~n,a!==0&&(f=so(a))))):(E=s&~h,E!==0?f=so(E):b!==0?f=so(b):a||(a=s&~n,a!==0&&(f=so(a)))),f===0?0:r!==0&&r!==f&&(r&h)===0&&(h=f&-f,a=r&-r,h>=a||h===32&&(a&4194048)!==0)?r:f}function Ol(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function hN(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 r1(){var n=Nu;return Nu<<=1,(Nu&62914560)===0&&(Nu=4194304),n}function lh(n){for(var r=[],a=0;31>a;a++)r.push(n);return r}function Ml(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function pN(n,r,a,s,f,h){var b=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var E=n.entanglements,I=n.expirationTimes,Z=n.hiddenUpdates;for(a=b&~a;0<a;){var ie=31-at(a),le=1<<ie;E[ie]=0,I[ie]=-1;var ee=Z[ie];if(ee!==null)for(Z[ie]=null,ie=0;ie<ee.length;ie++){var ne=ee[ie];ne!==null&&(ne.lane&=-536870913)}a&=~le}s!==0&&i1(n,s,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(b&~r))}function i1(n,r,a){n.pendingLanes|=r,n.suspendedLanes&=~r;var s=31-at(r);n.entangledLanes|=r,n.entanglements[s]=n.entanglements[s]|1073741824|a&261930}function o1(n,r){var a=n.entangledLanes|=r;for(n=n.entanglements;a;){var s=31-at(a),f=1<<s;f&r|n[s]&r&&(n[s]|=r),a&=~f}}function a1(n,r){var a=r&-r;return a=(a&42)!==0?1:sh(a),(a&(n.suspendedLanes|r))!==0?0:a}function sh(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function uh(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function l1(){var n=J.p;return n!==0?n:(n=window.event,n===void 0?32:Yx(n.type))}function s1(n,r){var a=J.p;try{return J.p=n,r()}finally{J.p=a}}var wi=Math.random().toString(36).slice(2),cn="__reactFiber$"+wi,kn="__reactProps$"+wi,Jo="__reactContainer$"+wi,ch="__reactEvents$"+wi,mN="__reactListeners$"+wi,gN="__reactHandles$"+wi,u1="__reactResources$"+wi,Nl="__reactMarker$"+wi;function fh(n){delete n[cn],delete n[kn],delete n[ch],delete n[mN],delete n[gN]}function ea(n){var r=n[cn];if(r)return r;for(var a=n.parentNode;a;){if(r=a[Jo]||a[cn]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(n=Ox(n);n!==null;){if(a=n[cn])return a;n=Ox(n)}return r}n=a,a=n.parentNode}return null}function ta(n){if(n=n[cn]||n[Jo]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function zl(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(o(33))}function na(n){var r=n[u1];return r||(r=n[u1]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function ln(n){n[Nl]=!0}var c1=new Set,f1={};function uo(n,r){ra(n,r),ra(n+"Capture",r)}function ra(n,r){for(f1[n]=r,n=0;n<r.length;n++)c1.add(r[n])}var yN=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]*$"),d1={},h1={};function bN(n){return ct.call(h1,n)?!0:ct.call(d1,n)?!1:yN.test(n)?h1[n]=!0:(d1[n]=!0,!1)}function Bu(n,r,a){if(bN(r))if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+a)}}function Du(n,r,a){if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+a)}}function Kr(n,r,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(r,a,""+s)}}function nr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function p1(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function SN(n,r,a){var s=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,h=s.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return f.call(this)},set:function(b){a=""+b,h.call(this,b)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function dh(n){if(!n._valueTracker){var r=p1(n)?"checked":"value";n._valueTracker=SN(n,r,""+n[r])}}function m1(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var a=r.getValue(),s="";return n&&(s=p1(n)?n.checked?"true":"false":n.value),n=s,n!==a?(r.setValue(n),!0):!1}function Iu(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var vN=/[\n"\\]/g;function rr(n){return n.replace(vN,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function hh(n,r,a,s,f,h,b,E){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),r!=null?b==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+nr(r)):n.value!==""+nr(r)&&(n.value=""+nr(r)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),r!=null?ph(n,b,nr(r)):a!=null?ph(n,b,nr(a)):s!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+nr(E):n.removeAttribute("name")}function g1(n,r,a,s,f,h,b,E){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),r!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||r!=null)){dh(n);return}a=a!=null?""+nr(a):"",r=r!=null?""+nr(r):a,E||r===n.value||(n.value=r),n.defaultValue=r}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=E?n.checked:!!s,n.defaultChecked=!!s,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b),dh(n)}function ph(n,r,a){r==="number"&&Iu(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function ia(n,r,a,s){if(n=n.options,r){r={};for(var f=0;f<a.length;f++)r["$"+a[f]]=!0;for(a=0;a<n.length;a++)f=r.hasOwnProperty("$"+n[a].value),n[a].selected!==f&&(n[a].selected=f),f&&s&&(n[a].defaultSelected=!0)}else{for(a=""+nr(a),r=null,f=0;f<n.length;f++){if(n[f].value===a){n[f].selected=!0,s&&(n[f].defaultSelected=!0);return}r!==null||n[f].disabled||(r=n[f])}r!==null&&(r.selected=!0)}}function y1(n,r,a){if(r!=null&&(r=""+nr(r),r!==n.value&&(n.value=r),a==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=a!=null?""+nr(a):""}function b1(n,r,a,s){if(r==null){if(s!=null){if(a!=null)throw Error(o(92));if(j(s)){if(1<s.length)throw Error(o(93));s=s[0]}a=s}a==null&&(a=""),r=a}a=nr(r),n.defaultValue=a,s=n.textContent,s===a&&s!==""&&s!==null&&(n.value=s),dh(n)}function oa(n,r){if(r){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=r;return}}n.textContent=r}var xN=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 S1(n,r,a){var s=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":s?n.setProperty(r,a):typeof a!="number"||a===0||xN.has(r)?r==="float"?n.cssFloat=a:n[r]=(""+a).trim():n[r]=a+"px"}function v1(n,r,a){if(r!=null&&typeof r!="object")throw Error(o(62));if(n=n.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var f in r)s=r[f],r.hasOwnProperty(f)&&a[f]!==s&&S1(n,f,s)}else for(var h in r)r.hasOwnProperty(h)&&S1(n,h,r[h])}function mh(n){if(n.indexOf("-")===-1)return!1;switch(n){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 wN=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"]]),EN=/^[\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 $u(n){return EN.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Qr(){}var gh=null;function yh(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var aa=null,la=null;function x1(n){var r=ta(n);if(r&&(n=r.stateNode)){var a=n[kn]||null;e:switch(n=r.stateNode,r.type){case"input":if(hh(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+rr(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var s=a[r];if(s!==n&&s.form===n.form){var f=s[kn]||null;if(!f)throw Error(o(90));hh(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(r=0;r<a.length;r++)s=a[r],s.form===n.form&&m1(s)}break e;case"textarea":y1(n,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&ia(n,!!a.multiple,r,!1)}}}var bh=!1;function w1(n,r,a){if(bh)return n(r,a);bh=!0;try{var s=n(r);return s}finally{if(bh=!1,(aa!==null||la!==null)&&(Cc(),aa&&(r=aa,n=la,la=aa=null,x1(r),n)))for(r=0;r<n.length;r++)x1(n[r])}}function Bl(n,r){var a=n.stateNode;if(a===null)return null;var s=a[kn]||null;if(s===null)return null;a=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(o(231,r,typeof a));return a}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sh=!1;if(Zr)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Sh=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Sh=!1}var Ei=null,vh=null,Uu=null;function E1(){if(Uu)return Uu;var n,r=vh,a=r.length,s,f="value"in Ei?Ei.value:Ei.textContent,h=f.length;for(n=0;n<a&&r[n]===f[n];n++);var b=a-n;for(s=1;s<=b&&r[a-s]===f[h-s];s++);return Uu=f.slice(n,1<s?1-s:void 0)}function Lu(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function ju(){return!0}function C1(){return!1}function Rn(n){function r(a,s,f,h,b){this._reactName=a,this._targetInst=f,this.type=s,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(a=n[E],this[E]=a?a(h):h[E]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ju:C1,this.isPropagationStopped=C1,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),r}var co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=Rn(co),Il=y({},co,{view:0,detail:0}),CN=Rn(Il),xh,wh,$l,Hu=y({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ch,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==$l&&($l&&n.type==="mousemove"?(xh=n.screenX-$l.screenX,wh=n.screenY-$l.screenY):wh=xh=0,$l=n),xh)},movementY:function(n){return"movementY"in n?n.movementY:wh}}),T1=Rn(Hu),TN=y({},Hu,{dataTransfer:0}),_N=Rn(TN),AN=y({},Il,{relatedTarget:0}),Eh=Rn(AN),kN=y({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),RN=Rn(kN),ON=y({},co,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),MN=Rn(ON),NN=y({},co,{data:0}),_1=Rn(NN),zN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BN={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"},DN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IN(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=DN[n])?!!r[n]:!1}function Ch(){return IN}var $N=y({},Il,{key:function(n){if(n.key){var r=zN[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Lu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?BN[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ch,charCode:function(n){return n.type==="keypress"?Lu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Lu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),UN=Rn($N),LN=y({},Hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A1=Rn(LN),jN=y({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ch}),PN=Rn(jN),HN=y({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),qN=Rn(HN),VN=y({},Hu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),FN=Rn(VN),YN=y({},co,{newState:0,oldState:0}),GN=Rn(YN),XN=[9,13,27,32],Th=Zr&&"CompositionEvent"in window,Ul=null;Zr&&"documentMode"in document&&(Ul=document.documentMode);var KN=Zr&&"TextEvent"in window&&!Ul,k1=Zr&&(!Th||Ul&&8<Ul&&11>=Ul),R1=" ",O1=!1;function M1(n,r){switch(n){case"keyup":return XN.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N1(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var sa=!1;function QN(n,r){switch(n){case"compositionend":return N1(r);case"keypress":return r.which!==32?null:(O1=!0,R1);case"textInput":return n=r.data,n===R1&&O1?null:n;default:return null}}function ZN(n,r){if(sa)return n==="compositionend"||!Th&&M1(n,r)?(n=E1(),Uu=vh=Ei=null,sa=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return k1&&r.locale!=="ko"?null:r.data;default:return null}}var WN={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 z1(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!WN[n.type]:r==="textarea"}function B1(n,r,a,s){aa?la?la.push(s):la=[s]:aa=s,r=Mc(r,"onChange"),0<r.length&&(a=new Pu("onChange","change",null,a,s),n.push({event:a,listeners:r}))}var Ll=null,jl=null;function JN(n){gx(n,0)}function qu(n){var r=zl(n);if(m1(r))return n}function D1(n,r){if(n==="change")return r}var I1=!1;if(Zr){var _h;if(Zr){var Ah="oninput"in document;if(!Ah){var $1=document.createElement("div");$1.setAttribute("oninput","return;"),Ah=typeof $1.oninput=="function"}_h=Ah}else _h=!1;I1=_h&&(!document.documentMode||9<document.documentMode)}function U1(){Ll&&(Ll.detachEvent("onpropertychange",L1),jl=Ll=null)}function L1(n){if(n.propertyName==="value"&&qu(jl)){var r=[];B1(r,jl,n,yh(n)),w1(JN,r)}}function e4(n,r,a){n==="focusin"?(U1(),Ll=r,jl=a,Ll.attachEvent("onpropertychange",L1)):n==="focusout"&&U1()}function t4(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return qu(jl)}function n4(n,r){if(n==="click")return qu(r)}function r4(n,r){if(n==="input"||n==="change")return qu(r)}function i4(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var qn=typeof Object.is=="function"?Object.is:i4;function Pl(n,r){if(qn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var a=Object.keys(n),s=Object.keys(r);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var f=a[s];if(!ct.call(r,f)||!qn(n[f],r[f]))return!1}return!0}function j1(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function P1(n,r){var a=j1(n);n=0;for(var s;a;){if(a.nodeType===3){if(s=n+a.textContent.length,n<=r&&s>=r)return{node:a,offset:r-n};n=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=j1(a)}}function H1(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?H1(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function q1(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Iu(n.document);r instanceof n.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)n=r.contentWindow;else break;r=Iu(n.document)}return r}function kh(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var o4=Zr&&"documentMode"in document&&11>=document.documentMode,ua=null,Rh=null,Hl=null,Oh=!1;function V1(n,r,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Oh||ua==null||ua!==Iu(s)||(s=ua,"selectionStart"in s&&kh(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Hl&&Pl(Hl,s)||(Hl=s,s=Mc(Rh,"onSelect"),0<s.length&&(r=new Pu("onSelect","select",null,r,a),n.push({event:r,listeners:s}),r.target=ua)))}function fo(n,r){var a={};return a[n.toLowerCase()]=r.toLowerCase(),a["Webkit"+n]="webkit"+r,a["Moz"+n]="moz"+r,a}var ca={animationend:fo("Animation","AnimationEnd"),animationiteration:fo("Animation","AnimationIteration"),animationstart:fo("Animation","AnimationStart"),transitionrun:fo("Transition","TransitionRun"),transitionstart:fo("Transition","TransitionStart"),transitioncancel:fo("Transition","TransitionCancel"),transitionend:fo("Transition","TransitionEnd")},Mh={},F1={};Zr&&(F1=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function ho(n){if(Mh[n])return Mh[n];if(!ca[n])return n;var r=ca[n],a;for(a in r)if(r.hasOwnProperty(a)&&a in F1)return Mh[n]=r[a];return n}var Y1=ho("animationend"),G1=ho("animationiteration"),X1=ho("animationstart"),a4=ho("transitionrun"),l4=ho("transitionstart"),s4=ho("transitioncancel"),K1=ho("transitionend"),Q1=new Map,Nh="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(" ");Nh.push("scrollEnd");function xr(n,r){Q1.set(n,r),uo(r,[n])}var Vu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},ir=[],fa=0,zh=0;function Fu(){for(var n=fa,r=zh=fa=0;r<n;){var a=ir[r];ir[r++]=null;var s=ir[r];ir[r++]=null;var f=ir[r];ir[r++]=null;var h=ir[r];if(ir[r++]=null,s!==null&&f!==null){var b=s.pending;b===null?f.next=f:(f.next=b.next,b.next=f),s.pending=f}h!==0&&Z1(a,f,h)}}function Yu(n,r,a,s){ir[fa++]=n,ir[fa++]=r,ir[fa++]=a,ir[fa++]=s,zh|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function Bh(n,r,a,s){return Yu(n,r,a,s),Gu(n)}function po(n,r){return Yu(n,null,null,r),Gu(n)}function Z1(n,r,a){n.lanes|=a;var s=n.alternate;s!==null&&(s.lanes|=a);for(var f=!1,h=n.return;h!==null;)h.childLanes|=a,s=h.alternate,s!==null&&(s.childLanes|=a),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&r!==null&&(f=31-at(a),n=h.hiddenUpdates,s=n[f],s===null?n[f]=[r]:s.push(r),r.lane=a|536870912),h):null}function Gu(n){if(50<cs)throw cs=0,qp=null,Error(o(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var da={};function u4(n,r,a,s){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(n,r,a,s){return new u4(n,r,a,s)}function Dh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Wr(n,r){var a=n.alternate;return a===null?(a=Vn(n.tag,r,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=r,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,r=n.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function W1(n,r){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,r=a.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Xu(n,r,a,s,f,h){var b=0;if(s=n,typeof n=="function")Dh(n)&&(b=1);else if(typeof n=="string")b=p6(n,a,fe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case q:return n=Vn(31,a,r,f),n.elementType=q,n.lanes=h,n;case w:return mo(a.children,f,h,r);case R:b=8,f|=24;break;case k:return n=Vn(12,a,r,f|2),n.elementType=k,n.lanes=h,n;case B:return n=Vn(13,a,r,f),n.elementType=B,n.lanes=h,n;case T:return n=Vn(19,a,r,f),n.elementType=T,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:b=10;break e;case $:b=9;break e;case _:b=11;break e;case L:b=14;break e;case V:b=16,s=null;break e}b=29,a=Error(o(130,n===null?"null":typeof n,"")),s=null}return r=Vn(b,a,r,f),r.elementType=n,r.type=s,r.lanes=h,r}function mo(n,r,a,s){return n=Vn(7,n,s,r),n.lanes=a,n}function Ih(n,r,a){return n=Vn(6,n,null,r),n.lanes=a,n}function J1(n){var r=Vn(18,null,null,0);return r.stateNode=n,r}function $h(n,r,a){return r=Vn(4,n.children!==null?n.children:[],n.key,r),r.lanes=a,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var eS=new WeakMap;function or(n,r){if(typeof n=="object"&&n!==null){var a=eS.get(n);return a!==void 0?a:(r={value:n,source:r,stack:mt(r)},eS.set(n,r),r)}return{value:n,source:r,stack:mt(r)}}var ha=[],pa=0,Ku=null,ql=0,ar=[],lr=0,Ci=null,$r=1,Ur="";function Jr(n,r){ha[pa++]=ql,ha[pa++]=Ku,Ku=n,ql=r}function tS(n,r,a){ar[lr++]=$r,ar[lr++]=Ur,ar[lr++]=Ci,Ci=n;var s=$r;n=Ur;var f=32-at(s)-1;s&=~(1<<f),a+=1;var h=32-at(r)+f;if(30<h){var b=f-f%5;h=(s&(1<<b)-1).toString(32),s>>=b,f-=b,$r=1<<32-at(r)+f|a<<f|s,Ur=h+n}else $r=1<<h|a<<f|s,Ur=n}function Uh(n){n.return!==null&&(Jr(n,1),tS(n,1,0))}function Lh(n){for(;n===Ku;)Ku=ha[--pa],ha[pa]=null,ql=ha[--pa],ha[pa]=null;for(;n===Ci;)Ci=ar[--lr],ar[lr]=null,Ur=ar[--lr],ar[lr]=null,$r=ar[--lr],ar[lr]=null}function nS(n,r){ar[lr++]=$r,ar[lr++]=Ur,ar[lr++]=Ci,$r=r.id,Ur=r.overflow,Ci=n}var fn=null,At=null,Qe=!1,Ti=null,sr=!1,jh=Error(o(519));function _i(n){var r=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vl(or(r,n)),jh}function rS(n){var r=n.stateNode,a=n.type,s=n.memoizedProps;switch(r[cn]=n,r[kn]=s,a){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(a=0;a<ds.length;a++)Ye(ds[a],r);break;case"source":Ye("error",r);break;case"img":case"image":case"link":Ye("error",r),Ye("load",r);break;case"details":Ye("toggle",r);break;case"input":Ye("invalid",r),g1(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ye("invalid",r);break;case"textarea":Ye("invalid",r),b1(r,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||s.suppressHydrationWarning===!0||vx(r.textContent,a)?(s.popover!=null&&(Ye("beforetoggle",r),Ye("toggle",r)),s.onScroll!=null&&Ye("scroll",r),s.onScrollEnd!=null&&Ye("scrollend",r),s.onClick!=null&&(r.onclick=Qr),r=!0):r=!1,r||_i(n,!0)}function iS(n){for(fn=n.return;fn;)switch(fn.tag){case 5:case 31:case 13:sr=!1;return;case 27:case 3:sr=!0;return;default:fn=fn.return}}function ma(n){if(n!==fn)return!1;if(!Qe)return iS(n),Qe=!0,!1;var r=n.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||im(n.type,n.memoizedProps)),a=!a),a&&At&&_i(n),iS(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));At=Rx(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));At=Rx(n)}else r===27?(r=At,ji(n.type)?(n=um,um=null,At=n):At=r):At=fn?cr(n.stateNode.nextSibling):null;return!0}function go(){At=fn=null,Qe=!1}function Ph(){var n=Ti;return n!==null&&(zn===null?zn=n:zn.push.apply(zn,n),Ti=null),n}function Vl(n){Ti===null?Ti=[n]:Ti.push(n)}var Hh=D(null),yo=null,ei=null;function Ai(n,r,a){A(Hh,r._currentValue),r._currentValue=a}function ti(n){n._currentValue=Hh.current,W(Hh)}function qh(n,r,a){for(;n!==null;){var s=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),n===a)break;n=n.return}}function Vh(n,r,a,s){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var E=h;h=f;for(var I=0;I<r.length;I++)if(E.context===r[I]){h.lanes|=a,E=h.alternate,E!==null&&(E.lanes|=a),qh(h.return,a,n),s||(b=null);break e}h=E.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(o(341));b.lanes|=a,h=b.alternate,h!==null&&(h.lanes|=a),qh(b,a,n),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===n){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function ga(n,r,a,s){n=null;for(var f=r,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(o(387));if(b=b.memoizedProps,b!==null){var E=f.type;qn(f.pendingProps.value,b.value)||(n!==null?n.push(E):n=[E])}}else if(f===be.current){if(b=f.alternate,b===null)throw Error(o(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(ys):n=[ys])}f=f.return}n!==null&&Vh(r,n,a,s),r.flags|=262144}function Qu(n){for(n=n.firstContext;n!==null;){if(!qn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function bo(n){yo=n,ei=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function dn(n){return oS(yo,n)}function Zu(n,r){return yo===null&&bo(n),oS(n,r)}function oS(n,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},ei===null){if(n===null)throw Error(o(308));ei=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else ei=ei.next=r;return a}var c4=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(a,s){n.push(s)}};this.abort=function(){r.aborted=!0,n.forEach(function(a){return a()})}},f4=e.unstable_scheduleCallback,d4=e.unstable_NormalPriority,Zt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fh(){return{controller:new c4,data:new Map,refCount:0}}function Fl(n){n.refCount--,n.refCount===0&&f4(d4,function(){n.controller.abort()})}var Yl=null,Yh=0,ya=0,ba=null;function h4(n,r){if(Yl===null){var a=Yl=[];Yh=0,ya=Kp(),ba={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Yh++,r.then(aS,aS),r}function aS(){if(--Yh===0&&Yl!==null){ba!==null&&(ba.status="fulfilled");var n=Yl;Yl=null,ya=0,ba=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function p4(n,r){var a=[],s={status:"pending",value:null,reason:null,then:function(f){a.push(f)}};return n.then(function(){s.status="fulfilled",s.value=r;for(var f=0;f<a.length;f++)(0,a[f])(r)},function(f){for(s.status="rejected",s.reason=f,f=0;f<a.length;f++)(0,a[f])(void 0)}),s}var lS=z.S;z.S=function(n,r){Vv=He(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&h4(n,r),lS!==null&&lS(n,r)};var So=D(null);function Gh(){var n=So.current;return n!==null?n:vt.pooledCache}function Wu(n,r){r===null?A(So,So.current):A(So,r.pool)}function sS(){var n=Gh();return n===null?null:{parent:Zt._currentValue,pool:n}}var Sa=Error(o(460)),Xh=Error(o(474)),Ju=Error(o(542)),ec={then:function(){}};function uS(n){return n=n.status,n==="fulfilled"||n==="rejected"}function cS(n,r,a){switch(a=n[a],a===void 0?n.push(r):a!==r&&(r.then(Qr,Qr),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,dS(n),n;default:if(typeof r.status=="string")r.then(Qr,Qr);else{if(n=vt,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=r,n.status="pending",n.then(function(s){if(r.status==="pending"){var f=r;f.status="fulfilled",f.value=s}},function(s){if(r.status==="pending"){var f=r;f.status="rejected",f.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,dS(n),n}throw xo=r,Sa}}function vo(n){try{var r=n._init;return r(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xo=a,Sa):a}}var xo=null;function fS(){if(xo===null)throw Error(o(459));var n=xo;return xo=null,n}function dS(n){if(n===Sa||n===Ju)throw Error(o(483))}var va=null,Gl=0;function tc(n){var r=Gl;return Gl+=1,va===null&&(va=[]),cS(va,n,r)}function Xl(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function nc(n,r){throw r.$$typeof===v?Error(o(525)):(n=Object.prototype.toString.call(r),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function hS(n){function r(G,P){if(n){var Q=G.deletions;Q===null?(G.deletions=[P],G.flags|=16):Q.push(P)}}function a(G,P){if(!n)return null;for(;P!==null;)r(G,P),P=P.sibling;return null}function s(G){for(var P=new Map;G!==null;)G.key!==null?P.set(G.key,G):P.set(G.index,G),G=G.sibling;return P}function f(G,P){return G=Wr(G,P),G.index=0,G.sibling=null,G}function h(G,P,Q){return G.index=Q,n?(Q=G.alternate,Q!==null?(Q=Q.index,Q<P?(G.flags|=67108866,P):Q):(G.flags|=67108866,P)):(G.flags|=1048576,P)}function b(G){return n&&G.alternate===null&&(G.flags|=67108866),G}function E(G,P,Q,oe){return P===null||P.tag!==6?(P=Ih(Q,G.mode,oe),P.return=G,P):(P=f(P,Q),P.return=G,P)}function I(G,P,Q,oe){var ke=Q.type;return ke===w?ie(G,P,Q.props.children,oe,Q.key):P!==null&&(P.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===V&&vo(ke)===P.type)?(P=f(P,Q.props),Xl(P,Q),P.return=G,P):(P=Xu(Q.type,Q.key,Q.props,null,G.mode,oe),Xl(P,Q),P.return=G,P)}function Z(G,P,Q,oe){return P===null||P.tag!==4||P.stateNode.containerInfo!==Q.containerInfo||P.stateNode.implementation!==Q.implementation?(P=$h(Q,G.mode,oe),P.return=G,P):(P=f(P,Q.children||[]),P.return=G,P)}function ie(G,P,Q,oe,ke){return P===null||P.tag!==7?(P=mo(Q,G.mode,oe,ke),P.return=G,P):(P=f(P,Q),P.return=G,P)}function le(G,P,Q){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=Ih(""+P,G.mode,Q),P.return=G,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return Q=Xu(P.type,P.key,P.props,null,G.mode,Q),Xl(Q,P),Q.return=G,Q;case C:return P=$h(P,G.mode,Q),P.return=G,P;case V:return P=vo(P),le(G,P,Q)}if(j(P)||x(P))return P=mo(P,G.mode,Q,null),P.return=G,P;if(typeof P.then=="function")return le(G,tc(P),Q);if(P.$$typeof===M)return le(G,Zu(G,P),Q);nc(G,P)}return null}function ee(G,P,Q,oe){var ke=P!==null?P.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return ke!==null?null:E(G,P,""+Q,oe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return Q.key===ke?I(G,P,Q,oe):null;case C:return Q.key===ke?Z(G,P,Q,oe):null;case V:return Q=vo(Q),ee(G,P,Q,oe)}if(j(Q)||x(Q))return ke!==null?null:ie(G,P,Q,oe,null);if(typeof Q.then=="function")return ee(G,P,tc(Q),oe);if(Q.$$typeof===M)return ee(G,P,Zu(G,Q),oe);nc(G,Q)}return null}function ne(G,P,Q,oe,ke){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return G=G.get(Q)||null,E(P,G,""+oe,ke);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case S:return G=G.get(oe.key===null?Q:oe.key)||null,I(P,G,oe,ke);case C:return G=G.get(oe.key===null?Q:oe.key)||null,Z(P,G,oe,ke);case V:return oe=vo(oe),ne(G,P,Q,oe,ke)}if(j(oe)||x(oe))return G=G.get(Q)||null,ie(P,G,oe,ke,null);if(typeof oe.then=="function")return ne(G,P,Q,tc(oe),ke);if(oe.$$typeof===M)return ne(G,P,Q,Zu(P,oe),ke);nc(P,oe)}return null}function ye(G,P,Q,oe){for(var ke=null,Je=null,ve=P,je=P=0,Xe=null;ve!==null&&je<Q.length;je++){ve.index>je?(Xe=ve,ve=null):Xe=ve.sibling;var et=ee(G,ve,Q[je],oe);if(et===null){ve===null&&(ve=Xe);break}n&&ve&&et.alternate===null&&r(G,ve),P=h(et,P,je),Je===null?ke=et:Je.sibling=et,Je=et,ve=Xe}if(je===Q.length)return a(G,ve),Qe&&Jr(G,je),ke;if(ve===null){for(;je<Q.length;je++)ve=le(G,Q[je],oe),ve!==null&&(P=h(ve,P,je),Je===null?ke=ve:Je.sibling=ve,Je=ve);return Qe&&Jr(G,je),ke}for(ve=s(ve);je<Q.length;je++)Xe=ne(ve,G,je,Q[je],oe),Xe!==null&&(n&&Xe.alternate!==null&&ve.delete(Xe.key===null?je:Xe.key),P=h(Xe,P,je),Je===null?ke=Xe:Je.sibling=Xe,Je=Xe);return n&&ve.forEach(function(Fi){return r(G,Fi)}),Qe&&Jr(G,je),ke}function Re(G,P,Q,oe){if(Q==null)throw Error(o(151));for(var ke=null,Je=null,ve=P,je=P=0,Xe=null,et=Q.next();ve!==null&&!et.done;je++,et=Q.next()){ve.index>je?(Xe=ve,ve=null):Xe=ve.sibling;var Fi=ee(G,ve,et.value,oe);if(Fi===null){ve===null&&(ve=Xe);break}n&&ve&&Fi.alternate===null&&r(G,ve),P=h(Fi,P,je),Je===null?ke=Fi:Je.sibling=Fi,Je=Fi,ve=Xe}if(et.done)return a(G,ve),Qe&&Jr(G,je),ke;if(ve===null){for(;!et.done;je++,et=Q.next())et=le(G,et.value,oe),et!==null&&(P=h(et,P,je),Je===null?ke=et:Je.sibling=et,Je=et);return Qe&&Jr(G,je),ke}for(ve=s(ve);!et.done;je++,et=Q.next())et=ne(ve,G,je,et.value,oe),et!==null&&(n&&et.alternate!==null&&ve.delete(et.key===null?je:et.key),P=h(et,P,je),Je===null?ke=et:Je.sibling=et,Je=et);return n&&ve.forEach(function(T6){return r(G,T6)}),Qe&&Jr(G,je),ke}function bt(G,P,Q,oe){if(typeof Q=="object"&&Q!==null&&Q.type===w&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:e:{for(var ke=Q.key;P!==null;){if(P.key===ke){if(ke=Q.type,ke===w){if(P.tag===7){a(G,P.sibling),oe=f(P,Q.props.children),oe.return=G,G=oe;break e}}else if(P.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===V&&vo(ke)===P.type){a(G,P.sibling),oe=f(P,Q.props),Xl(oe,Q),oe.return=G,G=oe;break e}a(G,P);break}else r(G,P);P=P.sibling}Q.type===w?(oe=mo(Q.props.children,G.mode,oe,Q.key),oe.return=G,G=oe):(oe=Xu(Q.type,Q.key,Q.props,null,G.mode,oe),Xl(oe,Q),oe.return=G,G=oe)}return b(G);case C:e:{for(ke=Q.key;P!==null;){if(P.key===ke)if(P.tag===4&&P.stateNode.containerInfo===Q.containerInfo&&P.stateNode.implementation===Q.implementation){a(G,P.sibling),oe=f(P,Q.children||[]),oe.return=G,G=oe;break e}else{a(G,P);break}else r(G,P);P=P.sibling}oe=$h(Q,G.mode,oe),oe.return=G,G=oe}return b(G);case V:return Q=vo(Q),bt(G,P,Q,oe)}if(j(Q))return ye(G,P,Q,oe);if(x(Q)){if(ke=x(Q),typeof ke!="function")throw Error(o(150));return Q=ke.call(Q),Re(G,P,Q,oe)}if(typeof Q.then=="function")return bt(G,P,tc(Q),oe);if(Q.$$typeof===M)return bt(G,P,Zu(G,Q),oe);nc(G,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,P!==null&&P.tag===6?(a(G,P.sibling),oe=f(P,Q),oe.return=G,G=oe):(a(G,P),oe=Ih(Q,G.mode,oe),oe.return=G,G=oe),b(G)):a(G,P)}return function(G,P,Q,oe){try{Gl=0;var ke=bt(G,P,Q,oe);return va=null,ke}catch(ve){if(ve===Sa||ve===Ju)throw ve;var Je=Vn(29,ve,null,G.mode);return Je.lanes=oe,Je.return=G,Je}finally{}}}var wo=hS(!0),pS=hS(!1),ki=!1;function Kh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qh(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ri(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Oi(n,r,a){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(it&2)!==0){var f=s.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),s.pending=r,r=Gu(n),Z1(n,null,a),r}return Yu(n,s,r,a),Gu(n)}function Kl(n,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var s=r.lanes;s&=n.pendingLanes,a|=s,r.lanes=a,o1(n,a)}}function Zh(n,r){var a=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var f=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,a=a.next}while(a!==null);h===null?f=h=r:h=h.next=r}else f=h=r;a={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:s.shared,callbacks:s.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=r:n.next=r,a.lastBaseUpdate=r}var Wh=!1;function Ql(){if(Wh){var n=ba;if(n!==null)throw n}}function Zl(n,r,a,s){Wh=!1;var f=n.updateQueue;ki=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var I=E,Z=I.next;I.next=null,b===null?h=Z:b.next=Z,b=I;var ie=n.alternate;ie!==null&&(ie=ie.updateQueue,E=ie.lastBaseUpdate,E!==b&&(E===null?ie.firstBaseUpdate=Z:E.next=Z,ie.lastBaseUpdate=I))}if(h!==null){var le=f.baseState;b=0,ie=Z=I=null,E=h;do{var ee=E.lane&-536870913,ne=ee!==E.lane;if(ne?(Ge&ee)===ee:(s&ee)===ee){ee!==0&&ee===ya&&(Wh=!0),ie!==null&&(ie=ie.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ye=n,Re=E;ee=r;var bt=a;switch(Re.tag){case 1:if(ye=Re.payload,typeof ye=="function"){le=ye.call(bt,le,ee);break e}le=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Re.payload,ee=typeof ye=="function"?ye.call(bt,le,ee):ye,ee==null)break e;le=y({},le,ee);break e;case 2:ki=!0}}ee=E.callback,ee!==null&&(n.flags|=64,ne&&(n.flags|=8192),ne=f.callbacks,ne===null?f.callbacks=[ee]:ne.push(ee))}else ne={lane:ee,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ie===null?(Z=ie=ne,I=le):ie=ie.next=ne,b|=ee;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;ne=E,E=ne.next,ne.next=null,f.lastBaseUpdate=ne,f.shared.pending=null}}while(!0);ie===null&&(I=le),f.baseState=I,f.firstBaseUpdate=Z,f.lastBaseUpdate=ie,h===null&&(f.shared.lanes=0),Di|=b,n.lanes=b,n.memoizedState=le}}function mS(n,r){if(typeof n!="function")throw Error(o(191,n));n.call(r)}function gS(n,r){var a=n.callbacks;if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)mS(a[n],r)}var xa=D(null),rc=D(0);function yS(n,r){n=ci,A(rc,n),A(xa,r),ci=n|r.baseLanes}function Jh(){A(rc,ci),A(xa,xa.current)}function ep(){ci=rc.current,W(xa),W(rc)}var Fn=D(null),ur=null;function Mi(n){var r=n.alternate;A(Ft,Ft.current&1),A(Fn,n),ur===null&&(r===null||xa.current!==null||r.memoizedState!==null)&&(ur=n)}function tp(n){A(Ft,Ft.current),A(Fn,n),ur===null&&(ur=n)}function bS(n){n.tag===22?(A(Ft,Ft.current),A(Fn,n),ur===null&&(ur=n)):Ni()}function Ni(){A(Ft,Ft.current),A(Fn,Fn.current)}function Yn(n){W(Fn),ur===n&&(ur=null),W(Ft)}var Ft=D(0);function ic(n){for(var r=n;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||lm(a)||sm(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ni=0,De=null,gt=null,Wt=null,oc=!1,wa=!1,Eo=!1,ac=0,Wl=0,Ea=null,m4=0;function Lt(){throw Error(o(321))}function np(n,r){if(r===null)return!1;for(var a=0;a<r.length&&a<n.length;a++)if(!qn(n[a],r[a]))return!1;return!0}function rp(n,r,a,s,f,h){return ni=h,De=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,z.H=n===null||n.memoizedState===null?tv:bp,Eo=!1,h=a(s,f),Eo=!1,wa&&(h=vS(r,a,s,f)),SS(n),h}function SS(n){z.H=ts;var r=gt!==null&>.next!==null;if(ni=0,Wt=gt=De=null,oc=!1,Wl=0,Ea=null,r)throw Error(o(300));n===null||Jt||(n=n.dependencies,n!==null&&Qu(n)&&(Jt=!0))}function vS(n,r,a,s){De=n;var f=0;do{if(wa&&(Ea=null),Wl=0,wa=!1,25<=f)throw Error(o(301));if(f+=1,Wt=gt=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}z.H=nv,h=r(a,s)}while(wa);return h}function g4(){var n=z.H,r=n.useState()[0];return r=typeof r.then=="function"?Jl(r):r,n=n.useState()[0],(gt!==null?gt.memoizedState:null)!==n&&(De.flags|=1024),r}function ip(){var n=ac!==0;return ac=0,n}function op(n,r,a){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~a}function ap(n){if(oc){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}oc=!1}ni=0,Wt=gt=De=null,wa=!1,Wl=ac=0,Ea=null}function wn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?De.memoizedState=Wt=n:Wt=Wt.next=n,Wt}function Yt(){if(gt===null){var n=De.alternate;n=n!==null?n.memoizedState:null}else n=gt.next;var r=Wt===null?De.memoizedState:Wt.next;if(r!==null)Wt=r,gt=n;else{if(n===null)throw De.alternate===null?Error(o(467)):Error(o(310));gt=n,n={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Wt===null?De.memoizedState=Wt=n:Wt=Wt.next=n}return Wt}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jl(n){var r=Wl;return Wl+=1,Ea===null&&(Ea=[]),n=cS(Ea,n,r),r=De,(Wt===null?r.memoizedState:Wt.next)===null&&(r=r.alternate,z.H=r===null||r.memoizedState===null?tv:bp),n}function sc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Jl(n);if(n.$$typeof===M)return dn(n)}throw Error(o(438,String(n)))}function lp(n){var r=null,a=De.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var s=De.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(f){return f.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=lc(),De.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(n),s=0;s<n;s++)a[s]=F;return r.index++,a}function ri(n,r){return typeof r=="function"?r(n):r}function uc(n){var r=Yt();return sp(r,gt,n)}function sp(n,r,a){var s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=a;var f=n.baseQueue,h=s.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}r.baseQueue=f=h,s.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{r=f.next;var E=b=null,I=null,Z=r,ie=!1;do{var le=Z.lane&-536870913;if(le!==Z.lane?(Ge&le)===le:(ni&le)===le){var ee=Z.revertLane;if(ee===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),le===ya&&(ie=!0);else if((ni&ee)===ee){Z=Z.next,ee===ya&&(ie=!0);continue}else le={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},I===null?(E=I=le,b=h):I=I.next=le,De.lanes|=ee,Di|=ee;le=Z.action,Eo&&a(h,le),h=Z.hasEagerState?Z.eagerState:a(h,le)}else ee={lane:le,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},I===null?(E=I=ee,b=h):I=I.next=ee,De.lanes|=le,Di|=le;Z=Z.next}while(Z!==null&&Z!==r);if(I===null?b=h:I.next=E,!qn(h,n.memoizedState)&&(Jt=!0,ie&&(a=ba,a!==null)))throw a;n.memoizedState=h,n.baseState=b,n.baseQueue=I,s.lastRenderedState=h}return f===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function up(n){var r=Yt(),a=r.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var s=a.dispatch,f=a.pending,h=r.memoizedState;if(f!==null){a.pending=null;var b=f=f.next;do h=n(h,b.action),b=b.next;while(b!==f);qn(h,r.memoizedState)||(Jt=!0),r.memoizedState=h,r.baseQueue===null&&(r.baseState=h),a.lastRenderedState=h}return[h,s]}function xS(n,r,a){var s=De,f=Yt(),h=Qe;if(h){if(a===void 0)throw Error(o(407));a=a()}else a=r();var b=!qn((gt||f).memoizedState,a);if(b&&(f.memoizedState=a,Jt=!0),f=f.queue,dp(CS.bind(null,s,f,n),[n]),f.getSnapshot!==r||b||Wt!==null&&Wt.memoizedState.tag&1){if(s.flags|=2048,Ca(9,{destroy:void 0},ES.bind(null,s,f,a,r),null),vt===null)throw Error(o(349));h||(ni&127)!==0||wS(s,r,a)}return a}function wS(n,r,a){n.flags|=16384,n={getSnapshot:r,value:a},r=De.updateQueue,r===null?(r=lc(),De.updateQueue=r,r.stores=[n]):(a=r.stores,a===null?r.stores=[n]:a.push(n))}function ES(n,r,a,s){r.value=a,r.getSnapshot=s,TS(r)&&_S(n)}function CS(n,r,a){return a(function(){TS(r)&&_S(n)})}function TS(n){var r=n.getSnapshot;n=n.value;try{var a=r();return!qn(n,a)}catch{return!0}}function _S(n){var r=po(n,2);r!==null&&Bn(r,n,2)}function cp(n){var r=wn();if(typeof n=="function"){var a=n;if(n=a(),Eo){vn(!0);try{a()}finally{vn(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:n},r}function AS(n,r,a,s){return n.baseState=a,sp(n,gt,typeof s=="function"?s:ri)}function y4(n,r,a,s,f){if(dc(n))throw Error(o(485));if(n=r.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};z.T!==null?a(!0):h.isTransition=!1,s(h),a=r.pending,a===null?(h.next=r.pending=h,kS(r,h)):(h.next=a.next,r.pending=a.next=h)}}function kS(n,r){var a=r.action,s=r.payload,f=n.state;if(r.isTransition){var h=z.T,b={};z.T=b;try{var E=a(f,s),I=z.S;I!==null&&I(b,E),RS(n,r,E)}catch(Z){fp(n,r,Z)}finally{h!==null&&b.types!==null&&(h.types=b.types),z.T=h}}else try{h=a(f,s),RS(n,r,h)}catch(Z){fp(n,r,Z)}}function RS(n,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){OS(n,r,s)},function(s){return fp(n,r,s)}):OS(n,r,a)}function OS(n,r,a){r.status="fulfilled",r.value=a,MS(r),n.state=a,r=n.pending,r!==null&&(a=r.next,a===r?n.pending=null:(a=a.next,r.next=a,kS(n,a)))}function fp(n,r,a){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=a,MS(r),r=r.next;while(r!==s)}n.action=null}function MS(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function NS(n,r){return r}function zS(n,r){if(Qe){var a=vt.formState;if(a!==null){e:{var s=De;if(Qe){if(At){t:{for(var f=At,h=sr;f.nodeType!==8;){if(!h){f=null;break t}if(f=cr(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){At=cr(f.nextSibling),s=f.data==="F!";break e}}_i(s)}s=!1}s&&(r=a[0])}}return a=wn(),a.memoizedState=a.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:NS,lastRenderedState:r},a.queue=s,a=WS.bind(null,De,s),s.dispatch=a,s=cp(!1),h=yp.bind(null,De,!1,s.queue),s=wn(),f={state:r,dispatch:null,action:n,pending:null},s.queue=f,a=y4.bind(null,De,f,h,a),f.dispatch=a,s.memoizedState=n,[r,a,!1]}function BS(n){var r=Yt();return DS(r,gt,n)}function DS(n,r,a){if(r=sp(n,r,NS)[0],n=uc(ri)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Jl(r)}catch(b){throw b===Sa?Ju:b}else s=r;r=Yt();var f=r.queue,h=f.dispatch;return a!==r.memoizedState&&(De.flags|=2048,Ca(9,{destroy:void 0},b4.bind(null,f,a),null)),[s,h,n]}function b4(n,r){n.action=r}function IS(n){var r=Yt(),a=gt;if(a!==null)return DS(r,a,n);Yt(),r=r.memoizedState,a=Yt();var s=a.queue.dispatch;return a.memoizedState=n,[r,s,!1]}function Ca(n,r,a,s){return n={tag:n,create:a,deps:s,inst:r,next:null},r=De.updateQueue,r===null&&(r=lc(),De.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=n.next=n:(s=a.next,a.next=n,n.next=s,r.lastEffect=n),n}function $S(){return Yt().memoizedState}function cc(n,r,a,s){var f=wn();De.flags|=n,f.memoizedState=Ca(1|r,{destroy:void 0},a,s===void 0?null:s)}function fc(n,r,a,s){var f=Yt();s=s===void 0?null:s;var h=f.memoizedState.inst;gt!==null&&s!==null&&np(s,gt.memoizedState.deps)?f.memoizedState=Ca(r,h,a,s):(De.flags|=n,f.memoizedState=Ca(1|r,h,a,s))}function US(n,r){cc(8390656,8,n,r)}function dp(n,r){fc(2048,8,n,r)}function S4(n){De.flags|=4;var r=De.updateQueue;if(r===null)r=lc(),De.updateQueue=r,r.events=[n];else{var a=r.events;a===null?r.events=[n]:a.push(n)}}function LS(n){var r=Yt().memoizedState;return S4({ref:r,nextImpl:n}),function(){if((it&2)!==0)throw Error(o(440));return r.impl.apply(void 0,arguments)}}function jS(n,r){return fc(4,2,n,r)}function PS(n,r){return fc(4,4,n,r)}function HS(n,r){if(typeof r=="function"){n=n();var a=r(n);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function qS(n,r,a){a=a!=null?a.concat([n]):null,fc(4,4,HS.bind(null,r,n),a)}function hp(){}function VS(n,r){var a=Yt();r=r===void 0?null:r;var s=a.memoizedState;return r!==null&&np(r,s[1])?s[0]:(a.memoizedState=[n,r],n)}function FS(n,r){var a=Yt();r=r===void 0?null:r;var s=a.memoizedState;if(r!==null&&np(r,s[1]))return s[0];if(s=n(),Eo){vn(!0);try{n()}finally{vn(!1)}}return a.memoizedState=[s,r],s}function pp(n,r,a){return a===void 0||(ni&1073741824)!==0&&(Ge&261930)===0?n.memoizedState=r:(n.memoizedState=a,n=Yv(),De.lanes|=n,Di|=n,a)}function YS(n,r,a,s){return qn(a,r)?a:xa.current!==null?(n=pp(n,a,s),qn(n,r)||(Jt=!0),n):(ni&42)===0||(ni&1073741824)!==0&&(Ge&261930)===0?(Jt=!0,n.memoizedState=a):(n=Yv(),De.lanes|=n,Di|=n,r)}function GS(n,r,a,s,f){var h=J.p;J.p=h!==0&&8>h?h:8;var b=z.T,E={};z.T=E,yp(n,!1,r,a);try{var I=f(),Z=z.S;if(Z!==null&&Z(E,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var ie=p4(I,s);es(n,r,ie,Kn(n))}else es(n,r,s,Kn(n))}catch(le){es(n,r,{then:function(){},status:"rejected",reason:le},Kn())}finally{J.p=h,b!==null&&E.types!==null&&(b.types=E.types),z.T=b}}function v4(){}function mp(n,r,a,s){if(n.tag!==5)throw Error(o(476));var f=XS(n).queue;GS(n,f,r,ce,a===null?v4:function(){return KS(n),a(s)})}function XS(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:ce},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:a},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function KS(n){var r=XS(n);r.next===null&&(r=n.alternate.memoizedState),es(n,r.next.queue,{},Kn())}function gp(){return dn(ys)}function QS(){return Yt().memoizedState}function ZS(){return Yt().memoizedState}function x4(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var a=Kn();n=Ri(a);var s=Oi(r,n,a);s!==null&&(Bn(s,r,a),Kl(s,r,a)),r={cache:Fh()},n.payload=r;return}r=r.return}}function w4(n,r,a){var s=Kn();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},dc(n)?JS(r,a):(a=Bh(n,r,a,s),a!==null&&(Bn(a,n,s),ev(a,r,s)))}function WS(n,r,a){var s=Kn();es(n,r,a,s)}function es(n,r,a,s){var f={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(dc(n))JS(r,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var b=r.lastRenderedState,E=h(b,a);if(f.hasEagerState=!0,f.eagerState=E,qn(E,b))return Yu(n,r,f,0),vt===null&&Fu(),!1}catch{}finally{}if(a=Bh(n,r,f,s),a!==null)return Bn(a,n,s),ev(a,r,s),!0}return!1}function yp(n,r,a,s){if(s={lane:2,revertLane:Kp(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},dc(n)){if(r)throw Error(o(479))}else r=Bh(n,a,s,2),r!==null&&Bn(r,n,2)}function dc(n){var r=n.alternate;return n===De||r!==null&&r===De}function JS(n,r){wa=oc=!0;var a=n.pending;a===null?r.next=r:(r.next=a.next,a.next=r),n.pending=r}function ev(n,r,a){if((a&4194048)!==0){var s=r.lanes;s&=n.pendingLanes,a|=s,r.lanes=a,o1(n,a)}}var ts={readContext:dn,use:sc,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};ts.useEffectEvent=Lt;var tv={readContext:dn,use:sc,useCallback:function(n,r){return wn().memoizedState=[n,r===void 0?null:r],n},useContext:dn,useEffect:US,useImperativeHandle:function(n,r,a){a=a!=null?a.concat([n]):null,cc(4194308,4,HS.bind(null,r,n),a)},useLayoutEffect:function(n,r){return cc(4194308,4,n,r)},useInsertionEffect:function(n,r){cc(4,2,n,r)},useMemo:function(n,r){var a=wn();r=r===void 0?null:r;var s=n();if(Eo){vn(!0);try{n()}finally{vn(!1)}}return a.memoizedState=[s,r],s},useReducer:function(n,r,a){var s=wn();if(a!==void 0){var f=a(r);if(Eo){vn(!0);try{a(r)}finally{vn(!1)}}}else f=r;return s.memoizedState=s.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},s.queue=n,n=n.dispatch=w4.bind(null,De,n),[s.memoizedState,n]},useRef:function(n){var r=wn();return n={current:n},r.memoizedState=n},useState:function(n){n=cp(n);var r=n.queue,a=WS.bind(null,De,r);return r.dispatch=a,[n.memoizedState,a]},useDebugValue:hp,useDeferredValue:function(n,r){var a=wn();return pp(a,n,r)},useTransition:function(){var n=cp(!1);return n=GS.bind(null,De,n.queue,!0,!1),wn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,a){var s=De,f=wn();if(Qe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=r(),vt===null)throw Error(o(349));(Ge&127)!==0||wS(s,r,a)}f.memoizedState=a;var h={value:a,getSnapshot:r};return f.queue=h,US(CS.bind(null,s,h,n),[n]),s.flags|=2048,Ca(9,{destroy:void 0},ES.bind(null,s,h,a,r),null),a},useId:function(){var n=wn(),r=vt.identifierPrefix;if(Qe){var a=Ur,s=$r;a=(s&~(1<<32-at(s)-1)).toString(32)+a,r="_"+r+"R_"+a,a=ac++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=m4++,r="_"+r+"r_"+a.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:gp,useFormState:zS,useActionState:zS,useOptimistic:function(n){var r=wn();r.memoizedState=r.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=yp.bind(null,De,!0,a),a.dispatch=r,[n,r]},useMemoCache:lp,useCacheRefresh:function(){return wn().memoizedState=x4.bind(null,De)},useEffectEvent:function(n){var r=wn(),a={impl:n};return r.memoizedState=a,function(){if((it&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},bp={readContext:dn,use:sc,useCallback:VS,useContext:dn,useEffect:dp,useImperativeHandle:qS,useInsertionEffect:jS,useLayoutEffect:PS,useMemo:FS,useReducer:uc,useRef:$S,useState:function(){return uc(ri)},useDebugValue:hp,useDeferredValue:function(n,r){var a=Yt();return YS(a,gt.memoizedState,n,r)},useTransition:function(){var n=uc(ri)[0],r=Yt().memoizedState;return[typeof n=="boolean"?n:Jl(n),r]},useSyncExternalStore:xS,useId:QS,useHostTransitionStatus:gp,useFormState:BS,useActionState:BS,useOptimistic:function(n,r){var a=Yt();return AS(a,gt,n,r)},useMemoCache:lp,useCacheRefresh:ZS};bp.useEffectEvent=LS;var nv={readContext:dn,use:sc,useCallback:VS,useContext:dn,useEffect:dp,useImperativeHandle:qS,useInsertionEffect:jS,useLayoutEffect:PS,useMemo:FS,useReducer:up,useRef:$S,useState:function(){return up(ri)},useDebugValue:hp,useDeferredValue:function(n,r){var a=Yt();return gt===null?pp(a,n,r):YS(a,gt.memoizedState,n,r)},useTransition:function(){var n=up(ri)[0],r=Yt().memoizedState;return[typeof n=="boolean"?n:Jl(n),r]},useSyncExternalStore:xS,useId:QS,useHostTransitionStatus:gp,useFormState:IS,useActionState:IS,useOptimistic:function(n,r){var a=Yt();return gt!==null?AS(a,gt,n,r):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:lp,useCacheRefresh:ZS};nv.useEffectEvent=LS;function Sp(n,r,a,s){r=n.memoizedState,a=a(s,r),a=a==null?r:y({},r,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var vp={enqueueSetState:function(n,r,a){n=n._reactInternals;var s=Kn(),f=Ri(s);f.payload=r,a!=null&&(f.callback=a),r=Oi(n,f,s),r!==null&&(Bn(r,n,s),Kl(r,n,s))},enqueueReplaceState:function(n,r,a){n=n._reactInternals;var s=Kn(),f=Ri(s);f.tag=1,f.payload=r,a!=null&&(f.callback=a),r=Oi(n,f,s),r!==null&&(Bn(r,n,s),Kl(r,n,s))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var a=Kn(),s=Ri(a);s.tag=2,r!=null&&(s.callback=r),r=Oi(n,s,a),r!==null&&(Bn(r,n,a),Kl(r,n,a))}};function rv(n,r,a,s,f,h,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,h,b):r.prototype&&r.prototype.isPureReactComponent?!Pl(a,s)||!Pl(f,h):!0}function iv(n,r,a,s){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,s),r.state!==n&&vp.enqueueReplaceState(r,r.state,null)}function Co(n,r){var a=r;if("ref"in r){a={};for(var s in r)s!=="ref"&&(a[s]=r[s])}if(n=n.defaultProps){a===r&&(a=y({},a));for(var f in n)a[f]===void 0&&(a[f]=n[f])}return a}function ov(n){Vu(n)}function av(n){console.error(n)}function lv(n){Vu(n)}function hc(n,r){try{var a=n.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function sv(n,r,a){try{var s=n.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function xp(n,r,a){return a=Ri(a),a.tag=3,a.payload={element:null},a.callback=function(){hc(n,r)},a}function uv(n){return n=Ri(n),n.tag=3,n}function cv(n,r,a,s){var f=a.type.getDerivedStateFromError;if(typeof f=="function"){var h=s.value;n.payload=function(){return f(h)},n.callback=function(){sv(r,a,s)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){sv(r,a,s),typeof f!="function"&&(Ii===null?Ii=new Set([this]):Ii.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function E4(n,r,a,s,f){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=a.alternate,r!==null&&ga(r,a,f,!0),a=Fn.current,a!==null){switch(a.tag){case 31:case 13:return ur===null?Tc():a.alternate===null&&jt===0&&(jt=3),a.flags&=-257,a.flags|=65536,a.lanes=f,s===ec?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([s]):r.add(s),Yp(n,s,f)),!1;case 22:return a.flags|=65536,s===ec?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([s]):a.add(s)),Yp(n,s,f)),!1}throw Error(o(435,a.tag))}return Yp(n,s,f),Tc(),!1}if(Qe)return r=Fn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=f,s!==jh&&(n=Error(o(422),{cause:s}),Vl(or(n,a)))):(s!==jh&&(r=Error(o(423),{cause:s}),Vl(or(r,a))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,s=or(s,a),f=xp(n.stateNode,s,f),Zh(n,f),jt!==4&&(jt=2)),!1;var h=Error(o(520),{cause:s});if(h=or(h,a),us===null?us=[h]:us.push(h),jt!==4&&(jt=2),r===null)return!0;s=or(s,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,n=f&-f,a.lanes|=n,n=xp(a.stateNode,s,n),Zh(a,n),!1;case 1:if(r=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ii===null||!Ii.has(h))))return a.flags|=65536,f&=-f,a.lanes|=f,f=uv(f),cv(f,n,a,s),Zh(a,f),!1}a=a.return}while(a!==null);return!1}var wp=Error(o(461)),Jt=!1;function hn(n,r,a,s){r.child=n===null?pS(r,null,a,s):wo(r,n.child,a,s)}function fv(n,r,a,s,f){a=a.render;var h=r.ref;if("ref"in s){var b={};for(var E in s)E!=="ref"&&(b[E]=s[E])}else b=s;return bo(r),s=rp(n,r,a,b,h,f),E=ip(),n!==null&&!Jt?(op(n,r,f),ii(n,r,f)):(Qe&&E&&Uh(r),r.flags|=1,hn(n,r,s,f),r.child)}function dv(n,r,a,s,f){if(n===null){var h=a.type;return typeof h=="function"&&!Dh(h)&&h.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=h,hv(n,r,h,s,f)):(n=Xu(a.type,null,s,r,r.mode,f),n.ref=r.ref,n.return=r,r.child=n)}if(h=n.child,!Op(n,f)){var b=h.memoizedProps;if(a=a.compare,a=a!==null?a:Pl,a(b,s)&&n.ref===r.ref)return ii(n,r,f)}return r.flags|=1,n=Wr(h,s),n.ref=r.ref,n.return=r,r.child=n}function hv(n,r,a,s,f){if(n!==null){var h=n.memoizedProps;if(Pl(h,s)&&n.ref===r.ref)if(Jt=!1,r.pendingProps=s=h,Op(n,f))(n.flags&131072)!==0&&(Jt=!0);else return r.lanes=n.lanes,ii(n,r,f)}return Ep(n,r,a,s,f)}function pv(n,r,a,s){var f=s.children,h=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((r.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,n!==null){for(s=r.child=n.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~h}else s=0,r.child=null;return mv(n,r,h,a,s)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&Wu(r,h!==null?h.cachePool:null),h!==null?yS(r,h):Jh(),bS(r);else return s=r.lanes=536870912,mv(n,r,h!==null?h.baseLanes|a:a,a,s)}else h!==null?(Wu(r,h.cachePool),yS(r,h),Ni(),r.memoizedState=null):(n!==null&&Wu(r,null),Jh(),Ni());return hn(n,r,f,a),r.child}function ns(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function mv(n,r,a,s,f){var h=Gh();return h=h===null?null:{parent:Zt._currentValue,pool:h},r.memoizedState={baseLanes:a,cachePool:h},n!==null&&Wu(r,null),Jh(),bS(r),n!==null&&ga(n,r,s,!0),r.childLanes=f,null}function pc(n,r){return r=gc({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function gv(n,r,a){return wo(r,n.child,null,a),n=pc(r,r.pendingProps),n.flags|=2,Yn(r),r.memoizedState=null,n}function C4(n,r,a){var s=r.pendingProps,f=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(Qe){if(s.mode==="hidden")return n=pc(r,s),r.lanes=536870912,ns(null,n);if(tp(r),(n=At)?(n=kx(n,sr),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ci!==null?{id:$r,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},a=J1(n),a.return=r,r.child=a,fn=r,At=null)):n=null,n===null)throw _i(r);return r.lanes=536870912,null}return pc(r,s)}var h=n.memoizedState;if(h!==null){var b=h.dehydrated;if(tp(r),f)if(r.flags&256)r.flags&=-257,r=gv(n,r,a);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(o(558));else if(Jt||ga(n,r,a,!1),f=(a&n.childLanes)!==0,Jt||f){if(s=vt,s!==null&&(b=a1(s,a),b!==0&&b!==h.retryLane))throw h.retryLane=b,po(n,b),Bn(s,n,b),wp;Tc(),r=gv(n,r,a)}else n=h.treeContext,At=cr(b.nextSibling),fn=r,Qe=!0,Ti=null,sr=!1,n!==null&&nS(r,n),r=pc(r,s),r.flags|=4096;return r}return n=Wr(n.child,{mode:s.mode,children:s.children}),n.ref=r.ref,r.child=n,n.return=r,n}function mc(n,r){var a=r.ref;if(a===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(n===null||n.ref!==a)&&(r.flags|=4194816)}}function Ep(n,r,a,s,f){return bo(r),a=rp(n,r,a,s,void 0,f),s=ip(),n!==null&&!Jt?(op(n,r,f),ii(n,r,f)):(Qe&&s&&Uh(r),r.flags|=1,hn(n,r,a,f),r.child)}function yv(n,r,a,s,f,h){return bo(r),r.updateQueue=null,a=vS(r,s,a,f),SS(n),s=ip(),n!==null&&!Jt?(op(n,r,h),ii(n,r,h)):(Qe&&s&&Uh(r),r.flags|=1,hn(n,r,a,h),r.child)}function bv(n,r,a,s,f){if(bo(r),r.stateNode===null){var h=da,b=a.contextType;typeof b=="object"&&b!==null&&(h=dn(b)),h=new a(s,h),r.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=vp,r.stateNode=h,h._reactInternals=r,h=r.stateNode,h.props=s,h.state=r.memoizedState,h.refs={},Kh(r),b=a.contextType,h.context=typeof b=="object"&&b!==null?dn(b):da,h.state=r.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Sp(r,a,b,s),h.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&vp.enqueueReplaceState(h,h.state,null),Zl(r,s,h,f),Ql(),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(n===null){h=r.stateNode;var E=r.memoizedProps,I=Co(a,E);h.props=I;var Z=h.context,ie=a.contextType;b=da,typeof ie=="object"&&ie!==null&&(b=dn(ie));var le=a.getDerivedStateFromProps;ie=typeof le=="function"||typeof h.getSnapshotBeforeUpdate=="function",E=r.pendingProps!==E,ie||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(E||Z!==b)&&iv(r,h,s,b),ki=!1;var ee=r.memoizedState;h.state=ee,Zl(r,s,h,f),Ql(),Z=r.memoizedState,E||ee!==Z||ki?(typeof le=="function"&&(Sp(r,a,le,s),Z=r.memoizedState),(I=ki||rv(r,a,I,s,ee,Z,b))?(ie||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(r.flags|=4194308)):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=Z),h.props=s,h.state=Z,h.context=b,s=I):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{h=r.stateNode,Qh(n,r),b=r.memoizedProps,ie=Co(a,b),h.props=ie,le=r.pendingProps,ee=h.context,Z=a.contextType,I=da,typeof Z=="object"&&Z!==null&&(I=dn(Z)),E=a.getDerivedStateFromProps,(Z=typeof E=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==le||ee!==I)&&iv(r,h,s,I),ki=!1,ee=r.memoizedState,h.state=ee,Zl(r,s,h,f),Ql();var ne=r.memoizedState;b!==le||ee!==ne||ki||n!==null&&n.dependencies!==null&&Qu(n.dependencies)?(typeof E=="function"&&(Sp(r,a,E,s),ne=r.memoizedState),(ie=ki||rv(r,a,ie,s,ee,ne,I)||n!==null&&n.dependencies!==null&&Qu(n.dependencies))?(Z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,ne,I),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,ne,I)),typeof h.componentDidUpdate=="function"&&(r.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===n.memoizedProps&&ee===n.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&ee===n.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=ne),h.props=s,h.state=ne,h.context=I,s=ie):(typeof h.componentDidUpdate!="function"||b===n.memoizedProps&&ee===n.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&ee===n.memoizedState||(r.flags|=1024),s=!1)}return h=s,mc(n,r),s=(r.flags&128)!==0,h||s?(h=r.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:h.render(),r.flags|=1,n!==null&&s?(r.child=wo(r,n.child,null,f),r.child=wo(r,null,a,f)):hn(n,r,a,f),r.memoizedState=h.state,n=r.child):n=ii(n,r,f),n}function Sv(n,r,a,s){return go(),r.flags|=256,hn(n,r,a,s),r.child}var Cp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tp(n){return{baseLanes:n,cachePool:sS()}}function _p(n,r,a){return n=n!==null?n.childLanes&~a:0,r&&(n|=Xn),n}function vv(n,r,a){var s=r.pendingProps,f=!1,h=(r.flags&128)!==0,b;if((b=h)||(b=n!==null&&n.memoizedState===null?!1:(Ft.current&2)!==0),b&&(f=!0,r.flags&=-129),b=(r.flags&32)!==0,r.flags&=-33,n===null){if(Qe){if(f?Mi(r):Ni(),(n=At)?(n=kx(n,sr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ci!==null?{id:$r,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},a=J1(n),a.return=r,r.child=a,fn=r,At=null)):n=null,n===null)throw _i(r);return sm(n)?r.lanes=32:r.lanes=536870912,null}var E=s.children;return s=s.fallback,f?(Ni(),f=r.mode,E=gc({mode:"hidden",children:E},f),s=mo(s,f,a,null),E.return=r,s.return=r,E.sibling=s,r.child=E,s=r.child,s.memoizedState=Tp(a),s.childLanes=_p(n,b,a),r.memoizedState=Cp,ns(null,s)):(Mi(r),Ap(r,E))}var I=n.memoizedState;if(I!==null&&(E=I.dehydrated,E!==null)){if(h)r.flags&256?(Mi(r),r.flags&=-257,r=kp(n,r,a)):r.memoizedState!==null?(Ni(),r.child=n.child,r.flags|=128,r=null):(Ni(),E=s.fallback,f=r.mode,s=gc({mode:"visible",children:s.children},f),E=mo(E,f,a,null),E.flags|=2,s.return=r,E.return=r,s.sibling=E,r.child=s,wo(r,n.child,null,a),s=r.child,s.memoizedState=Tp(a),s.childLanes=_p(n,b,a),r.memoizedState=Cp,r=ns(null,s));else if(Mi(r),sm(E)){if(b=E.nextSibling&&E.nextSibling.dataset,b)var Z=b.dgst;b=Z,s=Error(o(419)),s.stack="",s.digest=b,Vl({value:s,source:null,stack:null}),r=kp(n,r,a)}else if(Jt||ga(n,r,a,!1),b=(a&n.childLanes)!==0,Jt||b){if(b=vt,b!==null&&(s=a1(b,a),s!==0&&s!==I.retryLane))throw I.retryLane=s,po(n,s),Bn(b,n,s),wp;lm(E)||Tc(),r=kp(n,r,a)}else lm(E)?(r.flags|=192,r.child=n.child,r=null):(n=I.treeContext,At=cr(E.nextSibling),fn=r,Qe=!0,Ti=null,sr=!1,n!==null&&nS(r,n),r=Ap(r,s.children),r.flags|=4096);return r}return f?(Ni(),E=s.fallback,f=r.mode,I=n.child,Z=I.sibling,s=Wr(I,{mode:"hidden",children:s.children}),s.subtreeFlags=I.subtreeFlags&65011712,Z!==null?E=Wr(Z,E):(E=mo(E,f,a,null),E.flags|=2),E.return=r,s.return=r,s.sibling=E,r.child=s,ns(null,s),s=r.child,E=n.child.memoizedState,E===null?E=Tp(a):(f=E.cachePool,f!==null?(I=Zt._currentValue,f=f.parent!==I?{parent:I,pool:I}:f):f=sS(),E={baseLanes:E.baseLanes|a,cachePool:f}),s.memoizedState=E,s.childLanes=_p(n,b,a),r.memoizedState=Cp,ns(n.child,s)):(Mi(r),a=n.child,n=a.sibling,a=Wr(a,{mode:"visible",children:s.children}),a.return=r,a.sibling=null,n!==null&&(b=r.deletions,b===null?(r.deletions=[n],r.flags|=16):b.push(n)),r.child=a,r.memoizedState=null,a)}function Ap(n,r){return r=gc({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function gc(n,r){return n=Vn(22,n,null,r),n.lanes=0,n}function kp(n,r,a){return wo(r,n.child,null,a),n=Ap(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function xv(n,r,a){n.lanes|=r;var s=n.alternate;s!==null&&(s.lanes|=r),qh(n.return,r,a)}function Rp(n,r,a,s,f,h){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:f,treeForkCount:h}:(b.isBackwards=r,b.rendering=null,b.renderingStartTime=0,b.last=s,b.tail=a,b.tailMode=f,b.treeForkCount=h)}function wv(n,r,a){var s=r.pendingProps,f=s.revealOrder,h=s.tail;s=s.children;var b=Ft.current,E=(b&2)!==0;if(E?(b=b&1|2,r.flags|=128):b&=1,A(Ft,b),hn(n,r,s,a),s=Qe?ql:0,!E&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&xv(n,a,r);else if(n.tag===19)xv(n,a,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(a=r.child,f=null;a!==null;)n=a.alternate,n!==null&&ic(n)===null&&(f=a),a=a.sibling;a=f,a===null?(f=r.child,r.child=null):(f=a.sibling,a.sibling=null),Rp(r,!1,f,a,h,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,f=r.child,r.child=null;f!==null;){if(n=f.alternate,n!==null&&ic(n)===null){r.child=f;break}n=f.sibling,f.sibling=a,a=f,f=n}Rp(r,!0,a,null,h,s);break;case"together":Rp(r,!1,null,null,void 0,s);break;default:r.memoizedState=null}return r.child}function ii(n,r,a){if(n!==null&&(r.dependencies=n.dependencies),Di|=r.lanes,(a&r.childLanes)===0)if(n!==null){if(ga(n,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(o(153));if(r.child!==null){for(n=r.child,a=Wr(n,n.pendingProps),r.child=a,a.return=r;n.sibling!==null;)n=n.sibling,a=a.sibling=Wr(n,n.pendingProps),a.return=r;a.sibling=null}return r.child}function Op(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&Qu(n)))}function T4(n,r,a){switch(r.tag){case 3:Ue(r,r.stateNode.containerInfo),Ai(r,Zt,n.memoizedState.cache),go();break;case 27:case 5:Te(r);break;case 4:Ue(r,r.stateNode.containerInfo);break;case 10:Ai(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,tp(r),null;break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(Mi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?vv(n,r,a):(Mi(r),n=ii(n,r,a),n!==null?n.sibling:null);Mi(r);break;case 19:var f=(n.flags&128)!==0;if(s=(a&r.childLanes)!==0,s||(ga(n,r,a,!1),s=(a&r.childLanes)!==0),f){if(s)return wv(n,r,a);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),A(Ft,Ft.current),s)break;return null;case 22:return r.lanes=0,pv(n,r,a,r.pendingProps);case 24:Ai(r,Zt,n.memoizedState.cache)}return ii(n,r,a)}function Ev(n,r,a){if(n!==null)if(n.memoizedProps!==r.pendingProps)Jt=!0;else{if(!Op(n,a)&&(r.flags&128)===0)return Jt=!1,T4(n,r,a);Jt=(n.flags&131072)!==0}else Jt=!1,Qe&&(r.flags&1048576)!==0&&tS(r,ql,r.index);switch(r.lanes=0,r.tag){case 16:e:{var s=r.pendingProps;if(n=vo(r.elementType),r.type=n,typeof n=="function")Dh(n)?(s=Co(n,s),r.tag=1,r=bv(null,r,n,s,a)):(r.tag=0,r=Ep(null,r,n,s,a));else{if(n!=null){var f=n.$$typeof;if(f===_){r.tag=11,r=fv(null,r,n,s,a);break e}else if(f===L){r.tag=14,r=dv(null,r,n,s,a);break e}}throw r=H(n)||n,Error(o(306,r,""))}}return r;case 0:return Ep(n,r,r.type,r.pendingProps,a);case 1:return s=r.type,f=Co(s,r.pendingProps),bv(n,r,s,f,a);case 3:e:{if(Ue(r,r.stateNode.containerInfo),n===null)throw Error(o(387));s=r.pendingProps;var h=r.memoizedState;f=h.element,Qh(n,r),Zl(r,s,null,a);var b=r.memoizedState;if(s=b.cache,Ai(r,Zt,s),s!==h.cache&&Vh(r,[Zt],a,!0),Ql(),s=b.element,h.isDehydrated)if(h={element:s,isDehydrated:!1,cache:b.cache},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){r=Sv(n,r,s,a);break e}else if(s!==f){f=or(Error(o(424)),r),Vl(f),r=Sv(n,r,s,a);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(At=cr(n.firstChild),fn=r,Qe=!0,Ti=null,sr=!0,a=pS(r,null,s,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(go(),s===f){r=ii(n,r,a);break e}hn(n,r,s,a)}r=r.child}return r;case 26:return mc(n,r),n===null?(a=Bx(r.type,null,r.pendingProps,null))?r.memoizedState=a:Qe||(a=r.type,n=r.pendingProps,s=Nc(he.current).createElement(a),s[cn]=r,s[kn]=n,pn(s,a,n),ln(s),r.stateNode=s):r.memoizedState=Bx(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Te(r),n===null&&Qe&&(s=r.stateNode=Mx(r.type,r.pendingProps,he.current),fn=r,sr=!0,f=At,ji(r.type)?(um=f,At=cr(s.firstChild)):At=f),hn(n,r,r.pendingProps.children,a),mc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Qe&&((f=s=At)&&(s=t6(s,r.type,r.pendingProps,sr),s!==null?(r.stateNode=s,fn=r,At=cr(s.firstChild),sr=!1,f=!0):f=!1),f||_i(r)),Te(r),f=r.type,h=r.pendingProps,b=n!==null?n.memoizedProps:null,s=h.children,im(f,h)?s=null:b!==null&&im(f,b)&&(r.flags|=32),r.memoizedState!==null&&(f=rp(n,r,g4,null,null,a),ys._currentValue=f),mc(n,r),hn(n,r,s,a),r.child;case 6:return n===null&&Qe&&((n=a=At)&&(a=n6(a,r.pendingProps,sr),a!==null?(r.stateNode=a,fn=r,At=null,n=!0):n=!1),n||_i(r)),null;case 13:return vv(n,r,a);case 4:return Ue(r,r.stateNode.containerInfo),s=r.pendingProps,n===null?r.child=wo(r,null,s,a):hn(n,r,s,a),r.child;case 11:return fv(n,r,r.type,r.pendingProps,a);case 7:return hn(n,r,r.pendingProps,a),r.child;case 8:return hn(n,r,r.pendingProps.children,a),r.child;case 12:return hn(n,r,r.pendingProps.children,a),r.child;case 10:return s=r.pendingProps,Ai(r,r.type,s.value),hn(n,r,s.children,a),r.child;case 9:return f=r.type._context,s=r.pendingProps.children,bo(r),f=dn(f),s=s(f),r.flags|=1,hn(n,r,s,a),r.child;case 14:return dv(n,r,r.type,r.pendingProps,a);case 15:return hv(n,r,r.type,r.pendingProps,a);case 19:return wv(n,r,a);case 31:return C4(n,r,a);case 22:return pv(n,r,a,r.pendingProps);case 24:return bo(r),s=dn(Zt),n===null?(f=Gh(),f===null&&(f=vt,h=Fh(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=a),f=h),r.memoizedState={parent:s,cache:f},Kh(r),Ai(r,Zt,f)):((n.lanes&a)!==0&&(Qh(n,r),Zl(r,null,null,a),Ql()),f=n.memoizedState,h=r.memoizedState,f.parent!==s?(f={parent:s,cache:s},r.memoizedState=f,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=f),Ai(r,Zt,s)):(s=h.cache,Ai(r,Zt,s),s!==f.cache&&Vh(r,[Zt],a,!0))),hn(n,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(o(156,r.tag))}function oi(n){n.flags|=4}function Mp(n,r,a,s,f){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(Qv())n.flags|=8192;else throw xo=ec,Xh}else n.flags&=-16777217}function Cv(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Lx(r))if(Qv())n.flags|=8192;else throw xo=ec,Xh}function yc(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?r1():536870912,n.lanes|=r,ka|=r)}function rs(n,r){if(!Qe)switch(n.tailMode){case"hidden":r=n.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function kt(n){var r=n.alternate!==null&&n.alternate.child===n.child,a=0,s=0;if(r)for(var f=n.child;f!==null;)a|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)a|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=s,n.childLanes=a,r}function _4(n,r,a){var s=r.pendingProps;switch(Lh(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(r),null;case 1:return kt(r),null;case 3:return a=r.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),ti(Zt),Ce(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(ma(r)?oi(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Ph())),kt(r),null;case 26:var f=r.type,h=r.memoizedState;return n===null?(oi(r),h!==null?(kt(r),Cv(r,h)):(kt(r),Mp(r,f,null,s,a))):h?h!==n.memoizedState?(oi(r),kt(r),Cv(r,h)):(kt(r),r.flags&=-16777217):(n=n.memoizedProps,n!==s&&oi(r),kt(r),Mp(r,f,n,s,a)),null;case 27:if(ze(r),a=he.current,f=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==s&&oi(r);else{if(!s){if(r.stateNode===null)throw Error(o(166));return kt(r),null}n=fe.current,ma(r)?rS(r):(n=Mx(f,s,a),r.stateNode=n,oi(r))}return kt(r),null;case 5:if(ze(r),f=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==s&&oi(r);else{if(!s){if(r.stateNode===null)throw Error(o(166));return kt(r),null}if(h=fe.current,ma(r))rS(r);else{var b=Nc(he.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof s.is=="string"?b.createElement("select",{is:s.is}):b.createElement("select"),s.multiple?h.multiple=!0:s.size&&(h.size=s.size);break;default:h=typeof s.is=="string"?b.createElement(f,{is:s.is}):b.createElement(f)}}h[cn]=r,h[kn]=s;e:for(b=r.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===r)break e;for(;b.sibling===null;){if(b.return===null||b.return===r)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}r.stateNode=h;e:switch(pn(h,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&oi(r)}}return kt(r),Mp(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,a),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==s&&oi(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(o(166));if(n=he.current,ma(r)){if(n=r.stateNode,a=r.memoizedProps,s=null,f=fn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}n[cn]=r,n=!!(n.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||vx(n.nodeValue,a)),n||_i(r,!0)}else n=Nc(n).createTextNode(s),n[cn]=r,r.stateNode=n}return kt(r),null;case 31:if(a=r.memoizedState,n===null||n.memoizedState!==null){if(s=ma(r),a!==null){if(n===null){if(!s)throw Error(o(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(557));n[cn]=r}else go(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;kt(r),n=!1}else a=Ph(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return r.flags&256?(Yn(r),r):(Yn(r),null);if((r.flags&128)!==0)throw Error(o(558))}return kt(r),null;case 13:if(s=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=ma(r),s!==null&&s.dehydrated!==null){if(n===null){if(!f)throw Error(o(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[cn]=r}else go(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;kt(r),f=!1}else f=Ph(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return r.flags&256?(Yn(r),r):(Yn(r),null)}return Yn(r),(r.flags&128)!==0?(r.lanes=a,r):(a=s!==null,n=n!==null&&n.memoizedState!==null,a&&(s=r.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==f&&(s.flags|=2048)),a!==n&&a&&(r.child.flags|=8192),yc(r,r.updateQueue),kt(r),null);case 4:return Ce(),n===null&&Jp(r.stateNode.containerInfo),kt(r),null;case 10:return ti(r.type),kt(r),null;case 19:if(W(Ft),s=r.memoizedState,s===null)return kt(r),null;if(f=(r.flags&128)!==0,h=s.rendering,h===null)if(f)rs(s,!1);else{if(jt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(h=ic(n),h!==null){for(r.flags|=128,rs(s,!1),n=h.updateQueue,r.updateQueue=n,yc(r,n),r.subtreeFlags=0,n=a,a=r.child;a!==null;)W1(a,n),a=a.sibling;return A(Ft,Ft.current&1|2),Qe&&Jr(r,s.treeForkCount),r.child}n=n.sibling}s.tail!==null&&He()>wc&&(r.flags|=128,f=!0,rs(s,!1),r.lanes=4194304)}else{if(!f)if(n=ic(h),n!==null){if(r.flags|=128,f=!0,n=n.updateQueue,r.updateQueue=n,yc(r,n),rs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!h.alternate&&!Qe)return kt(r),null}else 2*He()-s.renderingStartTime>wc&&a!==536870912&&(r.flags|=128,f=!0,rs(s,!1),r.lanes=4194304);s.isBackwards?(h.sibling=r.child,r.child=h):(n=s.last,n!==null?n.sibling=h:r.child=h,s.last=h)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=He(),n.sibling=null,a=Ft.current,A(Ft,f?a&1|2:a&1),Qe&&Jr(r,s.treeForkCount),n):(kt(r),null);case 22:case 23:return Yn(r),ep(),s=r.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(a&536870912)!==0&&(r.flags&128)===0&&(kt(r),r.subtreeFlags&6&&(r.flags|=8192)):kt(r),a=r.updateQueue,a!==null&&yc(r,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==a&&(r.flags|=2048),n!==null&&W(So),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),ti(Zt),kt(r),null;case 25:return null;case 30:return null}throw Error(o(156,r.tag))}function A4(n,r){switch(Lh(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return ti(Zt),Ce(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return ze(r),null;case 31:if(r.memoizedState!==null){if(Yn(r),r.alternate===null)throw Error(o(340));go()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Yn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(o(340));go()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return W(Ft),null;case 4:return Ce(),null;case 10:return ti(r.type),null;case 22:case 23:return Yn(r),ep(),n!==null&&W(So),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return ti(Zt),null;case 25:return null;default:return null}}function Tv(n,r){switch(Lh(r),r.tag){case 3:ti(Zt),Ce();break;case 26:case 27:case 5:ze(r);break;case 4:Ce();break;case 31:r.memoizedState!==null&&Yn(r);break;case 13:Yn(r);break;case 19:W(Ft);break;case 10:ti(r.type);break;case 22:case 23:Yn(r),ep(),n!==null&&W(So);break;case 24:ti(Zt)}}function is(n,r){try{var a=r.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var f=s.next;a=f;do{if((a.tag&n)===n){s=void 0;var h=a.create,b=a.inst;s=h(),b.destroy=s}a=a.next}while(a!==f)}}catch(E){ht(r,r.return,E)}}function zi(n,r,a){try{var s=r.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var h=f.next;s=h;do{if((s.tag&n)===n){var b=s.inst,E=b.destroy;if(E!==void 0){b.destroy=void 0,f=r;var I=a,Z=E;try{Z()}catch(ie){ht(f,I,ie)}}}s=s.next}while(s!==h)}}catch(ie){ht(r,r.return,ie)}}function _v(n){var r=n.updateQueue;if(r!==null){var a=n.stateNode;try{gS(r,a)}catch(s){ht(n,n.return,s)}}}function Av(n,r,a){a.props=Co(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(s){ht(n,r,s)}}function os(n,r){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof a=="function"?n.refCleanup=a(s):a.current=s}}catch(f){ht(n,r,f)}}function Lr(n,r){var a=n.ref,s=n.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(f){ht(n,r,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(f){ht(n,r,f)}else a.current=null}function kv(n){var r=n.type,a=n.memoizedProps,s=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(f){ht(n,n.return,f)}}function Np(n,r,a){try{var s=n.stateNode;K4(s,n.type,a,r),s[kn]=r}catch(f){ht(n,n.return,f)}}function Rv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ji(n.type)||n.tag===4}function zp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Rv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ji(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Bp(n,r,a){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(n),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Qr));else if(s!==4&&(s===27&&ji(n.type)&&(a=n.stateNode,r=null),n=n.child,n!==null))for(Bp(n,r,a),n=n.sibling;n!==null;)Bp(n,r,a),n=n.sibling}function bc(n,r,a){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?a.insertBefore(n,r):a.appendChild(n);else if(s!==4&&(s===27&&ji(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(bc(n,r,a),n=n.sibling;n!==null;)bc(n,r,a),n=n.sibling}function Ov(n){var r=n.stateNode,a=n.memoizedProps;try{for(var s=n.type,f=r.attributes;f.length;)r.removeAttributeNode(f[0]);pn(r,s,a),r[cn]=n,r[kn]=a}catch(h){ht(n,n.return,h)}}var ai=!1,en=!1,Dp=!1,Mv=typeof WeakSet=="function"?WeakSet:Set,sn=null;function k4(n,r){if(n=n.containerInfo,nm=Lc,n=q1(n),kh(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var f=s.anchorOffset,h=s.focusNode;s=s.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var b=0,E=-1,I=-1,Z=0,ie=0,le=n,ee=null;t:for(;;){for(var ne;le!==a||f!==0&&le.nodeType!==3||(E=b+f),le!==h||s!==0&&le.nodeType!==3||(I=b+s),le.nodeType===3&&(b+=le.nodeValue.length),(ne=le.firstChild)!==null;)ee=le,le=ne;for(;;){if(le===n)break t;if(ee===a&&++Z===f&&(E=b),ee===h&&++ie===s&&(I=b),(ne=le.nextSibling)!==null)break;le=ee,ee=le.parentNode}le=ne}a=E===-1||I===-1?null:{start:E,end:I}}else a=null}a=a||{start:0,end:0}}else a=null;for(rm={focusedElem:n,selectionRange:a},Lc=!1,sn=r;sn!==null;)if(r=sn,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,sn=n;else for(;sn!==null;){switch(r=sn,h=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)f=n[a],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,a=r,f=h.memoizedProps,h=h.memoizedState,s=a.stateNode;try{var ye=Co(a.type,f);n=s.getSnapshotBeforeUpdate(ye,h),s.__reactInternalSnapshotBeforeUpdate=n}catch(Re){ht(a,a.return,Re)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,a=n.nodeType,a===9)am(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":am(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(o(163))}if(n=r.sibling,n!==null){n.return=r.return,sn=n;break}sn=r.return}}function Nv(n,r,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:si(n,a),s&4&&is(5,a);break;case 1:if(si(n,a),s&4)if(n=a.stateNode,r===null)try{n.componentDidMount()}catch(b){ht(a,a.return,b)}else{var f=Co(a.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(f,r,n.__reactInternalSnapshotBeforeUpdate)}catch(b){ht(a,a.return,b)}}s&64&&_v(a),s&512&&os(a,a.return);break;case 3:if(si(n,a),s&64&&(n=a.updateQueue,n!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{gS(n,r)}catch(b){ht(a,a.return,b)}}break;case 27:r===null&&s&4&&Ov(a);case 26:case 5:si(n,a),r===null&&s&4&&kv(a),s&512&&os(a,a.return);break;case 12:si(n,a);break;case 31:si(n,a),s&4&&Dv(n,a);break;case 13:si(n,a),s&4&&Iv(n,a),s&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=$4.bind(null,a),r6(n,a))));break;case 22:if(s=a.memoizedState!==null||ai,!s){r=r!==null&&r.memoizedState!==null||en,f=ai;var h=en;ai=s,(en=r)&&!h?ui(n,a,(a.subtreeFlags&8772)!==0):si(n,a),ai=f,en=h}break;case 30:break;default:si(n,a)}}function zv(n){var r=n.alternate;r!==null&&(n.alternate=null,zv(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&fh(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ot=null,On=!1;function li(n,r,a){for(a=a.child;a!==null;)Bv(n,r,a),a=a.sibling}function Bv(n,r,a){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Ut,a)}catch{}switch(a.tag){case 26:en||Lr(a,r),li(n,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:en||Lr(a,r);var s=Ot,f=On;ji(a.type)&&(Ot=a.stateNode,On=!1),li(n,r,a),ps(a.stateNode),Ot=s,On=f;break;case 5:en||Lr(a,r);case 6:if(s=Ot,f=On,Ot=null,li(n,r,a),Ot=s,On=f,Ot!==null)if(On)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode)}catch(h){ht(a,r,h)}else try{Ot.removeChild(a.stateNode)}catch(h){ht(a,r,h)}break;case 18:Ot!==null&&(On?(n=Ot,_x(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),Ia(n)):_x(Ot,a.stateNode));break;case 4:s=Ot,f=On,Ot=a.stateNode.containerInfo,On=!0,li(n,r,a),Ot=s,On=f;break;case 0:case 11:case 14:case 15:zi(2,a,r),en||zi(4,a,r),li(n,r,a);break;case 1:en||(Lr(a,r),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Av(a,r,s)),li(n,r,a);break;case 21:li(n,r,a);break;case 22:en=(s=en)||a.memoizedState!==null,li(n,r,a),en=s;break;default:li(n,r,a)}}function Dv(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ia(n)}catch(a){ht(r,r.return,a)}}}function Iv(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ia(n)}catch(a){ht(r,r.return,a)}}function R4(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Mv),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Mv),r;default:throw Error(o(435,n.tag))}}function Sc(n,r){var a=R4(n);r.forEach(function(s){if(!a.has(s)){a.add(s);var f=U4.bind(null,n,s);s.then(f,f)}})}function Mn(n,r){var a=r.deletions;if(a!==null)for(var s=0;s<a.length;s++){var f=a[s],h=n,b=r,E=b;e:for(;E!==null;){switch(E.tag){case 27:if(ji(E.type)){Ot=E.stateNode,On=!1;break e}break;case 5:Ot=E.stateNode,On=!1;break e;case 3:case 4:Ot=E.stateNode.containerInfo,On=!0;break e}E=E.return}if(Ot===null)throw Error(o(160));Bv(h,b,f),Ot=null,On=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)$v(r,n),r=r.sibling}var wr=null;function $v(n,r){var a=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Mn(r,n),Nn(n),s&4&&(zi(3,n,n.return),is(3,n),zi(5,n,n.return));break;case 1:Mn(r,n),Nn(n),s&512&&(en||a===null||Lr(a,a.return)),s&64&&ai&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var f=wr;if(Mn(r,n),Nn(n),s&512&&(en||a===null||Lr(a,a.return)),s&4){var h=a!==null?a.memoizedState:null;if(s=n.memoizedState,a===null)if(s===null)if(n.stateNode===null){e:{s=n.type,a=n.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Nl]||h[cn]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(s),f.head.insertBefore(h,f.querySelector("head > title"))),pn(h,s,a),h[cn]=n,ln(h),s=h;break e;case"link":var b=$x("link","href",f).get(s+(a.href||""));if(b){for(var E=0;E<b.length;E++)if(h=b[E],h.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&h.getAttribute("rel")===(a.rel==null?null:a.rel)&&h.getAttribute("title")===(a.title==null?null:a.title)&&h.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(E,1);break t}}h=f.createElement(s),pn(h,s,a),f.head.appendChild(h);break;case"meta":if(b=$x("meta","content",f).get(s+(a.content||""))){for(E=0;E<b.length;E++)if(h=b[E],h.getAttribute("content")===(a.content==null?null:""+a.content)&&h.getAttribute("name")===(a.name==null?null:a.name)&&h.getAttribute("property")===(a.property==null?null:a.property)&&h.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&h.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(E,1);break t}}h=f.createElement(s),pn(h,s,a),f.head.appendChild(h);break;default:throw Error(o(468,s))}h[cn]=n,ln(h),s=h}n.stateNode=s}else Ux(f,n.type,n.stateNode);else n.stateNode=Ix(f,s,n.memoizedProps);else h!==s?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,s===null?Ux(f,n.type,n.stateNode):Ix(f,s,n.memoizedProps)):s===null&&n.stateNode!==null&&Np(n,n.memoizedProps,a.memoizedProps)}break;case 27:Mn(r,n),Nn(n),s&512&&(en||a===null||Lr(a,a.return)),a!==null&&s&4&&Np(n,n.memoizedProps,a.memoizedProps);break;case 5:if(Mn(r,n),Nn(n),s&512&&(en||a===null||Lr(a,a.return)),n.flags&32){f=n.stateNode;try{oa(f,"")}catch(ye){ht(n,n.return,ye)}}s&4&&n.stateNode!=null&&(f=n.memoizedProps,Np(n,f,a!==null?a.memoizedProps:f)),s&1024&&(Dp=!0);break;case 6:if(Mn(r,n),Nn(n),s&4){if(n.stateNode===null)throw Error(o(162));s=n.memoizedProps,a=n.stateNode;try{a.nodeValue=s}catch(ye){ht(n,n.return,ye)}}break;case 3:if(Dc=null,f=wr,wr=zc(r.containerInfo),Mn(r,n),wr=f,Nn(n),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ia(r.containerInfo)}catch(ye){ht(n,n.return,ye)}Dp&&(Dp=!1,Uv(n));break;case 4:s=wr,wr=zc(n.stateNode.containerInfo),Mn(r,n),Nn(n),wr=s;break;case 12:Mn(r,n),Nn(n);break;case 31:Mn(r,n),Nn(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Sc(n,s)));break;case 13:Mn(r,n),Nn(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xc=He()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Sc(n,s)));break;case 22:f=n.memoizedState!==null;var I=a!==null&&a.memoizedState!==null,Z=ai,ie=en;if(ai=Z||f,en=ie||I,Mn(r,n),en=ie,ai=Z,Nn(n),s&8192)e:for(r=n.stateNode,r._visibility=f?r._visibility&-2:r._visibility|1,f&&(a===null||I||ai||en||To(n)),a=null,r=n;;){if(r.tag===5||r.tag===26){if(a===null){I=a=r;try{if(h=I.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{E=I.stateNode;var le=I.memoizedProps.style,ee=le!=null&&le.hasOwnProperty("display")?le.display:null;E.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(ye){ht(I,I.return,ye)}}}else if(r.tag===6){if(a===null){I=r;try{I.stateNode.nodeValue=f?"":I.memoizedProps}catch(ye){ht(I,I.return,ye)}}}else if(r.tag===18){if(a===null){I=r;try{var ne=I.stateNode;f?Ax(ne,!0):Ax(I.stateNode,!1)}catch(ye){ht(I,I.return,ye)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=n.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Sc(n,a))));break;case 19:Mn(r,n),Nn(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Sc(n,s)));break;case 30:break;case 21:break;default:Mn(r,n),Nn(n)}}function Nn(n){var r=n.flags;if(r&2){try{for(var a,s=n.return;s!==null;){if(Rv(s)){a=s;break}s=s.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var f=a.stateNode,h=zp(n);bc(n,h,f);break;case 5:var b=a.stateNode;a.flags&32&&(oa(b,""),a.flags&=-33);var E=zp(n);bc(n,E,b);break;case 3:case 4:var I=a.stateNode.containerInfo,Z=zp(n);Bp(n,Z,I);break;default:throw Error(o(161))}}catch(ie){ht(n,n.return,ie)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Uv(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Uv(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function si(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Nv(n,r.alternate,r),r=r.sibling}function To(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:zi(4,r,r.return),To(r);break;case 1:Lr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&Av(r,r.return,a),To(r);break;case 27:ps(r.stateNode);case 26:case 5:Lr(r,r.return),To(r);break;case 22:r.memoizedState===null&&To(r);break;case 30:To(r);break;default:To(r)}n=n.sibling}}function ui(n,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,f=n,h=r,b=h.flags;switch(h.tag){case 0:case 11:case 15:ui(f,h,a),is(4,h);break;case 1:if(ui(f,h,a),s=h,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Z){ht(s,s.return,Z)}if(s=h,f=s.updateQueue,f!==null){var E=s.stateNode;try{var I=f.shared.hiddenCallbacks;if(I!==null)for(f.shared.hiddenCallbacks=null,f=0;f<I.length;f++)mS(I[f],E)}catch(Z){ht(s,s.return,Z)}}a&&b&64&&_v(h),os(h,h.return);break;case 27:Ov(h);case 26:case 5:ui(f,h,a),a&&s===null&&b&4&&kv(h),os(h,h.return);break;case 12:ui(f,h,a);break;case 31:ui(f,h,a),a&&b&4&&Dv(f,h);break;case 13:ui(f,h,a),a&&b&4&&Iv(f,h);break;case 22:h.memoizedState===null&&ui(f,h,a),os(h,h.return);break;case 30:break;default:ui(f,h,a)}r=r.sibling}}function Ip(n,r){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&Fl(a))}function $p(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Fl(n))}function Er(n,r,a,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Lv(n,r,a,s),r=r.sibling}function Lv(n,r,a,s){var f=r.flags;switch(r.tag){case 0:case 11:case 15:Er(n,r,a,s),f&2048&&is(9,r);break;case 1:Er(n,r,a,s);break;case 3:Er(n,r,a,s),f&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Fl(n)));break;case 12:if(f&2048){Er(n,r,a,s),n=r.stateNode;try{var h=r.memoizedProps,b=h.id,E=h.onPostCommit;typeof E=="function"&&E(b,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(I){ht(r,r.return,I)}}else Er(n,r,a,s);break;case 31:Er(n,r,a,s);break;case 13:Er(n,r,a,s);break;case 23:break;case 22:h=r.stateNode,b=r.alternate,r.memoizedState!==null?h._visibility&2?Er(n,r,a,s):as(n,r):h._visibility&2?Er(n,r,a,s):(h._visibility|=2,Ta(n,r,a,s,(r.subtreeFlags&10256)!==0||!1)),f&2048&&Ip(b,r);break;case 24:Er(n,r,a,s),f&2048&&$p(r.alternate,r);break;default:Er(n,r,a,s)}}function Ta(n,r,a,s,f){for(f=f&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var h=n,b=r,E=a,I=s,Z=b.flags;switch(b.tag){case 0:case 11:case 15:Ta(h,b,E,I,f),is(8,b);break;case 23:break;case 22:var ie=b.stateNode;b.memoizedState!==null?ie._visibility&2?Ta(h,b,E,I,f):as(h,b):(ie._visibility|=2,Ta(h,b,E,I,f)),f&&Z&2048&&Ip(b.alternate,b);break;case 24:Ta(h,b,E,I,f),f&&Z&2048&&$p(b.alternate,b);break;default:Ta(h,b,E,I,f)}r=r.sibling}}function as(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=n,s=r,f=s.flags;switch(s.tag){case 22:as(a,s),f&2048&&Ip(s.alternate,s);break;case 24:as(a,s),f&2048&&$p(s.alternate,s);break;default:as(a,s)}r=r.sibling}}var ls=8192;function _a(n,r,a){if(n.subtreeFlags&ls)for(n=n.child;n!==null;)jv(n,r,a),n=n.sibling}function jv(n,r,a){switch(n.tag){case 26:_a(n,r,a),n.flags&ls&&n.memoizedState!==null&&m6(a,wr,n.memoizedState,n.memoizedProps);break;case 5:_a(n,r,a);break;case 3:case 4:var s=wr;wr=zc(n.stateNode.containerInfo),_a(n,r,a),wr=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=ls,ls=16777216,_a(n,r,a),ls=s):_a(n,r,a));break;default:_a(n,r,a)}}function Pv(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function ss(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var s=r[a];sn=s,qv(s,n)}Pv(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Hv(n),n=n.sibling}function Hv(n){switch(n.tag){case 0:case 11:case 15:ss(n),n.flags&2048&&zi(9,n,n.return);break;case 3:ss(n);break;case 12:ss(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,vc(n)):ss(n);break;default:ss(n)}}function vc(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var s=r[a];sn=s,qv(s,n)}Pv(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:zi(8,r,r.return),vc(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,vc(r));break;default:vc(r)}n=n.sibling}}function qv(n,r){for(;sn!==null;){var a=sn;switch(a.tag){case 0:case 11:case 15:zi(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Fl(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,sn=s;else e:for(a=n;sn!==null;){s=sn;var f=s.sibling,h=s.return;if(zv(s),s===a){sn=null;break e}if(f!==null){f.return=h,sn=f;break e}sn=h}}}var O4={getCacheForType:function(n){var r=dn(Zt),a=r.data.get(n);return a===void 0&&(a=n(),r.data.set(n,a)),a},cacheSignal:function(){return dn(Zt).controller.signal}},M4=typeof WeakMap=="function"?WeakMap:Map,it=0,vt=null,Fe=null,Ge=0,dt=0,Gn=null,Bi=!1,Aa=!1,Up=!1,ci=0,jt=0,Di=0,_o=0,Lp=0,Xn=0,ka=0,us=null,zn=null,jp=!1,xc=0,Vv=0,wc=1/0,Ec=null,Ii=null,an=0,$i=null,Ra=null,fi=0,Pp=0,Hp=null,Fv=null,cs=0,qp=null;function Kn(){return(it&2)!==0&&Ge!==0?Ge&-Ge:z.T!==null?Kp():l1()}function Yv(){if(Xn===0)if((Ge&536870912)===0||Qe){var n=lo;lo<<=1,(lo&3932160)===0&&(lo=262144),Xn=n}else Xn=536870912;return n=Fn.current,n!==null&&(n.flags|=32),Xn}function Bn(n,r,a){(n===vt&&(dt===2||dt===9)||n.cancelPendingCommit!==null)&&(Oa(n,0),Ui(n,Ge,Xn,!1)),Ml(n,a),((it&2)===0||n!==vt)&&(n===vt&&((it&2)===0&&(_o|=a),jt===4&&Ui(n,Ge,Xn,!1)),jr(n))}function Gv(n,r,a){if((it&6)!==0)throw Error(o(327));var s=!a&&(r&127)===0&&(r&n.expiredLanes)===0||Ol(n,r),f=s?B4(n,r):Fp(n,r,!0),h=s;do{if(f===0){Aa&&!s&&Ui(n,r,0,!1);break}else{if(a=n.current.alternate,h&&!N4(a)){f=Fp(n,r,!1),h=!1;continue}if(f===2){if(h=r,n.errorRecoveryDisabledLanes&h)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){r=b;e:{var E=n;f=us;var I=E.current.memoizedState.isDehydrated;if(I&&(Oa(E,b).flags|=256),b=Fp(E,b,!1),b!==2){if(Up&&!I){E.errorRecoveryDisabledLanes|=h,_o|=h,f=4;break e}h=zn,zn=f,h!==null&&(zn===null?zn=h:zn.push.apply(zn,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Oa(n,0),Ui(n,r,0,!0);break}e:{switch(s=n,h=f,h){case 0:case 1:throw Error(o(345));case 4:if((r&4194048)!==r)break;case 6:Ui(s,r,Xn,!Bi);break e;case 2:zn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((r&62914560)===r&&(f=xc+300-He(),10<f)){if(Ui(s,r,Xn,!Bi),zu(s,0,!0)!==0)break e;fi=r,s.timeoutHandle=Cx(Xv.bind(null,s,a,zn,Ec,jp,r,Xn,_o,ka,Bi,h,"Throttled",-0,0),f);break e}Xv(s,a,zn,Ec,jp,r,Xn,_o,ka,Bi,h,null,-0,0)}}break}while(!0);jr(n)}function Xv(n,r,a,s,f,h,b,E,I,Z,ie,le,ee,ne){if(n.timeoutHandle=-1,le=r.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},jv(r,h,le);var ye=(h&62914560)===h?xc-He():(h&4194048)===h?Vv-He():0;if(ye=g6(le,ye),ye!==null){fi=h,n.cancelPendingCommit=ye(nx.bind(null,n,r,h,a,s,f,b,E,I,ie,le,null,ee,ne)),Ui(n,h,b,!Z);return}}nx(n,r,h,a,s,f,b,E,I)}function N4(n){for(var r=n;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var f=a[s],h=f.getSnapshot;f=f.value;try{if(!qn(h(),f))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ui(n,r,a,s){r&=~Lp,r&=~_o,n.suspendedLanes|=r,n.pingedLanes&=~r,s&&(n.warmLanes|=r),s=n.expirationTimes;for(var f=r;0<f;){var h=31-at(f),b=1<<h;s[h]=-1,f&=~b}a!==0&&i1(n,a,r)}function Cc(){return(it&6)===0?(fs(0),!1):!0}function Vp(){if(Fe!==null){if(dt===0)var n=Fe.return;else n=Fe,ei=yo=null,ap(n),va=null,Gl=0,n=Fe;for(;n!==null;)Tv(n.alternate,n),n=n.return;Fe=null}}function Oa(n,r){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,W4(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),fi=0,Vp(),vt=n,Fe=a=Wr(n.current,null),Ge=r,dt=0,Gn=null,Bi=!1,Aa=Ol(n,r),Up=!1,ka=Xn=Lp=_o=Di=jt=0,zn=us=null,jp=!1,(r&8)!==0&&(r|=r&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=r;0<s;){var f=31-at(s),h=1<<f;r|=n[f],s&=~h}return ci=r,Fu(),a}function Kv(n,r){De=null,z.H=ts,r===Sa||r===Ju?(r=fS(),dt=3):r===Xh?(r=fS(),dt=4):dt=r===wp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Gn=r,Fe===null&&(jt=1,hc(n,or(r,n.current)))}function Qv(){var n=Fn.current;return n===null?!0:(Ge&4194048)===Ge?ur===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?n===ur:!1}function Zv(){var n=z.H;return z.H=ts,n===null?ts:n}function Wv(){var n=z.A;return z.A=O4,n}function Tc(){jt=4,Bi||(Ge&4194048)!==Ge&&Fn.current!==null||(Aa=!0),(Di&134217727)===0&&(_o&134217727)===0||vt===null||Ui(vt,Ge,Xn,!1)}function Fp(n,r,a){var s=it;it|=2;var f=Zv(),h=Wv();(vt!==n||Ge!==r)&&(Ec=null,Oa(n,r)),r=!1;var b=jt;e:do try{if(dt!==0&&Fe!==null){var E=Fe,I=Gn;switch(dt){case 8:Vp(),b=6;break e;case 3:case 2:case 9:case 6:Fn.current===null&&(r=!0);var Z=dt;if(dt=0,Gn=null,Ma(n,E,I,Z),a&&Aa){b=0;break e}break;default:Z=dt,dt=0,Gn=null,Ma(n,E,I,Z)}}z4(),b=jt;break}catch(ie){Kv(n,ie)}while(!0);return r&&n.shellSuspendCounter++,ei=yo=null,it=s,z.H=f,z.A=h,Fe===null&&(vt=null,Ge=0,Fu()),b}function z4(){for(;Fe!==null;)Jv(Fe)}function B4(n,r){var a=it;it|=2;var s=Zv(),f=Wv();vt!==n||Ge!==r?(Ec=null,wc=He()+500,Oa(n,r)):Aa=Ol(n,r);e:do try{if(dt!==0&&Fe!==null){r=Fe;var h=Gn;t:switch(dt){case 1:dt=0,Gn=null,Ma(n,r,h,1);break;case 2:case 9:if(uS(h)){dt=0,Gn=null,ex(r);break}r=function(){dt!==2&&dt!==9||vt!==n||(dt=7),jr(n)},h.then(r,r);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:uS(h)?(dt=0,Gn=null,ex(r)):(dt=0,Gn=null,Ma(n,r,h,7));break;case 5:var b=null;switch(Fe.tag){case 26:b=Fe.memoizedState;case 5:case 27:var E=Fe;if(b?Lx(b):E.stateNode.complete){dt=0,Gn=null;var I=E.sibling;if(I!==null)Fe=I;else{var Z=E.return;Z!==null?(Fe=Z,_c(Z)):Fe=null}break t}}dt=0,Gn=null,Ma(n,r,h,5);break;case 6:dt=0,Gn=null,Ma(n,r,h,6);break;case 8:Vp(),jt=6;break e;default:throw Error(o(462))}}D4();break}catch(ie){Kv(n,ie)}while(!0);return ei=yo=null,z.H=s,z.A=f,it=a,Fe!==null?0:(vt=null,Ge=0,Fu(),jt)}function D4(){for(;Fe!==null&&!Se();)Jv(Fe)}function Jv(n){var r=Ev(n.alternate,n,ci);n.memoizedProps=n.pendingProps,r===null?_c(n):Fe=r}function ex(n){var r=n,a=r.alternate;switch(r.tag){case 15:case 0:r=yv(a,r,r.pendingProps,r.type,void 0,Ge);break;case 11:r=yv(a,r,r.pendingProps,r.type.render,r.ref,Ge);break;case 5:ap(r);default:Tv(a,r),r=Fe=W1(r,ci),r=Ev(a,r,ci)}n.memoizedProps=n.pendingProps,r===null?_c(n):Fe=r}function Ma(n,r,a,s){ei=yo=null,ap(r),va=null,Gl=0;var f=r.return;try{if(E4(n,f,r,a,Ge)){jt=1,hc(n,or(a,n.current)),Fe=null;return}}catch(h){if(f!==null)throw Fe=f,h;jt=1,hc(n,or(a,n.current)),Fe=null;return}r.flags&32768?(Qe||s===1?n=!0:Aa||(Ge&536870912)!==0?n=!1:(Bi=n=!0,(s===2||s===9||s===3||s===6)&&(s=Fn.current,s!==null&&s.tag===13&&(s.flags|=16384))),tx(r,n)):_c(r)}function _c(n){var r=n;do{if((r.flags&32768)!==0){tx(r,Bi);return}n=r.return;var a=_4(r.alternate,r,ci);if(a!==null){Fe=a;return}if(r=r.sibling,r!==null){Fe=r;return}Fe=r=n}while(r!==null);jt===0&&(jt=5)}function tx(n,r){do{var a=A4(n.alternate,n);if(a!==null){a.flags&=32767,Fe=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(n=n.sibling,n!==null)){Fe=n;return}Fe=n=a}while(n!==null);jt=6,Fe=null}function nx(n,r,a,s,f,h,b,E,I){n.cancelPendingCommit=null;do Ac();while(an!==0);if((it&6)!==0)throw Error(o(327));if(r!==null){if(r===n.current)throw Error(o(177));if(h=r.lanes|r.childLanes,h|=zh,pN(n,a,h,b,E,I),n===vt&&(Fe=vt=null,Ge=0),Ra=r,$i=n,fi=a,Pp=h,Hp=f,Fv=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,L4(ge,function(){return lx(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,f=J.p,J.p=2,b=it,it|=4;try{k4(n,r,a)}finally{it=b,J.p=f,z.T=s}}an=1,rx(),ix(),ox()}}function rx(){if(an===1){an=0;var n=$i,r=Ra,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var s=J.p;J.p=2;var f=it;it|=4;try{$v(r,n);var h=rm,b=q1(n.containerInfo),E=h.focusedElem,I=h.selectionRange;if(b!==E&&E&&E.ownerDocument&&H1(E.ownerDocument.documentElement,E)){if(I!==null&&kh(E)){var Z=I.start,ie=I.end;if(ie===void 0&&(ie=Z),"selectionStart"in E)E.selectionStart=Z,E.selectionEnd=Math.min(ie,E.value.length);else{var le=E.ownerDocument||document,ee=le&&le.defaultView||window;if(ee.getSelection){var ne=ee.getSelection(),ye=E.textContent.length,Re=Math.min(I.start,ye),bt=I.end===void 0?Re:Math.min(I.end,ye);!ne.extend&&Re>bt&&(b=bt,bt=Re,Re=b);var G=P1(E,Re),P=P1(E,bt);if(G&&P&&(ne.rangeCount!==1||ne.anchorNode!==G.node||ne.anchorOffset!==G.offset||ne.focusNode!==P.node||ne.focusOffset!==P.offset)){var Q=le.createRange();Q.setStart(G.node,G.offset),ne.removeAllRanges(),Re>bt?(ne.addRange(Q),ne.extend(P.node,P.offset)):(Q.setEnd(P.node,P.offset),ne.addRange(Q))}}}}for(le=[],ne=E;ne=ne.parentNode;)ne.nodeType===1&&le.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<le.length;E++){var oe=le[E];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Lc=!!nm,rm=nm=null}finally{it=f,J.p=s,z.T=a}}n.current=r,an=2}}function ix(){if(an===2){an=0;var n=$i,r=Ra,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var s=J.p;J.p=2;var f=it;it|=4;try{Nv(n,r.alternate,r)}finally{it=f,J.p=s,z.T=a}}an=3}}function ox(){if(an===4||an===3){an=0,Hn();var n=$i,r=Ra,a=fi,s=Fv;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?an=5:(an=0,Ra=$i=null,ax(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(Ii=null),uh(a),r=r.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Ut,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=z.T,f=J.p,J.p=2,z.T=null;try{for(var h=n.onRecoverableError,b=0;b<s.length;b++){var E=s[b];h(E.value,{componentStack:E.stack})}}finally{z.T=r,J.p=f}}(fi&3)!==0&&Ac(),jr(n),f=n.pendingLanes,(a&261930)!==0&&(f&42)!==0?n===qp?cs++:(cs=0,qp=n):cs=0,fs(0)}}function ax(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Fl(r)))}function Ac(){return rx(),ix(),ox(),lx()}function lx(){if(an!==5)return!1;var n=$i,r=Pp;Pp=0;var a=uh(fi),s=z.T,f=J.p;try{J.p=32>a?32:a,z.T=null,a=Hp,Hp=null;var h=$i,b=fi;if(an=0,Ra=$i=null,fi=0,(it&6)!==0)throw Error(o(331));var E=it;if(it|=4,Hv(h.current),Lv(h,h.current,b,a),it=E,fs(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Ut,h)}catch{}return!0}finally{J.p=f,z.T=s,ax(n,r)}}function sx(n,r,a){r=or(a,r),r=xp(n.stateNode,r,2),n=Oi(n,r,2),n!==null&&(Ml(n,2),jr(n))}function ht(n,r,a){if(n.tag===3)sx(n,n,a);else for(;r!==null;){if(r.tag===3){sx(r,n,a);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ii===null||!Ii.has(s))){n=or(a,n),a=uv(2),s=Oi(r,a,2),s!==null&&(cv(a,s,r,n),Ml(s,2),jr(s));break}}r=r.return}}function Yp(n,r,a){var s=n.pingCache;if(s===null){s=n.pingCache=new M4;var f=new Set;s.set(r,f)}else f=s.get(r),f===void 0&&(f=new Set,s.set(r,f));f.has(a)||(Up=!0,f.add(a),n=I4.bind(null,n,r,a),r.then(n,n))}function I4(n,r,a){var s=n.pingCache;s!==null&&s.delete(r),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,vt===n&&(Ge&a)===a&&(jt===4||jt===3&&(Ge&62914560)===Ge&&300>He()-xc?(it&2)===0&&Oa(n,0):Lp|=a,ka===Ge&&(ka=0)),jr(n)}function ux(n,r){r===0&&(r=r1()),n=po(n,r),n!==null&&(Ml(n,r),jr(n))}function $4(n){var r=n.memoizedState,a=0;r!==null&&(a=r.retryLane),ux(n,a)}function U4(n,r){var a=0;switch(n.tag){case 31:case 13:var s=n.stateNode,f=n.memoizedState;f!==null&&(a=f.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(r),ux(n,a)}function L4(n,r){return Bt(n,r)}var kc=null,Na=null,Gp=!1,Rc=!1,Xp=!1,Li=0;function jr(n){n!==Na&&n.next===null&&(Na===null?kc=Na=n:Na=Na.next=n),Rc=!0,Gp||(Gp=!0,P4())}function fs(n,r){if(!Xp&&Rc){Xp=!0;do for(var a=!1,s=kc;s!==null;){if(n!==0){var f=s.pendingLanes;if(f===0)var h=0;else{var b=s.suspendedLanes,E=s.pingedLanes;h=(1<<31-at(42|n)+1)-1,h&=f&~(b&~E),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,hx(s,h))}else h=Ge,h=zu(s,s===vt?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(h&3)===0||Ol(s,h)||(a=!0,hx(s,h));s=s.next}while(a);Xp=!1}}function j4(){cx()}function cx(){Rc=Gp=!1;var n=0;Li!==0&&Z4()&&(n=Li);for(var r=He(),a=null,s=kc;s!==null;){var f=s.next,h=fx(s,r);h===0?(s.next=null,a===null?kc=f:a.next=f,f===null&&(Na=a)):(a=s,(n!==0||(h&3)!==0)&&(Rc=!0)),s=f}an!==0&&an!==5||fs(n),Li!==0&&(Li=0)}function fx(n,r){for(var a=n.suspendedLanes,s=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var b=31-at(h),E=1<<b,I=f[b];I===-1?((E&a)===0||(E&s)!==0)&&(f[b]=hN(E,r)):I<=r&&(n.expiredLanes|=E),h&=~E}if(r=vt,a=Ge,a=zu(n,n===r?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,a===0||n===r&&(dt===2||dt===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&ft(s),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Ol(n,a)){if(r=a&-a,r===n.callbackPriority)return r;switch(s!==null&&ft(s),uh(a)){case 2:case 8:a=se;break;case 32:a=ge;break;case 268435456:a=Le;break;default:a=ge}return s=dx.bind(null,n),a=Bt(a,s),n.callbackPriority=r,n.callbackNode=a,r}return s!==null&&s!==null&&ft(s),n.callbackPriority=2,n.callbackNode=null,2}function dx(n,r){if(an!==0&&an!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Ac()&&n.callbackNode!==a)return null;var s=Ge;return s=zu(n,n===vt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Gv(n,s,r),fx(n,He()),n.callbackNode!=null&&n.callbackNode===a?dx.bind(null,n):null)}function hx(n,r){if(Ac())return null;Gv(n,r,!0)}function P4(){J4(function(){(it&6)!==0?Bt(te,j4):cx()})}function Kp(){if(Li===0){var n=ya;n===0&&(n=vr,vr<<=1,(vr&261888)===0&&(vr=256)),Li=n}return Li}function px(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$u(""+n)}function mx(n,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,n.id&&a.setAttribute("form",n.id),r.parentNode.insertBefore(a,r),n=new FormData(n),a.parentNode.removeChild(a),n}function H4(n,r,a,s,f){if(r==="submit"&&a&&a.stateNode===f){var h=px((f[kn]||null).action),b=s.submitter;b&&(r=(r=b[kn]||null)?px(r.formAction):b.getAttribute("formAction"),r!==null&&(h=r,b=null));var E=new Pu("action","action",null,s,f);n.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Li!==0){var I=b?mx(f,b):new FormData(f);mp(a,{pending:!0,data:I,method:f.method,action:h},null,I)}}else typeof h=="function"&&(E.preventDefault(),I=b?mx(f,b):new FormData(f),mp(a,{pending:!0,data:I,method:f.method,action:h},h,I))},currentTarget:f}]})}}for(var Qp=0;Qp<Nh.length;Qp++){var Zp=Nh[Qp],q4=Zp.toLowerCase(),V4=Zp[0].toUpperCase()+Zp.slice(1);xr(q4,"on"+V4)}xr(Y1,"onAnimationEnd"),xr(G1,"onAnimationIteration"),xr(X1,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(a4,"onTransitionRun"),xr(l4,"onTransitionStart"),xr(s4,"onTransitionCancel"),xr(K1,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),uo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),uo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),uo("onBeforeInput",["compositionend","keypress","textInput","paste"]),uo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),uo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),uo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ds="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(" "),F4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ds));function gx(n,r){r=(r&4)!==0;for(var a=0;a<n.length;a++){var s=n[a],f=s.event;s=s.listeners;e:{var h=void 0;if(r)for(var b=s.length-1;0<=b;b--){var E=s[b],I=E.instance,Z=E.currentTarget;if(E=E.listener,I!==h&&f.isPropagationStopped())break e;h=E,f.currentTarget=Z;try{h(f)}catch(ie){Vu(ie)}f.currentTarget=null,h=I}else for(b=0;b<s.length;b++){if(E=s[b],I=E.instance,Z=E.currentTarget,E=E.listener,I!==h&&f.isPropagationStopped())break e;h=E,f.currentTarget=Z;try{h(f)}catch(ie){Vu(ie)}f.currentTarget=null,h=I}}}}function Ye(n,r){var a=r[ch];a===void 0&&(a=r[ch]=new Set);var s=n+"__bubble";a.has(s)||(yx(r,n,2,!1),a.add(s))}function Wp(n,r,a){var s=0;r&&(s|=4),yx(a,n,s,r)}var Oc="_reactListening"+Math.random().toString(36).slice(2);function Jp(n){if(!n[Oc]){n[Oc]=!0,c1.forEach(function(a){a!=="selectionchange"&&(F4.has(a)||Wp(a,!1,n),Wp(a,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Oc]||(r[Oc]=!0,Wp("selectionchange",!1,r))}}function yx(n,r,a,s){switch(Yx(r)){case 2:var f=S6;break;case 8:f=v6;break;default:f=pm}a=f.bind(null,r,a,n),f=void 0,!Sh||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),s?f!==void 0?n.addEventListener(r,a,{capture:!0,passive:f}):n.addEventListener(r,a,!0):f!==void 0?n.addEventListener(r,a,{passive:f}):n.addEventListener(r,a,!1)}function em(n,r,a,s,f){var h=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var b=s.tag;if(b===3||b===4){var E=s.stateNode.containerInfo;if(E===f)break;if(b===4)for(b=s.return;b!==null;){var I=b.tag;if((I===3||I===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;E!==null;){if(b=ea(E),b===null)return;if(I=b.tag,I===5||I===6||I===26||I===27){s=h=b;continue e}E=E.parentNode}}s=s.return}w1(function(){var Z=h,ie=yh(a),le=[];e:{var ee=Q1.get(n);if(ee!==void 0){var ne=Pu,ye=n;switch(n){case"keypress":if(Lu(a)===0)break e;case"keydown":case"keyup":ne=UN;break;case"focusin":ye="focus",ne=Eh;break;case"focusout":ye="blur",ne=Eh;break;case"beforeblur":case"afterblur":ne=Eh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=T1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=_N;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=PN;break;case Y1:case G1:case X1:ne=RN;break;case K1:ne=qN;break;case"scroll":case"scrollend":ne=CN;break;case"wheel":ne=FN;break;case"copy":case"cut":case"paste":ne=MN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=A1;break;case"toggle":case"beforetoggle":ne=GN}var Re=(r&4)!==0,bt=!Re&&(n==="scroll"||n==="scrollend"),G=Re?ee!==null?ee+"Capture":null:ee;Re=[];for(var P=Z,Q;P!==null;){var oe=P;if(Q=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||Q===null||G===null||(oe=Bl(P,G),oe!=null&&Re.push(hs(P,oe,Q))),bt)break;P=P.return}0<Re.length&&(ee=new ne(ee,ye,null,a,ie),le.push({event:ee,listeners:Re}))}}if((r&7)===0){e:{if(ee=n==="mouseover"||n==="pointerover",ne=n==="mouseout"||n==="pointerout",ee&&a!==gh&&(ye=a.relatedTarget||a.fromElement)&&(ea(ye)||ye[Jo]))break e;if((ne||ee)&&(ee=ie.window===ie?ie:(ee=ie.ownerDocument)?ee.defaultView||ee.parentWindow:window,ne?(ye=a.relatedTarget||a.toElement,ne=Z,ye=ye?ea(ye):null,ye!==null&&(bt=u(ye),Re=ye.tag,ye!==bt||Re!==5&&Re!==27&&Re!==6)&&(ye=null)):(ne=null,ye=Z),ne!==ye)){if(Re=T1,oe="onMouseLeave",G="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(Re=A1,oe="onPointerLeave",G="onPointerEnter",P="pointer"),bt=ne==null?ee:zl(ne),Q=ye==null?ee:zl(ye),ee=new Re(oe,P+"leave",ne,a,ie),ee.target=bt,ee.relatedTarget=Q,oe=null,ea(ie)===Z&&(Re=new Re(G,P+"enter",ye,a,ie),Re.target=Q,Re.relatedTarget=bt,oe=Re),bt=oe,ne&&ye)t:{for(Re=Y4,G=ne,P=ye,Q=0,oe=G;oe;oe=Re(oe))Q++;oe=0;for(var ke=P;ke;ke=Re(ke))oe++;for(;0<Q-oe;)G=Re(G),Q--;for(;0<oe-Q;)P=Re(P),oe--;for(;Q--;){if(G===P||P!==null&&G===P.alternate){Re=G;break t}G=Re(G),P=Re(P)}Re=null}else Re=null;ne!==null&&bx(le,ee,ne,Re,!1),ye!==null&&bt!==null&&bx(le,bt,ye,Re,!0)}}e:{if(ee=Z?zl(Z):window,ne=ee.nodeName&&ee.nodeName.toLowerCase(),ne==="select"||ne==="input"&&ee.type==="file")var Je=D1;else if(z1(ee))if(I1)Je=r4;else{Je=t4;var ve=e4}else ne=ee.nodeName,!ne||ne.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?Z&&mh(Z.elementType)&&(Je=D1):Je=n4;if(Je&&(Je=Je(n,Z))){B1(le,Je,a,ie);break e}ve&&ve(n,ee,Z),n==="focusout"&&Z&&ee.type==="number"&&Z.memoizedProps.value!=null&&ph(ee,"number",ee.value)}switch(ve=Z?zl(Z):window,n){case"focusin":(z1(ve)||ve.contentEditable==="true")&&(ua=ve,Rh=Z,Hl=null);break;case"focusout":Hl=Rh=ua=null;break;case"mousedown":Oh=!0;break;case"contextmenu":case"mouseup":case"dragend":Oh=!1,V1(le,a,ie);break;case"selectionchange":if(o4)break;case"keydown":case"keyup":V1(le,a,ie)}var je;if(Th)e:{switch(n){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else sa?M1(n,a)&&(Xe="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(Xe="onCompositionStart");Xe&&(k1&&a.locale!=="ko"&&(sa||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&sa&&(je=E1()):(Ei=ie,vh="value"in Ei?Ei.value:Ei.textContent,sa=!0)),ve=Mc(Z,Xe),0<ve.length&&(Xe=new _1(Xe,n,null,a,ie),le.push({event:Xe,listeners:ve}),je?Xe.data=je:(je=N1(a),je!==null&&(Xe.data=je)))),(je=KN?QN(n,a):ZN(n,a))&&(Xe=Mc(Z,"onBeforeInput"),0<Xe.length&&(ve=new _1("onBeforeInput","beforeinput",null,a,ie),le.push({event:ve,listeners:Xe}),ve.data=je)),H4(le,n,Z,a,ie)}gx(le,r)})}function hs(n,r,a){return{instance:n,listener:r,currentTarget:a}}function Mc(n,r){for(var a=r+"Capture",s=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Bl(n,a),f!=null&&s.unshift(hs(n,f,h)),f=Bl(n,r),f!=null&&s.push(hs(n,f,h))),n.tag===3)return s;n=n.return}return[]}function Y4(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function bx(n,r,a,s,f){for(var h=r._reactName,b=[];a!==null&&a!==s;){var E=a,I=E.alternate,Z=E.stateNode;if(E=E.tag,I!==null&&I===s)break;E!==5&&E!==26&&E!==27||Z===null||(I=Z,f?(Z=Bl(a,h),Z!=null&&b.unshift(hs(a,Z,I))):f||(Z=Bl(a,h),Z!=null&&b.push(hs(a,Z,I)))),a=a.return}b.length!==0&&n.push({event:r,listeners:b})}var G4=/\r\n?/g,X4=/\u0000|\uFFFD/g;function Sx(n){return(typeof n=="string"?n:""+n).replace(G4,`
|
|
9
|
+
`).replace(X4,"")}function vx(n,r){return r=Sx(r),Sx(n)===r}function yt(n,r,a,s,f,h){switch(a){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||oa(n,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&oa(n,""+s);break;case"className":Du(n,"class",s);break;case"tabIndex":Du(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Du(n,a,s);break;case"style":v1(n,s,h);break;case"data":if(r!=="object"){Du(n,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||a!=="href")){n.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(a);break}s=$u(""+s),n.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(a,"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 h=="function"&&(a==="formAction"?(r!=="input"&&yt(n,r,"name",f.name,f,null),yt(n,r,"formEncType",f.formEncType,f,null),yt(n,r,"formMethod",f.formMethod,f,null),yt(n,r,"formTarget",f.formTarget,f,null)):(yt(n,r,"encType",f.encType,f,null),yt(n,r,"method",f.method,f,null),yt(n,r,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(a);break}s=$u(""+s),n.setAttribute(a,s);break;case"onClick":s!=null&&(n.onclick=Qr);break;case"onScroll":s!=null&&Ye("scroll",n);break;case"onScrollEnd":s!=null&&Ye("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(a=s.__html,a!=null){if(f.children!=null)throw Error(o(60));n.innerHTML=a}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}a=$u(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(a,""+s):n.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":s===!0?n.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(a,s):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(a,s):n.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(a):n.setAttribute(a,s);break;case"popover":Ye("beforetoggle",n),Ye("toggle",n),Bu(n,"popover",s);break;case"xlinkActuate":Kr(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Kr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Kr(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Kr(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Kr(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Kr(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Kr(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Kr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Kr(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Bu(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=wN.get(a)||a,Bu(n,a,s))}}function tm(n,r,a,s,f,h){switch(a){case"style":v1(n,s,h);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(a=s.__html,a!=null){if(f.children!=null)throw Error(o(60));n.innerHTML=a}}break;case"children":typeof s=="string"?oa(n,s):(typeof s=="number"||typeof s=="bigint")&&oa(n,""+s);break;case"onScroll":s!=null&&Ye("scroll",n);break;case"onScrollEnd":s!=null&&Ye("scrollend",n);break;case"onClick":s!=null&&(n.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!f1.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(f=a.endsWith("Capture"),r=a.slice(2,f?a.length-7:void 0),h=n[kn]||null,h=h!=null?h[a]:null,typeof h=="function"&&n.removeEventListener(r,h,f),typeof s=="function")){typeof h!="function"&&h!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(r,s,f);break e}a in n?n[a]=s:s===!0?n.setAttribute(a,""):Bu(n,a,s)}}}function pn(n,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",n),Ye("load",n);var s=!1,f=!1,h;for(h in a)if(a.hasOwnProperty(h)){var b=a[h];if(b!=null)switch(h){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,r));default:yt(n,r,h,b,a,null)}}f&&yt(n,r,"srcSet",a.srcSet,a,null),s&&yt(n,r,"src",a.src,a,null);return;case"input":Ye("invalid",n);var E=h=b=f=null,I=null,Z=null;for(s in a)if(a.hasOwnProperty(s)){var ie=a[s];if(ie!=null)switch(s){case"name":f=ie;break;case"type":b=ie;break;case"checked":I=ie;break;case"defaultChecked":Z=ie;break;case"value":h=ie;break;case"defaultValue":E=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(o(137,r));break;default:yt(n,r,s,ie,a,null)}}g1(n,h,E,I,Z,b,f,!1);return;case"select":Ye("invalid",n),s=b=h=null;for(f in a)if(a.hasOwnProperty(f)&&(E=a[f],E!=null))switch(f){case"value":h=E;break;case"defaultValue":b=E;break;case"multiple":s=E;default:yt(n,r,f,E,a,null)}r=h,a=b,n.multiple=!!s,r!=null?ia(n,!!s,r,!1):a!=null&&ia(n,!!s,a,!0);return;case"textarea":Ye("invalid",n),h=f=s=null;for(b in a)if(a.hasOwnProperty(b)&&(E=a[b],E!=null))switch(b){case"value":s=E;break;case"defaultValue":f=E;break;case"children":h=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(91));break;default:yt(n,r,b,E,a,null)}b1(n,s,f,h);return;case"option":for(I in a)if(a.hasOwnProperty(I)&&(s=a[I],s!=null))switch(I){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:yt(n,r,I,s,a,null)}return;case"dialog":Ye("beforetoggle",n),Ye("toggle",n),Ye("cancel",n),Ye("close",n);break;case"iframe":case"object":Ye("load",n);break;case"video":case"audio":for(s=0;s<ds.length;s++)Ye(ds[s],n);break;case"image":Ye("error",n),Ye("load",n);break;case"details":Ye("toggle",n);break;case"embed":case"source":case"link":Ye("error",n),Ye("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in a)if(a.hasOwnProperty(Z)&&(s=a[Z],s!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,r));default:yt(n,r,Z,s,a,null)}return;default:if(mh(r)){for(ie in a)a.hasOwnProperty(ie)&&(s=a[ie],s!==void 0&&tm(n,r,ie,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&yt(n,r,E,s,a,null))}function K4(n,r,a,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,E=null,I=null,Z=null,ie=null;for(ne in a){var le=a[ne];if(a.hasOwnProperty(ne)&&le!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":I=le;default:s.hasOwnProperty(ne)||yt(n,r,ne,null,s,le)}}for(var ee in s){var ne=s[ee];if(le=a[ee],s.hasOwnProperty(ee)&&(ne!=null||le!=null))switch(ee){case"type":h=ne;break;case"name":f=ne;break;case"checked":Z=ne;break;case"defaultChecked":ie=ne;break;case"value":b=ne;break;case"defaultValue":E=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(o(137,r));break;default:ne!==le&&yt(n,r,ee,ne,s,le)}}hh(n,b,E,I,Z,ie,h,f);return;case"select":ne=b=E=ee=null;for(h in a)if(I=a[h],a.hasOwnProperty(h)&&I!=null)switch(h){case"value":break;case"multiple":ne=I;default:s.hasOwnProperty(h)||yt(n,r,h,null,s,I)}for(f in s)if(h=s[f],I=a[f],s.hasOwnProperty(f)&&(h!=null||I!=null))switch(f){case"value":ee=h;break;case"defaultValue":E=h;break;case"multiple":b=h;default:h!==I&&yt(n,r,f,h,s,I)}r=E,a=b,s=ne,ee!=null?ia(n,!!a,ee,!1):!!s!=!!a&&(r!=null?ia(n,!!a,r,!0):ia(n,!!a,a?[]:"",!1));return;case"textarea":ne=ee=null;for(E in a)if(f=a[E],a.hasOwnProperty(E)&&f!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(n,r,E,null,s,f)}for(b in s)if(f=s[b],h=a[b],s.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":ee=f;break;case"defaultValue":ne=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:f!==h&&yt(n,r,b,f,s,h)}y1(n,ee,ne);return;case"option":for(var ye in a)if(ee=a[ye],a.hasOwnProperty(ye)&&ee!=null&&!s.hasOwnProperty(ye))switch(ye){case"selected":n.selected=!1;break;default:yt(n,r,ye,null,s,ee)}for(I in s)if(ee=s[I],ne=a[I],s.hasOwnProperty(I)&&ee!==ne&&(ee!=null||ne!=null))switch(I){case"selected":n.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:yt(n,r,I,ee,s,ne)}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 Re in a)ee=a[Re],a.hasOwnProperty(Re)&&ee!=null&&!s.hasOwnProperty(Re)&&yt(n,r,Re,null,s,ee);for(Z in s)if(ee=s[Z],ne=a[Z],s.hasOwnProperty(Z)&&ee!==ne&&(ee!=null||ne!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(o(137,r));break;default:yt(n,r,Z,ee,s,ne)}return;default:if(mh(r)){for(var bt in a)ee=a[bt],a.hasOwnProperty(bt)&&ee!==void 0&&!s.hasOwnProperty(bt)&&tm(n,r,bt,void 0,s,ee);for(ie in s)ee=s[ie],ne=a[ie],!s.hasOwnProperty(ie)||ee===ne||ee===void 0&&ne===void 0||tm(n,r,ie,ee,s,ne);return}}for(var G in a)ee=a[G],a.hasOwnProperty(G)&&ee!=null&&!s.hasOwnProperty(G)&&yt(n,r,G,null,s,ee);for(le in s)ee=s[le],ne=a[le],!s.hasOwnProperty(le)||ee===ne||ee==null&&ne==null||yt(n,r,le,ee,s,ne)}function xx(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Q4(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var f=a[s],h=f.transferSize,b=f.initiatorType,E=f.duration;if(h&&E&&xx(b)){for(b=0,E=f.responseEnd,s+=1;s<a.length;s++){var I=a[s],Z=I.startTime;if(Z>E)break;var ie=I.transferSize,le=I.initiatorType;ie&&xx(le)&&(I=I.responseEnd,b+=ie*(I<E?1:(E-Z)/(I-Z)))}if(--s,r+=8*(h+b)/(f.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var nm=null,rm=null;function Nc(n){return n.nodeType===9?n:n.ownerDocument}function wx(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ex(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function im(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var om=null;function Z4(){var n=window.event;return n&&n.type==="popstate"?n===om?!1:(om=n,!0):(om=null,!1)}var Cx=typeof setTimeout=="function"?setTimeout:void 0,W4=typeof clearTimeout=="function"?clearTimeout:void 0,Tx=typeof Promise=="function"?Promise:void 0,J4=typeof queueMicrotask=="function"?queueMicrotask:typeof Tx<"u"?function(n){return Tx.resolve(null).then(n).catch(e6)}:Cx;function e6(n){setTimeout(function(){throw n})}function ji(n){return n==="head"}function _x(n,r){var a=r,s=0;do{var f=a.nextSibling;if(n.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"||a==="/&"){if(s===0){n.removeChild(f),Ia(r);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")ps(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,ps(a);for(var h=a.firstChild;h;){var b=h.nextSibling,E=h.nodeName;h[Nl]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=b}}else a==="body"&&ps(n.ownerDocument.body);a=f}while(a);Ia(r)}function Ax(n,r){var a=n;n=0;do{var s=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=s}while(a)}function am(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":am(a),fh(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function t6(n,r,a,s){for(;n.nodeType===1;){var f=a;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[Nl])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=cr(n.nextSibling),n===null)break}return null}function n6(n,r,a){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=cr(n.nextSibling),n===null))return null;return n}function kx(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=cr(n.nextSibling),n===null))return null;return n}function lm(n){return n.data==="$?"||n.data==="$~"}function sm(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function r6(n,r){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||a.readyState!=="loading")r();else{var s=function(){r(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function cr(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var um=null;function Rx(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(r===0)return cr(n.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}n=n.nextSibling}return null}function Ox(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return n;r--}else a!=="/$"&&a!=="/&"||r++}n=n.previousSibling}return null}function Mx(n,r,a){switch(r=Nc(a),n){case"html":if(n=r.documentElement,!n)throw Error(o(452));return n;case"head":if(n=r.head,!n)throw Error(o(453));return n;case"body":if(n=r.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}function ps(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);fh(n)}var fr=new Map,Nx=new Set;function zc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var di=J.d;J.d={f:i6,r:o6,D:a6,C:l6,L:s6,m:u6,X:f6,S:c6,M:d6};function i6(){var n=di.f(),r=Cc();return n||r}function o6(n){var r=ta(n);r!==null&&r.tag===5&&r.type==="form"?KS(r):di.r(n)}var za=typeof document>"u"?null:document;function zx(n,r,a){var s=za;if(s&&typeof r=="string"&&r){var f=rr(r);f='link[rel="'+n+'"][href="'+f+'"]',typeof a=="string"&&(f+='[crossorigin="'+a+'"]'),Nx.has(f)||(Nx.add(f),n={rel:n,crossOrigin:a,href:r},s.querySelector(f)===null&&(r=s.createElement("link"),pn(r,"link",n),ln(r),s.head.appendChild(r)))}}function a6(n){di.D(n),zx("dns-prefetch",n,null)}function l6(n,r){di.C(n,r),zx("preconnect",n,r)}function s6(n,r,a){di.L(n,r,a);var s=za;if(s&&n&&r){var f='link[rel="preload"][as="'+rr(r)+'"]';r==="image"&&a&&a.imageSrcSet?(f+='[imagesrcset="'+rr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(f+='[imagesizes="'+rr(a.imageSizes)+'"]')):f+='[href="'+rr(n)+'"]';var h=f;switch(r){case"style":h=Ba(n);break;case"script":h=Da(n)}fr.has(h)||(n=y({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:n,as:r},a),fr.set(h,n),s.querySelector(f)!==null||r==="style"&&s.querySelector(ms(h))||r==="script"&&s.querySelector(gs(h))||(r=s.createElement("link"),pn(r,"link",n),ln(r),s.head.appendChild(r)))}}function u6(n,r){di.m(n,r);var a=za;if(a&&n){var s=r&&typeof r.as=="string"?r.as:"script",f='link[rel="modulepreload"][as="'+rr(s)+'"][href="'+rr(n)+'"]',h=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Da(n)}if(!fr.has(h)&&(n=y({rel:"modulepreload",href:n},r),fr.set(h,n),a.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gs(h)))return}s=a.createElement("link"),pn(s,"link",n),ln(s),a.head.appendChild(s)}}}function c6(n,r,a){di.S(n,r,a);var s=za;if(s&&n){var f=na(s).hoistableStyles,h=Ba(n);r=r||"default";var b=f.get(h);if(!b){var E={loading:0,preload:null};if(b=s.querySelector(ms(h)))E.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":r},a),(a=fr.get(h))&&cm(n,a);var I=b=s.createElement("link");ln(I),pn(I,"link",n),I._p=new Promise(function(Z,ie){I.onload=Z,I.onerror=ie}),I.addEventListener("load",function(){E.loading|=1}),I.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Bc(b,r,s)}b={type:"stylesheet",instance:b,count:1,state:E},f.set(h,b)}}}function f6(n,r){di.X(n,r);var a=za;if(a&&n){var s=na(a).hoistableScripts,f=Da(n),h=s.get(f);h||(h=a.querySelector(gs(f)),h||(n=y({src:n,async:!0},r),(r=fr.get(f))&&fm(n,r),h=a.createElement("script"),ln(h),pn(h,"link",n),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(f,h))}}function d6(n,r){di.M(n,r);var a=za;if(a&&n){var s=na(a).hoistableScripts,f=Da(n),h=s.get(f);h||(h=a.querySelector(gs(f)),h||(n=y({src:n,async:!0,type:"module"},r),(r=fr.get(f))&&fm(n,r),h=a.createElement("script"),ln(h),pn(h,"link",n),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(f,h))}}function Bx(n,r,a,s){var f=(f=he.current)?zc(f):null;if(!f)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=Ba(a.href),a=na(f).hoistableStyles,s=a.get(r),s||(s={type:"style",instance:null,count:0,state:null},a.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=Ba(a.href);var h=na(f).hoistableStyles,b=h.get(n);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,b),(h=f.querySelector(ms(n)))&&!h._p&&(b.instance=h,b.state.loading=5),fr.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fr.set(n,a),h||h6(f,n,a,b.state))),r&&s===null)throw Error(o(528,""));return b}if(r&&s!==null)throw Error(o(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Da(a),a=na(f).hoistableScripts,s=a.get(r),s||(s={type:"script",instance:null,count:0,state:null},a.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}function Ba(n){return'href="'+rr(n)+'"'}function ms(n){return'link[rel="stylesheet"]['+n+"]"}function Dx(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function h6(n,r,a,s){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=n.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),pn(r,"link",a),ln(r),n.head.appendChild(r))}function Da(n){return'[src="'+rr(n)+'"]'}function gs(n){return"script[async]"+n}function Ix(n,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var s=n.querySelector('style[data-href~="'+rr(a.href)+'"]');if(s)return r.instance=s,ln(s),s;var f=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),ln(s),pn(s,"style",f),Bc(s,a.precedence,n),r.instance=s;case"stylesheet":f=Ba(a.href);var h=n.querySelector(ms(f));if(h)return r.state.loading|=4,r.instance=h,ln(h),h;s=Dx(a),(f=fr.get(f))&&cm(s,f),h=(n.ownerDocument||n).createElement("link"),ln(h);var b=h;return b._p=new Promise(function(E,I){b.onload=E,b.onerror=I}),pn(h,"link",s),r.state.loading|=4,Bc(h,a.precedence,n),r.instance=h;case"script":return h=Da(a.src),(f=n.querySelector(gs(h)))?(r.instance=f,ln(f),f):(s=a,(f=fr.get(h))&&(s=y({},a),fm(s,f)),n=n.ownerDocument||n,f=n.createElement("script"),ln(f),pn(f,"link",s),n.head.appendChild(f),r.instance=f);case"void":return null;default:throw Error(o(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,Bc(s,a.precedence,n));return r.instance}function Bc(n,r,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,h=f,b=0;b<s.length;b++){var E=s[b];if(E.dataset.precedence===r)h=E;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(n,r.firstChild))}function cm(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function fm(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Dc=null;function $x(n,r,a){if(Dc===null){var s=new Map,f=Dc=new Map;f.set(a,s)}else f=Dc,s=f.get(a),s||(s=new Map,f.set(a,s));if(s.has(n))return s;for(s.set(n,null),a=a.getElementsByTagName(n),f=0;f<a.length;f++){var h=a[f];if(!(h[Nl]||h[cn]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(r)||"";b=n+b;var E=s.get(b);E?E.push(h):s.set(b,[h])}}return s}function Ux(n,r,a){n=n.ownerDocument||n,n.head.insertBefore(a,r==="title"?n.querySelector("head > title"):null)}function p6(n,r,a){if(a===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Lx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function m6(n,r,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Ba(s.href),h=r.querySelector(ms(f));if(h){r=h._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Ic.bind(n),r.then(n,n)),a.state.loading|=4,a.instance=h,ln(h);return}h=r.ownerDocument||r,s=Dx(s),(f=fr.get(f))&&cm(s,f),h=h.createElement("link"),ln(h);var b=h;b._p=new Promise(function(E,I){b.onload=E,b.onerror=I}),pn(h,"link",s),a.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=Ic.bind(n),r.addEventListener("load",a),r.addEventListener("error",a))}}var dm=0;function g6(n,r){return n.stylesheets&&n.count===0&&Uc(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var s=setTimeout(function(){if(n.stylesheets&&Uc(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+r);0<n.imgBytes&&dm===0&&(dm=62500*Q4());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Uc(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>dm?50:800)+r);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var $c=null;function Uc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,$c=new Map,r.forEach(y6,n),$c=null,Ic.call(n))}function y6(n,r){if(!(r.state.loading&4)){var a=$c.get(n);if(a)var s=a.get(null);else{a=new Map,$c.set(n,a);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),s=b)}s&&a.set(null,s)}f=r.instance,b=f.getAttribute("data-precedence"),h=a.get(b)||s,h===s&&a.set(null,f),a.set(b,f),this.count++,s=Ic.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),r.state.loading|=4}}var ys={$$typeof:M,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function b6(n,r,a,s,f,h,b,E,I){this.tag=1,this.containerInfo=n,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=lh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lh(0),this.hiddenUpdates=lh(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function jx(n,r,a,s,f,h,b,E,I,Z,ie,le){return n=new b6(n,r,a,b,I,Z,ie,le,E),r=1,h===!0&&(r|=24),h=Vn(3,null,null,r),n.current=h,h.stateNode=n,r=Fh(),r.refCount++,n.pooledCache=r,r.refCount++,h.memoizedState={element:s,isDehydrated:a,cache:r},Kh(h),n}function Px(n){return n?(n=da,n):da}function Hx(n,r,a,s,f,h){f=Px(f),s.context===null?s.context=f:s.pendingContext=f,s=Ri(r),s.payload={element:a},h=h===void 0?null:h,h!==null&&(s.callback=h),a=Oi(n,s,r),a!==null&&(Bn(a,n,r),Kl(a,n,r))}function qx(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<r?a:r}}function hm(n,r){qx(n,r),(n=n.alternate)&&qx(n,r)}function Vx(n){if(n.tag===13||n.tag===31){var r=po(n,67108864);r!==null&&Bn(r,n,67108864),hm(n,67108864)}}function Fx(n){if(n.tag===13||n.tag===31){var r=Kn();r=sh(r);var a=po(n,r);a!==null&&Bn(a,n,r),hm(n,r)}}var Lc=!0;function S6(n,r,a,s){var f=z.T;z.T=null;var h=J.p;try{J.p=2,pm(n,r,a,s)}finally{J.p=h,z.T=f}}function v6(n,r,a,s){var f=z.T;z.T=null;var h=J.p;try{J.p=8,pm(n,r,a,s)}finally{J.p=h,z.T=f}}function pm(n,r,a,s){if(Lc){var f=mm(s);if(f===null)em(n,r,s,jc,a),Gx(n,s);else if(w6(f,n,r,a,s))s.stopPropagation();else if(Gx(n,s),r&4&&-1<x6.indexOf(n)){for(;f!==null;){var h=ta(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=so(h.pendingLanes);if(b!==0){var E=h;for(E.pendingLanes|=2,E.entangledLanes|=2;b;){var I=1<<31-at(b);E.entanglements[1]|=I,b&=~I}jr(h),(it&6)===0&&(wc=He()+500,fs(0))}}break;case 31:case 13:E=po(h,2),E!==null&&Bn(E,h,2),Cc(),hm(h,2)}if(h=mm(s),h===null&&em(n,r,s,jc,a),h===f)break;f=h}f!==null&&s.stopPropagation()}else em(n,r,s,null,a)}}function mm(n){return n=yh(n),gm(n)}var jc=null;function gm(n){if(jc=null,n=ea(n),n!==null){var r=u(n);if(r===null)n=null;else{var a=r.tag;if(a===13){if(n=c(r),n!==null)return n;n=null}else if(a===31){if(n=d(r),n!==null)return n;n=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return jc=n,null}function Yx(n){switch(n){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(Sr()){case te:return 2;case se:return 8;case ge:case Ae:return 32;case Le:return 268435456;default:return 32}default:return 32}}var ym=!1,Pi=null,Hi=null,qi=null,bs=new Map,Ss=new Map,Vi=[],x6="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 Gx(n,r){switch(n){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":bs.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ss.delete(r.pointerId)}}function vs(n,r,a,s,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:r,domEventName:a,eventSystemFlags:s,nativeEvent:h,targetContainers:[f]},r!==null&&(r=ta(r),r!==null&&Vx(r)),n):(n.eventSystemFlags|=s,r=n.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),n)}function w6(n,r,a,s,f){switch(r){case"focusin":return Pi=vs(Pi,n,r,a,s,f),!0;case"dragenter":return Hi=vs(Hi,n,r,a,s,f),!0;case"mouseover":return qi=vs(qi,n,r,a,s,f),!0;case"pointerover":var h=f.pointerId;return bs.set(h,vs(bs.get(h)||null,n,r,a,s,f)),!0;case"gotpointercapture":return h=f.pointerId,Ss.set(h,vs(Ss.get(h)||null,n,r,a,s,f)),!0}return!1}function Xx(n){var r=ea(n.target);if(r!==null){var a=u(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){n.blockedOn=r,s1(n.priority,function(){Fx(a)});return}}else if(r===31){if(r=d(a),r!==null){n.blockedOn=r,s1(n.priority,function(){Fx(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Pc(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var a=mm(n.nativeEvent);if(a===null){a=n.nativeEvent;var s=new a.constructor(a.type,a);gh=s,a.target.dispatchEvent(s),gh=null}else return r=ta(a),r!==null&&Vx(r),n.blockedOn=a,!1;r.shift()}return!0}function Kx(n,r,a){Pc(n)&&a.delete(r)}function E6(){ym=!1,Pi!==null&&Pc(Pi)&&(Pi=null),Hi!==null&&Pc(Hi)&&(Hi=null),qi!==null&&Pc(qi)&&(qi=null),bs.forEach(Kx),Ss.forEach(Kx)}function Hc(n,r){n.blockedOn===r&&(n.blockedOn=null,ym||(ym=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,E6)))}var qc=null;function Qx(n){qc!==n&&(qc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){qc===n&&(qc=null);for(var r=0;r<n.length;r+=3){var a=n[r],s=n[r+1],f=n[r+2];if(typeof s!="function"){if(gm(s||a)===null)continue;break}var h=ta(a);h!==null&&(n.splice(r,3),r-=3,mp(h,{pending:!0,data:f,method:a.method,action:s},s,f))}}))}function Ia(n){function r(I){return Hc(I,n)}Pi!==null&&Hc(Pi,n),Hi!==null&&Hc(Hi,n),qi!==null&&Hc(qi,n),bs.forEach(r),Ss.forEach(r);for(var a=0;a<Vi.length;a++){var s=Vi[a];s.blockedOn===n&&(s.blockedOn=null)}for(;0<Vi.length&&(a=Vi[0],a.blockedOn===null);)Xx(a),a.blockedOn===null&&Vi.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var f=a[s],h=a[s+1],b=f[kn]||null;if(typeof h=="function")b||Qx(a);else if(b){var E=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[kn]||null)E=b.formAction;else if(gm(f)!==null)continue}else E=b.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),Qx(a)}}}function Zx(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function r(){f!==null&&(f(),f=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),f!==null&&(f(),f=null)}}}function bm(n){this._internalRoot=n}Vc.prototype.render=bm.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(o(409));var a=r.current,s=Kn();Hx(a,s,n,r,null,null)},Vc.prototype.unmount=bm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Hx(n.current,2,null,n,null,null),Cc(),r[Jo]=null}};function Vc(n){this._internalRoot=n}Vc.prototype.unstable_scheduleHydration=function(n){if(n){var r=l1();n={blockedOn:null,target:n,priority:r};for(var a=0;a<Vi.length&&r!==0&&r<Vi[a].priority;a++);Vi.splice(a,0,n),a===0&&Xx(n)}};var Wx=t.version;if(Wx!=="19.2.3")throw Error(o(527,Wx,"19.2.3"));J.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=p(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var C6={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{Ut=Fc.inject(C6),Dt=Fc}catch{}}return Ua.createRoot=function(n,r){if(!l(n))throw Error(o(299));var a=!1,s="",f=ov,h=av,b=lv;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(h=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError)),r=jx(n,1,!1,null,null,a,s,null,f,h,b,Zx),n[Jo]=r.current,Jp(n),new bm(r)},Ua.hydrateRoot=function(n,r,a){if(!l(n))throw Error(o(299));var s=!1,f="",h=ov,b=av,E=lv,I=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(I=a.formState)),r=jx(n,1,!0,r,a??null,s,f,I,h,b,E,Zx),r.context=Px(null),a=r.current,s=Kn(),s=sh(s),f=Ri(s),f.callback=null,Oi(a,f,s),a=s,r.current.lanes=a,Ml(r,a),jr(r),n[Jo]=r.current,Jp(n),new Vc(r)},Ua.version="19.2.3",Ua}var Rm;function lw(){if(Rm)return Gc.exports;Rm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Gc.exports=aw(),Gc.exports}var sw=lw();function uw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function cw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var fw=(function(){function e(i){var o=this;this._insertTag=function(l){var u;o.tags.length===0?o.insertionPoint?u=o.insertionPoint.nextSibling:o.prepend?u=o.container.firstChild:u=o.before:u=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(l,u),o.tags.push(l)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(cw(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var u=uw(l);try{u.insertRule(o,u.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var l;return(l=o.parentNode)==null?void 0:l.removeChild(o)}),this.tags=[],this.ctr=0},e})(),gn="-ms-",ws="-moz-",tt="-webkit-",Om="comm",Jc="rule",ef="decl",dw="@import",Mm="@keyframes",hw="@layer",pw=Math.abs,Es=String.fromCharCode,mw=Object.assign;function gw(e,t){return un(e,0)^45?(((t<<2^un(e,0))<<2^un(e,1))<<2^un(e,2))<<2^un(e,3):0}function Nm(e){return e.trim()}function yw(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,i){return e.replace(t,i)}function tf(e,t){return e.indexOf(t)}function un(e,t){return e.charCodeAt(t)|0}function La(e,t,i){return e.slice(t,i)}function Cr(e){return e.length}function nf(e){return e.length}function Cs(e,t){return t.push(e),e}function bw(e,t){return e.map(t).join("")}var Ts=1,Ao=1,zm=0,En=0,Gt=0,ko="";function _s(e,t,i,o,l,u,c){return{value:e,root:t,parent:i,type:o,props:l,children:u,line:Ts,column:Ao,length:c,return:""}}function ja(e,t){return mw(_s("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sw(){return Gt}function vw(){return Gt=En>0?un(ko,--En):0,Ao--,Gt===10&&(Ao=1,Ts--),Gt}function Dn(){return Gt=En<zm?un(ko,En++):0,Ao++,Gt===10&&(Ao=1,Ts++),Gt}function Tr(){return un(ko,En)}function As(){return En}function Pa(e,t){return La(ko,e,t)}function Ha(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bm(e){return Ts=Ao=1,zm=Cr(ko=e),En=0,[]}function Dm(e){return ko="",e}function ks(e){return Nm(Pa(En-1,rf(e===91?e+2:e===40?e+1:e)))}function xw(e){for(;(Gt=Tr())&&Gt<33;)Dn();return Ha(e)>2||Ha(Gt)>3?"":" "}function ww(e,t){for(;--t&&Dn()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return Pa(e,As()+(t<6&&Tr()==32&&Dn()==32))}function rf(e){for(;Dn();)switch(Gt){case e:return En;case 34:case 39:e!==34&&e!==39&&rf(Gt);break;case 40:e===41&&rf(e);break;case 92:Dn();break}return En}function Ew(e,t){for(;Dn()&&e+Gt!==57;)if(e+Gt===84&&Tr()===47)break;return"/*"+Pa(t,En-1)+"*"+Es(e===47?e:Dn())}function Cw(e){for(;!Ha(Tr());)Dn();return Pa(e,En)}function Tw(e){return Dm(Rs("",null,null,null,[""],e=Bm(e),0,[0],e))}function Rs(e,t,i,o,l,u,c,d,m){for(var p=0,g=0,y=c,v=0,S=0,C=0,w=1,R=1,k=1,$=0,M="",_=l,B=u,T=o,L=M;R;)switch(C=$,$=Dn()){case 40:if(C!=108&&un(L,y-1)==58){tf(L+=nt(ks($),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:L+=ks($);break;case 9:case 10:case 13:case 32:L+=xw(C);break;case 92:L+=ww(As()-1,7);continue;case 47:switch(Tr()){case 42:case 47:Cs(_w(Ew(Dn(),As()),t,i),m);break;default:L+="/"}break;case 123*w:d[p++]=Cr(L)*k;case 125*w:case 59:case 0:switch($){case 0:case 125:R=0;case 59+g:k==-1&&(L=nt(L,/\f/g,"")),S>0&&Cr(L)-y&&Cs(S>32?$m(L+";",o,i,y-1):$m(nt(L," ","")+";",o,i,y-2),m);break;case 59:L+=";";default:if(Cs(T=Im(L,t,i,p,g,l,d,M,_=[],B=[],y),u),$===123)if(g===0)Rs(L,t,T,T,_,u,y,d,B);else switch(v===99&&un(L,3)===110?100:v){case 100:case 108:case 109:case 115:Rs(e,T,T,o&&Cs(Im(e,T,T,0,0,l,d,M,l,_=[],y),B),l,B,y,d,o?_:B);break;default:Rs(L,T,T,T,[""],B,0,d,B)}}p=g=S=0,w=k=1,M=L="",y=c;break;case 58:y=1+Cr(L),S=C;default:if(w<1){if($==123)--w;else if($==125&&w++==0&&vw()==125)continue}switch(L+=Es($),$*w){case 38:k=g>0?1:(L+="\f",-1);break;case 44:d[p++]=(Cr(L)-1)*k,k=1;break;case 64:Tr()===45&&(L+=ks(Dn())),v=Tr(),g=y=Cr(M=L+=Cw(As())),$++;break;case 45:C===45&&Cr(L)==2&&(w=0)}}return u}function Im(e,t,i,o,l,u,c,d,m,p,g){for(var y=l-1,v=l===0?u:[""],S=nf(v),C=0,w=0,R=0;C<o;++C)for(var k=0,$=La(e,y+1,y=pw(w=c[C])),M=e;k<S;++k)(M=Nm(w>0?v[k]+" "+$:nt($,/&\f/g,v[k])))&&(m[R++]=M);return _s(e,t,i,l===0?Jc:d,m,p,g)}function _w(e,t,i){return _s(e,t,i,Om,Es(Sw()),La(e,2,-2),0)}function $m(e,t,i,o){return _s(e,t,i,ef,La(e,0,o),La(e,o+1,-1),o)}function Ro(e,t){for(var i="",o=nf(e),l=0;l<o;l++)i+=t(e[l],l,e,t)||"";return i}function Aw(e,t,i,o){switch(e.type){case hw:if(e.children.length)break;case dw:case ef:return e.return=e.return||e.value;case Om:return"";case Mm:return e.return=e.value+"{"+Ro(e.children,o)+"}";case Jc:e.value=e.props.join(",")}return Cr(i=Ro(e.children,o))?e.return=e.value+"{"+i+"}":""}function kw(e){var t=nf(e);return function(i,o,l,u){for(var c="",d=0;d<t;d++)c+=e[d](i,o,l,u)||"";return c}}function Rw(e){return function(t){t.root||(t=t.return)&&e(t)}}function Um(e){var t=Object.create(null);return function(i){return t[i]===void 0&&(t[i]=e(i)),t[i]}}var Ow=function(t,i,o){for(var l=0,u=0;l=u,u=Tr(),l===38&&u===12&&(i[o]=1),!Ha(u);)Dn();return Pa(t,En)},Mw=function(t,i){var o=-1,l=44;do switch(Ha(l)){case 0:l===38&&Tr()===12&&(i[o]=1),t[o]+=Ow(En-1,i,o);break;case 2:t[o]+=ks(l);break;case 4:if(l===44){t[++o]=Tr()===58?"&\f":"",i[o]=t[o].length;break}default:t[o]+=Es(l)}while(l=Dn());return t},Nw=function(t,i){return Dm(Mw(Bm(t),i))},Lm=new WeakMap,zw=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var i=t.value,o=t.parent,l=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&i.charCodeAt(0)!==58&&!Lm.get(o))&&!l){Lm.set(t,!0);for(var u=[],c=Nw(i,u),d=o.props,m=0,p=0;m<c.length;m++)for(var g=0;g<d.length;g++,p++)t.props[p]=u[m]?c[m].replace(/&\f/g,d[g]):d[g]+" "+c[m]}}},Bw=function(t){if(t.type==="decl"){var i=t.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(t.return="",t.value="")}};function jm(e,t){switch(gw(e,t)){case 5103:return tt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tt+e+ws+e+gn+e+e;case 6828:case 4268:return tt+e+gn+e+e;case 6165:return tt+e+gn+"flex-"+e+e;case 5187:return tt+e+nt(e,/(\w+).+(:[^]+)/,tt+"box-$1$2"+gn+"flex-$1$2")+e;case 5443:return tt+e+gn+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return tt+e+gn+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return tt+e+gn+nt(e,"shrink","negative")+e;case 5292:return tt+e+gn+nt(e,"basis","preferred-size")+e;case 6060:return tt+"box-"+nt(e,"-grow","")+tt+e+gn+nt(e,"grow","positive")+e;case 4554:return tt+nt(e,/([^-])(transform)/g,"$1"+tt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,tt+"$1"),/(image-set)/,tt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,tt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,tt+"box-pack:$3"+gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,tt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-t>6)switch(un(e,t+1)){case 109:if(un(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+tt+"$2-$3$1"+ws+(un(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tf(e,"stretch")?jm(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(un(e,t+1)!==115)break;case 6444:switch(un(e,Cr(e)-3-(~tf(e,"!important")&&10))){case 107:return nt(e,":",":"+tt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tt+(un(e,14)===45?"inline-":"")+"box$3$1"+tt+"$2$3$1"+gn+"$2box$3")+e}break;case 5936:switch(un(e,t+11)){case 114:return tt+e+gn+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tt+e+gn+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tt+e+gn+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tt+e+gn+e+e}return e}var Dw=function(t,i,o,l){if(t.length>-1&&!t.return)switch(t.type){case ef:t.return=jm(t.value,t.length);break;case Mm:return Ro([ja(t,{value:nt(t.value,"@","@"+tt)})],l);case Jc:if(t.length)return bw(t.props,function(u){switch(yw(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ro([ja(t,{props:[nt(u,/:(read-\w+)/,":"+ws+"$1")]})],l);case"::placeholder":return Ro([ja(t,{props:[nt(u,/:(plac\w+)/,":"+tt+"input-$1")]}),ja(t,{props:[nt(u,/:(plac\w+)/,":"+ws+"$1")]}),ja(t,{props:[nt(u,/:(plac\w+)/,gn+"input-$1")]})],l)}return""})}},Iw=[Dw],Pm=function(t){var i=t.key;if(i==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(w){var R=w.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var l=t.stylisPlugins||Iw,u={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(w){for(var R=w.getAttribute("data-emotion").split(" "),k=1;k<R.length;k++)u[R[k]]=!0;d.push(w)});var m,p=[zw,Bw];{var g,y=[Aw,Rw(function(w){g.insert(w)})],v=kw(p.concat(l,y)),S=function(R){return Ro(Tw(R),v)};m=function(R,k,$,M){g=$,S(R?R+"{"+k.styles+"}":k.styles),M&&(C.inserted[k.name]=!0)}}var C={key:i,sheet:new fw({key:i,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:m};return C.sheet.hydrate(d),C},O=Zc();const dr=xs(O),Os=Jx({__proto__:null,default:dr},[O]);function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Ms.apply(null,arguments)}var of={exports:{}},ot={};var Hm;function $w(){if(Hm)return ot;Hm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function M(B){if(typeof B=="object"&&B!==null){var T=B.$$typeof;switch(T){case t:switch(B=B.type,B){case m:case p:case o:case u:case l:case y:return B;default:switch(B=B&&B.$$typeof,B){case d:case g:case C:case S:case c:return B;default:return T}}case i:return T}}}function _(B){return M(B)===p}return ot.AsyncMode=m,ot.ConcurrentMode=p,ot.ContextConsumer=d,ot.ContextProvider=c,ot.Element=t,ot.ForwardRef=g,ot.Fragment=o,ot.Lazy=C,ot.Memo=S,ot.Portal=i,ot.Profiler=u,ot.StrictMode=l,ot.Suspense=y,ot.isAsyncMode=function(B){return _(B)||M(B)===m},ot.isConcurrentMode=_,ot.isContextConsumer=function(B){return M(B)===d},ot.isContextProvider=function(B){return M(B)===c},ot.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},ot.isForwardRef=function(B){return M(B)===g},ot.isFragment=function(B){return M(B)===o},ot.isLazy=function(B){return M(B)===C},ot.isMemo=function(B){return M(B)===S},ot.isPortal=function(B){return M(B)===i},ot.isProfiler=function(B){return M(B)===u},ot.isStrictMode=function(B){return M(B)===l},ot.isSuspense=function(B){return M(B)===y},ot.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===o||B===p||B===u||B===l||B===y||B===v||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===S||B.$$typeof===c||B.$$typeof===d||B.$$typeof===g||B.$$typeof===R||B.$$typeof===k||B.$$typeof===$||B.$$typeof===w)},ot.typeOf=M,ot}var qm;function Uw(){return qm||(qm=1,of.exports=$w()),of.exports}var af,Vm;function Lw(){if(Vm)return af;Vm=1;var e=Uw(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=o,u[e.Memo]=l;function c(C){return e.isMemo(C)?l:u[C.$$typeof]||t}var d=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function S(C,w,R){if(typeof w!="string"){if(v){var k=y(w);k&&k!==v&&S(C,k,R)}var $=m(w);p&&($=$.concat(p(w)));for(var M=c(C),_=c(w),B=0;B<$.length;++B){var T=$[B];if(!i[T]&&!(R&&R[T])&&!(_&&_[T])&&!(M&&M[T])){var L=g(w,T);try{d(C,T,L)}catch{}}}}return C}return af=S,af}Lw();var jw=!0;function Fm(e,t,i){var o="";return i.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(o+=l+" ")}),o}var lf=function(t,i,o){var l=t.key+"-"+i.name;(o===!1||jw===!1)&&t.registered[l]===void 0&&(t.registered[l]=i.styles)},sf=function(t,i,o){lf(t,i,o);var l=t.key+"-"+i.name;if(t.inserted[i.name]===void 0){var u=i;do t.insert(i===u?"."+l:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function Pw(e){for(var t=0,i,o=0,l=e.length;l>=4;++o,l-=4)i=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,t=(i&65535)*1540483477+((i>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qw=/[A-Z]|^ms/g,Vw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ym=function(t){return t.charCodeAt(1)===45},Gm=function(t){return t!=null&&typeof t!="boolean"},uf=Um(function(e){return Ym(e)?e:e.replace(qw,"-$&").toLowerCase()}),Xm=function(t,i){switch(t){case"animation":case"animationName":if(typeof i=="string")return i.replace(Vw,function(o,l,u){return _r={name:l,styles:u,next:_r},l})}return Hw[t]!==1&&!Ym(t)&&typeof i=="number"&&i!==0?i+"px":i};function qa(e,t,i){if(i==null)return"";var o=i;if(o.__emotion_styles!==void 0)return o;switch(typeof i){case"boolean":return"";case"object":{var l=i;if(l.anim===1)return _r={name:l.name,styles:l.styles,next:_r},l.name;var u=i;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)_r={name:c.name,styles:c.styles,next:_r},c=c.next;var d=u.styles+";";return d}return Fw(e,t,i)}case"function":{if(e!==void 0){var m=_r,p=i(e);return _r=m,qa(e,t,p)}break}}var g=i;if(t==null)return g;var y=t[g];return y!==void 0?y:g}function Fw(e,t,i){var o="";if(Array.isArray(i))for(var l=0;l<i.length;l++)o+=qa(e,t,i[l])+";";else for(var u in i){var c=i[u];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?o+=u+"{"+t[d]+"}":Gm(d)&&(o+=uf(u)+":"+Xm(u,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var m=0;m<c.length;m++)Gm(c[m])&&(o+=uf(u)+":"+Xm(u,c[m])+";");else{var p=qa(e,t,c);switch(u){case"animation":case"animationName":{o+=uf(u)+":"+p+";";break}default:o+=u+"{"+p+"}"}}}return o}var Km=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function Va(e,t,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,l="";_r=void 0;var u=e[0];if(u==null||u.raw===void 0)o=!1,l+=qa(i,t,u);else{var c=u;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=qa(i,t,e[d]),o){var m=u;l+=m[d]}Km.lastIndex=0;for(var p="",g;(g=Km.exec(l))!==null;)p+="-"+g[1];var y=Pw(l)+p;return{name:y,styles:l,next:_r}}var Yw=function(t){return t()},Qm=Os.useInsertionEffect?Os.useInsertionEffect:!1,Zm=Qm||Yw,Wm=Qm||O.useLayoutEffect,Jm=O.createContext(typeof HTMLElement<"u"?Pm({key:"css"}):null),Gw=Jm.Provider,cf=function(t){return O.forwardRef(function(i,o){var l=O.useContext(Jm);return t(i,l,o)})},Fa=O.createContext({}),ff={}.hasOwnProperty,df="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xw=function(t,i){var o={};for(var l in i)ff.call(i,l)&&(o[l]=i[l]);return o[df]=t,o},Kw=function(t){var i=t.cache,o=t.serialized,l=t.isStringTag;return lf(i,o,l),Zm(function(){return sf(i,o,l)}),null},Qw=cf(function(e,t,i){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var l=e[df],u=[o],c="";typeof e.className=="string"?c=Fm(t.registered,u,e.className):e.className!=null&&(c=e.className+" ");var d=Va(u,void 0,O.useContext(Fa));c+=t.key+"-"+d.name;var m={};for(var p in e)ff.call(e,p)&&p!=="css"&&p!==df&&(m[p]=e[p]);return m.className=c,i&&(m.ref=i),O.createElement(O.Fragment,null,O.createElement(Kw,{cache:t,serialized:d,isStringTag:typeof l=="string"}),O.createElement(l,m))}),Zw=Qw,eg=function(t,i){var o=arguments;if(i==null||!ff.call(i,"css"))return O.createElement.apply(void 0,o);var l=o.length,u=new Array(l);u[0]=Zw,u[1]=Xw(t,i);for(var c=2;c<l;c++)u[c]=o[c];return O.createElement.apply(null,u)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(eg||(eg={}));var Ww=cf(function(e,t){var i=e.styles,o=Va([i],void 0,O.useContext(Fa)),l=O.useRef();return Wm(function(){var u=t.key+"-global",c=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,m=document.querySelector('style[data-emotion="'+u+" "+o.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),m!==null&&(d=!0,m.setAttribute("data-emotion",u),c.hydrate([m])),l.current=[c,d],function(){c.flush()}},[t]),Wm(function(){var u=l.current,c=u[0],d=u[1];if(d){u[1]=!1;return}if(o.next!==void 0&&sf(t,o.next,!0),c.tags.length){var m=c.tags[c.tags.length-1].nextElementSibling;c.before=m,c.flush()}t.insert("",o,c,!1)},[t,o.name]),null});function hf(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Va(t)}function Ya(){var e=hf.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const Ga={black:"#000",white:"#fff"},Oo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Mo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},No={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},zo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Xa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Jw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Pr(e,...t){const i=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>i.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${i} for the full message.`}const hr="$$material";var eE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tE=Um(function(e){return eE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nE=tE,rE=function(t){return t!=="theme"},tg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?nE:rE},ng=function(t,i,o){var l;if(i){var u=i.shouldForwardProp;l=t.__emotion_forwardProp&&u?function(c){return t.__emotion_forwardProp(c)&&u(c)}:u}return typeof l!="function"&&o&&(l=t.__emotion_forwardProp),l},iE=function(t){var i=t.cache,o=t.serialized,l=t.isStringTag;return lf(i,o,l),Zm(function(){return sf(i,o,l)}),null},oE=function e(t,i){var o=t.__emotion_real===t,l=o&&t.__emotion_base||t,u,c;i!==void 0&&(u=i.label,c=i.target);var d=ng(t,i,o),m=d||tg(l),p=!m("as");return function(){var g=arguments,y=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&y.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{var v=g[0];y.push(v[0]);for(var S=g.length,C=1;C<S;C++)y.push(g[C],v[C])}var w=cf(function(R,k,$){var M=p&&R.as||l,_="",B=[],T=R;if(R.theme==null){T={};for(var L in R)T[L]=R[L];T.theme=O.useContext(Fa)}typeof R.className=="string"?_=Fm(k.registered,B,R.className):R.className!=null&&(_=R.className+" ");var V=Va(y.concat(B),k.registered,T);_+=k.key+"-"+V.name,c!==void 0&&(_+=" "+c);var q=p&&d===void 0?tg(M):m,F={};for(var U in R)p&&U==="as"||q(U)&&(F[U]=R[U]);return F.className=_,$&&(F.ref=$),O.createElement(O.Fragment,null,O.createElement(iE,{cache:k,serialized:V,isStringTag:typeof M=="string"}),O.createElement(M,F))});return w.displayName=u!==void 0?u:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=l,w.__emotion_styles=y,w.__emotion_forwardProp=d,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(R,k){var $=e(R,Ms({},i,k,{shouldForwardProp:ng(w,k,!0)}));return $.apply(void 0,y)},w}},aE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],pf=oE.bind(null);aE.forEach(function(e){pf[e]=pf(e)});function lE(e){return e==null||Object.keys(e).length===0}function rg(e){const{styles:t,defaultTheme:i={}}=e,o=typeof t=="function"?l=>t(lE(l)?i:l):t;return Y.jsx(Ww,{styles:o})}function ig(e,t){return pf(e,t)}function sE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const og=[];function hi(e){return og[0]=e,Va(og)}var mf={exports:{}},pt={};var ag;function uE(){if(ag)return pt;ag=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function C(w){if(typeof w=="object"&&w!==null){var R=w.$$typeof;switch(R){case e:switch(w=w.type,w){case i:case l:case o:case m:case p:case v:return w;default:switch(w=w&&w.$$typeof,w){case c:case d:case y:case g:return w;case u:return w;default:return R}}case t:return R}}}return pt.ContextConsumer=u,pt.ContextProvider=c,pt.Element=e,pt.ForwardRef=d,pt.Fragment=i,pt.Lazy=y,pt.Memo=g,pt.Portal=t,pt.Profiler=l,pt.StrictMode=o,pt.Suspense=m,pt.SuspenseList=p,pt.isContextConsumer=function(w){return C(w)===u},pt.isContextProvider=function(w){return C(w)===c},pt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},pt.isForwardRef=function(w){return C(w)===d},pt.isFragment=function(w){return C(w)===i},pt.isLazy=function(w){return C(w)===y},pt.isMemo=function(w){return C(w)===g},pt.isPortal=function(w){return C(w)===t},pt.isProfiler=function(w){return C(w)===l},pt.isStrictMode=function(w){return C(w)===o},pt.isSuspense=function(w){return C(w)===m},pt.isSuspenseList=function(w){return C(w)===p},pt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===i||w===l||w===o||w===m||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===g||w.$$typeof===c||w.$$typeof===u||w.$$typeof===d||w.$$typeof===S||w.getModuleId!==void 0)},pt.typeOf=C,pt}var lg;function cE(){return lg||(lg=1,mf.exports=uE()),mf.exports}var sg=cE();function Ar(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ug(e){if(O.isValidElement(e)||sg.isValidElementType(e)||!Ar(e))return e;const t={};return Object.keys(e).forEach(i=>{t[i]=ug(e[i])}),t}function yn(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return Ar(e)&&Ar(t)&&Object.keys(t).forEach(l=>{O.isValidElement(t[l])||sg.isValidElementType(t[l])?o[l]=t[l]:Ar(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Ar(e[l])?o[l]=yn(e[l],t[l],i):i.clone?o[l]=Ar(t[l])?ug(t[l]):t[l]:o[l]=t[l]}),o}const fE=e=>{const t=Object.keys(e).map(i=>({key:i,val:e[i]}))||[];return t.sort((i,o)=>i.val-o.val),t.reduce((i,o)=>({...i,[o.key]:o.val}),{})};function dE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:o=5,...l}=e,u=fE(t),c=Object.keys(u);function d(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${i})`}function m(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-o/100}${i})`}function p(v,S){const C=c.indexOf(S);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${i}) and (max-width:${(C!==-1&&typeof t[c[C]]=="number"?t[c[C]]:S)-o/100}${i})`}function g(v){return c.indexOf(v)+1<c.length?p(v,c[c.indexOf(v)+1]):d(v)}function y(v){const S=c.indexOf(v);return S===0?d(c[1]):S===c.length-1?m(c[S]):p(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:u,up:d,down:m,between:p,only:g,not:y,unit:i,...l}}function cg(e,t){if(!e.containerQueries)return t;const i=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,l)=>{const u=/min-width:\s*([0-9.]+)/;return+(o.match(u)?.[1]||0)-+(l.match(u)?.[1]||0)});return i.length?i.reduce((o,l)=>{const u=t[l];return delete o[l],o[l]=u,o},{...t}):t}function hE(e,t){return t==="@"||t.startsWith("@")&&(e.some(i=>t.startsWith(`@${i}`))||!!t.match(/^@\d/))}function pE(e,t){const i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,o,l]=i,u=Number.isNaN(+o)?o||0:+o;return e.containerQueries(l).up(u)}function mE(e){const t=(u,c)=>u.replace("@media",c?`@container ${c}`:"@container");function i(u,c){u.up=(...d)=>t(e.breakpoints.up(...d),c),u.down=(...d)=>t(e.breakpoints.down(...d),c),u.between=(...d)=>t(e.breakpoints.between(...d),c),u.only=(...d)=>t(e.breakpoints.only(...d),c),u.not=(...d)=>{const m=t(e.breakpoints.not(...d),c);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const o={},l=u=>(i(o,u),o);return i(l),{...e,containerQueries:l}}const gE={borderRadius:4};function Ka(e,t){return t?yn(e,t,{clone:!1}):e}const Ns={xs:0,sm:600,md:900,lg:1200,xl:1536},fg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ns[e]}px)`},yE={containerQueries:e=>({up:t=>{let i=typeof t=="number"?t:Ns[t]||t;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function Hr(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const u=o.breakpoints||fg;return t.reduce((c,d,m)=>(c[u.up(u.keys[m])]=i(t[m]),c),{})}if(typeof t=="object"){const u=o.breakpoints||fg;return Object.keys(t).reduce((c,d)=>{if(hE(u.keys,d)){const m=pE(o.containerQueries?o:yE,d);m&&(c[m]=i(t[d],d))}else if(Object.keys(u.values||Ns).includes(d)){const m=u.up(d);c[m]=i(t[d],d)}else{const m=d;c[m]=t[m]}return c},{})}return i(t)}function bE(e={}){return e.keys?.reduce((i,o)=>{const l=e.up(o);return i[l]={},i},{})||{}}function dg(e,t){return e.reduce((i,o)=>{const l=i[o];return(!l||Object.keys(l).length===0)&&delete i[o],i},t)}function Ee(e){if(typeof e!="string")throw new Error(Pr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zs(e,t,i=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&i){const o=`vars.${t}`.split(".").reduce((l,u)=>l&&l[u]?l[u]:null,e);if(o!=null)return o}return t.split(".").reduce((o,l)=>o&&o[l]!=null?o[l]:null,e)}function Bs(e,t,i,o=i){let l;return typeof e=="function"?l=e(i):Array.isArray(e)?l=e[i]||o:l=zs(e,i)||o,t&&(l=t(l,o,e)),l}function Pt(e){const{prop:t,cssProperty:i=e.prop,themeKey:o,transform:l}=e,u=c=>{if(c[t]==null)return null;const d=c[t],m=c.theme,p=zs(m,o)||{};return Hr(c,d,y=>{let v=Bs(p,l,y);return y===v&&typeof y=="string"&&(v=Bs(p,l,`${t}${y==="default"?"":Ee(y)}`,y)),i===!1?v:{[i]:v}})};return u.propTypes={},u.filterProps=[t],u}function SE(e){const t={};return i=>(t[i]===void 0&&(t[i]=e(i)),t[i])}const vE={m:"margin",p:"padding"},xE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wE=SE(e=>{if(e.length>2)if(hg[e])e=hg[e];else return[e];const[t,i]=e.split(""),o=vE[t],l=xE[i]||"";return Array.isArray(l)?l.map(u=>o+u):[o+l]}),gf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...gf,...yf];function Qa(e,t,i,o){const l=zs(e,t,!0)??i;return typeof l=="number"||typeof l=="string"?u=>typeof u=="string"?u:typeof l=="string"?l.startsWith("var(")&&u===0?0:l.startsWith("var(")&&u===1?l:`calc(${u} * ${l})`:l*u:Array.isArray(l)?u=>{if(typeof u=="string")return u;const c=Math.abs(u),d=l[c];return u>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof l=="function"?l:()=>{}}function bf(e){return Qa(e,"spacing",8)}function Za(e,t){return typeof t=="string"||t==null?t:e(t)}function EE(e,t){return i=>e.reduce((o,l)=>(o[l]=Za(t,i),o),{})}function CE(e,t,i,o){if(!t.includes(i))return null;const l=wE(i),u=EE(l,o),c=e[i];return Hr(e,c,u)}function pg(e,t){const i=bf(e.theme);return Object.keys(e).map(o=>CE(e,t,o,i)).reduce(Ka,{})}function It(e){return pg(e,gf)}It.propTypes={},It.filterProps=gf;function $t(e){return pg(e,yf)}$t.propTypes={},$t.filterProps=yf;function mg(e=8,t=bf({spacing:e})){if(e.mui)return e;const i=(...o)=>(o.length===0?[1]:o).map(u=>{const c=t(u);return typeof c=="number"?`${c}px`:c}).join(" ");return i.mui=!0,i}function Ds(...e){const t=e.reduce((o,l)=>(l.filterProps.forEach(u=>{o[u]=l}),o),{}),i=o=>Object.keys(o).reduce((l,u)=>t[u]?Ka(l,t[u](o)):l,{});return i.propTypes={},i.filterProps=e.reduce((o,l)=>o.concat(l.filterProps),[]),i}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function Zn(e,t){return Pt({prop:e,themeKey:"borders",transform:t})}const TE=Zn("border",Qn),_E=Zn("borderTop",Qn),AE=Zn("borderRight",Qn),kE=Zn("borderBottom",Qn),RE=Zn("borderLeft",Qn),OE=Zn("borderColor"),ME=Zn("borderTopColor"),NE=Zn("borderRightColor"),zE=Zn("borderBottomColor"),BE=Zn("borderLeftColor"),DE=Zn("outline",Qn),IE=Zn("outlineColor"),Is=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qa(e.theme,"shape.borderRadius",4),i=o=>({borderRadius:Za(t,o)});return Hr(e,e.borderRadius,i)}return null};Is.propTypes={},Is.filterProps=["borderRadius"],Ds(TE,_E,AE,kE,RE,OE,ME,NE,zE,BE,Is,DE,IE);const $s=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qa(e.theme,"spacing",8),i=o=>({gap:Za(t,o)});return Hr(e,e.gap,i)}return null};$s.propTypes={},$s.filterProps=["gap"];const Us=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qa(e.theme,"spacing",8),i=o=>({columnGap:Za(t,o)});return Hr(e,e.columnGap,i)}return null};Us.propTypes={},Us.filterProps=["columnGap"];const Ls=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qa(e.theme,"spacing",8),i=o=>({rowGap:Za(t,o)});return Hr(e,e.rowGap,i)}return null};Ls.propTypes={},Ls.filterProps=["rowGap"];const $E=Pt({prop:"gridColumn"}),UE=Pt({prop:"gridRow"}),LE=Pt({prop:"gridAutoFlow"}),jE=Pt({prop:"gridAutoColumns"}),PE=Pt({prop:"gridAutoRows"}),HE=Pt({prop:"gridTemplateColumns"}),qE=Pt({prop:"gridTemplateRows"}),VE=Pt({prop:"gridTemplateAreas"}),FE=Pt({prop:"gridArea"});Ds($s,Us,Ls,$E,UE,LE,jE,PE,HE,qE,VE,FE);function Do(e,t){return t==="grey"?t:e}const YE=Pt({prop:"color",themeKey:"palette",transform:Do}),GE=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Do}),XE=Pt({prop:"backgroundColor",themeKey:"palette",transform:Do});Ds(YE,GE,XE);function In(e){return e<=1&&e!==0?`${e*100}%`:e}const KE=Pt({prop:"width",transform:In}),Sf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=i=>{const o=e.theme?.breakpoints?.values?.[i]||Ns[i];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:In(i)}};return Hr(e,e.maxWidth,t)}return null};Sf.filterProps=["maxWidth"];const QE=Pt({prop:"minWidth",transform:In}),ZE=Pt({prop:"height",transform:In}),WE=Pt({prop:"maxHeight",transform:In}),JE=Pt({prop:"minHeight",transform:In});Pt({prop:"size",cssProperty:"width",transform:In}),Pt({prop:"size",cssProperty:"height",transform:In});const eC=Pt({prop:"boxSizing"});Ds(KE,Sf,QE,ZE,WE,JE,eC);const Wa={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Is},color:{themeKey:"palette",transform:Do},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Do},backgroundColor:{themeKey:"palette",transform:Do},p:{style:$t},pt:{style:$t},pr:{style:$t},pb:{style:$t},pl:{style:$t},px:{style:$t},py:{style:$t},padding:{style:$t},paddingTop:{style:$t},paddingRight:{style:$t},paddingBottom:{style:$t},paddingLeft:{style:$t},paddingX:{style:$t},paddingY:{style:$t},paddingInline:{style:$t},paddingInlineStart:{style:$t},paddingInlineEnd:{style:$t},paddingBlock:{style:$t},paddingBlockStart:{style:$t},paddingBlockEnd:{style:$t},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$s},rowGap:{style:Ls},columnGap:{style:Us},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:In},maxWidth:{style:Sf},minWidth:{transform:In},height:{transform:In},maxHeight:{transform:In},minHeight:{transform:In},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function tC(...e){const t=e.reduce((o,l)=>o.concat(Object.keys(l)),[]),i=new Set(t);return e.every(o=>i.size===Object.keys(o).length)}function nC(e,t){return typeof e=="function"?e(t):e}function rC(){function e(i,o,l,u){const c={[i]:o,theme:l},d=u[i];if(!d)return{[i]:o};const{cssProperty:m=i,themeKey:p,transform:g,style:y}=d;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[i]:o};const v=zs(l,p)||{};return y?y(c):Hr(c,o,C=>{let w=Bs(v,g,C);return C===w&&typeof C=="string"&&(w=Bs(v,g,`${i}${C==="default"?"":Ee(C)}`,C)),m===!1?w:{[m]:w}})}function t(i){const{sx:o,theme:l={},nested:u}=i||{};if(!o)return null;const c=l.unstable_sxConfig??Wa;function d(m){let p=m;if(typeof m=="function")p=m(l);else if(typeof m!="object")return m;if(!p)return null;const g=bE(l.breakpoints),y=Object.keys(g);let v=g;return Object.keys(p).forEach(S=>{const C=nC(p[S],l);if(C!=null)if(typeof C=="object")if(c[S])v=Ka(v,e(S,C,l,c));else{const w=Hr({theme:l},C,R=>({[S]:R}));tC(w,C)?v[S]=t({sx:C,theme:l,nested:!0}):v=Ka(v,w)}else v=Ka(v,e(S,C,l,c))}),!u&&l.modularCssLayers?{"@layer sx":cg(l,dg(y,v))}:cg(l,dg(y,v))}return Array.isArray(o)?o.map(d):d(o)}return t}const pi=rC();pi.filterProps=["sx"];function iC(e,t){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||typeof i.getColorSchemeSelector!="function")return{};let o=i.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return i.palette.mode===e?t:{}}function vf(e={},...t){const{breakpoints:i={},palette:o={},spacing:l,shape:u={},...c}=e,d=dE(i),m=mg(l);let p=yn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:m,shape:{...gE,...u}},c);return p=mE(p),p.applyStyles=iC,p=t.reduce((g,y)=>yn(g,y),p),p.unstable_sxConfig={...Wa,...c?.unstable_sxConfig},p.unstable_sx=function(y){return pi({sx:y,theme:this})},p}function oC(e){return Object.keys(e).length===0}function js(e=null){const t=O.useContext(Fa);return!t||oC(t)?e:t}const aC=vf();function xf(e=aC){return js(e)}function wf(e){const t=hi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function gg({styles:e,themeId:t,defaultTheme:i={}}){const o=xf(i),l=t&&o[t]||o;let u=typeof e=="function"?e(l):e;return l.modularCssLayers&&(Array.isArray(u)?u=u.map(c=>wf(typeof c=="function"?c(l):c)):u=wf(u)),Y.jsx(rg,{styles:u})}const lC=e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??Wa;return Object.keys(e).forEach(o=>{i[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function yg(e){const{sx:t,...i}=e,{systemProps:o,otherProps:l}=lC(i);let u;return Array.isArray(t)?u=[o,...t]:typeof t=="function"?u=(...c)=>{const d=t(...c);return Ar(d)?{...o,...d}:o}:u={...o,...t},{...l,sx:u}}const bg=e=>e,Sg=(()=>{let e=bg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bg}}})();function vg(e){var t,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(i=vg(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Ie(){for(var e,t,i=0,o="",l=arguments.length;i<l;i++)(e=arguments[i])&&(t=vg(e))&&(o&&(o+=" "),o+=t);return o}function sC(e={}){const{themeId:t,defaultTheme:i,defaultClassName:o="MuiBox-root",generateClassName:l}=e,u=ig("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(pi);return O.forwardRef(function(m,p){const g=xf(i),{className:y,component:v="div",...S}=yg(m);return Y.jsx(u,{as:v,ref:p,className:Ie(y,l?l(o):o),theme:t&&g[t]||g,...S})})}const uC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function xt(e,t,i="Mui"){const o=uC[t];return o?`${i}-${o}`:`${Sg.generate(e)}-${t}`}function St(e,t,i="Mui"){const o={};return t.forEach(l=>{o[l]=xt(e,l,i)}),o}function xg(e){const{variants:t,...i}=e,o={variants:t,style:hi(i),isProcessed:!0};return o.style===i||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=hi(l.style))}),o}const cC=vf();function Ef(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Yi(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function fC(e){return e?(t,i)=>i[e]:null}function dC(e,t,i){e.theme=mC(e.theme)?i:e.theme[t]||e.theme}function Ps(e,t,i){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(l=>Ps(e,l,i));if(Array.isArray(o?.variants)){let l;if(o.isProcessed)l=i?Yi(o.style,i):o.style;else{const{variants:u,...c}=o;l=i?Yi(hi(c),i):c}return wg(e,o.variants,[l],i)}return o?.isProcessed?i?Yi(hi(o.style),i):o.style:i?Yi(hi(o),i):o}function wg(e,t,i=[],o=void 0){let l;e:for(let u=0;u<t.length;u+=1){const c=t[u];if(typeof c.props=="function"){if(l??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(l))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(l??={...e,...e.ownerState,ownerState:e.ownerState},i.push(o?Yi(hi(c.style(l)),o):c.style(l))):i.push(o?Yi(hi(c.style),o):c.style)}return i}function hC(e={}){const{themeId:t,defaultTheme:i=cC,rootShouldForwardProp:o=Ef,slotShouldForwardProp:l=Ef}=e;function u(d){dC(d,t,i)}return(d,m={})=>{sE(d,T=>T.filter(L=>L!==pi));const{name:p,slot:g,skipVariantsResolver:y,skipSx:v,overridesResolver:S=fC(yC(g)),...C}=m,w=p&&p.startsWith("Mui")||g?"components":"custom",R=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,k=v||!1;let $=Ef;g==="Root"||g==="root"?$=o:g?$=l:gC(d)&&($=void 0);const M=ig(d,{shouldForwardProp:$,label:pC(),...C}),_=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(V){return Ps(V,T,V.theme.modularCssLayers?w:void 0)};if(Ar(T)){const L=xg(T);return function(q){return L.variants?Ps(q,L,q.theme.modularCssLayers?w:void 0):q.theme.modularCssLayers?Yi(L.style,w):L.style}}return T},B=(...T)=>{const L=[],V=T.map(_),q=[];if(L.push(u),p&&S&&q.push(function(K){const j=K.theme.components?.[p]?.styleOverrides;if(!j)return null;const z={};for(const J in j)z[J]=Ps(K,j[J],K.theme.modularCssLayers?"theme":void 0);return S(K,z)}),p&&!R&&q.push(function(K){const j=K.theme?.components?.[p]?.variants;return j?wg(K,j,[],K.theme.modularCssLayers?"theme":void 0):null}),k||q.push(pi),Array.isArray(V[0])){const x=V.shift(),K=new Array(L.length).fill(""),H=new Array(q.length).fill("");let j;j=[...K,...x,...H],j.raw=[...K,...x.raw,...H],L.unshift(j)}const F=[...L,...V,...q],U=M(...F);return d.muiName&&(U.muiName=d.muiName),U};return M.withConfig&&(B.withConfig=M.withConfig),B}}function pC(e,t){return void 0}function mC(e){for(const t in e)return!1;return!0}function gC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ja(e,t,i=!1){const o={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const u=l;if(u==="components"||u==="slots")o[u]={...e[u],...o[u]};else if(u==="componentsProps"||u==="slotProps"){const c=e[u],d=t[u];if(!d)o[u]=c||{};else if(!c)o[u]=d;else{o[u]={...d};for(const m in c)if(Object.prototype.hasOwnProperty.call(c,m)){const p=m;o[u][p]=Ja(c[p],d[p],i)}}}else u==="className"&&i&&t.className?o.className=Ie(e?.className,t?.className):u==="style"&&i&&t.style?o.style={...e?.style,...t?.style}:o[u]===void 0&&(o[u]=e[u])}return o}function bC(e){const{theme:t,name:i,props:o}=e;return!t||!t.components||!t.components[i]||!t.components[i].defaultProps?o:Ja(t.components[i].defaultProps,o)}const kr=typeof window<"u"?O.useLayoutEffect:O.useEffect;function SC(e,t,i,o,l){const[u,c]=O.useState(()=>l&&i?i(e).matches:o?o(e).matches:t);return kr(()=>{if(!i)return;const d=i(e),m=()=>{c(d.matches)};return m(),d.addEventListener("change",m),()=>{d.removeEventListener("change",m)}},[e,i]),u}const Eg={...Os}.useSyncExternalStore;function vC(e,t,i,o,l){const u=O.useCallback(()=>t,[t]),c=O.useMemo(()=>{if(l&&i)return()=>i(e).matches;if(o!==null){const{matches:g}=o(e);return()=>g}return u},[u,e,o,l,i]),[d,m]=O.useMemo(()=>{if(i===null)return[u,()=>()=>{}];const g=i(e);return[()=>g.matches,y=>(g.addEventListener("change",y),()=>{g.removeEventListener("change",y)})]},[u,i,e]);return Eg(m,d,c)}function Cg(e={}){const{themeId:t}=e;return function(o,l={}){let u=js();u&&t&&(u=u[t]||u);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:d=!1,matchMedia:m=c?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:g=!1}=bC({name:"MuiUseMediaQuery",props:l,theme:u});let y=typeof o=="function"?o(u):o;return y=y.replace(/^@media( ?)/m,""),y.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
10
|
+
`)),(Eg!==void 0?vC:SC)(y,d,m,p,g)}}Cg();function xC(e,t=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,i))}function Cf(e,t=0,i=1){return xC(e,t,i)}function wC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let i=e.match(t);return i&&i[0].length===1&&(i=i.map(o=>o+o)),i?`rgb${i.length===4?"a":""}(${i.map((o,l)=>l<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function mi(e){if(e.type)return e;if(e.charAt(0)==="#")return mi(wC(e));const t=e.indexOf("("),i=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(Pr(9,e));let o=e.substring(t+1,e.length-1),l;if(i==="color"){if(o=o.split(" "),l=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(Pr(10,l))}else o=o.split(",");return o=o.map(u=>parseFloat(u)),{type:i,values:o,colorSpace:l}}const EC=e=>{const t=mi(e);return t.values.slice(0,3).map((i,o)=>t.type.includes("hsl")&&o!==0?`${i}%`:i).join(" ")},el=(e,t)=>{try{return EC(e)}catch{return e}};function Hs(e){const{type:t,colorSpace:i}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((l,u)=>u<3?parseInt(l,10):l):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${i} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Tg(e){e=mi(e);const{values:t}=e,i=t[0],o=t[1]/100,l=t[2]/100,u=o*Math.min(l,1-l),c=(p,g=(p+i/30)%12)=>l-u*Math.max(Math.min(g-3,9-g,1),-1);let d="rgb";const m=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",m.push(t[3])),Hs({type:d,values:m})}function Tf(e){e=mi(e);let t=e.type==="hsl"||e.type==="hsla"?mi(Tg(e)).values:e.values;return t=t.map(i=>(e.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function CC(e,t){const i=Tf(e),o=Tf(t);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}function qs(e,t){return e=mi(e),t=Cf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hs(e)}function Gi(e,t,i){try{return qs(e,t)}catch{return e}}function Vs(e,t){if(e=mi(e),t=Cf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]*=1-t;return Hs(e)}function lt(e,t,i){try{return Vs(e,t)}catch{return e}}function Fs(e,t){if(e=mi(e),t=Cf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let i=0;i<3;i+=1)e.values[i]+=(255-e.values[i])*t;else if(e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*t;return Hs(e)}function st(e,t,i){try{return Fs(e,t)}catch{return e}}function TC(e,t=.15){return Tf(e)>.5?Vs(e,t):Fs(e,t)}function Ys(e,t,i){try{return TC(e,t)}catch{return e}}const _g=O.createContext(null);function _f(){return O.useContext(_g)}const _C=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function AC(e,t){return typeof t=="function"?t(e):{...e,...t}}function kC(e){const{children:t,theme:i}=e,o=_f(),l=O.useMemo(()=>{const u=o===null?{...i}:AC(o,i);return u!=null&&(u[_C]=o!==null),u},[i,o]);return Y.jsx(_g.Provider,{value:l,children:t})}const Ag=O.createContext();function RC({value:e,...t}){return Y.jsx(Ag.Provider,{value:e??!0,...t})}const OC=()=>O.useContext(Ag)??!1,kg=O.createContext(void 0);function MC({value:e,children:t}){return Y.jsx(kg.Provider,{value:e,children:t})}function NC(e){const{theme:t,name:i,props:o}=e;if(!t||!t.components||!t.components[i])return o;const l=t.components[i];return l.defaultProps?Ja(l.defaultProps,o,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Ja(l,o,t.components.mergeClassNameAndStyle):o}function zC({props:e,name:t}){const i=O.useContext(kg);return NC({props:e,name:t,theme:{components:i}})}let Rg=0;function BC(e){const[t,i]=O.useState(e),o=e||t;return O.useEffect(()=>{t==null&&(Rg+=1,i(`mui-${Rg}`))},[t]),o}const Og={...Os}.useId;function tl(e){if(Og!==void 0){const t=Og();return e??t}return BC(e)}function DC(e){const t=js(),i=tl()||"",{modularCssLayers:o}=e;let l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!o||t!==null?l="":typeof o=="string"?l=o.replace(/mui(?!\.)/g,l):l=`@layer ${l};`,kr(()=>{const u=document.querySelector("head");if(!u)return;const c=u.firstChild;if(l){if(c&&c.hasAttribute?.("data-mui-layer-order")&&c.getAttribute("data-mui-layer-order")===i)return;const d=document.createElement("style");d.setAttribute("data-mui-layer-order",i),d.textContent=l,u.prepend(d)}else u.querySelector(`style[data-mui-layer-order="${i}"]`)?.remove()},[l,i]),l?Y.jsx(gg,{styles:l}):null}const Mg={};function Ng(e,t,i,o=!1){return O.useMemo(()=>{const l=e&&t[e]||t;if(typeof i=="function"){const u=i(l),c=e?{...t,[e]:u}:u;return o?()=>c:c}return e?{...t,[e]:i}:{...t,...i}},[e,t,i,o])}function zg(e){const{children:t,theme:i,themeId:o}=e,l=js(Mg),u=_f()||Mg,c=Ng(o,l,i),d=Ng(o,u,i,!0),m=(o?c[o]:c).direction==="rtl",p=DC(c);return Y.jsx(kC,{theme:d,children:Y.jsx(Fa.Provider,{value:c,children:Y.jsx(RC,{value:m,children:Y.jsxs(MC,{value:o?c[o].components:c.components,children:[p,t]})})})})}const Bg={theme:void 0};function IC(e){let t,i;return function(l){let u=t;return(u===void 0||l.theme!==i)&&(Bg.theme=l.theme,u=xg(e(Bg)),t=u,i=l.theme),u}}const Af="mode",kf="color-scheme",$C="data-color-scheme";function UC(e){const{defaultMode:t="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:o="dark",modeStorageKey:l=Af,colorSchemeStorageKey:u=kf,attribute:c=$C,colorSchemeNode:d="document.documentElement",nonce:m}=e||{};let p="",g=c;if(c==="class"&&(g=".%s"),c==="data"&&(g="[data-%s]"),g.startsWith(".")){const v=g.substring(1);p+=`${d}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
|
|
11
|
+
${d}.classList.add('${v}'.replace('%s', colorScheme));`}const y=g.match(/\[([^[\]]+)\]/);if(y){const[v,S]=y[1].split("=");S||(p+=`${d}.removeAttribute('${v}'.replace('%s', light));
|
|
12
|
+
${d}.removeAttribute('${v}'.replace('%s', dark));`),p+=`
|
|
13
|
+
${d}.setAttribute('${v}'.replace('%s', colorScheme), ${S?`${S}.replace('%s', colorScheme)`:'""'});`}else g!==".%s"&&(p+=`${d}.setAttribute('${g}', colorScheme);`);return Y.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
14
|
+
try {
|
|
15
|
+
let colorScheme = '';
|
|
16
|
+
const mode = localStorage.getItem('${l}') || '${t}';
|
|
17
|
+
const dark = localStorage.getItem('${u}-dark') || '${o}';
|
|
18
|
+
const light = localStorage.getItem('${u}-light') || '${i}';
|
|
19
|
+
if (mode === 'system') {
|
|
20
|
+
// handle system mode
|
|
21
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
22
|
+
if (mql.matches) {
|
|
23
|
+
colorScheme = dark
|
|
24
|
+
} else {
|
|
25
|
+
colorScheme = light
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (mode === 'light') {
|
|
29
|
+
colorScheme = light;
|
|
30
|
+
}
|
|
31
|
+
if (mode === 'dark') {
|
|
32
|
+
colorScheme = dark;
|
|
33
|
+
}
|
|
34
|
+
if (colorScheme) {
|
|
35
|
+
${p}
|
|
36
|
+
}
|
|
37
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function LC(){}const jC=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(i){if(typeof window>"u")return;if(!t)return i;let o;try{o=t.localStorage.getItem(e)}catch{}return o||i},set:i=>{if(t)try{t.localStorage.setItem(e,i)}catch{}},subscribe:i=>{if(!t)return LC;const o=l=>{const u=l.newValue;l.key===e&&i(u)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function Rf(){}function Dg(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ig(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function PC(e){return Ig(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function HC(e){const{defaultMode:t="light",defaultLightColorScheme:i,defaultDarkColorScheme:o,supportedColorSchemes:l=[],modeStorageKey:u=Af,colorSchemeStorageKey:c=kf,storageWindow:d=typeof window>"u"?void 0:window,storageManager:m=jC,noSsr:p=!1}=e,g=l.join(","),y=l.length>1,v=O.useMemo(()=>m?.({key:u,storageWindow:d}),[m,u,d]),S=O.useMemo(()=>m?.({key:`${c}-light`,storageWindow:d}),[m,c,d]),C=O.useMemo(()=>m?.({key:`${c}-dark`,storageWindow:d}),[m,c,d]),[w,R]=O.useState(()=>{const V=v?.get(t)||t,q=S?.get(i)||i,F=C?.get(o)||o;return{mode:V,systemMode:Dg(V),lightColorScheme:q,darkColorScheme:F}}),[k,$]=O.useState(p||!y);O.useEffect(()=>{$(!0)},[]);const M=PC(w),_=O.useCallback(V=>{R(q=>{if(V===q.mode)return q;const F=V??t;return v?.set(F),{...q,mode:F,systemMode:Dg(F)}})},[v,t]),B=O.useCallback(V=>{V?typeof V=="string"?V&&!g.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):R(q=>{const F={...q};return Ig(q,U=>{U==="light"&&(S?.set(V),F.lightColorScheme=V),U==="dark"&&(C?.set(V),F.darkColorScheme=V)}),F}):R(q=>{const F={...q},U=V.light===null?i:V.light,x=V.dark===null?o:V.dark;return U&&(g.includes(U)?(F.lightColorScheme=U,S?.set(U)):console.error(`\`${U}\` does not exist in \`theme.colorSchemes\`.`)),x&&(g.includes(x)?(F.darkColorScheme=x,C?.set(x)):console.error(`\`${x}\` does not exist in \`theme.colorSchemes\`.`)),F}):R(q=>(S?.set(i),C?.set(o),{...q,lightColorScheme:i,darkColorScheme:o}))},[g,S,C,i,o]),T=O.useCallback(V=>{w.mode==="system"&&R(q=>{const F=V?.matches?"dark":"light";return q.systemMode===F?q:{...q,systemMode:F}})},[w.mode]),L=O.useRef(T);return L.current=T,O.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const V=(...F)=>L.current(...F),q=window.matchMedia("(prefers-color-scheme: dark)");return q.addListener(V),V(q),()=>{q.removeListener(V)}},[y]),O.useEffect(()=>{if(y){const V=v?.subscribe(U=>{(!U||["light","dark","system"].includes(U))&&_(U||t)})||Rf,q=S?.subscribe(U=>{(!U||g.match(U))&&B({light:U})})||Rf,F=C?.subscribe(U=>{(!U||g.match(U))&&B({dark:U})})||Rf;return()=>{V(),q(),F()}}},[B,_,g,t,d,y,v,S,C]),{...w,mode:k?w.mode:void 0,systemMode:k?w.systemMode:void 0,colorScheme:k?M:void 0,setMode:_,setColorScheme:B}}const qC="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function VC(e){const{themeId:t,theme:i={},modeStorageKey:o=Af,colorSchemeStorageKey:l=kf,disableTransitionOnChange:u=!1,defaultColorScheme:c,resolveTheme:d}=e,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=O.createContext(void 0),g=()=>O.useContext(p)||m,y={},v={};function S(k){const{children:$,theme:M,modeStorageKey:_=o,colorSchemeStorageKey:B=l,disableTransitionOnChange:T=u,storageManager:L,storageWindow:V=typeof window>"u"?void 0:window,documentNode:q=typeof document>"u"?void 0:document,colorSchemeNode:F=typeof document>"u"?void 0:document.documentElement,disableNestedContext:U=!1,disableStyleSheetGeneration:x=!1,defaultMode:K="system",forceThemeRerender:H=!1,noSsr:j}=k,z=O.useRef(!1),J=_f(),ce=O.useContext(p),ue=!!ce&&!U,N=O.useMemo(()=>M||(typeof i=="function"?i():i),[M]),D=N[t],W=D||N,{colorSchemes:A=y,components:fe=v,cssVarPrefix:me}=W,he=Object.keys(A).filter(te=>!!A[te]).join(","),be=O.useMemo(()=>he.split(","),[he]),Ue=typeof c=="string"?c:c.light,Ce=typeof c=="string"?c:c.dark,Te=A[Ue]&&A[Ce]?K:A[W.defaultColorScheme]?.palette?.mode||W.palette?.mode,{mode:ze,setMode:Ze,systemMode:Qt,lightColorScheme:Oe,darkColorScheme:qe,colorScheme:Vt,setColorScheme:zt}=HC({supportedColorSchemes:be,defaultLightColorScheme:Ue,defaultDarkColorScheme:Ce,modeStorageKey:_,colorSchemeStorageKey:B,defaultMode:Te,storageManager:L,storageWindow:V,noSsr:j});let mt=ze,ct=Vt;ue&&(mt=ce.mode,ct=ce.colorScheme);let Bt=ct||W.defaultColorScheme;W.vars&&!H&&(Bt=W.defaultColorScheme);const ft=O.useMemo(()=>{const te=W.generateThemeVars?.()||W.vars,se={...W,components:fe,colorSchemes:A,cssVarPrefix:me,vars:te};if(typeof se.generateSpacing=="function"&&(se.spacing=se.generateSpacing()),Bt){const ge=A[Bt];ge&&typeof ge=="object"&&Object.keys(ge).forEach(Ae=>{ge[Ae]&&typeof ge[Ae]=="object"?se[Ae]={...se[Ae],...ge[Ae]}:se[Ae]=ge[Ae]})}return d?d(se):se},[W,Bt,fe,A,me]),Se=W.colorSchemeSelector;kr(()=>{if(ct&&F&&Se&&Se!=="media"){const te=Se;let se=Se;if(te==="class"&&(se=".%s"),te==="data"&&(se="[data-%s]"),te?.startsWith("data-")&&!te.includes("%s")&&(se=`[${te}="%s"]`),se.startsWith("."))F.classList.remove(...be.map(ge=>se.substring(1).replace("%s",ge))),F.classList.add(se.substring(1).replace("%s",ct));else{const ge=se.replace("%s",ct).match(/\[([^\]]+)\]/);if(ge){const[Ae,Le]=ge[1].split("=");Le||be.forEach(Pe=>{F.removeAttribute(Ae.replace(ct,Pe))}),F.setAttribute(Ae,Le?Le.replace(/"|'/g,""):"")}else F.setAttribute(se,ct)}}},[ct,Se,F,be]),O.useEffect(()=>{let te;if(T&&z.current&&q){const se=q.createElement("style");se.appendChild(q.createTextNode(qC)),q.head.appendChild(se),window.getComputedStyle(q.body),te=setTimeout(()=>{q.head.removeChild(se)},1)}return()=>{clearTimeout(te)}},[ct,T,q]),O.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]);const Hn=O.useMemo(()=>({allColorSchemes:be,colorScheme:ct,darkColorScheme:qe,lightColorScheme:Oe,mode:mt,setColorScheme:zt,setMode:Ze,systemMode:Qt}),[be,ct,qe,Oe,mt,zt,Ze,Qt,ft.colorSchemeSelector]);let He=!0;(x||W.cssVariables===!1||ue&&J?.cssVarPrefix===me)&&(He=!1);const Sr=Y.jsxs(O.Fragment,{children:[Y.jsx(zg,{themeId:D?t:void 0,theme:ft,children:$}),He&&Y.jsx(rg,{styles:ft.generateStyleSheets?.()||[]})]});return ue?Sr:Y.jsx(p.Provider,{value:Hn,children:Sr})}const C=typeof c=="string"?c:c.light,w=typeof c=="string"?c:c.dark;return{CssVarsProvider:S,useColorScheme:g,getInitColorSchemeScript:k=>UC({colorSchemeStorageKey:l,defaultLightColorScheme:C,defaultDarkColorScheme:w,modeStorageKey:o,...k})}}function FC(e=""){function t(...o){if(!o.length)return"";const l=o[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...o.slice(1))})`:`, ${l}`}return(o,...l)=>`var(--${e?`${e}-`:""}${o}${t(...l)})`}const $g=(e,t,i,o=[])=>{let l=e;t.forEach((u,c)=>{c===t.length-1?Array.isArray(l)?l[Number(u)]=i:l&&typeof l=="object"&&(l[u]=i):l&&typeof l=="object"&&(l[u]||(l[u]=o.includes(u)?[]:{}),l=l[u])})},YC=(e,t,i)=>{function o(l,u=[],c=[]){Object.entries(l).forEach(([d,m])=>{(!i||i&&!i([...u,d]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?o(m,[...u,d],Array.isArray(m)?[...c,d]:c):t([...u,d],m,c))})}o(e)},GC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Of(e,t){const{prefix:i,shouldSkipGeneratingVar:o}=t||{},l={},u={},c={};return YC(e,(d,m,p)=>{if((typeof m=="string"||typeof m=="number")&&(!o||!o(d,m))){const g=`--${i?`${i}-`:""}${d.join("-")}`,y=GC(d,m);Object.assign(l,{[g]:y}),$g(u,d,`var(${g})`,p),$g(c,d,`var(${g}, ${y})`,p)}},d=>d[0]==="vars"),{css:l,vars:u,varsWithDefaults:c}}function XC(e,t={}){const{getSelector:i=k,disableCssColorScheme:o,colorSchemeSelector:l,enableContrastVars:u}=t,{colorSchemes:c={},components:d,defaultColorScheme:m="light",...p}=e,{vars:g,css:y,varsWithDefaults:v}=Of(p,t);let S=v;const C={},{[m]:w,...R}=c;if(Object.entries(R||{}).forEach(([_,B])=>{const{vars:T,css:L,varsWithDefaults:V}=Of(B,t);S=yn(S,V),C[_]={css:L,vars:T}}),w){const{css:_,vars:B,varsWithDefaults:T}=Of(w,t);S=yn(S,T),C[m]={css:_,vars:B}}function k(_,B){let T=l;if(l==="class"&&(T=".%s"),l==="data"&&(T="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(T=`[${l}="%s"]`),_){if(T==="media")return e.defaultColorScheme===_?":root":{[`@media (prefers-color-scheme: ${c[_]?.palette?.mode||_})`]:{":root":B}};if(T)return e.defaultColorScheme===_?`:root, ${T.replace("%s",String(_))}`:T.replace("%s",String(_))}return":root"}return{vars:S,generateThemeVars:()=>{let _={...g};return Object.entries(C).forEach(([,{vars:B}])=>{_=yn(_,B)}),_},generateStyleSheets:()=>{const _=[],B=e.defaultColorScheme||"light";function T(q,F){Object.keys(F).length&&_.push(typeof q=="string"?{[q]:{...F}}:q)}T(i(void 0,{...y}),y);const{[B]:L,...V}=C;if(L){const{css:q}=L,F=c[B]?.palette?.mode,U=!o&&F?{colorScheme:F,...q}:{...q};T(i(B,{...U}),U)}return Object.entries(V).forEach(([q,{css:F}])=>{const U=c[q]?.palette?.mode,x=!o&&U?{colorScheme:U,...F}:{...F};T(i(q,{...x}),x)}),u&&_.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),_}}}function KC(e){return function(i){return e==="media"?`@media (prefers-color-scheme: ${i})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${i}"] &`:e==="class"?`.${i} &`:e==="data"?`[data-${i}] &`:`${e.replace("%s",i)} &`:"&"}}function wt(e,t,i=void 0){const o={};for(const l in e){const u=e[l];let c="",d=!0;for(let m=0;m<u.length;m+=1){const p=u[m];p&&(c+=(d===!0?"":" ")+t(p),d=!1,i&&i[p]&&(c+=" "+i[p]))}o[l]=c}return o}function Mf(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ug(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ga.white,default:Ga.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Lg=Ug();function jg(){return{text:{primary:Ga.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ga.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Nf=jg();function Pg(e,t,i,o){const l=o.light||o,u=o.dark||o*1.5;e[t]||(e.hasOwnProperty(i)?e[t]=e[i]:t==="light"?e.light=Fs(e.main,l):t==="dark"&&(e.dark=Vs(e.main,u)))}function Hg(e,t,i,o,l){const u=l.light||l,c=l.dark||l*1.5;t[i]||(t.hasOwnProperty(o)?t[i]=t[o]:i==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(u*100).toFixed(0)}%)`:i==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function QC(e="light"){return e==="dark"?{main:No[200],light:No[50],dark:No[400]}:{main:No[700],light:No[400],dark:No[800]}}function ZC(e="light"){return e==="dark"?{main:Mo[200],light:Mo[50],dark:Mo[400]}:{main:Mo[500],light:Mo[300],dark:Mo[700]}}function WC(e="light"){return e==="dark"?{main:Oo[500],light:Oo[300],dark:Oo[700]}:{main:Oo[700],light:Oo[400],dark:Oo[800]}}function JC(e="light"){return e==="dark"?{main:zo[400],light:zo[300],dark:zo[700]}:{main:zo[700],light:zo[500],dark:zo[900]}}function e2(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[800],light:Bo[500],dark:Bo[900]}}function t2(e="light"){return e==="dark"?{main:Xa[400],light:Xa[300],dark:Xa[700]}:{main:"#ed6c02",light:Xa[500],dark:Xa[900]}}function n2(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function zf(e){const{mode:t="light",contrastThreshold:i=3,tonalOffset:o=.2,colorSpace:l,...u}=e,c=e.primary||QC(t),d=e.secondary||ZC(t),m=e.error||WC(t),p=e.info||JC(t),g=e.success||e2(t),y=e.warning||t2(t);function v(R){return l?n2(R):CC(R,Nf.text.primary)>=i?Nf.text.primary:Lg.text.primary}const S=({color:R,name:k,mainShade:$=500,lightShade:M=300,darkShade:_=700})=>{if(R={...R},!R.main&&R[$]&&(R.main=R[$]),!R.hasOwnProperty("main"))throw new Error(Pr(11,k?` (${k})`:"",$));if(typeof R.main!="string")throw new Error(Pr(12,k?` (${k})`:"",JSON.stringify(R.main)));return l?(Hg(l,R,"light",M,o),Hg(l,R,"dark",_,o)):(Pg(R,"light",M,o),Pg(R,"dark",_,o)),R.contrastText||(R.contrastText=v(R.main)),R};let C;return t==="light"?C=Ug():t==="dark"&&(C=jg()),yn({common:{...Ga},mode:t,primary:S({color:c,name:"primary"}),secondary:S({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:m,name:"error"}),warning:S({color:y,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:g,name:"success"}),grey:Jw,contrastThreshold:i,getContrastText:v,augmentColor:S,tonalOffset:o,...C},u)}function r2(e){const t={};return Object.entries(e).forEach(o=>{const[l,u]=o;typeof u=="object"&&(t[l]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),t}function i2(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function o2(e){return Math.round(e*1e5)/1e5}const qg={textTransform:"uppercase"},Vg='"Roboto", "Helvetica", "Arial", sans-serif';function Fg(e,t){const{fontFamily:i=Vg,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:m=16,allVariants:p,pxToRem:g,...y}=typeof t=="function"?t(e):t,v=o/14,S=g||(R=>`${R/m*v}rem`),C=(R,k,$,M,_)=>({fontFamily:i,fontWeight:R,fontSize:S(k),lineHeight:$,...i===Vg?{letterSpacing:`${o2(M/k)}em`}:{},..._,...p}),w={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(u,48,1.167,0),h4:C(u,34,1.235,.25),h5:C(u,24,1.334,0),h6:C(c,20,1.6,.15),subtitle1:C(u,16,1.75,.15),subtitle2:C(c,14,1.57,.1),body1:C(u,16,1.5,.15),body2:C(u,14,1.43,.15),button:C(c,14,1.75,.4,qg),caption:C(u,12,1.66,.4),overline:C(u,12,2.66,1,qg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yn({htmlFontSize:m,pxToRem:S,fontFamily:i,fontSize:o,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d,...w},y,{clone:!1})}const a2=.2,l2=.14,s2=.12;function Rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${a2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${l2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${s2})`].join(",")}const u2=["none",Rt(0,2,1,-1,0,1,1,0,0,1,3,0),Rt(0,3,1,-2,0,2,2,0,0,1,5,0),Rt(0,3,3,-2,0,3,4,0,0,1,8,0),Rt(0,2,4,-1,0,4,5,0,0,1,10,0),Rt(0,3,5,-1,0,5,8,0,0,1,14,0),Rt(0,3,5,-1,0,6,10,0,0,1,18,0),Rt(0,4,5,-2,0,7,10,1,0,2,16,1),Rt(0,5,5,-3,0,8,10,1,0,3,14,2),Rt(0,5,6,-3,0,9,12,1,0,3,16,2),Rt(0,6,6,-3,0,10,14,1,0,4,18,3),Rt(0,6,7,-4,0,11,15,1,0,4,20,3),Rt(0,7,8,-4,0,12,17,2,0,5,22,4),Rt(0,7,8,-4,0,13,19,2,0,5,24,4),Rt(0,7,9,-4,0,14,21,2,0,5,26,4),Rt(0,8,9,-5,0,15,22,2,0,6,28,5),Rt(0,8,10,-5,0,16,24,2,0,6,30,5),Rt(0,8,11,-5,0,17,26,2,0,6,32,5),Rt(0,9,11,-5,0,18,28,2,0,7,34,6),Rt(0,9,12,-6,0,19,29,2,0,7,36,6),Rt(0,10,13,-6,0,20,31,3,0,8,38,7),Rt(0,10,13,-6,0,21,33,3,0,8,40,7),Rt(0,10,14,-6,0,22,35,3,0,8,42,7),Rt(0,11,14,-7,0,23,36,3,0,9,44,8),Rt(0,11,15,-7,0,24,38,3,0,9,46,8)],c2={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},f2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yg(e){return`${Math.round(e)}ms`}function d2(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function h2(e){const t={...c2,...e.easing},i={...f2,...e.duration};return{getAutoHeightDuration:d2,create:(l=["all"],u={})=>{const{duration:c=i.standard,easing:d=t.easeInOut,delay:m=0,...p}=u;return(Array.isArray(l)?l:[l]).map(g=>`${g} ${typeof c=="string"?c:Yg(c)} ${d} ${typeof m=="string"?m:Yg(m)}`).join(",")},...e,easing:t,duration:i}}const p2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function m2(e){return Ar(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Gg(e={}){const t={...e};function i(o){const l=Object.entries(o);for(let u=0;u<l.length;u++){const[c,d]=l[u];!m2(d)||c.startsWith("unstable_")?delete o[c]:Ar(d)&&(o[c]={...d},i(o[c]))}}return i(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
38
|
+
|
|
39
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
40
|
+
|
|
41
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
42
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
43
|
+
|
|
44
|
+
export default theme;`}function Xg(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const g2=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let i=0;for(let o=0;o<t.length;o+=1)i+=+t[o];return i};function y2(e){Object.assign(e,{alpha(t,i){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof i=="string"?`calc(${i})`:i})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:qs(t,g2(i))},lighten(t,i){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Xg(i)})`:Fs(t,i)},darken(t,i){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Xg(i)})`:Vs(t,i)}})}function Bf(e={},...t){const{breakpoints:i,mixins:o={},spacing:l,palette:u={},transitions:c={},typography:d={},shape:m,colorSpace:p,...g}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Pr(20));const y=zf({...u,colorSpace:p}),v=vf(e);let S=yn(v,{mixins:i2(v.breakpoints,o),palette:y,shadows:u2.slice(),typography:Fg(y,d),transitions:h2(c),zIndex:{...p2}});return S=yn(S,g),S=t.reduce((C,w)=>yn(C,w),S),S.unstable_sxConfig={...Wa,...g?.unstable_sxConfig},S.unstable_sx=function(w){return pi({sx:w,theme:this})},S.toRuntimeSource=Gg,y2(S),S}function Df(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const b2=[...Array(25)].map((e,t)=>{if(t===0)return"none";const i=Df(t);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function Kg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Qg(e){return e==="dark"?b2:[]}function S2(e){const{palette:t={mode:"light"},opacity:i,overlays:o,colorSpace:l,...u}=e,c=zf({...t,colorSpace:l});return{palette:c,opacity:{...Kg(c.mode),...i},overlays:o||Qg(c.mode),...u}}function v2(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const x2=e=>[...[...Array(25)].map((t,i)=>`--${e?`${e}-`:""}overlays-${i}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],w2=e=>(t,i)=>{const o=e.rootSelector||":root",l=e.colorSchemeSelector;let u=l;if(l==="class"&&(u=".%s"),l==="data"&&(u="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(u=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return x2(e.cssVarPrefix).forEach(d=>{c[d]=i[d],delete i[d]}),u==="media"?{[o]:i,"@media (prefers-color-scheme: dark)":{[o]:c}}:u?{[u.replace("%s",t)]:c,[`${o}, ${u.replace("%s",t)}`]:i}:{[o]:{...i,...c}}}if(u&&u!=="media")return`${o}, ${u.replace("%s",String(t))}`}else if(t){if(u==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:i}};if(u)return u.replace("%s",String(t))}return o};function E2(e,t){t.forEach(i=>{e[i]||(e[i]={})})}function re(e,t,i){!e[t]&&i&&(e[t]=i)}function nl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Tg(e)}function qr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=el(nl(e[t])))}function C2(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Rr=e=>{try{return e()}catch{}},T2=(e="mui")=>FC(e);function If(e,t,i,o,l){if(!i)return;i=i===!0?{}:i;const u=l==="dark"?"dark":"light";if(!o){t[l]=S2({...i,palette:{mode:u,...i?.palette},colorSpace:e});return}const{palette:c,...d}=Bf({...o,palette:{mode:u,...i?.palette},colorSpace:e});return t[l]={...i,palette:c,opacity:{...Kg(u),...i?.opacity},overlays:i?.overlays||Qg(u)},d}function _2(e={},...t){const{colorSchemes:i={light:!0},defaultColorScheme:o,disableCssColorScheme:l=!1,cssVarPrefix:u="mui",nativeColor:c=!1,shouldSkipGeneratingVar:d=v2,colorSchemeSelector:m=i.light&&i.dark?"media":void 0,rootSelector:p=":root",...g}=e,y=Object.keys(i)[0],v=o||(i.light&&y!=="light"?"light":y),S=T2(u),{[v]:C,light:w,dark:R,...k}=i,$={...k};let M=C;if((v==="dark"&&!("dark"in i)||v==="light"&&!("light"in i))&&(M=!0),!M)throw new Error(Pr(21,v));let _;c&&(_="oklch");const B=If(_,$,M,g,v);w&&!$.light&&If(_,$,w,void 0,"light"),R&&!$.dark&&If(_,$,R,void 0,"dark");let T={defaultColorScheme:v,...B,cssVarPrefix:u,colorSchemeSelector:m,rootSelector:p,getCssVar:S,colorSchemes:$,font:{...r2(B.typography),...B.font},spacing:C2(g.spacing)};Object.keys(T.colorSchemes).forEach(U=>{const x=T.colorSchemes[U].palette,K=j=>{const z=j.split("-"),J=z[1],ce=z[2];return S(j,x[J][ce])};x.mode==="light"&&(re(x.common,"background","#fff"),re(x.common,"onBackground","#000")),x.mode==="dark"&&(re(x.common,"background","#000"),re(x.common,"onBackground","#fff"));function H(j,z,J){if(_){let ce;return j===Gi&&(ce=`transparent ${((1-J)*100).toFixed(0)}%`),j===lt&&(ce=`#000 ${(J*100).toFixed(0)}%`),j===st&&(ce=`#fff ${(J*100).toFixed(0)}%`),`color-mix(in ${_}, ${z}, ${ce})`}return j(z,J)}if(E2(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){re(x.Alert,"errorColor",H(lt,x.error.light,.6)),re(x.Alert,"infoColor",H(lt,x.info.light,.6)),re(x.Alert,"successColor",H(lt,x.success.light,.6)),re(x.Alert,"warningColor",H(lt,x.warning.light,.6)),re(x.Alert,"errorFilledBg",K("palette-error-main")),re(x.Alert,"infoFilledBg",K("palette-info-main")),re(x.Alert,"successFilledBg",K("palette-success-main")),re(x.Alert,"warningFilledBg",K("palette-warning-main")),re(x.Alert,"errorFilledColor",Rr(()=>x.getContrastText(x.error.main))),re(x.Alert,"infoFilledColor",Rr(()=>x.getContrastText(x.info.main))),re(x.Alert,"successFilledColor",Rr(()=>x.getContrastText(x.success.main))),re(x.Alert,"warningFilledColor",Rr(()=>x.getContrastText(x.warning.main))),re(x.Alert,"errorStandardBg",H(st,x.error.light,.9)),re(x.Alert,"infoStandardBg",H(st,x.info.light,.9)),re(x.Alert,"successStandardBg",H(st,x.success.light,.9)),re(x.Alert,"warningStandardBg",H(st,x.warning.light,.9)),re(x.Alert,"errorIconColor",K("palette-error-main")),re(x.Alert,"infoIconColor",K("palette-info-main")),re(x.Alert,"successIconColor",K("palette-success-main")),re(x.Alert,"warningIconColor",K("palette-warning-main")),re(x.AppBar,"defaultBg",K("palette-grey-100")),re(x.Avatar,"defaultBg",K("palette-grey-400")),re(x.Button,"inheritContainedBg",K("palette-grey-300")),re(x.Button,"inheritContainedHoverBg",K("palette-grey-A100")),re(x.Chip,"defaultBorder",K("palette-grey-400")),re(x.Chip,"defaultAvatarColor",K("palette-grey-700")),re(x.Chip,"defaultIconColor",K("palette-grey-700")),re(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),re(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),re(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),re(x.LinearProgress,"primaryBg",H(st,x.primary.main,.62)),re(x.LinearProgress,"secondaryBg",H(st,x.secondary.main,.62)),re(x.LinearProgress,"errorBg",H(st,x.error.main,.62)),re(x.LinearProgress,"infoBg",H(st,x.info.main,.62)),re(x.LinearProgress,"successBg",H(st,x.success.main,.62)),re(x.LinearProgress,"warningBg",H(st,x.warning.main,.62)),re(x.Skeleton,"bg",_?H(Gi,x.text.primary,.11):`rgba(${K("palette-text-primaryChannel")} / 0.11)`),re(x.Slider,"primaryTrack",H(st,x.primary.main,.62)),re(x.Slider,"secondaryTrack",H(st,x.secondary.main,.62)),re(x.Slider,"errorTrack",H(st,x.error.main,.62)),re(x.Slider,"infoTrack",H(st,x.info.main,.62)),re(x.Slider,"successTrack",H(st,x.success.main,.62)),re(x.Slider,"warningTrack",H(st,x.warning.main,.62));const j=_?H(lt,x.background.default,.6825):Ys(x.background.default,.8);re(x.SnackbarContent,"bg",j),re(x.SnackbarContent,"color",Rr(()=>_?Nf.text.primary:x.getContrastText(j))),re(x.SpeedDialAction,"fabHoverBg",Ys(x.background.paper,.15)),re(x.StepConnector,"border",K("palette-grey-400")),re(x.StepContent,"border",K("palette-grey-400")),re(x.Switch,"defaultColor",K("palette-common-white")),re(x.Switch,"defaultDisabledColor",K("palette-grey-100")),re(x.Switch,"primaryDisabledColor",H(st,x.primary.main,.62)),re(x.Switch,"secondaryDisabledColor",H(st,x.secondary.main,.62)),re(x.Switch,"errorDisabledColor",H(st,x.error.main,.62)),re(x.Switch,"infoDisabledColor",H(st,x.info.main,.62)),re(x.Switch,"successDisabledColor",H(st,x.success.main,.62)),re(x.Switch,"warningDisabledColor",H(st,x.warning.main,.62)),re(x.TableCell,"border",H(st,H(Gi,x.divider,1),.88)),re(x.Tooltip,"bg",H(Gi,x.grey[700],.92))}if(x.mode==="dark"){re(x.Alert,"errorColor",H(st,x.error.light,.6)),re(x.Alert,"infoColor",H(st,x.info.light,.6)),re(x.Alert,"successColor",H(st,x.success.light,.6)),re(x.Alert,"warningColor",H(st,x.warning.light,.6)),re(x.Alert,"errorFilledBg",K("palette-error-dark")),re(x.Alert,"infoFilledBg",K("palette-info-dark")),re(x.Alert,"successFilledBg",K("palette-success-dark")),re(x.Alert,"warningFilledBg",K("palette-warning-dark")),re(x.Alert,"errorFilledColor",Rr(()=>x.getContrastText(x.error.dark))),re(x.Alert,"infoFilledColor",Rr(()=>x.getContrastText(x.info.dark))),re(x.Alert,"successFilledColor",Rr(()=>x.getContrastText(x.success.dark))),re(x.Alert,"warningFilledColor",Rr(()=>x.getContrastText(x.warning.dark))),re(x.Alert,"errorStandardBg",H(lt,x.error.light,.9)),re(x.Alert,"infoStandardBg",H(lt,x.info.light,.9)),re(x.Alert,"successStandardBg",H(lt,x.success.light,.9)),re(x.Alert,"warningStandardBg",H(lt,x.warning.light,.9)),re(x.Alert,"errorIconColor",K("palette-error-main")),re(x.Alert,"infoIconColor",K("palette-info-main")),re(x.Alert,"successIconColor",K("palette-success-main")),re(x.Alert,"warningIconColor",K("palette-warning-main")),re(x.AppBar,"defaultBg",K("palette-grey-900")),re(x.AppBar,"darkBg",K("palette-background-paper")),re(x.AppBar,"darkColor",K("palette-text-primary")),re(x.Avatar,"defaultBg",K("palette-grey-600")),re(x.Button,"inheritContainedBg",K("palette-grey-800")),re(x.Button,"inheritContainedHoverBg",K("palette-grey-700")),re(x.Chip,"defaultBorder",K("palette-grey-700")),re(x.Chip,"defaultAvatarColor",K("palette-grey-300")),re(x.Chip,"defaultIconColor",K("palette-grey-300")),re(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),re(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),re(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),re(x.LinearProgress,"primaryBg",H(lt,x.primary.main,.5)),re(x.LinearProgress,"secondaryBg",H(lt,x.secondary.main,.5)),re(x.LinearProgress,"errorBg",H(lt,x.error.main,.5)),re(x.LinearProgress,"infoBg",H(lt,x.info.main,.5)),re(x.LinearProgress,"successBg",H(lt,x.success.main,.5)),re(x.LinearProgress,"warningBg",H(lt,x.warning.main,.5)),re(x.Skeleton,"bg",_?H(Gi,x.text.primary,.13):`rgba(${K("palette-text-primaryChannel")} / 0.13)`),re(x.Slider,"primaryTrack",H(lt,x.primary.main,.5)),re(x.Slider,"secondaryTrack",H(lt,x.secondary.main,.5)),re(x.Slider,"errorTrack",H(lt,x.error.main,.5)),re(x.Slider,"infoTrack",H(lt,x.info.main,.5)),re(x.Slider,"successTrack",H(lt,x.success.main,.5)),re(x.Slider,"warningTrack",H(lt,x.warning.main,.5));const j=_?H(st,x.background.default,.985):Ys(x.background.default,.98);re(x.SnackbarContent,"bg",j),re(x.SnackbarContent,"color",Rr(()=>_?Lg.text.primary:x.getContrastText(j))),re(x.SpeedDialAction,"fabHoverBg",Ys(x.background.paper,.15)),re(x.StepConnector,"border",K("palette-grey-600")),re(x.StepContent,"border",K("palette-grey-600")),re(x.Switch,"defaultColor",K("palette-grey-300")),re(x.Switch,"defaultDisabledColor",K("palette-grey-600")),re(x.Switch,"primaryDisabledColor",H(lt,x.primary.main,.55)),re(x.Switch,"secondaryDisabledColor",H(lt,x.secondary.main,.55)),re(x.Switch,"errorDisabledColor",H(lt,x.error.main,.55)),re(x.Switch,"infoDisabledColor",H(lt,x.info.main,.55)),re(x.Switch,"successDisabledColor",H(lt,x.success.main,.55)),re(x.Switch,"warningDisabledColor",H(lt,x.warning.main,.55)),re(x.TableCell,"border",H(lt,H(Gi,x.divider,1),.68)),re(x.Tooltip,"bg",H(Gi,x.grey[700],.92))}qr(x.background,"default"),qr(x.background,"paper"),qr(x.common,"background"),qr(x.common,"onBackground"),qr(x,"divider"),Object.keys(x).forEach(j=>{const z=x[j];j!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&re(x[j],"mainChannel",el(nl(z.main))),z.light&&re(x[j],"lightChannel",el(nl(z.light))),z.dark&&re(x[j],"darkChannel",el(nl(z.dark))),z.contrastText&&re(x[j],"contrastTextChannel",el(nl(z.contrastText))),j==="text"&&(qr(x[j],"primary"),qr(x[j],"secondary")),j==="action"&&(z.active&&qr(x[j],"active"),z.selected&&qr(x[j],"selected")))})}),T=t.reduce((U,x)=>yn(U,x),T);const L={prefix:u,disableCssColorScheme:l,shouldSkipGeneratingVar:d,getSelector:w2(T),enableContrastVars:c},{vars:V,generateThemeVars:q,generateStyleSheets:F}=XC(T,L);return T.vars=V,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([U,x])=>{T[U]=x}),T.generateThemeVars=q,T.generateStyleSheets=F,T.generateSpacing=function(){return mg(g.spacing,bf(this))},T.getColorSchemeSelector=KC(m),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=d,T.unstable_sxConfig={...Wa,...g?.unstable_sxConfig},T.unstable_sx=function(x){return pi({sx:x,theme:this})},T.toRuntimeSource=Gg,T}function Zg(e,t,i){e.colorSchemes&&i&&(e.colorSchemes[t]={...i!==!0&&i,palette:zf({...i===!0?{}:i.palette,mode:t})})}function Gs(e={},...t){const{palette:i,cssVariables:o=!1,colorSchemes:l=i?void 0:{light:!0},defaultColorScheme:u=i?.mode,...c}=e,d=u||"light",m=l?.[d],p={...l,...i?{[d]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Bf(e,...t);let g=i;"palette"in e||p[d]&&(p[d]!==!0?g=p[d].palette:d==="dark"&&(g={mode:"dark"}));const y=Bf({...e,palette:g},...t);return y.defaultColorScheme=d,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},Zg(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},Zg(y,"light",p.light)),y}return!i&&!("light"in p)&&d==="light"&&(p.light=!0),_2({...c,colorSchemes:p,defaultColorScheme:d,...typeof o!="boolean"&&o},...t)}const $f=Gs();function Xs(){const e=xf($f);return e[hr]||e}function Wg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pr=e=>Wg(e)&&e!=="classes",we=hC({themeId:hr,defaultTheme:$f,rootShouldForwardProp:pr});function A2({theme:e,...t}){const i=hr in e?e[hr]:void 0;return Y.jsx(zg,{...t,themeId:i?hr:void 0,theme:i||e})}const Ks={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:k2}=VC({themeId:hr,theme:()=>Gs({cssVariables:!0}),colorSchemeStorageKey:Ks.colorSchemeStorageKey,modeStorageKey:Ks.modeStorageKey,defaultColorScheme:{light:Ks.defaultLightColorScheme,dark:Ks.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Fg(e.palette,e.typography)};return t.unstable_sx=function(o){return pi({sx:o,theme:this})},t}}),R2=k2;function O2({theme:e,...t}){const i=O.useMemo(()=>{if(typeof e=="function")return e;const o=hr in e?e[hr]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return i?Y.jsx(A2,{theme:i,...t}):Y.jsx(R2,{theme:e,...t})}function Jg(...e){return e.reduce((t,i)=>i==null?t:function(...l){t.apply(this,l),i.apply(this,l)},()=>{})}function M2(e){return Y.jsx(gg,{...e,defaultTheme:$f,themeId:hr})}function Uf(e){return function(i){return Y.jsx(M2,{styles:typeof e=="function"?o=>e({theme:o,...i}):e})}}function N2(){return yg}const _t=IC;function Et(e){return zC(e)}function z2(e){return xt("MuiSvgIcon",e)}St("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B2=e=>{const{color:t,fontSize:i,classes:o}=e,l={root:["root",t!=="inherit"&&`color${Ee(t)}`,`fontSize${Ee(i)}`]};return wt(l,z2,o)},D2=we("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.color!=="inherit"&&t[`color${Ee(i.color)}`],t[`fontSize${Ee(i.fontSize)}`]]}})(_t(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Lf=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiSvgIcon"}),{children:l,className:u,color:c="inherit",component:d="svg",fontSize:m="medium",htmlColor:p,inheritViewBox:g=!1,titleAccess:y,viewBox:v="0 0 24 24",...S}=o,C=O.isValidElement(l)&&l.type==="svg",w={...o,color:c,component:d,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:v,hasSvgAsChild:C},R={};g||(R.viewBox=v);const k=B2(w);return Y.jsxs(D2,{as:d,className:Ie(k.root,u),focusable:"false",color:p,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:i,...R,...S,...C&&l.props,ownerState:w,children:[C?l.props.children:l,y?Y.jsx("title",{children:y}):null]})});Lf.muiName="SvgIcon";function Xi(e,t){function i(o,l){return Y.jsx(Lf,{"data-testid":void 0,ref:l,...o,children:e})}return i.muiName=Lf.muiName,O.memo(O.forwardRef(i))}function ey(e,t=166){let i;function o(...l){const u=()=>{e.apply(this,l)};clearTimeout(i),i=setTimeout(u,t)}return o.clear=()=>{clearTimeout(i)},o}function mr(e){return e&&e.ownerDocument||document}function Vr(e){return mr(e).defaultView||window}function ty(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ny(e){const{controlled:t,default:i,name:o,state:l="value"}=e,{current:u}=O.useRef(t!==void 0),[c,d]=O.useState(i),m=u?t:c,p=O.useCallback(g=>{u||d(g)},[]);return[m,p]}function Ki(e){const t=O.useRef(e);return kr(()=>{t.current=e}),O.useRef((...i)=>(0,t.current)(...i)).current}function Cn(...e){const t=O.useRef(void 0),i=O.useCallback(o=>{const l=e.map(u=>{if(u==null)return null;if(typeof u=="function"){const c=u,d=c(o);return typeof d=="function"?d:()=>{c(null)}}return u.current=o,()=>{u.current=null}});return()=>{l.forEach(u=>u?.())}},e);return O.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=i(o))},e)}function I2(e,t){const i=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&i>=65&&i<=90&&typeof t=="function"}function $2(e,t){if(!e)return t;function i(c,d){const m={};return Object.keys(d).forEach(p=>{I2(p,d[p])&&typeof c[p]=="function"&&(m[p]=(...g)=>{c[p](...g),d[p](...g)})}),m}if(typeof e=="function"||typeof t=="function")return c=>{const d=typeof t=="function"?t(c):t,m=typeof e=="function"?e({...c,...d}):e,p=Ie(c?.className,d?.className,m?.className),g=i(m,d);return{...d,...m,...g,...!!p&&{className:p},...d?.style&&m?.style&&{style:{...d.style,...m.style}},...d?.sx&&m?.sx&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(m.sx)?m.sx:[m.sx]]}}};const o=t,l=i(e,o),u=Ie(o?.className,e?.className);return{...t,...e,...l,...!!u&&{className:u},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ry(e,t){if(e==null)return{};var i={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;i[o]=e[o]}return i}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},jf(e,t)}function iy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jf(e,t)}var oy=Am();const Qs=xs(oy),ay={disabled:!1},Zs=dr.createContext(null);var U2=function(t){return t.scrollTop},rl="unmounted",Qi="exited",Zi="entering",Io="entered",Pf="exiting",Or=(function(e){iy(t,e);function t(o,l){var u;u=e.call(this,o,l)||this;var c=l,d=c&&!c.isMounting?o.enter:o.appear,m;return u.appearStatus=null,o.in?d?(m=Qi,u.appearStatus=Zi):m=Io:o.unmountOnExit||o.mountOnEnter?m=rl:m=Qi,u.state={status:m},u.nextCallback=null,u}t.getDerivedStateFromProps=function(l,u){var c=l.in;return c&&u.status===rl?{status:Qi}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var u=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==Zi&&c!==Io&&(u=Zi):(c===Zi||c===Io)&&(u=Pf)}this.updateStatus(!1,u)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,u,c,d;return u=c=d=l,l!=null&&typeof l!="number"&&(u=l.exit,c=l.enter,d=l.appear!==void 0?l.appear:c),{exit:u,enter:c,appear:d}},i.updateStatus=function(l,u){if(l===void 0&&(l=!1),u!==null)if(this.cancelNextCallback(),u===Zi){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Qs.findDOMNode(this);c&&U2(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qi&&this.setState({status:rl})},i.performEnter=function(l){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:l,m=this.props.nodeRef?[d]:[Qs.findDOMNode(this),d],p=m[0],g=m[1],y=this.getTimeouts(),v=d?y.appear:y.enter;if(!l&&!c||ay.disabled){this.safeSetState({status:Io},function(){u.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:Zi},function(){u.props.onEntering(p,g),u.onTransitionEnd(v,function(){u.safeSetState({status:Io},function(){u.props.onEntered(p,g)})})})},i.performExit=function(){var l=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Qs.findDOMNode(this);if(!u||ay.disabled){this.safeSetState({status:Qi},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Pf},function(){l.props.onExiting(d),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:Qi},function(){l.props.onExited(d)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,u){u=this.setNextCallback(u),this.setState(l,u)},i.setNextCallback=function(l){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,l(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},i.onTransitionEnd=function(l,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:Qs.findDOMNode(this),d=l==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=m[0],g=m[1];this.props.addEndListener(p,g)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===rl)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=ry(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return dr.createElement(Zs.Provider,{value:null},typeof c=="function"?c(l,d):dr.cloneElement(dr.Children.only(c),d))},t})(dr.Component);Or.contextType=Zs,Or.propTypes={};function $o(){}Or.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$o,onEntering:$o,onEntered:$o,onExit:$o,onExiting:$o,onExited:$o},Or.UNMOUNTED=rl,Or.EXITED=Qi,Or.ENTERING=Zi,Or.ENTERED=Io,Or.EXITING=Pf;function L2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hf(e,t){var i=function(u){return t&&O.isValidElement(u)?t(u):u},o=Object.create(null);return e&&O.Children.map(e,function(l){return l}).forEach(function(l){o[l.key]=i(l)}),o}function j2(e,t){e=e||{},t=t||{};function i(g){return g in t?t[g]:e[g]}var o=Object.create(null),l=[];for(var u in e)u in t?l.length&&(o[u]=l,l=[]):l.push(u);var c,d={};for(var m in t){if(o[m])for(c=0;c<o[m].length;c++){var p=o[m][c];d[o[m][c]]=i(p)}d[m]=i(m)}for(c=0;c<l.length;c++)d[l[c]]=i(l[c]);return d}function Wi(e,t,i){return i[t]!=null?i[t]:e.props[t]}function P2(e,t){return Hf(e.children,function(i){return O.cloneElement(i,{onExited:t.bind(null,i),in:!0,appear:Wi(i,"appear",e),enter:Wi(i,"enter",e),exit:Wi(i,"exit",e)})})}function H2(e,t,i){var o=Hf(e.children),l=j2(t,o);return Object.keys(l).forEach(function(u){var c=l[u];if(O.isValidElement(c)){var d=u in t,m=u in o,p=t[u],g=O.isValidElement(p)&&!p.props.in;m&&(!d||g)?l[u]=O.cloneElement(c,{onExited:i.bind(null,c),in:!0,exit:Wi(c,"exit",e),enter:Wi(c,"enter",e)}):!m&&d&&!g?l[u]=O.cloneElement(c,{in:!1}):m&&d&&O.isValidElement(p)&&(l[u]=O.cloneElement(c,{onExited:i.bind(null,c),in:p.props.in,exit:Wi(c,"exit",e),enter:Wi(c,"enter",e)}))}}),l}var q2=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},V2={component:"div",childFactory:function(t){return t}},qf=(function(e){iy(t,e);function t(o,l){var u;u=e.call(this,o,l)||this;var c=u.handleExited.bind(L2(u));return u.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},u}var i=t.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,u){var c=u.children,d=u.handleExited,m=u.firstRender;return{children:m?P2(l,d):H2(l,c,d),firstRender:!1}},i.handleExited=function(l,u){var c=Hf(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(u),this.mounted&&this.setState(function(d){var m=Ms({},d.children);return delete m[l.key],{children:m}}))},i.render=function(){var l=this.props,u=l.component,c=l.childFactory,d=ry(l,["component","childFactory"]),m=this.state.contextValue,p=q2(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,u===null?dr.createElement(Zs.Provider,{value:m},p):dr.createElement(Zs.Provider,{value:m},dr.createElement(u,d,p))},t})(dr.Component);qf.propTypes={},qf.defaultProps=V2;const ly={};function sy(e,t){const i=O.useRef(ly);return i.current===ly&&(i.current=e(t)),i}const F2=[];function Y2(e){O.useEffect(e,F2)}class Vf{static create(){return new Vf}currentId=null;start(t,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function uy(){const e=sy(Vf.create).current;return Y2(e.disposeEffect),e}const cy=e=>e.scrollTop;function Ws(e,t){const{timeout:i,easing:o,style:l={}}=e;return{duration:l.transitionDuration??(typeof i=="number"?i:i[t.mode]||0),easing:l.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:l.transitionDelay}}function Js(e){return typeof e=="string"}function fy(e,t,i){return e===void 0||Js(e)?t:{...t,ownerState:{...t.ownerState,...i}}}function dy(e,t,i){return typeof e=="function"?e(t,i):e}function hy(e,t=[]){if(e===void 0)return{};const i={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{i[o]=e[o]}),i}function py(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(i=>!(i.match(/^on[A-Z]/)&&typeof e[i]=="function")).forEach(i=>{t[i]=e[i]}),t}function my(e){const{getSlotProps:t,additionalProps:i,externalSlotProps:o,externalForwardedProps:l,className:u}=e;if(!t){const S=Ie(i?.className,u,l?.className,o?.className),C={...i?.style,...l?.style,...o?.style},w={...i,...l,...o};return S.length>0&&(w.className=S),Object.keys(C).length>0&&(w.style=C),{props:w,internalRef:void 0}}const c=hy({...l,...o}),d=py(o),m=py(l),p=t(c),g=Ie(p?.className,i?.className,u,l?.className,o?.className),y={...p?.style,...i?.style,...l?.style,...o?.style},v={...p,...i,...m,...d};return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:p.ref}}function Ht(e,t){const{className:i,elementType:o,ownerState:l,externalForwardedProps:u,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...m}=t,{component:p,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...v}=u,S=g[e]||o,C=dy(y[e],l),{props:{component:w,...R},internalRef:k}=my({className:i,...m,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:C}),$=Cn(k,C?.ref,t.ref),M=e==="root"?w||p:w,_=fy(S,{...e==="root"&&!p&&!g[e]&&c,...e!=="root"&&!g[e]&&c,...R,...M&&!d&&{as:M},...M&&d&&{component:M},ref:$},l);return[S,_]}function G2(e){return xt("MuiPaper",e)}St("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const X2=e=>{const{square:t,elevation:i,variant:o,classes:l}=e,u={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${i}`]};return wt(u,G2,l)},K2=we("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,i.variant==="elevation"&&t[`elevation${i.elevation}`]]}})(_t(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),gy=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiPaper"}),l=Xs(),{className:u,component:c="div",elevation:d=1,square:m=!1,variant:p="elevation",...g}=o,y={...o,component:c,elevation:d,square:m,variant:p},v=X2(y);return Y.jsx(K2,{as:c,ownerState:y,className:Ie(v.root,u),ref:i,...g,style:{...p==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[d],...l.vars&&{"--Paper-overlay":l.vars.overlays?.[d]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${qs("#fff",Df(d))}, ${qs("#fff",Df(d))})`}},...g.style}})});function yy(e){try{return e.matches(":focus-visible")}catch{}return!1}class eu{static create(){return new eu}static use(){const t=sy(eu.create).current,[i,o]=O.useState(!1);return t.shouldMount=i,t.setShouldMount=o,O.useEffect(t.mountEffect,[i]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Z2(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Q2(){return eu.use()}function Z2(){let e,t;const i=new Promise((o,l)=>{e=o,t=l});return i.resolve=e,i.reject=t,i}function W2(e){const{className:t,classes:i,pulsate:o=!1,rippleX:l,rippleY:u,rippleSize:c,in:d,onExited:m,timeout:p}=e,[g,y]=O.useState(!1),v=Ie(t,i.ripple,i.rippleVisible,o&&i.ripplePulsate),S={width:c,height:c,top:-(c/2)+u,left:-(c/2)+l},C=Ie(i.child,g&&i.childLeaving,o&&i.childPulsate);return!d&&!g&&y(!0),O.useEffect(()=>{if(!d&&m!=null){const w=setTimeout(m,p);return()=>{clearTimeout(w)}}},[m,d,p]),Y.jsx("span",{className:v,style:S,children:Y.jsx("span",{className:C})})}const Wn=St("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ff=550,J2=80,eT=Ya`
|
|
45
|
+
0% {
|
|
46
|
+
transform: scale(0);
|
|
47
|
+
opacity: 0.1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
100% {
|
|
51
|
+
transform: scale(1);
|
|
52
|
+
opacity: 0.3;
|
|
53
|
+
}
|
|
54
|
+
`,tT=Ya`
|
|
55
|
+
0% {
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
100% {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
`,nT=Ya`
|
|
63
|
+
0% {
|
|
64
|
+
transform: scale(1);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
50% {
|
|
68
|
+
transform: scale(0.92);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
100% {
|
|
72
|
+
transform: scale(1);
|
|
73
|
+
}
|
|
74
|
+
`,rT=we("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iT=we(W2,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
75
|
+
opacity: 0;
|
|
76
|
+
position: absolute;
|
|
77
|
+
|
|
78
|
+
&.${Wn.rippleVisible} {
|
|
79
|
+
opacity: 0.3;
|
|
80
|
+
transform: scale(1);
|
|
81
|
+
animation-name: ${eT};
|
|
82
|
+
animation-duration: ${Ff}ms;
|
|
83
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.${Wn.ripplePulsate} {
|
|
87
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& .${Wn.child} {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
display: block;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
border-radius: 50%;
|
|
96
|
+
background-color: currentColor;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& .${Wn.childLeaving} {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
animation-name: ${tT};
|
|
102
|
+
animation-duration: ${Ff}ms;
|
|
103
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& .${Wn.childPulsate} {
|
|
107
|
+
position: absolute;
|
|
108
|
+
/* @noflip */
|
|
109
|
+
left: 0px;
|
|
110
|
+
top: 0;
|
|
111
|
+
animation-name: ${nT};
|
|
112
|
+
animation-duration: 2500ms;
|
|
113
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
114
|
+
animation-iteration-count: infinite;
|
|
115
|
+
animation-delay: 200ms;
|
|
116
|
+
}
|
|
117
|
+
`,oT=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:u={},className:c,...d}=o,[m,p]=O.useState([]),g=O.useRef(0),y=O.useRef(null);O.useEffect(()=>{y.current&&(y.current(),y.current=null)},[m]);const v=O.useRef(!1),S=uy(),C=O.useRef(null),w=O.useRef(null),R=O.useCallback(_=>{const{pulsate:B,rippleX:T,rippleY:L,rippleSize:V,cb:q}=_;p(F=>[...F,Y.jsx(iT,{classes:{ripple:Ie(u.ripple,Wn.ripple),rippleVisible:Ie(u.rippleVisible,Wn.rippleVisible),ripplePulsate:Ie(u.ripplePulsate,Wn.ripplePulsate),child:Ie(u.child,Wn.child),childLeaving:Ie(u.childLeaving,Wn.childLeaving),childPulsate:Ie(u.childPulsate,Wn.childPulsate)},timeout:Ff,pulsate:B,rippleX:T,rippleY:L,rippleSize:V},g.current)]),g.current+=1,y.current=q},[u]),k=O.useCallback((_={},B={},T=()=>{})=>{const{pulsate:L=!1,center:V=l||B.pulsate,fakeElement:q=!1}=B;if(_?.type==="mousedown"&&v.current){v.current=!1;return}_?.type==="touchstart"&&(v.current=!0);const F=q?null:w.current,U=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,K,H;if(V||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)x=Math.round(U.width/2),K=Math.round(U.height/2);else{const{clientX:j,clientY:z}=_.touches&&_.touches.length>0?_.touches[0]:_;x=Math.round(j-U.left),K=Math.round(z-U.top)}if(V)H=Math.sqrt((2*U.width**2+U.height**2)/3),H%2===0&&(H+=1);else{const j=Math.max(Math.abs((F?F.clientWidth:0)-x),x)*2+2,z=Math.max(Math.abs((F?F.clientHeight:0)-K),K)*2+2;H=Math.sqrt(j**2+z**2)}_?.touches?C.current===null&&(C.current=()=>{R({pulsate:L,rippleX:x,rippleY:K,rippleSize:H,cb:T})},S.start(J2,()=>{C.current&&(C.current(),C.current=null)})):R({pulsate:L,rippleX:x,rippleY:K,rippleSize:H,cb:T})},[l,R,S]),$=O.useCallback(()=>{k({},{pulsate:!0})},[k]),M=O.useCallback((_,B)=>{if(S.clear(),_?.type==="touchend"&&C.current){C.current(),C.current=null,S.start(0,()=>{M(_,B)});return}C.current=null,p(T=>T.length>0?T.slice(1):T),y.current=B},[S]);return O.useImperativeHandle(i,()=>({pulsate:$,start:k,stop:M}),[$,k,M]),Y.jsx(rT,{className:Ie(Wn.root,u.root,c),ref:w,...d,children:Y.jsx(qf,{component:null,exit:!0,children:m})})});function aT(e){return xt("MuiButtonBase",e)}const lT=St("MuiButtonBase",["root","disabled","focusVisible"]),sT=e=>{const{disabled:t,focusVisible:i,focusVisibleClassName:o,classes:l}=e,c=wt({root:["root",t&&"disabled",i&&"focusVisible"]},aT,l);return i&&o&&(c.root+=` ${o}`),c},uT=we("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),by=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:u=!1,children:c,className:d,component:m="button",disabled:p=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:S,LinkComponent:C="a",onBlur:w,onClick:R,onContextMenu:k,onDragLeave:$,onFocus:M,onFocusVisible:_,onKeyDown:B,onKeyUp:T,onMouseDown:L,onMouseLeave:V,onMouseUp:q,onTouchEnd:F,onTouchMove:U,onTouchStart:x,tabIndex:K=0,TouchRippleProps:H,touchRippleRef:j,type:z,...J}=o,ce=O.useRef(null),ue=Q2(),N=Cn(ue.ref,j),[D,W]=O.useState(!1);p&&D&&W(!1),O.useImperativeHandle(l,()=>({focusVisible:()=>{W(!0),ce.current.focus()}}),[]);const A=ue.shouldMount&&!g&&!p;O.useEffect(()=>{D&&v&&!g&&ue.pulsate()},[g,v,D,ue]);const fe=Fr(ue,"start",L,y),me=Fr(ue,"stop",k,y),he=Fr(ue,"stop",$,y),be=Fr(ue,"stop",q,y),Ue=Fr(ue,"stop",Se=>{D&&Se.preventDefault(),V&&V(Se)},y),Ce=Fr(ue,"start",x,y),Te=Fr(ue,"stop",F,y),ze=Fr(ue,"stop",U,y),Ze=Fr(ue,"stop",Se=>{yy(Se.target)||W(!1),w&&w(Se)},!1),Qt=Ki(Se=>{ce.current||(ce.current=Se.currentTarget),yy(Se.target)&&(W(!0),_&&_(Se)),M&&M(Se)}),Oe=()=>{const Se=ce.current;return m&&m!=="button"&&!(Se.tagName==="A"&&Se.href)},qe=Ki(Se=>{v&&!Se.repeat&&D&&Se.key===" "&&ue.stop(Se,()=>{ue.start(Se)}),Se.target===Se.currentTarget&&Oe()&&Se.key===" "&&Se.preventDefault(),B&&B(Se),Se.target===Se.currentTarget&&Oe()&&Se.key==="Enter"&&!p&&(Se.preventDefault(),R&&R(Se))}),Vt=Ki(Se=>{v&&Se.key===" "&&D&&!Se.defaultPrevented&&ue.stop(Se,()=>{ue.pulsate(Se)}),T&&T(Se),R&&Se.target===Se.currentTarget&&Oe()&&Se.key===" "&&!Se.defaultPrevented&&R(Se)});let zt=m;zt==="button"&&(J.href||J.to)&&(zt=C);const mt={};if(zt==="button"){const Se=!!J.formAction;mt.type=z===void 0&&!Se?"button":z,mt.disabled=p}else!J.href&&!J.to&&(mt.role="button"),p&&(mt["aria-disabled"]=p);const ct=Cn(i,ce),Bt={...o,centerRipple:u,component:m,disabled:p,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:K,focusVisible:D},ft=sT(Bt);return Y.jsxs(uT,{as:zt,className:Ie(ft.root,d),ownerState:Bt,onBlur:Ze,onClick:R,onContextMenu:me,onFocus:Qt,onKeyDown:qe,onKeyUp:Vt,onMouseDown:fe,onMouseLeave:Ue,onMouseUp:be,onDragLeave:he,onTouchEnd:Te,onTouchMove:ze,onTouchStart:Ce,ref:ct,tabIndex:p?-1:K,type:z,...mt,...J,children:[c,A?Y.jsx(oT,{ref:N,center:u,...H}):null]})});function Fr(e,t,i,o=!1){return Ki(l=>(i&&i(l),o||e[t](l),!0))}function cT(e){return typeof e.main=="string"}function fT(e,t=[]){if(!cT(e))return!1;for(const i of t)if(!e.hasOwnProperty(i)||typeof e[i]!="string")return!1;return!0}function Mr(e=[]){return([,t])=>t&&fT(t,e)}function dT(e){return xt("MuiCircularProgress",e)}St("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gr=44,Yf=Ya`
|
|
118
|
+
0% {
|
|
119
|
+
transform: rotate(0deg);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
100% {
|
|
123
|
+
transform: rotate(360deg);
|
|
124
|
+
}
|
|
125
|
+
`,Gf=Ya`
|
|
126
|
+
0% {
|
|
127
|
+
stroke-dasharray: 1px, 200px;
|
|
128
|
+
stroke-dashoffset: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
50% {
|
|
132
|
+
stroke-dasharray: 100px, 200px;
|
|
133
|
+
stroke-dashoffset: -15px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
100% {
|
|
137
|
+
stroke-dasharray: 1px, 200px;
|
|
138
|
+
stroke-dashoffset: -126px;
|
|
139
|
+
}
|
|
140
|
+
`,hT=typeof Yf!="string"?hf`
|
|
141
|
+
animation: ${Yf} 1.4s linear infinite;
|
|
142
|
+
`:null,pT=typeof Gf!="string"?hf`
|
|
143
|
+
animation: ${Gf} 1.4s ease-in-out infinite;
|
|
144
|
+
`:null,mT=e=>{const{classes:t,variant:i,color:o,disableShrink:l}=e,u={root:["root",i,`color${Ee(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Ee(i)}`,l&&"circleDisableShrink"]};return wt(u,dT,t)},gT=we("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],t[`color${Ee(i.color)}`]]}})(_t(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:hT||{animation:`${Yf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),yT=we("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),bT=we("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.circle,t[`circle${Ee(i.variant)}`],i.disableShrink&&t.circleDisableShrink]}})(_t(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:pT||{animation:`${Gf} 1.4s ease-in-out infinite`}}]}))),ST=we("circle",{name:"MuiCircularProgress",slot:"Track"})(_t(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Sy=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiCircularProgress"}),{className:l,color:u="primary",disableShrink:c=!1,enableTrackSlot:d=!1,size:m=40,style:p,thickness:g=3.6,value:y=0,variant:v="indeterminate",...S}=o,C={...o,color:u,disableShrink:c,size:m,thickness:g,value:y,variant:v,enableTrackSlot:d},w=mT(C),R={},k={},$={};if(v==="determinate"){const M=2*Math.PI*((gr-g)/2);R.strokeDasharray=M.toFixed(3),$["aria-valuenow"]=Math.round(y),R.strokeDashoffset=`${((100-y)/100*M).toFixed(3)}px`,k.transform="rotate(-90deg)"}return Y.jsx(gT,{className:Ie(w.root,l),style:{width:m,height:m,...k,...p},ownerState:C,ref:i,role:"progressbar",...$,...S,children:Y.jsxs(yT,{className:w.svg,ownerState:C,viewBox:`${gr/2} ${gr/2} ${gr} ${gr}`,children:[d?Y.jsx(ST,{className:w.track,ownerState:C,cx:gr,cy:gr,r:(gr-g)/2,fill:"none",strokeWidth:g,"aria-hidden":"true"}):null,Y.jsx(bT,{className:w.circle,style:R,ownerState:C,cx:gr,cy:gr,r:(gr-g)/2,fill:"none",strokeWidth:g})]})})});function vT(e){return xt("MuiIconButton",e)}const vy=St("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),xT=e=>{const{classes:t,disabled:i,color:o,edge:l,size:u,loading:c}=e,d={root:["root",c&&"loading",i&&"disabled",o!=="default"&&`color${Ee(o)}`,l&&`edge${Ee(l)}`,`size${Ee(u)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return wt(d,vT,t)},wT=we(by,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.loading&&t.loading,i.color!=="default"&&t[`color${Ee(i.color)}`],i.edge&&t[`edge${Ee(i.edge)}`],t[`size${Ee(i.size)}`]]}})(_t(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_t(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${vy.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${vy.loading}`]:{color:"transparent"}}))),ET=we("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),xy=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiIconButton"}),{edge:l=!1,children:u,className:c,color:d="default",disabled:m=!1,disableFocusRipple:p=!1,size:g="medium",id:y,loading:v=null,loadingIndicator:S,...C}=o,w=tl(y),R=S??Y.jsx(Sy,{"aria-labelledby":w,color:"inherit",size:16}),k={...o,edge:l,color:d,disabled:m,disableFocusRipple:p,loading:v,loadingIndicator:R,size:g},$=xT(k);return Y.jsxs(wT,{id:v?w:y,className:Ie($.root,c),centerRipple:!0,focusRipple:!p,disabled:m||v,ref:i,...C,ownerState:k,children:[typeof v=="boolean"&&Y.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:Y.jsx(ET,{className:$.loadingIndicator,ownerState:k,children:v&&R})}),u]})});function CT(e){return xt("MuiTypography",e)}St("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const TT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},_T=N2(),AT=e=>{const{align:t,gutterBottom:i,noWrap:o,paragraph:l,variant:u,classes:c}=e,d={root:["root",u,e.align!=="inherit"&&`align${Ee(t)}`,i&&"gutterBottom",o&&"noWrap",l&&"paragraph"]};return wt(d,CT,c)},kT=we("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.variant&&t[i.variant],i.align!=="inherit"&&t[`align${Ee(i.align)}`],i.noWrap&&t.noWrap,i.gutterBottom&&t.gutterBottom,i.paragraph&&t.paragraph]}})(_t(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,i])=>t!=="inherit"&&i&&typeof i=="object").map(([t,i])=>({props:{variant:t},style:i})),...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Ee(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),wy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},il=O.forwardRef(function(t,i){const{color:o,...l}=Et({props:t,name:"MuiTypography"}),u=!TT[o],c=_T({...l,...u&&{color:o}}),{align:d="inherit",className:m,component:p,gutterBottom:g=!1,noWrap:y=!1,paragraph:v=!1,variant:S="body1",variantMapping:C=wy,...w}=c,R={...c,align:d,color:o,className:m,component:p,gutterBottom:g,noWrap:y,paragraph:v,variant:S,variantMapping:C},k=p||(v?"p":C[S]||wy[S])||"span",$=AT(R);return Y.jsx(kT,{as:k,ref:i,className:Ie($.root,m),...w,ownerState:R,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...w.style}})});function Ey(e){const t=O.useRef({});return O.useEffect(()=>{t.current=e}),t.current}function RT(e){const{elementType:t,externalSlotProps:i,ownerState:o,skipResolvingSlotProps:l=!1,...u}=e,c=l?{}:dy(i,o),{props:d,internalRef:m}=my({...u,externalSlotProps:c}),p=Cn(m,c?.ref,e.additionalProps?.ref);return fy(t,{...d,ref:p},o)}function ol(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function OT(e){return typeof e=="function"?e():e}const MT=O.forwardRef(function(t,i){const{children:o,container:l,disablePortal:u=!1}=t,[c,d]=O.useState(null),m=Cn(O.isValidElement(o)?ol(o):null,i);if(kr(()=>{u||d(OT(l)||document.body)},[l,u]),kr(()=>{if(c&&!u)return ty(i,c),()=>{ty(i,null)}},[i,c,u]),u){if(O.isValidElement(o)){const p={ref:m};return O.cloneElement(o,p)}return o}return c&&oy.createPortal(o,c)});function tu(e){return parseInt(e,10)||0}const NT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function zT(e){for(const t in e)return!1;return!0}function Cy(e){return zT(e)||e.outerHeightStyle===0&&!e.overflowing}const BT=O.forwardRef(function(t,i){const{onChange:o,maxRows:l,minRows:u=1,style:c,value:d,...m}=t,{current:p}=O.useRef(d!=null),g=O.useRef(null),y=Cn(i,g),v=O.useRef(null),S=O.useRef(null),C=O.useCallback(()=>{const M=g.current,_=S.current;if(!M||!_)return;const T=Vr(M).getComputedStyle(M);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=T.width,_.value=M.value||t.placeholder||"x",_.value.slice(-1)===`
|
|
145
|
+
`&&(_.value+=" ");const L=T.boxSizing,V=tu(T.paddingBottom)+tu(T.paddingTop),q=tu(T.borderBottomWidth)+tu(T.borderTopWidth),F=_.scrollHeight;_.value="x";const U=_.scrollHeight;let x=F;u&&(x=Math.max(Number(u)*U,x)),l&&(x=Math.min(Number(l)*U,x)),x=Math.max(x,U);const K=x+(L==="border-box"?V+q:0),H=Math.abs(x-F)<=1;return{outerHeightStyle:K,overflowing:H}},[l,u,t.placeholder]),w=Ki(()=>{const M=g.current,_=C();if(!M||!_||Cy(_))return!1;const B=_.outerHeightStyle;return v.current!=null&&v.current!==B}),R=O.useCallback(()=>{const M=g.current,_=C();if(!M||!_||Cy(_))return;const B=_.outerHeightStyle;v.current!==B&&(v.current=B,M.style.height=`${B}px`),M.style.overflow=_.overflowing?"hidden":""},[C]),k=O.useRef(-1);kr(()=>{const M=ey(R),_=g?.current;if(!_)return;const B=Vr(_);B.addEventListener("resize",M);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{w()&&(T.unobserve(_),cancelAnimationFrame(k.current),R(),k.current=requestAnimationFrame(()=>{T.observe(_)}))}),T.observe(_)),()=>{M.clear(),cancelAnimationFrame(k.current),B.removeEventListener("resize",M),T&&T.disconnect()}},[C,R,w]),kr(()=>{R()});const $=M=>{p||R();const _=M.target,B=_.value.length,T=_.value.endsWith(`
|
|
146
|
+
`),L=_.selectionStart===B;T&&L&&_.setSelectionRange(B,B),o&&o(M)};return Y.jsxs(O.Fragment,{children:[Y.jsx("textarea",{value:d,onChange:$,ref:y,rows:u,style:c,...m}),Y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:{...NT.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function Uo({props:e,states:t,muiFormControl:i}){return t.reduce((o,l)=>(o[l]=e[l],i&&typeof e[l]>"u"&&(o[l]=i[l]),o),{})}const Xf=O.createContext(void 0);function Lo(){return O.useContext(Xf)}function Ty(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nu(e,t=!1){return e&&(Ty(e.value)&&e.value!==""||t&&Ty(e.defaultValue)&&e.defaultValue!=="")}function DT(e){return e.startAdornment}function IT(e){return xt("MuiInputBase",e)}const jo=St("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _y;const ru=(e,t)=>{const{ownerState:i}=e;return[t.root,i.formControl&&t.formControl,i.startAdornment&&t.adornedStart,i.endAdornment&&t.adornedEnd,i.error&&t.error,i.size==="small"&&t.sizeSmall,i.multiline&&t.multiline,i.color&&t[`color${Ee(i.color)}`],i.fullWidth&&t.fullWidth,i.hiddenLabel&&t.hiddenLabel]},iu=(e,t)=>{const{ownerState:i}=e;return[t.input,i.size==="small"&&t.inputSizeSmall,i.multiline&&t.inputMultiline,i.type==="search"&&t.inputTypeSearch,i.startAdornment&&t.inputAdornedStart,i.endAdornment&&t.inputAdornedEnd,i.hiddenLabel&&t.inputHiddenLabel]},$T=e=>{const{classes:t,color:i,disabled:o,error:l,endAdornment:u,focused:c,formControl:d,fullWidth:m,hiddenLabel:p,multiline:g,readOnly:y,size:v,startAdornment:S,type:C}=e,w={root:["root",`color${Ee(i)}`,o&&"disabled",l&&"error",m&&"fullWidth",c&&"focused",d&&"formControl",v&&v!=="medium"&&`size${Ee(v)}`,g&&"multiline",S&&"adornedStart",u&&"adornedEnd",p&&"hiddenLabel",y&&"readOnly"],input:["input",o&&"disabled",C==="search"&&"inputTypeSearch",g&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",S&&"inputAdornedStart",u&&"inputAdornedEnd",y&&"readOnly"]};return wt(w,IT,t)},ou=we("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ru})(_t(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${jo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:i})=>t.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),au=we("input",{name:"MuiInputBase",slot:"Input",overridesResolver:iu})(_t(({theme:e})=>{const t=e.palette.mode==="light",i={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${jo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${jo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:u})=>!u.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:u})=>u.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ay=Uf({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Kf=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:u,autoFocus:c,className:d,color:m,components:p={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:S,endAdornment:C,error:w,fullWidth:R=!1,id:k,inputComponent:$="input",inputProps:M={},inputRef:_,margin:B,maxRows:T,minRows:L,multiline:V=!1,name:q,onBlur:F,onChange:U,onClick:x,onFocus:K,onKeyDown:H,onKeyUp:j,placeholder:z,readOnly:J,renderSuffix:ce,rows:ue,size:N,slotProps:D={},slots:W={},startAdornment:A,type:fe="text",value:me,...he}=o,be=M.value!=null?M.value:me,{current:Ue}=O.useRef(be!=null),Ce=O.useRef(),Te=O.useCallback(Pe=>{},[]),ze=Cn(Ce,_,M.ref,Te),[Ze,Qt]=O.useState(!1),Oe=Lo(),qe=Uo({props:o,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});qe.focused=Oe?Oe.focused:Ze,O.useEffect(()=>{!Oe&&v&&Ze&&(Qt(!1),F&&F())},[Oe,v,Ze,F]);const Vt=Oe&&Oe.onFilled,zt=Oe&&Oe.onEmpty,mt=O.useCallback(Pe=>{nu(Pe)?Vt&&Vt():zt&&zt()},[Vt,zt]);kr(()=>{Ue&&mt({value:be})},[be,mt,Ue]);const ct=Pe=>{K&&K(Pe),M.onFocus&&M.onFocus(Pe),Oe&&Oe.onFocus?Oe.onFocus(Pe):Qt(!0)},Bt=Pe=>{F&&F(Pe),M.onBlur&&M.onBlur(Pe),Oe&&Oe.onBlur?Oe.onBlur(Pe):Qt(!1)},ft=(Pe,...rn)=>{if(!Ue){const Ut=Pe.target||Ce.current;if(Ut==null)throw new Error(Pr(1));mt({value:Ut.value})}M.onChange&&M.onChange(Pe,...rn),U&&U(Pe,...rn)};O.useEffect(()=>{mt(Ce.current)},[]);const Se=Pe=>{Ce.current&&Pe.currentTarget===Pe.target&&Ce.current.focus(),x&&x(Pe)};let Hn=$,He=M;V&&Hn==="input"&&(ue?He={type:void 0,minRows:ue,maxRows:ue,...He}:He={type:void 0,maxRows:T,minRows:L,...He},Hn=BT);const Sr=Pe=>{mt(Pe.animationName==="mui-auto-fill-cancel"?Ce.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!A)},[Oe,A]);const te={...o,color:qe.color||"primary",disabled:qe.disabled,endAdornment:C,error:qe.error,focused:qe.focused,formControl:Oe,fullWidth:R,hiddenLabel:qe.hiddenLabel,multiline:V,size:qe.size,startAdornment:A,type:fe},se=$T(te),ge=W.root||p.Root||ou,Ae=D.root||g.root||{},Le=W.input||p.Input||au;return He={...He,...D.input??g.input},Y.jsxs(O.Fragment,{children:[!S&&typeof Ay=="function"&&(_y||(_y=Y.jsx(Ay,{}))),Y.jsxs(ge,{...Ae,ref:i,onClick:Se,...he,...!Js(ge)&&{ownerState:{...te,...Ae.ownerState}},className:Ie(se.root,Ae.className,d,J&&"MuiInputBase-readOnly"),children:[A,Y.jsx(Xf.Provider,{value:null,children:Y.jsx(Le,{"aria-invalid":qe.error,"aria-describedby":l,autoComplete:u,autoFocus:c,defaultValue:y,disabled:qe.disabled,id:k,onAnimationStart:Sr,name:q,placeholder:z,readOnly:J,required:qe.required,rows:ue,value:be,onKeyDown:H,onKeyUp:j,type:fe,...He,...!Js(Le)&&{as:Hn,ownerState:{...te,...He.ownerState}},ref:ze,className:Ie(se.input,He.className,J&&"MuiInputBase-readOnly"),onBlur:Bt,onChange:ft,onFocus:ct})}),C,ce?ce({...qe,startAdornment:A}):null]})]})});function UT(e){return xt("MuiInput",e)}const al={...jo,...St("MuiInput",["root","underline","input"])};function LT(e){return xt("MuiOutlinedInput",e)}const Nr={...jo,...St("MuiOutlinedInput",["root","notchedOutline","input"])};function jT(e){return xt("MuiFilledInput",e)}const Ji={...jo,...St("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},PT=Xi(Y.jsx("path",{d:"M7 10l5 5 5-5z"})),HT=Xi(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function qT(e){return xt("MuiAvatar",e)}St("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const VT=e=>{const{classes:t,variant:i,colorDefault:o}=e;return wt({root:["root",i,o&&"colorDefault"],img:["img"],fallback:["fallback"]},qT,t)},FT=we("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],i.colorDefault&&t.colorDefault]}})(_t(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),YT=we("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),GT=we(HT,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function XT({crossOrigin:e,referrerPolicy:t,src:i,srcSet:o}){const[l,u]=O.useState(!1);return O.useEffect(()=>{if(!i&&!o)return;u(!1);let c=!0;const d=new Image;return d.onload=()=>{c&&u("loaded")},d.onerror=()=>{c&&u("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=i,o&&(d.srcset=o),()=>{c=!1}},[e,t,i,o]),l}const lu=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiAvatar"}),{alt:l,children:u,className:c,component:d="div",slots:m={},slotProps:p={},imgProps:g,sizes:y,src:v,srcSet:S,variant:C="circular",...w}=o;let R=null;const k={...o,component:d,variant:C},$=XT({...g,...typeof p.img=="function"?p.img(k):p.img,src:v,srcSet:S}),M=v||S,_=M&&$!=="error";k.colorDefault=!_,delete k.ownerState;const B=VT(k),[T,L]=Ht("root",{ref:i,className:Ie(B.root,c),elementType:FT,externalForwardedProps:{slots:m,slotProps:p,component:d,...w},ownerState:k}),[V,q]=Ht("img",{className:B.img,elementType:YT,externalForwardedProps:{slots:m,slotProps:{img:{...g,...p.img}}},additionalProps:{alt:l,src:v,srcSet:S,sizes:y},ownerState:k}),[F,U]=Ht("fallback",{className:B.fallback,elementType:GT,externalForwardedProps:{slots:m,slotProps:p},shouldForwardComponentProp:!0,ownerState:k});return _?R=Y.jsx(V,{...q}):u||u===0?R=u:M&&l?R=l[0]:R=Y.jsx(F,{...U}),Y.jsx(T,{...L,children:R})}),KT={entering:{opacity:1},entered:{opacity:1}},QT=O.forwardRef(function(t,i){const o=Xs(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:u,appear:c=!0,children:d,easing:m,in:p,onEnter:g,onEntered:y,onEntering:v,onExit:S,onExited:C,onExiting:w,style:R,timeout:k=l,TransitionComponent:$=Or,...M}=t,_=O.useRef(null),B=Cn(_,ol(d),i),T=H=>j=>{if(H){const z=_.current;j===void 0?H(z):H(z,j)}},L=T(v),V=T((H,j)=>{cy(H);const z=Ws({style:R,timeout:k,easing:m},{mode:"enter"});H.style.webkitTransition=o.transitions.create("opacity",z),H.style.transition=o.transitions.create("opacity",z),g&&g(H,j)}),q=T(y),F=T(w),U=T(H=>{const j=Ws({style:R,timeout:k,easing:m},{mode:"exit"});H.style.webkitTransition=o.transitions.create("opacity",j),H.style.transition=o.transitions.create("opacity",j),S&&S(H)}),x=T(C),K=H=>{u&&u(_.current,H)};return Y.jsx($,{appear:c,in:p,nodeRef:_,onEnter:V,onEntered:q,onEntering:L,onExit:U,onExited:x,onExiting:F,addEndListener:K,timeout:k,...M,children:(H,{ownerState:j,...z})=>O.cloneElement(d,{style:{opacity:0,visibility:H==="exited"&&!p?"hidden":void 0,...KT[H],...R,...d.props.style},ref:B,...z})})});function ZT(e){return xt("MuiBackdrop",e)}St("MuiBackdrop",["root","invisible"]);const WT=e=>{const{classes:t,invisible:i}=e;return wt({root:["root",i&&"invisible"]},ZT,t)},JT=we("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),e_=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiBackdrop"}),{children:l,className:u,component:c="div",invisible:d=!1,open:m,components:p={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:S,transitionDuration:C,...w}=o,R={...o,component:c,invisible:d},k=WT(R),$={transition:S,root:p.Root,...v},M={...g,...y},_={component:c,slots:$,slotProps:M},[B,T]=Ht("root",{elementType:JT,externalForwardedProps:_,className:Ie(k.root,u),ownerState:R}),[L,V]=Ht("transition",{elementType:QT,externalForwardedProps:_,ownerState:R});return Y.jsx(L,{in:m,timeout:C,...w,...V,children:Y.jsx(B,{"aria-hidden":!0,...T,classes:k,ref:i,children:l})})});function t_(e){const{badgeContent:t,invisible:i=!1,max:o=99,showZero:l=!1}=e,u=Ey({badgeContent:t,max:o});let c=i;i===!1&&t===0&&!l&&(c=!0);const{badgeContent:d,max:m=o}=c?u:e,p=d&&Number(d)>m?`${m}+`:d;return{badgeContent:d,invisible:c,max:m,displayValue:p}}function n_(e){return xt("MuiBadge",e)}const gi=St("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Qf=10,Zf=4,r_=e=>{const{color:t,anchorOrigin:i,invisible:o,overlap:l,variant:u,classes:c={}}=e,d={root:["root"],badge:["badge",u,o&&"invisible",`anchorOrigin${Ee(i.vertical)}${Ee(i.horizontal)}`,`anchorOrigin${Ee(i.vertical)}${Ee(i.horizontal)}${Ee(l)}`,`overlap${Ee(l)}`,t!=="default"&&`color${Ee(t)}`]};return wt(d,n_,c)},i_=we("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),o_=we("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.badge,t[i.variant],t[`anchorOrigin${Ee(i.anchorOrigin.vertical)}${Ee(i.anchorOrigin.horizontal)}${Ee(i.overlap)}`],i.color!=="default"&&t[`color${Ee(i.color)}`],i.invisible&&t.invisible]}})(_t(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Qf*2,lineHeight:1,padding:"0 6px",height:Qf*2,borderRadius:Qf,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Mr(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zf,height:Zf*2,minWidth:Zf*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function ky(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const a_=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiBadge"}),{anchorOrigin:l,className:u,classes:c,component:d,components:m={},componentsProps:p={},children:g,overlap:y="rectangular",color:v="default",invisible:S=!1,max:C=99,badgeContent:w,slots:R,slotProps:k,showZero:$=!1,variant:M="standard",..._}=o,{badgeContent:B,invisible:T,max:L,displayValue:V}=t_({max:C,invisible:S,badgeContent:w,showZero:$}),q=Ey({anchorOrigin:ky(l),color:v,overlap:y,variant:M,badgeContent:w}),F=T||B==null&&M!=="dot",{color:U=v,overlap:x=y,anchorOrigin:K,variant:H=M}=F?q:o,j=ky(K),z=H!=="dot"?V:void 0,J={...o,badgeContent:B,invisible:F,max:L,displayValue:z,showZero:$,anchorOrigin:j,color:U,overlap:x,variant:H},ce=r_(J),ue={slots:{root:R?.root??m.Root,badge:R?.badge??m.Badge},slotProps:{root:k?.root??p.root,badge:k?.badge??p.badge}},[N,D]=Ht("root",{elementType:i_,externalForwardedProps:{...ue,..._},ownerState:J,className:Ie(ce.root,u),ref:i,additionalProps:{as:d}}),[W,A]=Ht("badge",{elementType:o_,externalForwardedProps:ue,ownerState:J,className:ce.badge});return Y.jsxs(N,{...D,children:[g,Y.jsx(W,{...A,children:z})]})}),l_=St("MuiBox",["root"]),s_=Gs(),tn=sC({themeId:hr,defaultTheme:s_,defaultClassName:l_.root,generateClassName:Sg.generate});function u_(e){return xt("MuiButton",e)}const eo=St("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),c_=O.createContext({}),f_=O.createContext(void 0),d_=e=>{const{color:t,disableElevation:i,fullWidth:o,size:l,variant:u,loading:c,loadingPosition:d,classes:m}=e,p={root:["root",c&&"loading",u,`${u}${Ee(t)}`,`size${Ee(l)}`,`${u}Size${Ee(l)}`,`color${Ee(t)}`,i&&"disableElevation",o&&"fullWidth",c&&`loadingPosition${Ee(d)}`],startIcon:["icon","startIcon",`iconSize${Ee(l)}`],endIcon:["icon","endIcon",`iconSize${Ee(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=wt(p,u_,m);return{...m,...g}},Ry=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],h_=we(by,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],t[`${i.variant}${Ee(i.color)}`],t[`size${Ee(i.size)}`],t[`${i.variant}Size${Ee(i.size)}`],i.color==="inherit"&&t.colorInherit,i.disableElevation&&t.disableElevation,i.fullWidth&&t.fullWidth,i.loading&&t.loading]}})(_t(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${eo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${eo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${eo.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${eo.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Mr()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${eo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${eo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${eo.loading}`]:{color:"transparent"}}}]}})),p_=we("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.startIcon,i.loading&&t.startIconLoadingStart,t[`iconSize${Ee(i.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ry]})),m_=we("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.endIcon,i.loading&&t.endIconLoadingEnd,t[`iconSize${Ee(i.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ry]})),g_=we("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Oy=we("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),y_=O.forwardRef(function(t,i){const o=O.useContext(c_),l=O.useContext(f_),u=Ja(o,t),c=Et({props:u,name:"MuiButton"}),{children:d,color:m="primary",component:p="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:S=!1,endIcon:C,focusVisibleClassName:w,fullWidth:R=!1,id:k,loading:$=null,loadingIndicator:M,loadingPosition:_="center",size:B="medium",startIcon:T,type:L,variant:V="text",...q}=c,F=tl(k),U=M??Y.jsx(Sy,{"aria-labelledby":F,color:"inherit",size:16}),x={...c,color:m,component:p,disabled:y,disableElevation:v,disableFocusRipple:S,fullWidth:R,loading:$,loadingIndicator:U,loadingPosition:_,size:B,type:L,variant:V},K=d_(x),H=(T||$&&_==="start")&&Y.jsx(p_,{className:K.startIcon,ownerState:x,children:T||Y.jsx(Oy,{className:K.loadingIconPlaceholder,ownerState:x})}),j=(C||$&&_==="end")&&Y.jsx(m_,{className:K.endIcon,ownerState:x,children:C||Y.jsx(Oy,{className:K.loadingIconPlaceholder,ownerState:x})}),z=l||"",J=typeof $=="boolean"?Y.jsx("span",{className:K.loadingWrapper,style:{display:"contents"},children:$&&Y.jsx(g_,{className:K.loadingIndicator,ownerState:x,children:U})}):null;return Y.jsxs(h_,{ownerState:x,className:Ie(o.className,K.root,g,z),component:p,disabled:y||$,focusRipple:!S,focusVisibleClassName:Ie(K.focusVisible,w),ref:i,type:L,id:$?F:k,...q,classes:K,children:[H,_!=="end"&&J,d,_==="end"&&J,j]})}),Wf=typeof Uf({})=="function",b_=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),S_=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),My=(e,t=!1)=>{const i={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([u,c])=>{const d=e.getColorSchemeSelector(u);d.startsWith("@")?i[d]={":root":{colorScheme:c.palette?.mode}}:i[d.replace(/\s*&/,"")]={colorScheme:c.palette?.mode}});let o={html:b_(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...S_(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const l=e.components?.MuiCssBaseline?.styleOverrides;return l&&(o=[o,l]),o},su="mui-ecs",v_=e=>{const t=My(e,!1),i=Array.isArray(t)?t[0]:t;return!e.vars&&i&&(i.html[`:root:has(${su})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,l])=>{const u=e.getColorSchemeSelector(o);u.startsWith("@")?i[u]={[`:root:not(:has(.${su}))`]:{colorScheme:l.palette?.mode}}:i[u.replace(/\s*&/,"")]={[`&:not(:has(.${su}))`]:{colorScheme:l.palette?.mode}}}),t},x_=Uf(Wf?({theme:e,enableColorScheme:t})=>My(e,t):({theme:e})=>v_(e));function w_(e){const t=Et({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:o=!1}=t;return Y.jsxs(O.Fragment,{children:[Wf&&Y.jsx(x_,{enableColorScheme:o}),!Wf&&!o&&Y.jsx("span",{className:su,style:{display:"none"}}),i]})}function Ny(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function E_(e){const t=mr(e);return t.body===e?Vr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ll(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zy(e){return parseInt(Vr(e).getComputedStyle(e).paddingRight,10)||0}function C_(e){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return i||o}function By(e,t,i,o,l){const u=[t,i,...o];[].forEach.call(e.children,c=>{const d=!u.includes(c),m=!C_(c);d&&m&&ll(c,l)})}function Jf(e,t){let i=-1;return e.some((o,l)=>t(o)?(i=l,!0):!1),i}function T_(e,t){const i=[],o=e.container;if(!t.disableScrollLock){if(E_(o)){const c=Ny(Vr(o));i.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${zy(o)+c}px`;const d=mr(o).querySelectorAll(".mui-fixed");[].forEach.call(d,m=>{i.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${zy(m)+c}px`})}let u;if(o.parentNode instanceof DocumentFragment)u=mr(o).body;else{const c=o.parentElement,d=Vr(o);u=c?.nodeName==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:o}i.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return()=>{i.forEach(({value:u,el:c,property:d})=>{u?c.style.setProperty(d,u):c.style.removeProperty(d)})}}function __(e){const t=[];return[].forEach.call(e.children,i=>{i.getAttribute("aria-hidden")==="true"&&t.push(i)}),t}class A_{constructor(){this.modals=[],this.containers=[]}add(t,i){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&ll(t.modalRef,!1);const l=__(i);By(i,t.mount,t.modalRef,l,!0);const u=Jf(this.containers,c=>c.container===i);return u!==-1?(this.containers[u].modals.push(t),o):(this.containers.push({modals:[t],container:i,restore:null,hiddenSiblings:l}),o)}mount(t,i){const o=Jf(this.containers,u=>u.modals.includes(t)),l=this.containers[o];l.restore||(l.restore=T_(l,i))}remove(t,i=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const l=Jf(this.containers,c=>c.modals.includes(t)),u=this.containers[l];if(u.modals.splice(u.modals.indexOf(t),1),this.modals.splice(o,1),u.modals.length===0)u.restore&&u.restore(),t.modalRef&&ll(t.modalRef,i),By(u.container,t.mount,t.modalRef,u.hiddenSiblings,!1),this.containers.splice(l,1);else{const c=u.modals[u.modals.length-1];c.modalRef&&ll(c.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function sl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const k_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function R_(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function O_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}function M_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||O_(e))}function N_(e){const t=[],i=[];return Array.from(e.querySelectorAll(k_)).forEach((o,l)=>{const u=R_(o);u===-1||!M_(o)||(u===0?t.push(o):i.push({documentOrder:l,tabIndex:u,node:o}))}),i.sort((o,l)=>o.tabIndex===l.tabIndex?o.documentOrder-l.documentOrder:o.tabIndex-l.tabIndex).map(o=>o.node).concat(t)}function z_(){return!0}function B_(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:l=!1,getTabbable:u=N_,isEnabled:c=z_,open:d}=e,m=O.useRef(!1),p=O.useRef(null),g=O.useRef(null),y=O.useRef(null),v=O.useRef(null),S=O.useRef(!1),C=O.useRef(null),w=Cn(ol(t),C),R=O.useRef(null);O.useEffect(()=>{!d||!C.current||(S.current=!i)},[i,d]),O.useEffect(()=>{if(!d||!C.current)return;const M=mr(C.current),_=sl(M);return C.current.contains(_)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),S.current&&C.current.focus()),()=>{l||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[d]),O.useEffect(()=>{if(!d||!C.current)return;const M=mr(C.current),_=sl(M),B=V=>{R.current=V,!(o||!c()||V.key!=="Tab")&&_===C.current&&V.shiftKey&&(m.current=!0,g.current&&g.current.focus())},T=()=>{const V=C.current;if(V===null)return;const q=sl(M);if(!M.hasFocus()||!c()||m.current){m.current=!1;return}if(V.contains(q)||o&&q!==p.current&&q!==g.current)return;if(q!==v.current)v.current=null;else if(v.current!==null)return;if(!S.current)return;let F=[];if((q===p.current||q===g.current)&&(F=u(C.current)),F.length>0){const U=!!(R.current?.shiftKey&&R.current?.key==="Tab"),x=F[0],K=F[F.length-1];typeof x!="string"&&typeof K!="string"&&(U?K.focus():x.focus())}else V.focus()};M.addEventListener("focusin",T),M.addEventListener("keydown",B,!0);const L=setInterval(()=>{const V=sl(M);V&&V.tagName==="BODY"&&T()},50);return()=>{clearInterval(L),M.removeEventListener("focusin",T),M.removeEventListener("keydown",B,!0)}},[i,o,l,c,d,u]);const k=M=>{y.current===null&&(y.current=M.relatedTarget),S.current=!0,v.current=M.target;const _=t.props.onFocus;_&&_(M)},$=M=>{y.current===null&&(y.current=M.relatedTarget),S.current=!0};return Y.jsxs(O.Fragment,{children:[Y.jsx("div",{tabIndex:d?0:-1,onFocus:$,ref:p,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:w,onFocus:k}),Y.jsx("div",{tabIndex:d?0:-1,onFocus:$,ref:g,"data-testid":"sentinelEnd"})]})}function D_(e){return typeof e=="function"?e():e}function I_(e){return e?e.props.hasOwnProperty("in"):!1}const Dy=()=>{},uu=new A_;function $_(e){const{container:t,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,closeAfterTransition:l=!1,onTransitionEnter:u,onTransitionExited:c,children:d,onClose:m,open:p,rootRef:g}=e,y=O.useRef({}),v=O.useRef(null),S=O.useRef(null),C=Cn(S,g),[w,R]=O.useState(!p),k=I_(d);let $=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&($=!1);const M=()=>mr(v.current),_=()=>(y.current.modalRef=S.current,y.current.mount=v.current,y.current),B=()=>{uu.mount(_(),{disableScrollLock:o}),S.current&&(S.current.scrollTop=0)},T=Ki(()=>{const j=D_(t)||M().body;uu.add(_(),j),S.current&&B()}),L=()=>uu.isTopModal(_()),V=Ki(j=>{v.current=j,j&&(p&&L()?B():S.current&&ll(S.current,$))}),q=O.useCallback(()=>{uu.remove(_(),$)},[$]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{p?T():(!k||!l)&&q()},[p,q,k,l,T]);const F=j=>z=>{j.onKeyDown?.(z),!(z.key!=="Escape"||z.which===229||!L())&&(i||(z.stopPropagation(),m&&m(z,"escapeKeyDown")))},U=j=>z=>{j.onClick?.(z),z.target===z.currentTarget&&m&&m(z,"backdropClick")};return{getRootProps:(j={})=>{const z=hy(e);delete z.onTransitionEnter,delete z.onTransitionExited;const J={...z,...j};return{role:"presentation",...J,onKeyDown:F(J),ref:C}},getBackdropProps:(j={})=>{const z=j;return{"aria-hidden":!0,...z,onClick:U(z),open:p}},getTransitionProps:()=>{const j=()=>{R(!1),u&&u()},z=()=>{R(!0),c&&c(),l&&q()};return{onEnter:Jg(j,d?.props.onEnter??Dy),onExited:Jg(z,d?.props.onExited??Dy)}},rootRef:C,portalRef:V,isTopModal:L,exited:w,hasTransition:k}}function U_(e){return xt("MuiModal",e)}St("MuiModal",["root","hidden","backdrop"]);const L_=e=>{const{open:t,exited:i,classes:o}=e;return wt({root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]},U_,o)},j_=we("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})(_t(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),P_=we(e_,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),H_=O.forwardRef(function(t,i){const o=Et({name:"MuiModal",props:t}),{BackdropComponent:l=P_,BackdropProps:u,classes:c,className:d,closeAfterTransition:m=!1,children:p,container:g,component:y,components:v={},componentsProps:S={},disableAutoFocus:C=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:R=!1,disablePortal:k=!1,disableRestoreFocus:$=!1,disableScrollLock:M=!1,hideBackdrop:_=!1,keepMounted:B=!1,onClose:T,onTransitionEnter:L,onTransitionExited:V,open:q,slotProps:F={},slots:U={},theme:x,...K}=o,H={...o,closeAfterTransition:m,disableAutoFocus:C,disableEnforceFocus:w,disableEscapeKeyDown:R,disablePortal:k,disableRestoreFocus:$,disableScrollLock:M,hideBackdrop:_,keepMounted:B},{getRootProps:j,getBackdropProps:z,getTransitionProps:J,portalRef:ce,isTopModal:ue,exited:N,hasTransition:D}=$_({...H,rootRef:i}),W={...H,exited:N},A=L_(W),fe={};if(p.props.tabIndex===void 0&&(fe.tabIndex="-1"),D){const{onEnter:Te,onExited:ze}=J();fe.onEnter=Te,fe.onExited=ze}const me={slots:{root:v.Root,backdrop:v.Backdrop,...U},slotProps:{...S,...F}},[he,be]=Ht("root",{ref:i,elementType:j_,externalForwardedProps:{...me,...K,component:y},getSlotProps:j,ownerState:W,className:Ie(d,A?.root,!W.open&&W.exited&&A?.hidden)}),[Ue,Ce]=Ht("backdrop",{ref:u?.ref,elementType:l,externalForwardedProps:me,shouldForwardComponentProp:!0,additionalProps:u,getSlotProps:Te=>z({...Te,onClick:ze=>{Te?.onClick&&Te.onClick(ze)}}),className:Ie(u?.className,A?.backdrop),ownerState:W});return!B&&!q&&(!D||N)?null:Y.jsx(MT,{ref:ce,container:g,disablePortal:k,children:Y.jsxs(he,{...be,children:[!_&&l?Y.jsx(Ue,{...Ce}):null,Y.jsx(B_,{disableEnforceFocus:w,disableAutoFocus:C,disableRestoreFocus:$,isEnabled:ue,open:q,children:O.cloneElement(p,fe)})]})})}),q_=e=>{const{classes:t,disableUnderline:i,startAdornment:o,endAdornment:l,size:u,hiddenLabel:c,multiline:d}=e,m={root:["root",!i&&"underline",o&&"adornedStart",l&&"adornedEnd",u==="small"&&`size${Ee(u)}`,c&&"hiddenLabel",d&&"multiline"],input:["input"]},p=wt(m,jT,t);return{...t,...p}},V_=we(ou,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...ru(e,t),!i.disableUnderline&&t.underline]}})(_t(({theme:e})=>{const t=e.palette.mode==="light",i=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ji.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ji.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u},variants:[{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ji.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ji.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ji.disabled}, .${Ji.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ji.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Mr()).map(([c])=>({props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[c]?.main}`}}})),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:d})=>c.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),F_=we(au,{name:"MuiFilledInput",slot:"Input",overridesResolver:iu})(_t(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ed=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiFilledInput"}),{disableUnderline:l=!1,components:u={},componentsProps:c,fullWidth:d=!1,hiddenLabel:m,inputComponent:p="input",multiline:g=!1,slotProps:y,slots:v={},type:S="text",...C}=o,w={...o,disableUnderline:l,fullWidth:d,inputComponent:p,multiline:g,type:S},R=q_(o),k={root:{ownerState:w},input:{ownerState:w}},$=y??c?yn(k,y??c):k,M=v.root??u.Root??V_,_=v.input??u.Input??F_;return Y.jsx(Kf,{slots:{root:M,input:_},slotProps:$,fullWidth:d,inputComponent:p,multiline:g,ref:i,type:S,...C,classes:R})});ed.muiName="Input";function Y_(e){return xt("MuiFormControl",e)}St("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const G_=e=>{const{classes:t,margin:i,fullWidth:o}=e,l={root:["root",i!=="none"&&`margin${Ee(i)}`,o&&"fullWidth"]};return wt(l,Y_,t)},X_=we("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`margin${Ee(i.margin)}`],i.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),K_=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiFormControl"}),{children:l,className:u,color:c="primary",component:d="div",disabled:m=!1,error:p=!1,focused:g,fullWidth:y=!1,hiddenLabel:v=!1,margin:S="none",required:C=!1,size:w="medium",variant:R="outlined",...k}=o,$={...o,color:c,component:d,disabled:m,error:p,fullWidth:y,hiddenLabel:v,margin:S,required:C,size:w,variant:R},M=G_($),[_,B]=O.useState(()=>{let j=!1;return l&&O.Children.forEach(l,z=>{if(!Mf(z,["Input","Select"]))return;const J=Mf(z,["Select"])?z.props.input:z;J&&DT(J.props)&&(j=!0)}),j}),[T,L]=O.useState(()=>{let j=!1;return l&&O.Children.forEach(l,z=>{Mf(z,["Input","Select"])&&(nu(z.props,!0)||nu(z.props.inputProps,!0))&&(j=!0)}),j}),[V,q]=O.useState(!1);m&&V&&q(!1);const F=g!==void 0&&!m?g:V;let U;O.useRef(!1);const x=O.useCallback(()=>{L(!0)},[]),K=O.useCallback(()=>{L(!1)},[]),H=O.useMemo(()=>({adornedStart:_,setAdornedStart:B,color:c,disabled:m,error:p,filled:T,focused:F,fullWidth:y,hiddenLabel:v,size:w,onBlur:()=>{q(!1)},onFocus:()=>{q(!0)},onEmpty:K,onFilled:x,registerEffect:U,required:C,variant:R}),[_,c,m,p,T,F,y,v,U,K,x,C,w,R]);return Y.jsx(Xf.Provider,{value:H,children:Y.jsx(X_,{as:d,ownerState:$,className:Ie(M.root,u),ref:i,...k,children:l})})});function Q_(e){return xt("MuiFormHelperText",e)}const Iy=St("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $y;const Z_=e=>{const{classes:t,contained:i,size:o,disabled:l,error:u,filled:c,focused:d,required:m}=e,p={root:["root",l&&"disabled",u&&"error",o&&`size${Ee(o)}`,i&&"contained",d&&"focused",c&&"filled",m&&"required"]};return wt(p,Q_,t)},W_=we("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.size&&t[`size${Ee(i.size)}`],i.contained&&t.contained,i.filled&&t.filled]}})(_t(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Iy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Iy.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),J_=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiFormHelperText"}),{children:l,className:u,component:c="p",disabled:d,error:m,filled:p,focused:g,margin:y,required:v,variant:S,...C}=o,w=Lo(),R=Uo({props:o,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),k={...o,component:c,contained:R.variant==="filled"||R.variant==="outlined",variant:R.variant,size:R.size,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required};delete k.ownerState;const $=Z_(k);return Y.jsx(W_,{as:c,className:Ie($.root,u),ref:i,...C,ownerState:k,children:l===" "?$y||($y=Y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):l})});function eA(e){return xt("MuiFormLabel",e)}const ul=St("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),tA=e=>{const{classes:t,color:i,focused:o,disabled:l,error:u,filled:c,required:d}=e,m={root:["root",`color${Ee(i)}`,l&&"disabled",u&&"error",c&&"filled",o&&"focused",d&&"required"],asterisk:["asterisk",u&&"error"]};return wt(m,eA,t)},nA=we("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.color==="secondary"&&t.colorSecondary,i.filled&&t.filled]}})(_t(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{[`&.${ul.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ul.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ul.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),rA=we("span",{name:"MuiFormLabel",slot:"Asterisk"})(_t(({theme:e})=>({[`&.${ul.error}`]:{color:(e.vars||e).palette.error.main}}))),iA=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiFormLabel"}),{children:l,className:u,color:c,component:d="label",disabled:m,error:p,filled:g,focused:y,required:v,...S}=o,C=Lo(),w=Uo({props:o,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),R={...o,color:w.color||"primary",component:d,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},k=tA(R);return Y.jsxs(nA,{as:d,ownerState:R,className:Ie(k.root,u),ref:i,...S,children:[l,w.required&&Y.jsxs(rA,{ownerState:R,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function td(e){return`scale(${e}, ${e**2})`}const oA={entering:{opacity:1,transform:td(1)},entered:{opacity:1,transform:"none"}},nd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=O.forwardRef(function(t,i){const{addEndListener:o,appear:l=!0,children:u,easing:c,in:d,onEnter:m,onEntered:p,onEntering:g,onExit:y,onExited:v,onExiting:S,style:C,timeout:w="auto",TransitionComponent:R=Or,...k}=t,$=uy(),M=O.useRef(),_=Xs(),B=O.useRef(null),T=Cn(B,ol(u),i),L=j=>z=>{if(j){const J=B.current;z===void 0?j(J):j(J,z)}},V=L(g),q=L((j,z)=>{cy(j);const{duration:J,delay:ce,easing:ue}=Ws({style:C,timeout:w,easing:c},{mode:"enter"});let N;w==="auto"?(N=_.transitions.getAutoHeightDuration(j.clientHeight),M.current=N):N=J,j.style.transition=[_.transitions.create("opacity",{duration:N,delay:ce}),_.transitions.create("transform",{duration:nd?N:N*.666,delay:ce,easing:ue})].join(","),m&&m(j,z)}),F=L(p),U=L(S),x=L(j=>{const{duration:z,delay:J,easing:ce}=Ws({style:C,timeout:w,easing:c},{mode:"exit"});let ue;w==="auto"?(ue=_.transitions.getAutoHeightDuration(j.clientHeight),M.current=ue):ue=z,j.style.transition=[_.transitions.create("opacity",{duration:ue,delay:J}),_.transitions.create("transform",{duration:nd?ue:ue*.666,delay:nd?J:J||ue*.333,easing:ce})].join(","),j.style.opacity=0,j.style.transform=td(.75),y&&y(j)}),K=L(v),H=j=>{w==="auto"&&$.start(M.current||0,j),o&&o(B.current,j)};return Y.jsx(R,{appear:l,in:d,nodeRef:B,onEnter:q,onEntered:F,onEntering:V,onExit:x,onExited:K,onExiting:U,addEndListener:H,timeout:w==="auto"?null:w,...k,children:(j,{ownerState:z,...J})=>O.cloneElement(u,{style:{opacity:0,transform:td(.75),visibility:j==="exited"&&!d?"hidden":void 0,...oA[j],...C,...u.props.style},ref:T,...J})})});rd&&(rd.muiSupportAuto=!0);const aA=e=>{const{classes:t,disableUnderline:i}=e,l=wt({root:["root",!i&&"underline"],input:["input"]},UT,t);return{...t,...l}},lA=we(ou,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...ru(e,t),!i.disableUnderline&&t.underline]}})(_t(({theme:e})=>{let i=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${al.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${al.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${al.disabled}, .${al.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${al.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Mr()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),sA=we(au,{name:"MuiInput",slot:"Input",overridesResolver:iu})({}),id=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiInput"}),{disableUnderline:l=!1,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:m="input",multiline:p=!1,slotProps:g,slots:y={},type:v="text",...S}=o,C=aA(o),R={root:{ownerState:{disableUnderline:l}}},k=g??c?yn(g??c,R):R,$=y.root??u.Root??lA,M=y.input??u.Input??sA;return Y.jsx(Kf,{slots:{root:$,input:M},slotProps:k,fullWidth:d,inputComponent:m,multiline:p,ref:i,type:v,...S,classes:C})});id.muiName="Input";function uA(e){return xt("MuiInputLabel",e)}St("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const cA=e=>{const{classes:t,formControl:i,size:o,shrink:l,disableAnimation:u,variant:c,required:d}=e,m={root:["root",i&&"formControl",!u&&"animated",l&&"shrink",o&&o!=="medium"&&`size${Ee(o)}`,c],asterisk:[d&&"asterisk"]},p=wt(m,uA,t);return{...t,...p}},fA=we(iA,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${ul.asterisk}`]:t.asterisk},t.root,i.formControl&&t.formControl,i.size==="small"&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focused,t[i.variant]]}})(_t(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:i})=>t==="filled"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:i,size:o})=>t==="filled"&&i.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:i})=>t==="outlined"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),dA=O.forwardRef(function(t,i){const o=Et({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,margin:u,shrink:c,variant:d,className:m,...p}=o,g=Lo();let y=c;typeof y>"u"&&g&&(y=g.filled||g.focused||g.adornedStart);const v=Uo({props:o,muiFormControl:g,states:["size","variant","required","focused"]}),S={...o,disableAnimation:l,formControl:g,shrink:y,size:v.size,variant:v.variant,required:v.required,focused:v.focused},C=cA(S);return Y.jsx(fA,{"data-shrink":y,ref:i,className:Ie(C.root,m),...p,ownerState:S,classes:C})}),hA=O.createContext({});function pA(e){return xt("MuiList",e)}St("MuiList",["root","padding","dense","subheader"]);const mA=e=>{const{classes:t,disablePadding:i,dense:o,subheader:l}=e;return wt({root:["root",!i&&"padding",o&&"dense",l&&"subheader"]},pA,t)},gA=we("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disablePadding&&t.padding,i.dense&&t.dense,i.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yA=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiList"}),{children:l,className:u,component:c="ul",dense:d=!1,disablePadding:m=!1,subheader:p,...g}=o,y=O.useMemo(()=>({dense:d}),[d]),v={...o,component:c,dense:d,disablePadding:m},S=mA(v);return Y.jsx(hA.Provider,{value:y,children:Y.jsxs(gA,{as:c,className:Ie(S.root,u),ref:i,ownerState:v,...g,children:[p,l]})})});function od(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function Uy(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function Ly(e,t){if(t===void 0)return!0;let i=e.innerText;return i===void 0&&(i=e.textContent),i=i.trim().toLowerCase(),i.length===0?!1:t.repeating?i[0]===t.keys[0]:i.startsWith(t.keys.join(""))}function cl(e,t,i,o,l,u){let c=!1,d=l(e,t,t?i:!1);for(;d;){if(d===e.firstChild){if(c)return!1;c=!0}const m=o?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!Ly(d,u)||m)d=l(e,d,i);else return d.focus(),!0}return!1}const bA=O.forwardRef(function(t,i){const{actions:o,autoFocus:l=!1,autoFocusItem:u=!1,children:c,className:d,disabledItemsFocusable:m=!1,disableListWrap:p=!1,onKeyDown:g,variant:y="selectedMenu",...v}=t,S=O.useRef(null),C=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kr(()=>{l&&S.current.focus()},[l]),O.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(M,{direction:_})=>{const B=!S.current.style.width;if(M.clientHeight<S.current.clientHeight&&B){const T=`${Ny(Vr(M))}px`;S.current.style[_==="rtl"?"paddingLeft":"paddingRight"]=T,S.current.style.width=`calc(100% + ${T})`}return S.current}}),[]);const w=M=>{const _=S.current,B=M.key;if(M.ctrlKey||M.metaKey||M.altKey){g&&g(M);return}const L=sl(mr(_));if(B==="ArrowDown")M.preventDefault(),cl(_,L,p,m,od);else if(B==="ArrowUp")M.preventDefault(),cl(_,L,p,m,Uy);else if(B==="Home")M.preventDefault(),cl(_,null,p,m,od);else if(B==="End")M.preventDefault(),cl(_,null,p,m,Uy);else if(B.length===1){const V=C.current,q=B.toLowerCase(),F=performance.now();V.keys.length>0&&(F-V.lastTime>500?(V.keys=[],V.repeating=!0,V.previousKeyMatched=!0):V.repeating&&q!==V.keys[0]&&(V.repeating=!1)),V.lastTime=F,V.keys.push(q);const U=L&&!V.repeating&&Ly(L,V);V.previousKeyMatched&&(U||cl(_,L,!1,m,od,V))?M.preventDefault():V.previousKeyMatched=!1}g&&g(M)},R=Cn(S,i);let k=-1;O.Children.forEach(c,(M,_)=>{if(!O.isValidElement(M)){k===_&&(k+=1,k>=c.length&&(k=-1));return}M.props.disabled||(y==="selectedMenu"&&M.props.selected||k===-1)&&(k=_),k===_&&(M.props.disabled||M.props.muiSkipListHighlight||M.type.muiSkipListHighlight)&&(k+=1,k>=c.length&&(k=-1))});const $=O.Children.map(c,(M,_)=>{if(_===k){const B={};return u&&(B.autoFocus=!0),M.props.tabIndex===void 0&&y==="selectedMenu"&&(B.tabIndex=0),O.cloneElement(M,B)}return M});return Y.jsx(yA,{role:"menu",ref:R,className:d,onKeyDown:w,tabIndex:l?0:-1,...v,children:$})});function SA(e){return xt("MuiPopover",e)}St("MuiPopover",["root","paper"]);function jy(e,t){let i=0;return typeof t=="number"?i=t:t==="center"?i=e.height/2:t==="bottom"&&(i=e.height),i}function Py(e,t){let i=0;return typeof t=="number"?i=t:t==="center"?i=e.width/2:t==="right"&&(i=e.width),i}function Hy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function cu(e){return typeof e=="function"?e():e}const vA=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"]},SA,t)},xA=we(H_,{name:"MuiPopover",slot:"Root"})({}),qy=we(gy,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wA=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiPopover"}),{action:l,anchorEl:u,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:m="anchorEl",children:p,className:g,container:y,elevation:v=8,marginThreshold:S=16,open:C,PaperProps:w={},slots:R={},slotProps:k={},transformOrigin:$={vertical:"top",horizontal:"left"},TransitionComponent:M,transitionDuration:_="auto",TransitionProps:B={},disableScrollLock:T=!1,...L}=o,V=O.useRef(),q={...o,anchorOrigin:c,anchorReference:m,elevation:v,marginThreshold:S,transformOrigin:$,TransitionComponent:M,transitionDuration:_,TransitionProps:B},F=vA(q),U=O.useCallback(()=>{if(m==="anchorPosition")return d;const Te=cu(u),Ze=(Te&&Te.nodeType===1?Te:mr(V.current).body).getBoundingClientRect();return{top:Ze.top+jy(Ze,c.vertical),left:Ze.left+Py(Ze,c.horizontal)}},[u,c.horizontal,c.vertical,d,m]),x=O.useCallback(Te=>({vertical:jy(Te,$.vertical),horizontal:Py(Te,$.horizontal)}),[$.horizontal,$.vertical]),K=O.useCallback(Te=>{const ze={width:Te.offsetWidth,height:Te.offsetHeight},Ze=x(ze);if(m==="none")return{top:null,left:null,transformOrigin:Hy(Ze)};const Qt=U();let Oe=Qt.top-Ze.vertical,qe=Qt.left-Ze.horizontal;const Vt=Oe+ze.height,zt=qe+ze.width,mt=Vr(cu(u)),ct=mt.innerHeight-S,Bt=mt.innerWidth-S;if(S!==null&&Oe<S){const ft=Oe-S;Oe-=ft,Ze.vertical+=ft}else if(S!==null&&Vt>ct){const ft=Vt-ct;Oe-=ft,Ze.vertical+=ft}if(S!==null&&qe<S){const ft=qe-S;qe-=ft,Ze.horizontal+=ft}else if(zt>Bt){const ft=zt-Bt;qe-=ft,Ze.horizontal+=ft}return{top:`${Math.round(Oe)}px`,left:`${Math.round(qe)}px`,transformOrigin:Hy(Ze)}},[u,m,U,x,S]),[H,j]=O.useState(C),z=O.useCallback(()=>{const Te=V.current;if(!Te)return;const ze=K(Te);ze.top!==null&&Te.style.setProperty("top",ze.top),ze.left!==null&&(Te.style.left=ze.left),Te.style.transformOrigin=ze.transformOrigin,j(!0)},[K]);O.useEffect(()=>(T&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[u,T,z]);const J=()=>{z()},ce=()=>{j(!1)};O.useEffect(()=>{C&&z()}),O.useImperativeHandle(l,()=>C?{updatePosition:()=>{z()}}:null,[C,z]),O.useEffect(()=>{if(!C)return;const Te=ey(()=>{z()}),ze=Vr(cu(u));return ze.addEventListener("resize",Te),()=>{Te.clear(),ze.removeEventListener("resize",Te)}},[u,C,z]);let ue=_;const N={slots:{transition:M,...R},slotProps:{transition:B,paper:w,...k}},[D,W]=Ht("transition",{elementType:rd,externalForwardedProps:N,ownerState:q,getSlotProps:Te=>({...Te,onEntering:(ze,Ze)=>{Te.onEntering?.(ze,Ze),J()},onExited:ze=>{Te.onExited?.(ze),ce()}}),additionalProps:{appear:!0,in:C}});_==="auto"&&!D.muiSupportAuto&&(ue=void 0);const A=y||(u?mr(cu(u)).body:void 0),[fe,{slots:me,slotProps:he,...be}]=Ht("root",{ref:i,elementType:xA,externalForwardedProps:{...N,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:R.backdrop},slotProps:{backdrop:$2(typeof k.backdrop=="function"?k.backdrop(q):k.backdrop,{invisible:!0})},container:A,open:C},ownerState:q,className:Ie(F.root,g)}),[Ue,Ce]=Ht("paper",{ref:V,className:F.paper,elementType:qy,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:H?void 0:{opacity:0}},ownerState:q});return Y.jsx(fe,{...be,...!Js(fe)&&{slots:me,slotProps:he,disableScrollLock:T},children:Y.jsx(D,{...W,timeout:ue,children:Y.jsx(Ue,{...Ce,children:p})})})});function EA(e){return xt("MuiMenu",e)}St("MuiMenu",["root","paper","list"]);const CA={vertical:"top",horizontal:"right"},TA={vertical:"top",horizontal:"left"},_A=e=>{const{classes:t}=e;return wt({root:["root"],paper:["paper"],list:["list"]},EA,t)},AA=we(wA,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),kA=we(qy,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),RA=we(bA,{name:"MuiMenu",slot:"List"})({outline:0}),OA=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:d=!1,MenuListProps:m={},onClose:p,open:g,PaperProps:y={},PopoverClasses:v,transitionDuration:S="auto",TransitionProps:{onEntering:C,...w}={},variant:R="selectedMenu",slots:k={},slotProps:$={},...M}=o,_=OC(),B={...o,autoFocus:l,disableAutoFocusItem:d,MenuListProps:m,onEntering:C,PaperProps:y,transitionDuration:S,TransitionProps:w,variant:R},T=_A(B),L=l&&!d&&g,V=O.useRef(null),q=(ue,N)=>{V.current&&V.current.adjustStyleForScrollbar(ue,{direction:_?"rtl":"ltr"}),C&&C(ue,N)},F=ue=>{ue.key==="Tab"&&(ue.preventDefault(),p&&p(ue,"tabKeyDown"))};let U=-1;O.Children.map(u,(ue,N)=>{O.isValidElement(ue)&&(ue.props.disabled||(R==="selectedMenu"&&ue.props.selected||U===-1)&&(U=N))});const x={slots:k,slotProps:{list:m,transition:w,paper:y,...$}},K=RT({elementType:k.root,externalSlotProps:$.root,ownerState:B,className:[T.root,c]}),[H,j]=Ht("paper",{className:T.paper,elementType:kA,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:B}),[z,J]=Ht("list",{className:Ie(T.list,m.className),elementType:RA,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:ue=>({...ue,onKeyDown:N=>{F(N),ue.onKeyDown?.(N)}}),ownerState:B}),ce=typeof x.slotProps.transition=="function"?x.slotProps.transition(B):x.slotProps.transition;return Y.jsx(AA,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?CA:TA,slots:{root:k.root,paper:H,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:K,paper:j,backdrop:typeof $.backdrop=="function"?$.backdrop(B):$.backdrop,transition:{...ce,onEntering:(...ue)=>{q(...ue),ce?.onEntering?.(...ue)}}},open:g,ref:i,transitionDuration:S,ownerState:B,...M,classes:v,children:Y.jsx(z,{actions:V,autoFocus:l&&(U===-1||d),autoFocusItem:L,variant:R,...J,children:u})})});function MA(e){return xt("MuiNativeSelect",e)}const ad=St("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),NA=e=>{const{classes:t,variant:i,disabled:o,multiple:l,open:u,error:c}=e,d={select:["select",i,o&&"disabled",l&&"multiple",c&&"error"],icon:["icon",`icon${Ee(i)}`,u&&"iconOpen",o&&"disabled"]};return wt(d,MA,t)},Vy=we("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ad.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),zA=we(Vy,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pr,overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{[`&.${ad.multiple}`]:t.multiple}]}})({}),Fy=we("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ad.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),BA=we(Fy,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${Ee(i.variant)}`],i.open&&t.iconOpen]}})({}),DA=O.forwardRef(function(t,i){const{className:o,disabled:l,error:u,IconComponent:c,inputRef:d,variant:m="standard",...p}=t,g={...t,disabled:l,variant:m,error:u},y=NA(g);return Y.jsxs(O.Fragment,{children:[Y.jsx(zA,{ownerState:g,className:Ie(y.select,o),disabled:l,ref:d||i,...p}),t.multiple?null:Y.jsx(BA,{as:c,ownerState:g,className:y.icon})]})});var Yy;const IA=we("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),$A=we("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pr})(_t(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function UA(e){const{children:t,classes:i,className:o,label:l,notched:u,...c}=e,d=l!=null&&l!=="",m={...e,notched:u,withLabel:d};return Y.jsx(IA,{"aria-hidden":!0,className:o,ownerState:m,...c,children:Y.jsx($A,{ownerState:m,children:d?Y.jsx("span",{children:l}):Yy||(Yy=Y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const LA=e=>{const{classes:t}=e,o=wt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LT,t);return{...t,...o}},jA=we(ou,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ru})(_t(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Nr.focused} .${Nr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Mr()).map(([i])=>({props:{color:i},style:{[`&.${Nr.focused} .${Nr.notchedOutline}`]:{borderColor:(e.vars||e).palette[i].main}}})),{props:{},style:{[`&.${Nr.error} .${Nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Nr.disabled} .${Nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:14}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:14}},{props:({ownerState:i})=>i.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:i,size:o})=>i.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),PA=we(UA,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(_t(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),HA=we(au,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:iu})(_t(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),ld=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:m=!1,notched:p,slots:g={},slotProps:y={},type:v="text",...S}=o,C=LA(o),w=Lo(),R=Uo({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...o,color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:w,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:m,size:R.size,type:v},$=g.root??l.Root??jA,M=g.input??l.Input??HA,[_,B]=Ht("notchedOutline",{elementType:PA,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:y},additionalProps:{label:d!=null&&d!==""&&R.required?Y.jsxs(O.Fragment,{children:[d," ","*"]}):d}});return Y.jsx(Kf,{slots:{root:$,input:M},slotProps:y,renderSuffix:T=>Y.jsx(_,{...B,notched:typeof p<"u"?p:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:u,inputComponent:c,multiline:m,ref:i,type:v,...S,classes:{...C,notchedOutline:null}})});ld.muiName="Input";function Gy(e){return xt("MuiSelect",e)}const fl=St("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Xy;const qA=we(Vy,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`&.${fl.select}`]:t.select},{[`&.${fl.select}`]:t[i.variant]},{[`&.${fl.error}`]:t.error},{[`&.${fl.multiple}`]:t.multiple}]}})({[`&.${fl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),VA=we(Fy,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${Ee(i.variant)}`],i.open&&t.iconOpen]}})({}),FA=we("input",{shouldForwardProp:e=>Wg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ky(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YA(e){return e==null||typeof e=="string"&&!e.trim()}const GA=e=>{const{classes:t,variant:i,disabled:o,multiple:l,open:u,error:c}=e,d={select:["select",i,o&&"disabled",l&&"multiple",c&&"error"],icon:["icon",`icon${Ee(i)}`,u&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return wt(d,Gy,t)},XA=O.forwardRef(function(t,i){const{"aria-describedby":o,"aria-label":l,autoFocus:u,autoWidth:c,children:d,className:m,defaultOpen:p,defaultValue:g,disabled:y,displayEmpty:v,error:S=!1,IconComponent:C,inputRef:w,labelId:R,MenuProps:k={},multiple:$,name:M,onBlur:_,onChange:B,onClose:T,onFocus:L,onKeyDown:V,onMouseDown:q,onOpen:F,open:U,readOnly:x,renderValue:K,required:H,SelectDisplayProps:j={},tabIndex:z,type:J,value:ce,variant:ue="standard",...N}=t,[D,W]=ny({controlled:ce,default:g,name:"Select"}),[A,fe]=ny({controlled:U,default:p,name:"Select"}),me=O.useRef(null),he=O.useRef(null),[be,Ue]=O.useState(null),{current:Ce}=O.useRef(U!=null),[Te,ze]=O.useState(),Ze=Cn(i,w),Qt=O.useCallback(xe=>{he.current=xe,xe&&Ue(xe)},[]),Oe=be?.parentNode;O.useImperativeHandle(Ze,()=>({focus:()=>{he.current.focus()},node:me.current,value:D}),[D]),O.useEffect(()=>{p&&A&&be&&!Ce&&(ze(c?null:Oe.clientWidth),he.current.focus())},[be,c]),O.useEffect(()=>{u&&he.current.focus()},[u]),O.useEffect(()=>{if(!R)return;const xe=mr(he.current).getElementById(R);if(xe){const Ve=()=>{getSelection().isCollapsed&&he.current.focus()};return xe.addEventListener("click",Ve),()=>{xe.removeEventListener("click",Ve)}}},[R]);const qe=(xe,Ve)=>{xe?F&&F(Ve):T&&T(Ve),Ce||(ze(c?null:Oe.clientWidth),fe(xe))},Vt=xe=>{q?.(xe),xe.button===0&&(xe.preventDefault(),he.current.focus(),qe(!0,xe))},zt=xe=>{qe(!1,xe)},mt=O.Children.toArray(d),ct=xe=>{const Ve=mt.find(on=>on.props.value===xe.target.value);Ve!==void 0&&(W(Ve.props.value),B&&B(xe,Ve))},Bt=xe=>Ve=>{let on;if(Ve.currentTarget.hasAttribute("tabindex")){if($){on=Array.isArray(D)?D.slice():[];const vr=D.indexOf(xe.props.value);vr===-1?on.push(xe.props.value):on.splice(vr,1)}else on=xe.props.value;if(xe.props.onClick&&xe.props.onClick(Ve),D!==on&&(W(on),B)){const vr=Ve.nativeEvent||Ve,lo=new vr.constructor(vr.type,vr);Object.defineProperty(lo,"target",{writable:!0,value:{value:on,name:M}}),B(lo,xe)}$||qe(!1,Ve)}},ft=xe=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),qe(!0,xe)),V?.(xe))},Se=be!==null&&A,Hn=xe=>{!Se&&_&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:D,name:M}}),_(xe))};delete N["aria-invalid"];let He,Sr;const te=[];let se=!1;(nu({value:D})||v)&&(K?He=K(D):se=!0);const ge=mt.map(xe=>{if(!O.isValidElement(xe))return null;let Ve;if($){if(!Array.isArray(D))throw new Error(Pr(2));Ve=D.some(on=>Ky(on,xe.props.value)),Ve&&se&&te.push(xe.props.children)}else Ve=Ky(D,xe.props.value),Ve&&se&&(Sr=xe.props.children);return O.cloneElement(xe,{"aria-selected":Ve?"true":"false",onClick:Bt(xe),onKeyUp:on=>{on.key===" "&&on.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(on)},role:"option",selected:Ve,value:void 0,"data-value":xe.props.value})});se&&($?te.length===0?He=null:He=te.reduce((xe,Ve,on)=>(xe.push(Ve),on<te.length-1&&xe.push(", "),xe),[]):He=Sr);let Ae=Te;!c&&Ce&&be&&(Ae=Oe.clientWidth);let Le;typeof z<"u"?Le=z:Le=y?null:0;const Pe=j.id||(M?`mui-component-select-${M}`:void 0),rn={...t,variant:ue,value:D,open:Se,error:S},Ut=GA(rn),Dt={...k.PaperProps,...typeof k.slotProps?.paper=="function"?k.slotProps.paper(rn):k.slotProps?.paper},vn={...k.MenuListProps,...typeof k.slotProps?.list=="function"?k.slotProps.list(rn):k.slotProps?.list},at=tl();return Y.jsxs(O.Fragment,{children:[Y.jsx(qA,{as:"div",ref:Qt,tabIndex:Le,role:"combobox","aria-controls":Se?at:void 0,"aria-disabled":y?"true":void 0,"aria-expanded":Se?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[R,Pe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":H?"true":void 0,"aria-invalid":S?"true":void 0,onKeyDown:ft,onMouseDown:y||x?null:Vt,onBlur:Hn,onFocus:L,...j,ownerState:rn,className:Ie(j.className,Ut.select,m),id:Pe,children:YA(He)?Xy||(Xy=Y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):He}),Y.jsx(FA,{"aria-invalid":S,value:Array.isArray(D)?D.join(","):D,name:M,ref:me,"aria-hidden":!0,onChange:ct,tabIndex:-1,disabled:y,className:Ut.nativeInput,autoFocus:u,required:H,...N,ownerState:rn}),Y.jsx(VA,{as:C,className:Ut.icon,ownerState:rn}),Y.jsx(OA,{id:`menu-${M||""}`,anchorEl:Oe,open:Se,onClose:zt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,slotProps:{...k.slotProps,list:{"aria-labelledby":R,role:"listbox","aria-multiselectable":$?"true":void 0,disableListWrap:!0,id:at,...vn},paper:{...Dt,style:{minWidth:Ae,...Dt!=null?Dt.style:null}}},children:ge})]})}),KA=e=>{const{classes:t}=e,o=wt({root:["root"]},Gy,t);return{...t,...o}},sd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pr(e)&&e!=="variant"},QA=we(id,sd)(""),ZA=we(ld,sd)(""),WA=we(ed,sd)(""),Qy=O.forwardRef(function(t,i){const o=Et({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:u,classes:c={},className:d,defaultOpen:m=!1,displayEmpty:p=!1,IconComponent:g=PT,id:y,input:v,inputProps:S,label:C,labelId:w,MenuProps:R,multiple:k=!1,native:$=!1,onClose:M,onOpen:_,open:B,renderValue:T,SelectDisplayProps:L,variant:V="outlined",...q}=o,F=$?DA:XA,U=Lo(),x=Uo({props:o,muiFormControl:U,states:["variant","error"]}),K=x.variant||V,H={...o,variant:K,classes:c},j=KA(H),{root:z,...J}=j,ce=v||{standard:Y.jsx(QA,{ownerState:H}),outlined:Y.jsx(ZA,{label:C,ownerState:H}),filled:Y.jsx(WA,{ownerState:H})}[K],ue=Cn(i,ol(ce));return Y.jsx(O.Fragment,{children:O.cloneElement(ce,{inputComponent:F,inputProps:{children:u,error:x.error,IconComponent:g,variant:K,type:void 0,multiple:k,...$?{id:y}:{autoWidth:l,defaultOpen:m,displayEmpty:p,labelId:w,MenuProps:R,onClose:M,onOpen:_,open:B,renderValue:T,SelectDisplayProps:{id:y,...L}},...S,classes:S?yn(J,S.classes):J,...v?v.props.inputProps:{}},...(k&&$||p)&&K==="outlined"?{notched:!0}:{},ref:ue,className:Ie(ce.props.className,d,j.root),...!v&&{variant:K},...q})})});Qy.muiName="Select";function JA(e){return xt("MuiTextField",e)}St("MuiTextField",["root"]);const ek={standard:id,filled:ed,outlined:ld},tk=e=>{const{classes:t}=e;return wt({root:["root"]},JA,t)},nk=we(K_,{name:"MuiTextField",slot:"Root"})({}),rk=O.forwardRef(function(t,i){const o=Et({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:u=!1,children:c,className:d,color:m="primary",defaultValue:p,disabled:g=!1,error:y=!1,FormHelperTextProps:v,fullWidth:S=!1,helperText:C,id:w,InputLabelProps:R,inputProps:k,InputProps:$,inputRef:M,label:_,maxRows:B,minRows:T,multiline:L=!1,name:V,onBlur:q,onChange:F,onFocus:U,placeholder:x,required:K=!1,rows:H,select:j=!1,SelectProps:z,slots:J={},slotProps:ce={},type:ue,value:N,variant:D="outlined",...W}=o,A={...o,autoFocus:u,color:m,disabled:g,error:y,fullWidth:S,multiline:L,required:K,select:j,variant:D},fe=tk(A),me=tl(w),he=C&&me?`${me}-helper-text`:void 0,be=_&&me?`${me}-label`:void 0,Ue=ek[D],Ce={slots:J,slotProps:{input:$,inputLabel:R,htmlInput:k,formHelperText:v,select:z,...ce}},Te={},ze=Ce.slotProps.inputLabel;D==="outlined"&&(ze&&typeof ze.shrink<"u"&&(Te.notched=ze.shrink),Te.label=_),j&&((!z||!z.native)&&(Te.id=void 0),Te["aria-describedby"]=void 0);const[Ze,Qt]=Ht("root",{elementType:nk,shouldForwardComponentProp:!0,externalForwardedProps:{...Ce,...W},ownerState:A,className:Ie(fe.root,d),ref:i,additionalProps:{disabled:g,error:y,fullWidth:S,required:K,color:m,variant:D}}),[Oe,qe]=Ht("input",{elementType:Ue,externalForwardedProps:Ce,additionalProps:Te,ownerState:A}),[Vt,zt]=Ht("inputLabel",{elementType:dA,externalForwardedProps:Ce,ownerState:A}),[mt,ct]=Ht("htmlInput",{elementType:"input",externalForwardedProps:Ce,ownerState:A}),[Bt,ft]=Ht("formHelperText",{elementType:J_,externalForwardedProps:Ce,ownerState:A}),[Se,Hn]=Ht("select",{elementType:Qy,externalForwardedProps:Ce,ownerState:A}),He=Y.jsx(Oe,{"aria-describedby":he,autoComplete:l,autoFocus:u,defaultValue:p,fullWidth:S,multiline:L,name:V,rows:H,maxRows:B,minRows:T,type:ue,value:N,id:me,inputRef:M,onBlur:q,onChange:F,onFocus:U,placeholder:x,inputProps:ct,slots:{input:J.htmlInput?mt:void 0},...qe});return Y.jsxs(Ze,{...Qt,children:[_!=null&&_!==""&&Y.jsx(Vt,{htmlFor:me,id:be,...zt,children:_}),j?Y.jsx(Se,{"aria-describedby":he,id:me,labelId:be,value:N,input:He,...Hn,children:c}):He,C&&Y.jsx(Bt,{id:he,...ft,children:C})]})}),ik=Cg({themeId:hr}),ok=2e3,fu="/api/chat",ak="/api/chat-session";let Zy=null;function lk(e){Zy=e}function du(){return Zy}let hu=null;async function Wy(){const e=du();return hu||(hu=fetch(`${e?.apiBaseUrl}${ak}/${e?.clientId}/authorize`,{method:"POST",headers:{"Content-Type":"application/json"}}).then(t=>{if(!t.ok)throw new Error("refresh failed");return t.json()}).then(t=>(e&&(e.sessionToken=t),t)).finally(()=>{hu=null})),hu}async function dl(e,t={}){const i=new Headers(t.headers),o=du();o?.sessionToken&&i.set("Authorization",`Bearer ${o?.sessionToken}`);const l=await fetch(e,{...t,headers:i});if(l.status!==401)return l;const u=await Wy();return i.set("Authorization",`Bearer ${u}`),fetch(e,{...t,headers:i})}function sk(){const e=window.innerWidth;return e<=767?"Mobile":e<=1024?"Tablet":"Desktop"}async function uk(e){const t=await dl(e.url,{method:"POST",headers:{"Content-Type":"application/json","X-Device-Type":sk(),...e.clientId?{"X-Client-Id":e.clientId}:{},...e.conversationId?{"X-Conversation-Id":e.conversationId}:{},...e.messageId?{"X-Message-Id":e.messageId}:{}},body:JSON.stringify(e.body)});if(!t.ok)throw new Error("HTTP "+t.status);if(!t.body)throw new Error("ReadableStream missing");const i=t.body.getReader(),o=new TextDecoder("utf-8");let l="";for(;;){const{value:u,done:c}=await i.read();if(c)break;l+=o.decode(u,{stream:!0});let d;for(;(d=l.indexOf(`
|
|
147
|
+
`))!==-1;){const m=l.slice(0,d).trim();if(l=l.slice(d+1),!m)continue;const p=JSON.parse(m);e.onDelta(p)}}}const ud="chat_session_v1",ck=1800*1e3;function fk(){try{const e=localStorage.getItem(ud);return e?JSON.parse(e):null}catch{return null}}function Jy(e){localStorage.setItem(ud,JSON.stringify(e))}function pu(){const e=Date.now(),t=fk();if(!t)return null;if(e-t.lastActivityAt>ck)return hk(),null;const o={...t,lastActivityAt:e};return Jy(o),o.conversationId}function dk(e){const t={conversationId:e,lastActivityAt:Date.now()};Jy(t)}function hk(){localStorage.removeItem(ud)}const pk=Xi(Y.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mk=Xi(Y.jsx("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91"})),gk=Xi(Y.jsx("path",{d:"M20 4v12H5.17L4 17.17V4zm0-2H4c-1.1 0-2 .9-2 2v15.59c0 .89 1.08 1.34 1.71.71L6 18h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2"})),cd=Xi(Y.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M15 17H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m0-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"})),yk=Xi(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v1c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-1c0-2.66-5.33-4-8-4"}));function O6(){}function M6(){}function bk(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Sk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xk={};function e0(e,t){return(xk.jsx?vk:Sk).test(e)}const wk=/[ \t\n\f\r]/g;function Ek(e){return typeof e=="object"?e.type==="text"?t0(e.value):!1:t0(e)}function t0(e){return e.replace(wk,"")===""}class hl{constructor(t,i,o){this.normal=i,this.property=t,o&&(this.space=o)}}hl.prototype.normal={},hl.prototype.property={},hl.prototype.space=void 0;function n0(e,t){const i={},o={};for(const l of e)Object.assign(i,l.property),Object.assign(o,l.normal);return new hl(i,o,t)}function fd(e){return e.toLowerCase()}class Tn{constructor(t,i){this.attribute=i,this.property=t}}Tn.prototype.attribute="",Tn.prototype.booleanish=!1,Tn.prototype.boolean=!1,Tn.prototype.commaOrSpaceSeparated=!1,Tn.prototype.commaSeparated=!1,Tn.prototype.defined=!1,Tn.prototype.mustUseProperty=!1,Tn.prototype.number=!1,Tn.prototype.overloadedBoolean=!1,Tn.prototype.property="",Tn.prototype.spaceSeparated=!1,Tn.prototype.space=void 0;let Ck=0;const $e=to(),Xt=to(),dd=to(),de=to(),Ct=to(),Po=to(),$n=to();function to(){return 2**++Ck}const hd=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:Xt,commaOrSpaceSeparated:$n,commaSeparated:Po,number:de,overloadedBoolean:dd,spaceSeparated:Ct},Symbol.toStringTag,{value:"Module"})),pd=Object.keys(hd);class md extends Tn{constructor(t,i,o,l){let u=-1;if(super(t,i),r0(this,"space",l),typeof o=="number")for(;++u<pd.length;){const c=pd[u];r0(this,pd[u],(o&hd[c])===hd[c])}}}md.prototype.defined=!0;function r0(e,t,i){i&&(e[t]=i)}function Ho(e){const t={},i={};for(const[o,l]of Object.entries(e.properties)){const u=new md(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),t[o]=u,i[fd(o)]=o,i[fd(u.attribute)]=o}return new hl(t,i,e.space)}const i0=Ho({properties:{ariaActiveDescendant:null,ariaAtomic:Xt,ariaAutoComplete:null,ariaBusy:Xt,ariaChecked:Xt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:Xt,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:Xt,ariaFlowTo:Ct,ariaGrabbed:Xt,ariaHasPopup:null,ariaHidden:Xt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:de,ariaLive:null,ariaModal:Xt,ariaMultiLine:Xt,ariaMultiSelectable:Xt,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:Xt,ariaReadOnly:Xt,ariaRelevant:null,ariaRequired:Xt,ariaRoleDescription:Ct,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:Xt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function o0(e,t){return t in e?e[t]:t}function a0(e,t){return o0(e,t.toLowerCase())}const Tk=Ho({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Po,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:Ct,autoFocus:$e,autoPlay:$e,blocking:Ct,capture:null,charSet:null,checked:$e,cite:null,className:Ct,cols:de,colSpan:null,content:null,contentEditable:Xt,controls:$e,controlsList:Ct,coords:de|Po,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:dd,draggable:Xt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:Ct,height:de,hidden:dd,high:de,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:$e,itemType:Ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$e,optimum:de,pattern:null,ping:Ct,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:Ct,required:$e,reversed:$e,rows:de,rowSpan:de,sandbox:Ct,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:Xt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:Xt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ct,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:Xt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:a0}),_k=Ho({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$n,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:Ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Po,g2:Po,glyphName:Po,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:$n,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$n,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$n,rev:$n,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$n,requiredFeatures:$n,requiredFonts:$n,requiredFormats:$n,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:$n,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$n,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$n,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:o0}),l0=Ho({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),s0=Ho({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:a0}),u0=Ho({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ak={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kk=/[A-Z]/g,c0=/-[a-z]/g,Rk=/^data[-\w.:]+$/i;function Ok(e,t){const i=fd(t);let o=t,l=Tn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Rk.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(c0,Nk);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!c0.test(u)){let c=u.replace(kk,Mk);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=md}return new l(o,t)}function Mk(e){return"-"+e.toLowerCase()}function Nk(e){return e.charAt(1).toUpperCase()}const zk=n0([i0,Tk,l0,s0,u0],"html"),gd=n0([i0,_k,l0,s0,u0],"svg");function Bk(e){return e.join(" ").trim()}var qo={},yd,f0;function Dk(){if(f0)return yd;f0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
148
|
+
`,p="/",g="*",y="",v="comment",S="declaration";function C(R,k){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];k=k||{};var $=1,M=1;function _(H){var j=H.match(t);j&&($+=j.length);var z=H.lastIndexOf(m);M=~z?H.length-z:M+H.length}function B(){var H={line:$,column:M};return function(j){return j.position=new T(H),q(),j}}function T(H){this.start=H,this.end={line:$,column:M},this.source=k.source}T.prototype.content=R;function L(H){var j=new Error(k.source+":"+$+":"+M+": "+H);if(j.reason=H,j.filename=k.source,j.line=$,j.column=M,j.source=R,!k.silent)throw j}function V(H){var j=H.exec(R);if(j){var z=j[0];return _(z),R=R.slice(z.length),j}}function q(){V(i)}function F(H){var j;for(H=H||[];j=U();)j!==!1&&H.push(j);return H}function U(){var H=B();if(!(p!=R.charAt(0)||g!=R.charAt(1))){for(var j=2;y!=R.charAt(j)&&(g!=R.charAt(j)||p!=R.charAt(j+1));)++j;if(j+=2,y===R.charAt(j-1))return L("End of comment missing");var z=R.slice(2,j-2);return M+=2,_(z),R=R.slice(j),M+=2,H({type:v,comment:z})}}function x(){var H=B(),j=V(o);if(j){if(U(),!V(l))return L("property missing ':'");var z=V(u),J=H({type:S,property:w(j[0].replace(e,y)),value:z?w(z[0].replace(e,y)):y});return V(c),J}}function K(){var H=[];F(H);for(var j;j=x();)j!==!1&&(H.push(j),F(H));return H}return q(),K()}function w(R){return R?R.replace(d,y):y}return yd=C,yd}var d0;function Ik(){if(d0)return qo;d0=1;var e=qo&&qo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=i;const t=e(Dk());function i(o,l){let u=null;if(!o||typeof o!="string")return u;const c=(0,t.default)(o),d=typeof l=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:g}=m;d?l(p,g,m):g&&(u=u||{},u[p]=g)}),u}return qo}var pl={},h0;function $k(){if(h0)return pl;h0=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,u=function(p){return!p||i.test(p)||e.test(p)},c=function(p,g){return g.toUpperCase()},d=function(p,g){return"".concat(g,"-")},m=function(p,g){return g===void 0&&(g={}),u(p)?p:(p=p.toLowerCase(),g.reactCompat?p=p.replace(l,d):p=p.replace(o,d),p.replace(t,c))};return pl.camelCase=m,pl}var ml,p0;function Uk(){if(p0)return ml;p0=1;var e=ml&&ml.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(Ik()),i=$k();function o(l,u){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(d,m){d&&m&&(c[(0,i.camelCase)(d,u)]=m)}),c}return o.default=o,ml=o,ml}var Lk=Uk();const jk=xs(Lk),m0=g0("end"),bd=g0("start");function g0(e){return t;function t(i){const o=i&&i.position&&i.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Pk(e){const t=bd(e),i=m0(e);if(t&&i)return{start:t,end:i}}function gl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?y0(e.position):"start"in e||"end"in e?y0(e):"line"in e||"column"in e?Sd(e):""}function Sd(e){return b0(e&&e.line)+":"+b0(e&&e.column)}function y0(e){return Sd(e&&e.start)+"-"+Sd(e&&e.end)}function b0(e){return e&&typeof e=="number"?e:1}class bn extends Error{constructor(t,i,o){super(),typeof i=="string"&&(o=i,i=void 0);let l="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof t=="string"?l=t:!u.cause&&t&&(c=!0,l=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?u.ruleId=o:(u.source=o.slice(0,m),u.ruleId=o.slice(m+1))}if(!u.place&&u.ancestors&&u.ancestors){const m=u.ancestors[u.ancestors.length-1];m&&(u.place=m.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=gl(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bn.prototype.file="",bn.prototype.name="",bn.prototype.reason="",bn.prototype.message="",bn.prototype.stack="",bn.prototype.column=void 0,bn.prototype.line=void 0,bn.prototype.ancestors=void 0,bn.prototype.cause=void 0,bn.prototype.fatal=void 0,bn.prototype.place=void 0,bn.prototype.ruleId=void 0,bn.prototype.source=void 0;const vd={}.hasOwnProperty,Hk=new Map,qk=/[A-Z]/g,Vk=new Set(["table","tbody","thead","tfoot","tr"]),Fk=new Set(["td","th"]),S0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=eR(i,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Jk(i,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gd:zk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=v0(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}function v0(e,t,i){if(t.type==="element")return Gk(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Xk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qk(e,t,i);if(t.type==="mdxjsEsm")return Kk(e,t);if(t.type==="root")return Zk(e,t,i);if(t.type==="text")return Wk(e,t)}function Gk(e,t,i){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=gd,e.schema=l),e.ancestors.push(t);const u=w0(e,t.tagName,!1),c=tR(e,t);let d=wd(e,t);return Vk.has(t.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!Ek(m):!0})),x0(e,c,u,t),xd(c,d),e.ancestors.pop(),e.schema=o,e.create(t,u,c,i)}function Xk(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}yl(e,t.position)}function Kk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yl(e,t.position)}function Qk(e,t,i){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=gd,e.schema=l),e.ancestors.push(t);const u=t.name===null?e.Fragment:w0(e,t.name,!0),c=nR(e,t),d=wd(e,t);return x0(e,c,u,t),xd(c,d),e.ancestors.pop(),e.schema=o,e.create(t,u,c,i)}function Zk(e,t,i){const o={};return xd(o,wd(e,t)),e.create(t,e.Fragment,o,i)}function Wk(e,t){return t.value}function x0(e,t,i,o){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=o)}function xd(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function Jk(e,t,i){return o;function o(l,u,c,d){const p=Array.isArray(c.children)?i:t;return d?p(u,c,d):p(u,c)}}function eR(e,t){return i;function i(o,l,u,c){const d=Array.isArray(u.children),m=bd(o);return t(l,u,c,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function tR(e,t){const i={};let o,l;for(l in t.properties)if(l!=="children"&&vd.call(t.properties,l)){const u=rR(e,l,t.properties[l]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Fk.has(t.tagName)?o=d:i[c]=d}}if(o){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return i}function nR(e,t){const i={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const u=o.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else yl(e,t.position);else{const l=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else yl(e,t.position);else u=o.value===null?!0:o.value;i[l]=u}return i}function wd(e,t){const i=[];let o=-1;const l=e.passKeys?new Map:Hk;for(;++o<t.children.length;){const u=t.children[o];let c;if(e.passKeys){const m=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(m){const p=l.get(m)||0;c=m+"-"+p,l.set(m,p+1)}}const d=v0(e,u,c);d!==void 0&&i.push(d)}return i}function rR(e,t,i){const o=Ok(e.schema,t);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=o.commaSeparated?bk(i):Bk(i)),o.property==="style"){let l=typeof i=="object"?i:iR(e,String(i));return e.stylePropertyNameCase==="css"&&(l=oR(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?Ak[o.property]||o.property:o.attribute,i]}}function iR(e,t){try{return jk(t,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const o=i,l=new bn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=S0+"#cannot-parse-style-attribute",l}}function w0(e,t,i){let o;if(!i)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let u=-1,c;for(;++u<l.length;){const d=e0(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}o=c}else o=e0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return vd.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);yl(e)}function yl(e,t){const i=new bn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=S0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function oR(e){const t={};let i;for(i in e)vd.call(e,i)&&(t[aR(i)]=e[i]);return t}function aR(e){let t=e.replace(qk,lR);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function lR(e){return"-"+e.toLowerCase()}const Ed={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sR={};function uR(e,t){const i=sR,o=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,l=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return E0(e,o,l)}function E0(e,t,i){if(cR(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return C0(e.children,t,i)}return Array.isArray(e)?C0(e,t,i):""}function C0(e,t,i){const o=[];let l=-1;for(;++l<e.length;)o[l]=E0(e[l],t,i);return o.join("")}function cR(e){return!!(e&&typeof e=="object")}const T0=document.createElement("i");function Cd(e){const t="&"+e+";";T0.innerHTML=t;const i=T0.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}function zr(e,t,i,o){const l=e.length;let u=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,i=i>0?i:0,o.length<1e4)c=Array.from(o),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);u<o.length;)c=o.slice(u,u+1e4),c.unshift(t,0),e.splice(...c),u+=1e4,t+=1e4}function Jn(e,t){return e.length>0?(zr(e,e.length,0,t),e):t}const _0={}.hasOwnProperty;function fR(e){const t={};let i=-1;for(;++i<e.length;)dR(t,e[i]);return t}function dR(e,t){let i;for(i in t){const l=(_0.call(e,i)?e[i]:void 0)||(e[i]={}),u=t[i];let c;if(u)for(c in u){_0.call(l,c)||(l[c]=[]);const d=u[c];hR(l[c],Array.isArray(d)?d:d?[d]:[])}}}function hR(e,t){let i=-1;const o=[];for(;++i<t.length;)(t[i].add==="after"?e:o).push(t[i]);zr(e,0,0,o)}function A0(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Vo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Br=yi(/[A-Za-z]/),Un=yi(/[\dA-Za-z]/),pR=yi(/[#-'*+\--9=?A-Z^-~]/);function Td(e){return e!==null&&(e<32||e===127)}const _d=yi(/\d/),mR=yi(/[\dA-Fa-f]/),gR=yi(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function _n(e){return e!==null&&(e<0||e===32)}function rt(e){return e===-2||e===-1||e===32}const yR=yi(new RegExp("\\p{P}|\\p{S}","u")),bR=yi(/\s/);function yi(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Fo(e){const t=[];let i=-1,o=0,l=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&Un(e.charCodeAt(i+1))&&Un(e.charCodeAt(i+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(i+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),l=1):c="�"}else c=String.fromCharCode(u);c&&(t.push(e.slice(o,i),encodeURIComponent(c)),o=i+l+1,c=""),l&&(i+=l,l=0)}return t.join("")+e.slice(o)}function Tt(e,t,i,o){const l=o?o-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(m){return rt(m)?(e.enter(i),d(m)):t(m)}function d(m){return rt(m)&&u++<l?(e.consume(m),d):(e.exit(i),t(m))}}const SR={tokenize:vR};function vR(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let i;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Tt(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),u(d)}function u(d){const m=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Me(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}const xR={tokenize:wR},k0={tokenize:ER};function wR(e){const t=this,i=[];let o=0,l,u,c;return d;function d(M){if(o<i.length){const _=i[o];return t.containerState=_[1],e.attempt(_[0].continuation,m,p)(M)}return p(M)}function m(M){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&$();const _=t.events.length;let B=_,T;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){T=t.events[B][1].end;break}k(o);let L=_;for(;L<t.events.length;)t.events[L][1].end={...T},L++;return zr(t.events,B+1,0,t.events.slice(_)),t.events.length=L,p(M)}return d(M)}function p(M){if(o===i.length){if(!l)return v(M);if(l.currentConstruct&&l.currentConstruct.concrete)return C(M);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(k0,g,y)(M)}function g(M){return l&&$(),k(o),v(M)}function y(M){return t.parser.lazy[t.now().line]=o!==i.length,c=t.now().offset,C(M)}function v(M){return t.containerState={},e.attempt(k0,S,C)(M)}function S(M){return o++,i.push([t.currentConstruct,t.containerState]),v(M)}function C(M){if(M===null){l&&$(),k(0),e.consume(M);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:u}),w(M)}function w(M){if(M===null){R(e.exit("chunkFlow"),!0),k(0),e.consume(M);return}return Me(M)?(e.consume(M),R(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(M),w)}function R(M,_){const B=t.sliceStream(M);if(_&&B.push(null),M.previous=u,u&&(u.next=M),u=M,l.defineSkip(M.start),l.write(B),t.parser.lazy[M.start.line]){let T=l.events.length;for(;T--;)if(l.events[T][1].start.offset<c&&(!l.events[T][1].end||l.events[T][1].end.offset>c))return;const L=t.events.length;let V=L,q,F;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(q){F=t.events[V][1].end;break}q=!0}for(k(o),T=L;T<t.events.length;)t.events[T][1].end={...F},T++;zr(t.events,V+1,0,t.events.slice(L)),t.events.length=T}}function k(M){let _=i.length;for(;_-- >M;){const B=i[_];t.containerState=B[1],B[0].exit.call(t,e)}i.length=M}function $(){l.write([null]),u=void 0,l=void 0,t.containerState._closeFlow=void 0}}function ER(e,t,i){return Tt(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function R0(e){if(e===null||_n(e)||bR(e))return 1;if(yR(e))return 2}function Ad(e,t,i){const o=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!o.includes(u)&&(t=u(t,i),o.push(u))}return t}const kd={name:"attention",resolveAll:CR,tokenize:TR};function CR(e,t){let i=-1,o,l,u,c,d,m,p,g;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(o=i;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[o][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;m=e[o][1].end.offset-e[o][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[o][1].end},v={...e[i][1].start};O0(y,-m),O0(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...e[o][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},u={type:m>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[i][1].start}},l={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[o][1].end={...c.start},e[i][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Jn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Jn(p,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",u,t]]),p=Jn(p,Ad(t.parser.constructs.insideSpan.null,e.slice(o+1,i),t)),p=Jn(p,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[i][1].end.offset-e[i][1].start.offset?(g=2,p=Jn(p,[["enter",e[i][1],t],["exit",e[i][1],t]])):g=0,zr(e,o-1,i-o+3,p),i=o+p.length-g-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function TR(e,t){const i=this.parser.constructs.attentionMarkers.null,o=this.previous,l=R0(o);let u;return c;function c(m){return u=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===u)return e.consume(m),d;const p=e.exit("attentionSequence"),g=R0(m),y=!g||g===2&&l||i.includes(m),v=!l||l===2&&g||i.includes(o);return p._open=!!(u===42?y:y&&(l||!v)),p._close=!!(u===42?v:v&&(g||!y)),t(m)}}function O0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _R={name:"autolink",tokenize:AR};function AR(e,t,i){let o=0;return l;function l(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(S){return Br(S)?(e.consume(S),c):S===64?i(S):p(S)}function c(S){return S===43||S===45||S===46||Un(S)?(o=1,d(S)):p(S)}function d(S){return S===58?(e.consume(S),o=0,m):(S===43||S===45||S===46||Un(S))&&o++<32?(e.consume(S),d):(o=0,p(S))}function m(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),t):S===null||S===32||S===60||Td(S)?i(S):(e.consume(S),m)}function p(S){return S===64?(e.consume(S),g):pR(S)?(e.consume(S),p):i(S)}function g(S){return Un(S)?y(S):i(S)}function y(S){return S===46?(e.consume(S),o=0,g):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),t):v(S)}function v(S){if((S===45||Un(S))&&o++<63){const C=S===45?v:y;return e.consume(S),C}return i(S)}}const mu={partial:!0,tokenize:kR};function kR(e,t,i){return o;function o(u){return rt(u)?Tt(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||Me(u)?t(u):i(u)}}const M0={continuation:{tokenize:OR},exit:MR,name:"blockQuote",tokenize:RR};function RR(e,t,i){const o=this;return l;function l(c){if(c===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return rt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function OR(e,t,i){const o=this;return l;function l(c){return rt(c)?Tt(e,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(M0,t,i)(c)}}function MR(e){e.exit("blockQuote")}const N0={name:"characterEscape",tokenize:NR};function NR(e,t,i){return o;function o(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),l}function l(u){return gR(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(u)}}const z0={name:"characterReference",tokenize:zR};function zR(e,t,i){const o=this;let l=0,u,c;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),m}function m(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),u=31,c=Un,g(y))}function p(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=mR,g):(e.enter("characterReferenceValue"),u=7,c=_d,g(y))}function g(y){if(y===59&&l){const v=e.exit("characterReferenceValue");return c===Un&&!Cd(o.sliceSerialize(v))?i(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&l++<u?(e.consume(y),g):i(y)}}const B0={partial:!0,tokenize:DR},D0={concrete:!0,name:"codeFenced",tokenize:BR};function BR(e,t,i){const o=this,l={partial:!0,tokenize:B};let u=0,c=0,d;return m;function m(T){return p(T)}function p(T){const L=o.events[o.events.length-1];return u=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,d=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(T)}function g(T){return T===d?(c++,e.consume(T),g):c<3?i(T):(e.exit("codeFencedFenceSequence"),rt(T)?Tt(e,y,"whitespace")(T):y(T))}function y(T){return T===null||Me(T)?(e.exit("codeFencedFence"),o.interrupt?t(T):e.check(B0,w,_)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||Me(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(T)):rt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Tt(e,S,"whitespace")(T)):T===96&&T===d?i(T):(e.consume(T),v)}function S(T){return T===null||Me(T)?y(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(T))}function C(T){return T===null||Me(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(T)):T===96&&T===d?i(T):(e.consume(T),C)}function w(T){return e.attempt(l,_,R)(T)}function R(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),k}function k(T){return u>0&&rt(T)?Tt(e,$,"linePrefix",u+1)(T):$(T)}function $(T){return T===null||Me(T)?e.check(B0,w,_)(T):(e.enter("codeFlowValue"),M(T))}function M(T){return T===null||Me(T)?(e.exit("codeFlowValue"),$(T)):(e.consume(T),M)}function _(T){return e.exit("codeFenced"),t(T)}function B(T,L,V){let q=0;return F;function F(j){return T.enter("lineEnding"),T.consume(j),T.exit("lineEnding"),U}function U(j){return T.enter("codeFencedFence"),rt(j)?Tt(T,x,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):x(j)}function x(j){return j===d?(T.enter("codeFencedFenceSequence"),K(j)):V(j)}function K(j){return j===d?(q++,T.consume(j),K):q>=c?(T.exit("codeFencedFenceSequence"),rt(j)?Tt(T,H,"whitespace")(j):H(j)):V(j)}function H(j){return j===null||Me(j)?(T.exit("codeFencedFence"),L(j)):V(j)}}}function DR(e,t,i){const o=this;return l;function l(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return o.parser.lazy[o.now().line]?i(c):t(c)}}const Rd={name:"codeIndented",tokenize:$R},IR={partial:!0,tokenize:UR};function $R(e,t,i){const o=this;return l;function l(p){return e.enter("codeIndented"),Tt(e,u,"linePrefix",5)(p)}function u(p){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(p):i(p)}function c(p){return p===null?m(p):Me(p)?e.attempt(IR,c,m)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||Me(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),d)}function m(p){return e.exit("codeIndented"),t(p)}}function UR(e,t,i){const o=this;return l;function l(c){return o.parser.lazy[o.now().line]?i(c):Me(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Tt(e,u,"linePrefix",5)(c)}function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Me(c)?l(c):i(c)}}const LR={name:"codeText",previous:PR,resolve:jR,tokenize:HR};function jR(e){let t=e.length-4,i=3,o,l;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=i;++o<t;)if(e[o][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(o=i-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}function PR(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function HR(e,t,i){let o=0,l,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),o++,d):(e.exit("codeTextSequence"),m(y))}function m(y){return y===null?i(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),m):y===96?(u=e.enter("codeTextSequence"),l=0,g(y)):Me(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||Me(y)?(e.exit("codeTextData"),m(y)):(e.consume(y),p)}function g(y){return y===96?(e.consume(y),l++,g):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",p(y))}}class qR{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,i){const o=i??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,i,o){const l=i||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&bl(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),bl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const i=this.left.splice(t,Number.POSITIVE_INFINITY);bl(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bl(this.left,i.reverse())}}}function bl(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function I0(e){const t={};let i=-1,o,l,u,c,d,m,p;const g=new qR(e);for(;++i<g.length;){for(;i in t;)i=t[i];if(o=g.get(i),i&&o[1].type==="chunkFlow"&&g.get(i-1)[1].type==="listItemPrefix"&&(m=o[1]._tokenizer.events,u=0,u<m.length&&m[u][1].type==="lineEndingBlank"&&(u+=2),u<m.length&&m[u][1].type==="content"))for(;++u<m.length&&m[u][1].type!=="content";)m[u][1].type==="chunkText"&&(m[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,VR(g,i)),i=t[i],p=!0);else if(o[1]._container){for(u=i,l=void 0;u--;)if(c=g.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(g.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(o[1].end={...g.get(l)[1].start},d=g.slice(l,i),d.unshift(o),g.splice(l,i-l+1,d))}}return zr(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function VR(e,t){const i=e.get(t)[1],o=e.get(t)[2];let l=t-1;const u=[];let c=i._tokenizer;c||(c=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let g,y,v=-1,S=i,C=0,w=0;const R=[w];for(;S;){for(;e.get(++l)[1]!==S;);u.push(l),S._tokenizer||(g=o.sliceStream(S),S.next||g.push(null),y&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(w=v+1,R.push(w),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):R.pop(),v=R.length;v--;){const k=d.slice(R[v],R[v+1]),$=u.pop();m.push([$,$+k.length-1]),e.splice($,2,k)}for(m.reverse(),v=-1;++v<m.length;)p[C+m[v][0]]=C+m[v][1],C+=m[v][1]-m[v][0]-1;return p}const FR={resolve:GR,tokenize:XR},YR={partial:!0,tokenize:KR};function GR(e){return I0(e),e}function XR(e,t){let i;return o;function o(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?u(d):Me(d)?e.check(YR,c,u)(d):(e.consume(d),l)}function u(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,l}}function KR(e,t,i){const o=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Tt(e,u,"linePrefix")}function u(c){if(c===null||Me(c))return i(c);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(o.parser.constructs.flow,i,t)(c)}}function $0(e,t,i,o,l,u,c,d,m){const p=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(k){return k===60?(e.enter(o),e.enter(l),e.enter(u),e.consume(k),e.exit(u),v):k===null||k===32||k===41||Td(k)?i(k):(e.enter(o),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),w(k))}function v(k){return k===62?(e.enter(u),e.consume(k),e.exit(u),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),S(k))}function S(k){return k===62?(e.exit("chunkString"),e.exit(d),v(k)):k===null||k===60||Me(k)?i(k):(e.consume(k),k===92?C:S)}function C(k){return k===60||k===62||k===92?(e.consume(k),S):S(k)}function w(k){return!g&&(k===null||k===41||_n(k))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(o),t(k)):g<p&&k===40?(e.consume(k),g++,w):k===41?(e.consume(k),g--,w):k===null||k===32||k===40||Td(k)?i(k):(e.consume(k),k===92?R:w)}function R(k){return k===40||k===41||k===92?(e.consume(k),w):w(k)}}function U0(e,t,i,o,l,u){const c=this;let d=0,m;return p;function p(S){return e.enter(o),e.enter(l),e.consume(S),e.exit(l),e.enter(u),g}function g(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(S):S===93?(e.exit(u),e.enter(l),e.consume(S),e.exit(l),e.exit(o),t):Me(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||Me(S)||d++>999?(e.exit("chunkString"),g(S)):(e.consume(S),m||(m=!rt(S)),S===92?v:y)}function v(S){return S===91||S===92||S===93?(e.consume(S),d++,y):y(S)}}function L0(e,t,i,o,l,u){let c;return d;function d(v){return v===34||v===39||v===40?(e.enter(o),e.enter(l),e.consume(v),e.exit(l),c=v===40?41:v,m):i(v)}function m(v){return v===c?(e.enter(l),e.consume(v),e.exit(l),e.exit(o),t):(e.enter(u),p(v))}function p(v){return v===c?(e.exit(u),m(c)):v===null?i(v):Me(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Tt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===c||v===null||Me(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?y:g)}function y(v){return v===c||v===92?(e.consume(v),g):g(v)}}function Sl(e,t){let i;return o;function o(l){return Me(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i=!0,o):rt(l)?Tt(e,o,i?"linePrefix":"lineSuffix")(l):t(l)}}const QR={name:"definition",tokenize:WR},ZR={partial:!0,tokenize:JR};function WR(e,t,i){const o=this;let l;return u;function u(S){return e.enter("definition"),c(S)}function c(S){return U0.call(o,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return l=Vo(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),m):i(S)}function m(S){return _n(S)?Sl(e,p)(S):p(S)}function p(S){return $0(e,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function g(S){return e.attempt(ZR,y,y)(S)}function y(S){return rt(S)?Tt(e,v,"whitespace")(S):v(S)}function v(S){return S===null||Me(S)?(e.exit("definition"),o.parser.defined.push(l),t(S)):i(S)}}function JR(e,t,i){return o;function o(d){return _n(d)?Sl(e,l)(d):i(d)}function l(d){return L0(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return rt(d)?Tt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Me(d)?t(d):i(d)}}const eO={name:"hardBreakEscape",tokenize:tO};function tO(e,t,i){return o;function o(u){return e.enter("hardBreakEscape"),e.consume(u),l}function l(u){return Me(u)?(e.exit("hardBreakEscape"),t(u)):i(u)}}const nO={name:"headingAtx",resolve:rO,tokenize:iO};function rO(e,t){let i=e.length-2,o=3,l,u;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},u={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},zr(e,o,i-o+1,[["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t]])),e}function iO(e,t,i){let o=0;return l;function l(g){return e.enter("atxHeading"),u(g)}function u(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&o++<6?(e.consume(g),c):g===null||_n(g)?(e.exit("atxHeadingSequence"),d(g)):i(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),m(g)):g===null||Me(g)?(e.exit("atxHeading"),t(g)):rt(g)?Tt(e,d,"whitespace")(g):(e.enter("atxHeadingText"),p(g))}function m(g){return g===35?(e.consume(g),m):(e.exit("atxHeadingSequence"),d(g))}function p(g){return g===null||g===35||_n(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),p)}}const oO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],j0=["pre","script","style","textarea"],aO={concrete:!0,name:"htmlFlow",resolveTo:uO,tokenize:cO},lO={partial:!0,tokenize:dO},sO={partial:!0,tokenize:fO};function uO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function cO(e,t,i){const o=this;let l,u,c,d,m;return p;function p(A){return g(A)}function g(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),y}function y(A){return A===33?(e.consume(A),v):A===47?(e.consume(A),u=!0,w):A===63?(e.consume(A),l=3,o.interrupt?t:N):Br(A)?(e.consume(A),c=String.fromCharCode(A),R):i(A)}function v(A){return A===45?(e.consume(A),l=2,S):A===91?(e.consume(A),l=5,d=0,C):Br(A)?(e.consume(A),l=4,o.interrupt?t:N):i(A)}function S(A){return A===45?(e.consume(A),o.interrupt?t:N):i(A)}function C(A){const fe="CDATA[";return A===fe.charCodeAt(d++)?(e.consume(A),d===fe.length?o.interrupt?t:x:C):i(A)}function w(A){return Br(A)?(e.consume(A),c=String.fromCharCode(A),R):i(A)}function R(A){if(A===null||A===47||A===62||_n(A)){const fe=A===47,me=c.toLowerCase();return!fe&&!u&&j0.includes(me)?(l=1,o.interrupt?t(A):x(A)):oO.includes(c.toLowerCase())?(l=6,fe?(e.consume(A),k):o.interrupt?t(A):x(A)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?i(A):u?$(A):M(A))}return A===45||Un(A)?(e.consume(A),c+=String.fromCharCode(A),R):i(A)}function k(A){return A===62?(e.consume(A),o.interrupt?t:x):i(A)}function $(A){return rt(A)?(e.consume(A),$):F(A)}function M(A){return A===47?(e.consume(A),F):A===58||A===95||Br(A)?(e.consume(A),_):rt(A)?(e.consume(A),M):F(A)}function _(A){return A===45||A===46||A===58||A===95||Un(A)?(e.consume(A),_):B(A)}function B(A){return A===61?(e.consume(A),T):rt(A)?(e.consume(A),B):M(A)}function T(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(e.consume(A),m=A,L):rt(A)?(e.consume(A),T):V(A)}function L(A){return A===m?(e.consume(A),m=null,q):A===null||Me(A)?i(A):(e.consume(A),L)}function V(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||_n(A)?B(A):(e.consume(A),V)}function q(A){return A===47||A===62||rt(A)?M(A):i(A)}function F(A){return A===62?(e.consume(A),U):i(A)}function U(A){return A===null||Me(A)?x(A):rt(A)?(e.consume(A),U):i(A)}function x(A){return A===45&&l===2?(e.consume(A),z):A===60&&l===1?(e.consume(A),J):A===62&&l===4?(e.consume(A),D):A===63&&l===3?(e.consume(A),N):A===93&&l===5?(e.consume(A),ue):Me(A)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(lO,W,K)(A)):A===null||Me(A)?(e.exit("htmlFlowData"),K(A)):(e.consume(A),x)}function K(A){return e.check(sO,H,W)(A)}function H(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),j}function j(A){return A===null||Me(A)?K(A):(e.enter("htmlFlowData"),x(A))}function z(A){return A===45?(e.consume(A),N):x(A)}function J(A){return A===47?(e.consume(A),c="",ce):x(A)}function ce(A){if(A===62){const fe=c.toLowerCase();return j0.includes(fe)?(e.consume(A),D):x(A)}return Br(A)&&c.length<8?(e.consume(A),c+=String.fromCharCode(A),ce):x(A)}function ue(A){return A===93?(e.consume(A),N):x(A)}function N(A){return A===62?(e.consume(A),D):A===45&&l===2?(e.consume(A),N):x(A)}function D(A){return A===null||Me(A)?(e.exit("htmlFlowData"),W(A)):(e.consume(A),D)}function W(A){return e.exit("htmlFlow"),t(A)}}function fO(e,t,i){const o=this;return l;function l(c){return Me(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return o.parser.lazy[o.now().line]?i(c):t(c)}}function dO(e,t,i){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(mu,t,i)}}const hO={name:"htmlText",tokenize:pO};function pO(e,t,i){const o=this;let l,u,c;return d;function d(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),m}function m(N){return N===33?(e.consume(N),p):N===47?(e.consume(N),B):N===63?(e.consume(N),M):Br(N)?(e.consume(N),V):i(N)}function p(N){return N===45?(e.consume(N),g):N===91?(e.consume(N),u=0,C):Br(N)?(e.consume(N),$):i(N)}function g(N){return N===45?(e.consume(N),S):i(N)}function y(N){return N===null?i(N):N===45?(e.consume(N),v):Me(N)?(c=y,J(N)):(e.consume(N),y)}function v(N){return N===45?(e.consume(N),S):y(N)}function S(N){return N===62?z(N):N===45?v(N):y(N)}function C(N){const D="CDATA[";return N===D.charCodeAt(u++)?(e.consume(N),u===D.length?w:C):i(N)}function w(N){return N===null?i(N):N===93?(e.consume(N),R):Me(N)?(c=w,J(N)):(e.consume(N),w)}function R(N){return N===93?(e.consume(N),k):w(N)}function k(N){return N===62?z(N):N===93?(e.consume(N),k):w(N)}function $(N){return N===null||N===62?z(N):Me(N)?(c=$,J(N)):(e.consume(N),$)}function M(N){return N===null?i(N):N===63?(e.consume(N),_):Me(N)?(c=M,J(N)):(e.consume(N),M)}function _(N){return N===62?z(N):M(N)}function B(N){return Br(N)?(e.consume(N),T):i(N)}function T(N){return N===45||Un(N)?(e.consume(N),T):L(N)}function L(N){return Me(N)?(c=L,J(N)):rt(N)?(e.consume(N),L):z(N)}function V(N){return N===45||Un(N)?(e.consume(N),V):N===47||N===62||_n(N)?q(N):i(N)}function q(N){return N===47?(e.consume(N),z):N===58||N===95||Br(N)?(e.consume(N),F):Me(N)?(c=q,J(N)):rt(N)?(e.consume(N),q):z(N)}function F(N){return N===45||N===46||N===58||N===95||Un(N)?(e.consume(N),F):U(N)}function U(N){return N===61?(e.consume(N),x):Me(N)?(c=U,J(N)):rt(N)?(e.consume(N),U):q(N)}function x(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),l=N,K):Me(N)?(c=x,J(N)):rt(N)?(e.consume(N),x):(e.consume(N),H)}function K(N){return N===l?(e.consume(N),l=void 0,j):N===null?i(N):Me(N)?(c=K,J(N)):(e.consume(N),K)}function H(N){return N===null||N===34||N===39||N===60||N===61||N===96?i(N):N===47||N===62||_n(N)?q(N):(e.consume(N),H)}function j(N){return N===47||N===62||_n(N)?q(N):i(N)}function z(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):i(N)}function J(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ce}function ce(N){return rt(N)?Tt(e,ue,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ue(N)}function ue(N){return e.enter("htmlTextData"),c(N)}}const Od={name:"labelEnd",resolveAll:bO,resolveTo:SO,tokenize:vO},mO={tokenize:xO},gO={tokenize:wO},yO={tokenize:EO};function bO(e){let t=-1;const i=[];for(;++t<e.length;){const o=e[t][1];if(i.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==i.length&&zr(e,0,e.length,i),e}function SO(e,t){let i=e.length,o=0,l,u,c,d;for(;i--;)if(l=e[i][1],u){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[i][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(u=i,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(c=i);const m={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},g={type:"labelText",start:{...e[u+o+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",m,t],["enter",p,t]],d=Jn(d,e.slice(u+1,u+o+3)),d=Jn(d,[["enter",g,t]]),d=Jn(d,Ad(t.parser.constructs.insideSpan.null,e.slice(u+o+4,c-3),t)),d=Jn(d,[["exit",g,t],e[c-2],e[c-1],["exit",p,t]]),d=Jn(d,e.slice(c+1)),d=Jn(d,[["exit",m,t]]),zr(e,u,e.length,d),e}function vO(e,t,i){const o=this;let l=o.events.length,u,c;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){u=o.events[l][1];break}return d;function d(v){return u?u._inactive?y(v):(c=o.parser.defined.includes(Vo(o.sliceSerialize({start:u.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),m):i(v)}function m(v){return v===40?e.attempt(mO,g,c?g:y)(v):v===91?e.attempt(gO,g,c?p:y)(v):c?g(v):y(v)}function p(v){return e.attempt(yO,g,y)(v)}function g(v){return t(v)}function y(v){return u._balanced=!0,i(v)}}function xO(e,t,i){return o;function o(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return _n(y)?Sl(e,u)(y):u(y)}function u(y){return y===41?g(y):$0(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return _n(y)?Sl(e,m)(y):g(y)}function d(y){return i(y)}function m(y){return y===34||y===39||y===40?L0(e,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function p(y){return _n(y)?Sl(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):i(y)}}function wO(e,t,i){const o=this;return l;function l(d){return U0.call(o,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return o.parser.defined.includes(Vo(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):i(d)}function c(d){return i(d)}}function EO(e,t,i){return o;function o(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),l}function l(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):i(u)}}const CO={name:"labelStartImage",resolveAll:Od.resolveAll,tokenize:TO};function TO(e,t,i){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):i(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(d):t(d)}}const _O={name:"labelStartLink",resolveAll:Od.resolveAll,tokenize:AO};function AO(e,t,i){const o=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(c):t(c)}}const Md={name:"lineEnding",tokenize:kO};function kO(e,t){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Tt(e,t,"linePrefix")}}const gu={name:"thematicBreak",tokenize:RO};function RO(e,t,i){let o=0,l;return u;function u(p){return e.enter("thematicBreak"),c(p)}function c(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),m(p)):o>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):i(p)}function m(p){return p===l?(e.consume(p),o++,m):(e.exit("thematicBreakSequence"),rt(p)?Tt(e,d,"whitespace")(p):d(p))}}const An={continuation:{tokenize:zO},exit:DO,name:"list",tokenize:NO},OO={partial:!0,tokenize:IO},MO={partial:!0,tokenize:BO};function NO(e,t,i){const o=this,l=o.events[o.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(S){const C=o.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!o.containerState.marker||S===o.containerState.marker:_d(S)){if(o.containerState.type||(o.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(gu,i,p)(S):p(S);if(!o.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(S)}return i(S)}function m(S){return _d(S)&&++c<10?(e.consume(S),m):(!o.interrupt||c<2)&&(o.containerState.marker?S===o.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),p(S)):i(S)}function p(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||S,e.check(mu,o.interrupt?i:g,e.attempt(OO,v,y))}function g(S){return o.containerState.initialBlankLine=!0,u++,v(S)}function y(S){return rt(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),v):i(S)}function v(S){return o.containerState.size=u+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(S)}}function zO(e,t,i){const o=this;return o.containerState._closeFlow=void 0,e.check(mu,l,u);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Tt(e,t,"listItemIndent",o.containerState.size+1)(d)}function u(d){return o.containerState.furtherBlankLines||!rt(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(MO,t,c)(d))}function c(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,Tt(e,e.attempt(An,t,i),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function BO(e,t,i){const o=this;return Tt(e,l,"listItemIndent",o.containerState.size+1);function l(u){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?t(u):i(u)}}function DO(e){e.exit(this.containerState.type)}function IO(e,t,i){const o=this;return Tt(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const c=o.events[o.events.length-1];return!rt(u)&&c&&c[1].type==="listItemPrefixWhitespace"?t(u):i(u)}}const P0={name:"setextUnderline",resolveTo:$O,tokenize:UO};function $O(e,t){let i=e.length,o,l,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){o=i;break}e[i][1].type==="paragraph"&&(l=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",u?(e.splice(l,0,["enter",c,t]),e.splice(u+1,0,["exit",e[o][1],t]),e[o][1].end={...e[u][1].end}):e[o][1]=c,e.push(["exit",c,t]),e}function UO(e,t,i){const o=this;let l;return u;function u(p){let g=o.events.length,y;for(;g--;)if(o.events[g][1].type!=="lineEnding"&&o.events[g][1].type!=="linePrefix"&&o.events[g][1].type!=="content"){y=o.events[g][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||y)?(e.enter("setextHeadingLine"),l=p,c(p)):i(p)}function c(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),rt(p)?Tt(e,m,"lineSuffix")(p):m(p))}function m(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):i(p)}}const LO={tokenize:jO};function jO(e){const t=this,i=e.attempt(mu,o,e.attempt(this.parser.constructs.flowInitial,l,Tt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(FR,l)),"linePrefix")));return i;function o(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const PO={resolveAll:q0()},HO=H0("string"),qO=H0("text");function H0(e){return{resolveAll:q0(e==="text"?VO:void 0),tokenize:t};function t(i){const o=this,l=this.parser.constructs[e],u=i.attempt(l,c,d);return c;function c(g){return p(g)?u(g):d(g)}function d(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),m}function m(g){return p(g)?(i.exit("data"),u(g)):(i.consume(g),m)}function p(g){if(g===null)return!0;const y=l[g];let v=-1;if(y)for(;++v<y.length;){const S=y[v];if(!S.previous||S.previous.call(o,o.previous))return!0}return!1}}}function q0(e){return t;function t(i,o){let l=-1,u;for(;++l<=i.length;)u===void 0?i[l]&&i[l][1].type==="data"&&(u=l,l++):(!i[l]||i[l][1].type!=="data")&&(l!==u+2&&(i[u][1].end=i[l-1][1].end,i.splice(u+2,l-u-2),l=u+2),u=void 0);return e?e(i,o):i}}function VO(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const o=e[i-1][1],l=t.sliceStream(o);let u=l.length,c=-1,d=0,m;for(;u--;){const p=l[u];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){u++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(d=0),d){const p={type:i===e.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:o.start._bufferIndex+c,_index:o.start._index+u,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(i,0,["enter",p,t],["exit",p,t]),i+=2)}i++}return e}const FO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:QR},disable:{null:[]},document:{42:An,43:An,45:An,48:An,49:An,50:An,51:An,52:An,53:An,54:An,55:An,56:An,57:An,62:M0},flow:{35:nO,42:gu,45:[P0,gu],60:aO,61:P0,95:gu,96:D0,126:D0},flowInitial:{[-2]:Rd,[-1]:Rd,32:Rd},insideSpan:{null:[kd,PO]},string:{38:z0,92:N0},text:{[-5]:Md,[-4]:Md,[-3]:Md,33:CO,38:z0,42:kd,60:[_R,hO],91:_O,92:[eO,N0],93:Od,95:kd,96:LR}},Symbol.toStringTag,{value:"Module"}));function YO(e,t,i){let o={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const l={},u=[];let c=[],d=[];const m={attempt:L(B),check:L(T),consume:$,enter:M,exit:_,interrupt:L(T,{interrupt:!0})},p={code:null,containerState:{},defineSkip:w,events:[],now:C,parser:e,previous:null,sliceSerialize:v,sliceStream:S,write:y};let g=t.tokenize.call(p,m);return t.resolveAll&&u.push(t),p;function y(U){return c=Jn(c,U),R(),c[c.length-1]!==null?[]:(V(t,0),p.events=Ad(u,p.events,p),p.events)}function v(U,x){return XO(S(U),x)}function S(U){return GO(c,U)}function C(){const{_bufferIndex:U,_index:x,line:K,column:H,offset:j}=o;return{_bufferIndex:U,_index:x,line:K,column:H,offset:j}}function w(U){l[U.line]=U.column,F()}function R(){let U;for(;o._index<c.length;){const x=c[o._index];if(typeof x=="string")for(U=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===U&&o._bufferIndex<x.length;)k(x.charCodeAt(o._bufferIndex));else k(x)}}function k(U){g=g(U)}function $(U){Me(U)?(o.line++,o.column=1,o.offset+=U===-3?2:1,F()):U!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=U}function M(U,x){const K=x||{};return K.type=U,K.start=C(),p.events.push(["enter",K,p]),d.push(K),K}function _(U){const x=d.pop();return x.end=C(),p.events.push(["exit",x,p]),x}function B(U,x){V(U,x.from)}function T(U,x){x.restore()}function L(U,x){return K;function K(H,j,z){let J,ce,ue,N;return Array.isArray(H)?W(H):"tokenize"in H?W([H]):D(H);function D(he){return be;function be(Ue){const Ce=Ue!==null&&he[Ue],Te=Ue!==null&&he.null,ze=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return W(ze)(Ue)}}function W(he){return J=he,ce=0,he.length===0?z:A(he[ce])}function A(he){return be;function be(Ue){return N=q(),ue=he,he.partial||(p.currentConstruct=he),he.name&&p.parser.constructs.disable.null.includes(he.name)?me():he.tokenize.call(x?Object.assign(Object.create(p),x):p,m,fe,me)(Ue)}}function fe(he){return U(ue,N),j}function me(he){return N.restore(),++ce<J.length?A(J[ce]):z}}}function V(U,x){U.resolveAll&&!u.includes(U)&&u.push(U),U.resolve&&zr(p.events,x,p.events.length-x,U.resolve(p.events.slice(x),p)),U.resolveTo&&(p.events=U.resolveTo(p.events,p))}function q(){const U=C(),x=p.previous,K=p.currentConstruct,H=p.events.length,j=Array.from(d);return{from:H,restore:z};function z(){o=U,p.previous=x,p.currentConstruct=K,p.events.length=H,d=j,F()}}function F(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function GO(e,t){const i=t.start._index,o=t.start._bufferIndex,l=t.end._index,u=t.end._bufferIndex;let c;if(i===l)c=[e[i].slice(o,u)];else{if(c=e.slice(i,l),o>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(o):c.shift()}u>0&&c.push(e[l].slice(0,u))}return c}function XO(e,t){let i=-1;const o=[];let l;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
149
|
+
`;break}case-3:{c=`\r
|
|
150
|
+
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(u)}l=u===-2,o.push(c)}return o.join("")}function KO(e){const o={constructs:fR([FO,...(e||{}).extensions||[]]),content:l(SR),defined:[],document:l(xR),flow:l(LO),lazy:{},string:l(HO),text:l(qO)};return o;function l(u){return c;function c(d){return YO(o,u,d)}}}function QO(e){for(;!I0(e););return e}const V0=/[\0\t\n\r]/g;function ZO(){let e=1,t="",i=!0,o;return l;function l(u,c,d){const m=[];let p,g,y,v,S;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,t="",i&&(u.charCodeAt(0)===65279&&y++,i=void 0);y<u.length;){if(V0.lastIndex=y,p=V0.exec(u),v=p&&p.index!==void 0?p.index:u.length,S=u.charCodeAt(v),!p){t=u.slice(y);break}if(S===10&&y===v&&o)m.push(-3),o=void 0;else switch(o&&(m.push(-5),o=void 0),y<v&&(m.push(u.slice(y,v)),e+=v-y),S){case 0:{m.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,m.push(-2);e++<g;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:o=!0,e=1}y=v+1}return d&&(o&&m.push(-5),t&&m.push(t),m.push(null)),m}}const WO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JO(e){return e.replace(WO,e3)}function e3(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){const l=i.charCodeAt(1),u=l===120||l===88;return A0(i.slice(u?2:1),u?16:10)}return Cd(i)||e}const F0={}.hasOwnProperty;function t3(e,t,i){return typeof t!="string"&&(i=t,t=void 0),n3(i)(QO(KO(i).document().write(ZO()(e,t,!0))))}function n3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(ct),autolinkProtocol:q,autolinkEmail:q,atxHeading:u(qe),blockQuote:u(Te),characterEscape:q,characterReference:q,codeFenced:u(ze),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(ze,c),codeText:u(Ze,c),codeTextData:q,data:q,codeFlowValue:q,definition:u(Qt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Oe),hardBreakEscape:u(Vt),hardBreakTrailing:u(Vt),htmlFlow:u(zt,c),htmlFlowData:q,htmlText:u(zt,c),htmlTextData:q,image:u(mt),label:c,link:u(ct),listItem:u(ft),listItemValue:v,listOrdered:u(Bt,y),listUnordered:u(Bt),paragraph:u(Se),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(qe),strong:u(Hn),thematicBreak:u(Sr)},exit:{atxHeading:m(),atxHeadingSequence:B,autolink:m(),autolinkEmail:Ce,autolinkProtocol:Ue,blockQuote:m(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:he,characterReference:be,codeFenced:m(R),codeFencedFence:w,codeFencedFenceInfo:S,codeFencedFenceMeta:C,codeFlowValue:F,codeIndented:m(k),codeText:m(j),codeTextData:F,data:F,definition:m(),definitionDestinationString:_,definitionLabelString:$,definitionTitleString:M,emphasis:m(),hardBreakEscape:m(x),hardBreakTrailing:m(x),htmlFlow:m(K),htmlFlowData:F,htmlText:m(H),htmlTextData:F,image:m(J),label:ue,labelText:ce,lineEnding:U,link:m(z),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:fe,resourceDestinationString:N,resourceTitleString:D,resource:W,setextHeading:m(V),setextHeadingLineSequence:L,setextHeadingText:T,strong:m(),thematicBreak:m()}};Y0(t,(e||{}).mdastExtensions||[]);const i={};return o;function o(te){let se={type:"root",children:[]};const ge={stack:[se],tokenStack:[],config:t,enter:d,exit:p,buffer:c,resume:g,data:i},Ae=[];let Le=-1;for(;++Le<te.length;)if(te[Le][1].type==="listOrdered"||te[Le][1].type==="listUnordered")if(te[Le][0]==="enter")Ae.push(Le);else{const Pe=Ae.pop();Le=l(te,Pe,Le)}for(Le=-1;++Le<te.length;){const Pe=t[te[Le][0]];F0.call(Pe,te[Le][1].type)&&Pe[te[Le][1].type].call(Object.assign({sliceSerialize:te[Le][2].sliceSerialize},ge),te[Le][1])}if(ge.tokenStack.length>0){const Pe=ge.tokenStack[ge.tokenStack.length-1];(Pe[1]||G0).call(ge,void 0,Pe[0])}for(se.position={start:bi(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:bi(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)se=t.transforms[Le](se)||se;return se}function l(te,se,ge){let Ae=se-1,Le=-1,Pe=!1,rn,Ut,Dt,vn;for(;++Ae<=ge;){const at=te[Ae];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?Le++:Le--,vn=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(rn&&!vn&&!Le&&!Dt&&(Dt=Ae),vn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vn=void 0}if(!Le&&at[0]==="enter"&&at[1].type==="listItemPrefix"||Le===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(rn){let xe=Ae;for(Ut=void 0;xe--;){const Ve=te[xe];if(Ve[1].type==="lineEnding"||Ve[1].type==="lineEndingBlank"){if(Ve[0]==="exit")continue;Ut&&(te[Ut][1].type="lineEndingBlank",Pe=!0),Ve[1].type="lineEnding",Ut=xe}else if(!(Ve[1].type==="linePrefix"||Ve[1].type==="blockQuotePrefix"||Ve[1].type==="blockQuotePrefixWhitespace"||Ve[1].type==="blockQuoteMarker"||Ve[1].type==="listItemIndent"))break}Dt&&(!Ut||Dt<Ut)&&(rn._spread=!0),rn.end=Object.assign({},Ut?te[Ut][1].start:at[1].end),te.splice(Ut||Ae,0,["exit",rn,at[2]]),Ae++,ge++}if(at[1].type==="listItemPrefix"){const xe={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};rn=xe,te.splice(Ae,0,["enter",xe,at[2]]),Ae++,ge++,Dt=void 0,vn=!0}}}return te[se][1]._spread=Pe,ge}function u(te,se){return ge;function ge(Ae){d.call(this,te(Ae),Ae),se&&se.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(te,se,ge){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([se,ge||void 0]),te.position={start:bi(se.start),end:void 0}}function m(te){return se;function se(ge){te&&te.call(this,ge),p.call(this,ge)}}function p(te,se){const ge=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==te.type&&(se?se.call(this,te,Ae[0]):(Ae[1]||G0).call(this,te,Ae[0]));else throw new Error("Cannot close `"+te.type+"` ("+gl({start:te.start,end:te.end})+"): it’s not open");ge.position.end=bi(te.end)}function g(){return uR(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(te){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function S(){const te=this.resume(),se=this.stack[this.stack.length-1];se.lang=te}function C(){const te=this.resume(),se=this.stack[this.stack.length-1];se.meta=te}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const te=this.resume(),se=this.stack[this.stack.length-1];se.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const te=this.resume(),se=this.stack[this.stack.length-1];se.value=te.replace(/(\r?\n|\r)$/g,"")}function $(te){const se=this.resume(),ge=this.stack[this.stack.length-1];ge.label=se,ge.identifier=Vo(this.sliceSerialize(te)).toLowerCase()}function M(){const te=this.resume(),se=this.stack[this.stack.length-1];se.title=te}function _(){const te=this.resume(),se=this.stack[this.stack.length-1];se.url=te}function B(te){const se=this.stack[this.stack.length-1];if(!se.depth){const ge=this.sliceSerialize(te).length;se.depth=ge}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function L(te){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function q(te){const ge=this.stack[this.stack.length-1].children;let Ae=ge[ge.length-1];(!Ae||Ae.type!=="text")&&(Ae=He(),Ae.position={start:bi(te.start),end:void 0},ge.push(Ae)),this.stack.push(Ae)}function F(te){const se=this.stack.pop();se.value+=this.sliceSerialize(te),se.position.end=bi(te.end)}function U(te){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ge=se.children[se.children.length-1];ge.position.end=bi(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(q.call(this,te),F.call(this,te))}function x(){this.data.atHardBreak=!0}function K(){const te=this.resume(),se=this.stack[this.stack.length-1];se.value=te}function H(){const te=this.resume(),se=this.stack[this.stack.length-1];se.value=te}function j(){const te=this.resume(),se=this.stack[this.stack.length-1];se.value=te}function z(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=se,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function J(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=se,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function ce(te){const se=this.sliceSerialize(te),ge=this.stack[this.stack.length-2];ge.label=JO(se),ge.identifier=Vo(se).toLowerCase()}function ue(){const te=this.stack[this.stack.length-1],se=this.resume(),ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,ge.type==="link"){const Ae=te.children;ge.children=Ae}else ge.alt=se}function N(){const te=this.resume(),se=this.stack[this.stack.length-1];se.url=te}function D(){const te=this.resume(),se=this.stack[this.stack.length-1];se.title=te}function W(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function fe(te){const se=this.resume(),ge=this.stack[this.stack.length-1];ge.label=se,ge.identifier=Vo(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function me(te){this.data.characterReferenceType=te.type}function he(te){const se=this.sliceSerialize(te),ge=this.data.characterReferenceType;let Ae;ge?(Ae=A0(se,ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Cd(se);const Le=this.stack[this.stack.length-1];Le.value+=Ae}function be(te){const se=this.stack.pop();se.position.end=bi(te.end)}function Ue(te){F.call(this,te);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(te)}function Ce(te){F.call(this,te);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(te)}function Te(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function Ze(){return{type:"inlineCode",value:""}}function Qt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Oe(){return{type:"emphasis",children:[]}}function qe(){return{type:"heading",depth:0,children:[]}}function Vt(){return{type:"break"}}function zt(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function Bt(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function ft(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function Se(){return{type:"paragraph",children:[]}}function Hn(){return{type:"strong",children:[]}}function He(){return{type:"text",value:""}}function Sr(){return{type:"thematicBreak"}}}function bi(e){return{line:e.line,column:e.column,offset:e.offset}}function Y0(e,t){let i=-1;for(;++i<t.length;){const o=t[i];Array.isArray(o)?Y0(e,o):r3(e,o)}}function r3(e,t){let i;for(i in t)if(F0.call(t,i))switch(i){case"canContainEols":{const o=t[i];o&&e[i].push(...o);break}case"transforms":{const o=t[i];o&&e[i].push(...o);break}case"enter":case"exit":{const o=t[i];o&&Object.assign(e[i],o);break}}}function G0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+gl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+gl({start:t.start,end:t.end})+") is still open")}function i3(e){const t=this;t.parser=i;function i(o){return t3(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function o3(e,t){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,i),e.applyData(t,i)}function a3(e,t){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,i),[e.applyData(t,i),{type:"text",value:`
|
|
151
|
+
`}]}function l3(e,t){const i=t.value?t.value+`
|
|
152
|
+
`:"",o={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(o.className=["language-"+l[0]]);let u={type:"element",tagName:"code",properties:o,children:[{type:"text",value:i}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function s3(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function u3(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function c3(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),l=Fo(o.toLowerCase()),u=e.footnoteOrder.indexOf(o);let c,d=e.footnoteCounts.get(o);d===void 0?(d=0,e.footnoteOrder.push(o),c=e.footnoteOrder.length):c=u+1,d+=1,e.footnoteCounts.set(o,d);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+l,id:i+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(t,p),e.applyData(t,p)}function f3(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function d3(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function X0(e,t){const i=t.referenceType;let o="]";if(i==="collapsed"?o+="[]":i==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const l=e.all(t),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=o:l.push({type:"text",value:o}),l}function h3(e,t){const i=String(t.identifier).toUpperCase(),o=e.definitionById.get(i);if(!o)return X0(e,t);const l={src:Fo(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const u={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,u),e.applyData(t,u)}function p3(e,t){const i={src:Fo(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function m3(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const o={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,o),e.applyData(t,o)}function g3(e,t){const i=String(t.identifier).toUpperCase(),o=e.definitionById.get(i);if(!o)return X0(e,t);const l={href:Fo(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const u={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function y3(e,t){const i={href:Fo(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function b3(e,t,i){const o=e.all(t),l=i?S3(i):K0(t),u={},c=[];if(typeof t.checked=="boolean"){const g=o[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},o.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const g=o[d];(l||d!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
|
|
153
|
+
`}),g.type==="element"&&g.tagName==="p"&&!l?c.push(...g.children):c.push(g)}const m=o[o.length-1];m&&(l||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
154
|
+
`});const p={type:"element",tagName:"li",properties:u,children:c};return e.patch(t,p),e.applyData(t,p)}function S3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const i=e.children;let o=-1;for(;!t&&++o<i.length;)t=K0(i[o])}return t}function K0(e){const t=e.spread;return t??e.children.length>1}function v3(e,t){const i={},o=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++l<o.length;){const c=o[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:i,children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}function x3(e,t){const i={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function w3(e,t){const i={type:"root",children:e.wrap(e.all(t))};return e.patch(t,i),e.applyData(t,i)}function E3(e,t){const i={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function C3(e,t){const i=e.all(t),o=i.shift(),l=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],c),l.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=bd(t.children[1]),m=m0(t.children[t.children.length-1]);d&&m&&(c.position={start:d,end:m}),l.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function T3(e,t,i){const o=i?i.children:void 0,u=(o?o.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:t.children.length;let m=-1;const p=[];for(;++m<d;){const y=t.children[m],v={},S=c?c[m]:void 0;S&&(v.align=S);let C={type:"element",tagName:u,properties:v,children:[]};y&&(C.children=e.all(y),e.patch(y,C),C=e.applyData(y,C)),p.push(C)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,g),e.applyData(t,g)}function _3(e,t){const i={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}const Q0=9,Z0=32;function A3(e){const t=String(e),i=/\r?\n|\r/g;let o=i.exec(t),l=0;const u=[];for(;o;)u.push(W0(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=i.exec(t);return u.push(W0(t.slice(l),l>0,!1)),u.join("")}function W0(e,t,i){let o=0,l=e.length;if(t){let u=e.codePointAt(o);for(;u===Q0||u===Z0;)o++,u=e.codePointAt(o)}if(i){let u=e.codePointAt(l-1);for(;u===Q0||u===Z0;)l--,u=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}function k3(e,t){const i={type:"text",value:A3(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function R3(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const O3={blockquote:o3,break:a3,code:l3,delete:s3,emphasis:u3,footnoteReference:c3,heading:f3,html:d3,imageReference:h3,image:p3,inlineCode:m3,linkReference:g3,link:y3,listItem:b3,list:v3,paragraph:x3,root:w3,strong:E3,table:C3,tableCell:_3,tableRow:T3,text:k3,thematicBreak:R3,toml:yu,yaml:yu,definition:yu,footnoteDefinition:yu};function yu(){}const J0=-1,bu=0,vl=1,Su=2,Nd=3,zd=4,Bd=5,Dd=6,eb=7,tb=8,nb=typeof self=="object"?self:globalThis,M3=(e,t)=>{const i=(l,u)=>(e.set(u,l),l),o=l=>{if(e.has(l))return e.get(l);const[u,c]=t[l];switch(u){case bu:case J0:return i(c,l);case vl:{const d=i([],l);for(const m of c)d.push(o(m));return d}case Su:{const d=i({},l);for(const[m,p]of c)d[o(m)]=o(p);return d}case Nd:return i(new Date(c),l);case zd:{const{source:d,flags:m}=c;return i(new RegExp(d,m),l)}case Bd:{const d=i(new Map,l);for(const[m,p]of c)d.set(o(m),o(p));return d}case Dd:{const d=i(new Set,l);for(const m of c)d.add(o(m));return d}case eb:{const{name:d,message:m}=c;return i(new nb[d](m),l)}case tb:return i(BigInt(c),l);case"BigInt":return i(Object(BigInt(c)),l);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(new nb[u](c),l)};return o},rb=e=>M3(new Map,e)(0),Yo="",{toString:N3}={},{keys:z3}=Object,xl=e=>{const t=typeof e;if(t!=="object"||!e)return[bu,t];const i=N3.call(e).slice(8,-1);switch(i){case"Array":return[vl,Yo];case"Object":return[Su,Yo];case"Date":return[Nd,Yo];case"RegExp":return[zd,Yo];case"Map":return[Bd,Yo];case"Set":return[Dd,Yo];case"DataView":return[vl,i]}return i.includes("Array")?[vl,i]:i.includes("Error")?[eb,i]:[Su,i]},vu=([e,t])=>e===bu&&(t==="function"||t==="symbol"),B3=(e,t,i,o)=>{const l=(c,d)=>{const m=o.push(c)-1;return i.set(d,m),m},u=c=>{if(i.has(c))return i.get(c);let[d,m]=xl(c);switch(d){case bu:{let g=c;switch(m){case"bigint":d=tb,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return l([J0],c)}return l([d,g],c)}case vl:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),l([m,[...v]],c)}const g=[],y=l([d,g],c);for(const v of c)g.push(u(v));return y}case Su:{if(m)switch(m){case"BigInt":return l([m,c.toString()],c);case"Boolean":case"Number":case"String":return l([m,c.valueOf()],c)}if(t&&"toJSON"in c)return u(c.toJSON());const g=[],y=l([d,g],c);for(const v of z3(c))(e||!vu(xl(c[v])))&&g.push([u(v),u(c[v])]);return y}case Nd:return l([d,c.toISOString()],c);case zd:{const{source:g,flags:y}=c;return l([d,{source:g,flags:y}],c)}case Bd:{const g=[],y=l([d,g],c);for(const[v,S]of c)(e||!(vu(xl(v))||vu(xl(S))))&&g.push([u(v),u(S)]);return y}case Dd:{const g=[],y=l([d,g],c);for(const v of c)(e||!vu(xl(v)))&&g.push(u(v));return y}}const{message:p}=c;return l([d,{name:m,message:p}],c)};return u},ib=(e,{json:t,lossy:i}={})=>{const o=[];return B3(!(t||i),!!t,new Map,o)(e),o},xu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?rb(ib(e,t)):structuredClone(e):(e,t)=>rb(ib(e,t));function D3(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function I3(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function $3(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||D3,o=e.options.footnoteBackLabel||I3,l=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[m]);if(!p)continue;const g=e.all(p),y=String(p.identifier).toUpperCase(),v=Fo(y.toLowerCase());let S=0;const C=[],w=e.footnoteCounts.get(y);for(;w!==void 0&&++S<=w;){C.length>0&&C.push({type:"text",value:" "});let $=typeof i=="string"?i:i(m,S);typeof $=="string"&&($={type:"text",value:$}),C.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(m,S),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const R=g[g.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const $=R.children[R.children.length-1];$&&$.type==="text"?$.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...C)}else g.push(...C);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(g,!0)};e.patch(p,k),d.push(k)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...xu(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
155
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
156
|
+
`}]}}const ob=(function(e){if(e==null)return P3;if(typeof e=="function")return wu(e);if(typeof e=="object")return Array.isArray(e)?U3(e):L3(e);if(typeof e=="string")return j3(e);throw new Error("Expected function, string, or object as test")});function U3(e){const t=[];let i=-1;for(;++i<e.length;)t[i]=ob(e[i]);return wu(o);function o(...l){let u=-1;for(;++u<t.length;)if(t[u].apply(this,l))return!0;return!1}}function L3(e){const t=e;return wu(i);function i(o){const l=o;let u;for(u in e)if(l[u]!==t[u])return!1;return!0}}function j3(e){return wu(t);function t(i){return i&&i.type===e}}function wu(e){return t;function t(i,o,l){return!!(H3(i)&&e.call(this,i,typeof o=="number"?o:void 0,l||void 0))}}function P3(){return!0}function H3(e){return e!==null&&typeof e=="object"&&"type"in e}function P6(e){return e}const ab=[],q3=!0,lb=!1,V3="skip";function F3(e,t,i,o){let l;typeof t=="function"&&typeof i!="function"?(o=i,i=t):l=t;const u=ob(l),c=o?-1:1;d(e,void 0,[])();function d(m,p,g){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=ab,C,w,R;if((!t||u(m,p,g[g.length-1]||void 0))&&(S=Y3(i(m,g)),S[0]===lb))return S;if("children"in m&&m.children){const k=m;if(k.children&&S[0]!==V3)for(w=(o?k.children.length:-1)+c,R=g.concat(k);w>-1&&w<k.children.length;){const $=k.children[w];if(C=d($,w,R)(),C[0]===lb)return C;w=typeof C[1]=="number"?C[1]:w+c}}return S}}}function Y3(e){return Array.isArray(e)?e:typeof e=="number"?[q3,e]:e==null?ab:[e]}function sb(e,t,i,o){let l,u,c;typeof t=="function"&&typeof i!="function"?(u=void 0,c=t,l=i):(u=t,c=i,l=o),F3(e,u,d,l);function d(m,p){const g=p[p.length-1],y=g?g.children.indexOf(m):void 0;return c(m,y,g)}}const Id={}.hasOwnProperty,G3={};function X3(e,t){const i=t||G3,o=new Map,l=new Map,u=new Map,c={...O3,...i.handlers},d={all:p,applyData:Q3,definitionById:o,footnoteById:l,footnoteCounts:u,footnoteOrder:[],handlers:c,one:m,options:i,patch:K3,wrap:W3};return sb(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?o:l,v=String(g.identifier).toUpperCase();y.has(v)||y.set(v,g)}}),d;function m(g,y){const v=g.type,S=d.handlers[v];if(Id.call(d.handlers,v)&&S)return S(d,g,y);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in g){const{children:w,...R}=g,k=xu(R);return k.children=d.all(g),k}return xu(g)}return(d.options.unknownHandler||Z3)(d,g,y)}function p(g){const y=[];if("children"in g){const v=g.children;let S=-1;for(;++S<v.length;){const C=d.one(v[S],g);if(C){if(S&&v[S-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=ub(C.value)),!Array.isArray(C)&&C.type==="element")){const w=C.children[0];w&&w.type==="text"&&(w.value=ub(w.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function K3(e,t){e.position&&(t.position=Pk(e))}function Q3(e,t){let i=t;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,u=e.data.hProperties;if(typeof o=="string")if(i.type==="element")i.tagName=o;else{const c="children"in i?i.children:[i];i={type:"element",tagName:o,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,xu(u)),"children"in i&&i.children&&l!==null&&l!==void 0&&(i.children=l)}return i}function Z3(e,t){const i=t.data||{},o="value"in t&&!(Id.call(i,"hProperties")||Id.call(i,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function W3(e,t){const i=[];let o=-1;for(t&&i.push({type:"text",value:`
|
|
157
|
+
`});++o<e.length;)o&&i.push({type:"text",value:`
|
|
158
|
+
`}),i.push(e[o]);return t&&e.length>0&&i.push({type:"text",value:`
|
|
159
|
+
`}),i}function ub(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function cb(e,t){const i=X3(e,t),o=i.one(e,void 0),l=$3(i),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&u.children.push({type:"text",value:`
|
|
160
|
+
`},l),u}function J3(e,t){return e&&"run"in e?async function(i,o){const l=cb(i,{file:o,...t});await e.run(l,o)}:function(i,o){return cb(i,{file:o,...e||t})}}function fb(e){if(e)throw e}var $d,db;function e5(){if(db)return $d;db=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},u=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var g=e.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!y)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},c=function(p,g){i&&g.name==="__proto__"?i(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},d=function(p,g){if(g==="__proto__")if(e.call(p,g)){if(o)return o(p,g).value}else return;return p[g]};return $d=function m(){var p,g,y,v,S,C,w=arguments[0],R=1,k=arguments.length,$=!1;for(typeof w=="boolean"&&($=w,w=arguments[1]||{},R=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});R<k;++R)if(p=arguments[R],p!=null)for(g in p)y=d(w,g),v=d(p,g),w!==v&&($&&v&&(u(v)||(S=l(v)))?(S?(S=!1,C=y&&l(y)?y:[]):C=y&&u(y)?y:{},c(w,{name:g,newValue:m($,C,v)})):typeof v<"u"&&c(w,{name:g,newValue:v}));return w},$d}var t5=e5();const Ud=xs(t5);function Ld(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function n5(){const e=[],t={run:i,use:o};return t;function i(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(m,...p){const g=e[++u];let y=-1;if(m){c(m);return}for(;++y<l.length;)(p[y]===null||p[y]===void 0)&&(p[y]=l[y]);l=p,g?r5(g,d)(...p):c(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function r5(e,t){let i;return o;function o(...c){const d=e.length>c.length;let m;d&&c.push(l);try{m=e.apply(this,c)}catch(p){const g=p;if(d&&i)throw g;return l(g)}d||(m&&m.then&&typeof m.then=="function"?m.then(u,l):m instanceof Error?l(m):u(m))}function l(c,...d){i||(i=!0,t(c,...d))}function u(c){l(null,c)}}const Dr={basename:i5,dirname:o5,extname:a5,join:l5,sep:"/"};function i5(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wl(e);let i=0,o=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){i=l+1;break}}else o<0&&(u=!0,o=l+1);return o<0?"":e.slice(i,o)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){i=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=c));return i===o?o=c:o<0&&(o=e.length),e.slice(i,o)}function o5(e){if(wl(e),e.length===0)return".";let t=-1,i=e.length,o;for(;--i;)if(e.codePointAt(i)===47){if(o){t=i;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function a5(e){wl(e);let t=e.length,i=-1,o=0,l=-1,u=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){o=t+1;break}continue}i<0&&(c=!0,i=t+1),d===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||i<0||u===0||u===1&&l===i-1&&l===o+1?"":e.slice(l,i)}function l5(...e){let t=-1,i;for(;++t<e.length;)wl(e[t]),e[t]&&(i=i===void 0?e[t]:i+"/"+e[t]);return i===void 0?".":s5(i)}function s5(e){wl(e);const t=e.codePointAt(0)===47;let i=u5(e,!t);return i.length===0&&!t&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function u5(e,t){let i="",o=0,l=-1,u=0,c=-1,d,m;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(i.length<2||o!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",o=0):(i=i.slice(0,m),o=i.length-1-i.lastIndexOf("/")),l=c,u=0;continue}}else if(i.length>0){i="",o=0,l=c,u=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,c):i=e.slice(l+1,c),o=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return i}function wl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const c5={cwd:f5};function f5(){return"/"}function jd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function d5(e){if(typeof e=="string")e=new URL(e);else if(!jd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return h5(e)}function h5(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let i=-1;for(;++i<t.length;)if(t.codePointAt(i)===37&&t.codePointAt(i+1)===50){const o=t.codePointAt(i+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Pd=["history","path","basename","stem","extname","dirname"];class hb{constructor(t){let i;t?jd(t)?i={path:t}:typeof t=="string"||p5(t)?i={value:t}:i=t:i={},this.cwd="cwd"in i?"":c5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Pd.length;){const u=Pd[o];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let l;for(l in i)Pd.includes(l)||(this[l]=i[l])}get basename(){return typeof this.path=="string"?Dr.basename(this.path):void 0}set basename(t){qd(t,"basename"),Hd(t,"basename"),this.path=Dr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dr.dirname(this.path):void 0}set dirname(t){pb(this.basename,"dirname"),this.path=Dr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dr.extname(this.path):void 0}set extname(t){if(Hd(t,"extname"),pb(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){jd(t)&&(t=d5(t)),qd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dr.basename(this.path,this.extname):void 0}set stem(t){qd(t,"stem"),Hd(t,"stem"),this.path=Dr.join(this.dirname||"",t+(this.extname||""))}fail(t,i,o){const l=this.message(t,i,o);throw l.fatal=!0,l}info(t,i,o){const l=this.message(t,i,o);return l.fatal=void 0,l}message(t,i,o){const l=new bn(t,i,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Hd(e,t){if(e&&e.includes(Dr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dr.sep+"`")}function qd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function pb(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function p5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const m5=(function(e){const o=this.constructor.prototype,l=o[e],u=function(){return l.apply(u,arguments)};return Object.setPrototypeOf(u,o),u}),g5={}.hasOwnProperty;class Vd extends m5{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=n5()}copy(){const t=new Vd;let i=-1;for(;++i<this.attachers.length;){const o=this.attachers[i];t.use(...o)}return t.data(Ud(!0,{},this.namespace)),t}data(t,i){return typeof t=="string"?arguments.length===2?(Gd("data",this.frozen),this.namespace[t]=i,this):g5.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Gd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=i.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const i=Eu(t),o=this.parser||this.Parser;return Fd("parse",o),o(String(i),i)}process(t,i){const o=this;return this.freeze(),Fd("process",this.parser||this.Parser),Yd("process",this.compiler||this.Compiler),i?l(void 0,i):new Promise(l);function l(u,c){const d=Eu(t),m=o.parse(d);o.run(m,d,function(g,y,v){if(g||!y||!v)return p(g);const S=y,C=o.stringify(S,v);S5(C)?v.value=C:v.result=C,p(g,v)});function p(g,y){g||!y?c(g):u?u(y):i(void 0,y)}}}processSync(t){let i=!1,o;return this.freeze(),Fd("processSync",this.parser||this.Parser),Yd("processSync",this.compiler||this.Compiler),this.process(t,l),gb("processSync","process",i),o;function l(u,c){i=!0,fb(u),o=c}}run(t,i,o){mb(t),this.freeze();const l=this.transformers;return!o&&typeof i=="function"&&(o=i,i=void 0),o?u(void 0,o):new Promise(u);function u(c,d){const m=Eu(i);l.run(t,m,p);function p(g,y,v){const S=y||t;g?d(g):c?c(S):o(void 0,S,v)}}}runSync(t,i){let o=!1,l;return this.run(t,i,u),gb("runSync","run",o),l;function u(c,d){fb(c),l=d,o=!0}}stringify(t,i){this.freeze();const o=Eu(i),l=this.compiler||this.Compiler;return Yd("stringify",l),mb(t),l(t,o)}use(t,...i){const o=this.attachers,l=this.namespace;if(Gd("use",this.frozen),t!=null)if(typeof t=="function")m(t,i);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...y]=p;m(g,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=Ud(!0,l.settings,p.settings))}function d(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const y=p[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,g){let y=-1,v=-1;for(;++y<o.length;)if(o[y][0]===p){v=y;break}if(v===-1)o.push([p,...g]);else if(g.length>0){let[S,...C]=g;const w=o[v][1];Ld(w)&&Ld(S)&&(S=Ud(!0,w,S)),o[v]=[p,S,...C]}}}}const y5=new Vd().freeze();function Fd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Gd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mb(e){if(!Ld(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gb(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Eu(e){return b5(e)?e:new hb(e)}function b5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function S5(e){return typeof e=="string"||v5(e)}function v5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const x5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yb=[],bb={allowDangerousHtml:!0},w5=/^(https?|ircs?|mailto|xmpp)$/i,E5=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function C5(e){const t=T5(e),i=_5(e);return A5(t.runSync(t.parse(i),i),e)}function T5(e){const t=e.rehypePlugins||yb,i=e.remarkPlugins||yb,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bb}:bb;return y5().use(i3).use(i).use(J3,o).use(t)}function _5(e){const t=e.children||"",i=new hb;return typeof t=="string"&&(i.value=t),i}function A5(e,t){const i=t.allowedElements,o=t.allowElement,l=t.components,u=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,m=t.urlTransform||k5;for(const g of E5)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+x5+g.id,void 0);return sb(e,p),Yk(e,{Fragment:Y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:Y.jsx,jsxs:Y.jsxs,passKeys:!0,passNode:!0});function p(g,y,v){if(g.type==="raw"&&v&&typeof y=="number")return c?v.children.splice(y,1):v.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let S;for(S in Ed)if(Object.hasOwn(Ed,S)&&Object.hasOwn(g.properties,S)){const C=g.properties[S],w=Ed[S];(w===null||w.includes(g.tagName))&&(g.properties[S]=m(String(C||""),S,g))}}if(g.type==="element"){let S=i?!i.includes(g.tagName):u?u.includes(g.tagName):!1;if(!S&&o&&typeof y=="number"&&(S=!o(g,y,v)),S&&v&&typeof y=="number")return d&&g.children?v.children.splice(y,1,...g.children):v.children.splice(y,1),y}}}function k5(e){const t=e.indexOf(":"),i=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||i!==-1&&t>i||o!==-1&&t>o||w5.test(e.slice(0,t))?e:""}function R5(){if(typeof document>"u"||document.querySelector('meta[name="viewport"]'))return;const t=document.createElement("meta");t.name="viewport",t.content="width=device-width, initial-scale=1",document.head.appendChild(t)}function O5(){O.useEffect(()=>{const e=()=>{const t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}px`)};return e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[])}function M5({open:e,setOpen:t,msgs:i,input:o,setInput:l,sending:u,send:c,anchorSx:d,conversationMode:m}){const p=O.useRef(null),g=O.useRef(null),y=Xs(),v=ik(y.breakpoints.down("md"));O5(),O.useEffect(()=>{g.current?.scrollIntoView({behavior:"smooth",block:"end"}),requestAnimationFrame(()=>p.current?.focus())},[i.length,u]),O.useEffect(()=>{e&&g.current?.scrollIntoView({behavior:"auto",block:"end"})},[e]),O.useEffect(()=>{if(!(e&&v))return;const w=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${w}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.width="",window.scrollTo(0,w)}},[e,v]);const S=O.useCallback((w,R,k,$)=>{const M=w===k.length-1,_=k[k.length-1],B=M&&R&&_?.seen,T=B&&_?.id===$.id;return{showSeenIndicator:B,isSeen:T}},[]),C=w=>w==="AI"?"Răspunde automat":w==="Human"?"In conversatie cu un operator":w==="Disconnected"?"Conexiune pierduta. Reincarcati pagina!":w==="Ended"?"Conversație închisă":"Conversație nouă";return Y.jsxs(tn,{sx:d,children:[!e&&Y.jsx(y_,{variant:"contained",onClick:()=>t(!0),startIcon:Y.jsx(gk,{}),sx:{borderRadius:999,px:2,py:1,textTransform:"none",boxShadow:"0 10px 30px rgba(0,0,0,.18)"},children:"Chat"}),e&&Y.jsx(gy,{elevation:v?0:10,sx:{width:v?"100vw":380,height:v?"calc(var(--vh, 1vh) * 100)":560,"@supports (height: 100dvh)":{height:v?"100dvh":560},maxWidth:"100vw",maxHeight:"100dvh",borderRadius:v?0:4,position:v?"fixed":"relative",inset:v?0:"auto",overflow:"hidden",border:v?"none":"1px solid",borderColor:"divider",boxShadow:v?"none":"0 18px 60px rgba(0,0,0,.28)"},children:Y.jsxs(tn,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[Y.jsxs(tn,{sx:{px:1.75,py:1.25,display:"flex",alignItems:"center",gap:1,borderBottom:"1px solid",borderColor:"divider",background:"linear-gradient(135deg, rgba(25,118,210,.18), rgba(156,39,176,.14))",backdropFilter:v?"none":"blur(10px)"},children:[Y.jsx(a_,{overlap:"circular",variant:"dot",color:m!="Disconnected"?"success":"error",sx:{"& .MuiBadge-badge":{width:10,height:10,borderRadius:999,border:"2px solid",borderColor:"background.paper"}},children:Y.jsx(lu,{sx:{bgcolor:"primary.main"},children:Y.jsx(cd,{})})}),Y.jsxs(tn,{sx:{flex:1,minWidth:0},children:[Y.jsx(il,{variant:"subtitle1",sx:{fontWeight:700,lineHeight:1.1},children:"Asistent"}),Y.jsx(il,{variant:"caption",sx:{color:"text.secondary"},children:C(m)})]}),Y.jsx(xy,{size:"small",onClick:()=>t(!1),sx:{bgcolor:"rgba(255,255,255,.55)",border:"1px solid",borderColor:"divider","&:hover":{bgcolor:"rgba(255,255,255,.75)"}},children:Y.jsx(pk,{fontSize:"small"})})]}),Y.jsxs(tn,{sx:{flex:1,minHeight:0,overflow:"auto",px:1.5,py:1.5,backgroundImage:"radial-gradient(circle at 20% 10%, rgba(25,118,210,.10), transparent 45%),radial-gradient(circle at 80% 20%, rgba(156,39,176,.10), transparent 50%),radial-gradient(circle at 40% 90%, rgba(0,200,83,.08), transparent 45%)","&::-webkit-scrollbar":{width:10},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0,0,0,.18)",borderRadius:999,border:"3px solid transparent",backgroundClip:"content-box"}},children:[Y.jsx(N5,{msgs:i,isMessageSeen:S}),Y.jsx("div",{ref:g,style:{paddingBottom:2},children:u&&Y.jsxs(tn,{sx:{display:"flex",alignItems:"flex-end",gap:1,mb:1.2},children:[Y.jsx(lu,{sx:{width:30,height:30,bgcolor:"primary.main"},children:Y.jsx(cd,{sx:{fontSize:18}})}),Y.jsxs(tn,{sx:{px:1.4,py:1.1,borderRadius:3,border:"1px solid",borderColor:"divider",bgcolor:"background.paper",boxShadow:"0 10px 30px rgba(0,0,0,.10)",display:"flex",alignItems:"center",gap:.6},children:[Y.jsx(tn,{sx:{width:6,height:6,borderRadius:999,bgcolor:"text.secondary",animation:"dot 1.1s infinite ease-in-out","@keyframes dot":{"0%, 80%, 100%":{transform:"scale(0.6)",opacity:.4},"40%":{transform:"scale(1)",opacity:1}}}}),Y.jsx(tn,{sx:{width:6,height:6,borderRadius:999,bgcolor:"text.secondary",animation:"dot 1.1s infinite ease-in-out",animationDelay:"0.15s","@keyframes dot":{"0%, 80%, 100%":{transform:"scale(0.6)",opacity:.4},"40%":{transform:"scale(1)",opacity:1}}}}),Y.jsx(tn,{sx:{width:6,height:6,borderRadius:999,bgcolor:"text.secondary",animation:"dot 1.1s infinite ease-in-out",animationDelay:"0.3s","@keyframes dot":{"0%, 80%, 100%":{transform:"scale(0.6)",opacity:.4},"40%":{transform:"scale(1)",opacity:1}}}})]})]})})]}),Y.jsx(tn,{sx:{p:1.25,borderTop:"1px solid",borderColor:"divider",display:"flex",gap:1,bgcolor:"background.paper",flexShrink:0},children:Y.jsx(rk,{inputRef:p,focused:!0,size:"small",fullWidth:!0,value:o,disabled:u||o.length>=ok,onChange:w=>l(w.target.value),onKeyDown:w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),c())},placeholder:"Scrie un mesaj",multiline:!0,maxRows:4,sx:{"& .MuiOutlinedInput-root":{borderRadius:3,pr:.75,backgroundColor:"rgba(0,0,0,.02)"}},InputProps:{endAdornment:Y.jsx(xy,{size:"small",onClick:c,disabled:u||!o.trim(),sx:{ml:.5,borderRadius:999},children:Y.jsx(mk,{})})}})})]})})]})}const N5=dr.memo(function({msgs:t,isMessageSeen:i,endRef:o}){return Y.jsxs(Y.Fragment,{children:[t.map((l,u)=>{const c=l.role==="User",{showSeenIndicator:d,isSeen:m}=i(u,c,t,l);return Y.jsxs(tn,{sx:{display:"flex",justifyContent:c?"flex-end":"flex-start",gap:1,mb:1.2,overflowAnchor:"none"},children:[!c&&Y.jsxs(tn,{children:[Y.jsx(lu,{sx:{width:30,height:30,mt:.25,bgcolor:"primary.main"},children:Y.jsx(cd,{sx:{fontSize:18}})}),l.sentAt&&Y.jsx(tn,{sx:{display:"flex",justifyContent:c?"flex-end":"flex-start",mt:.5},children:Y.jsx(il,{variant:"caption",sx:{color:"text.secondary",fontSize:11},children:l.sentAt})})]},"asistent"+l.id),Y.jsxs(tn,{sx:{maxWidth:"78%"},children:[Y.jsx(tn,{sx:{wordBreak:"break-word",position:"relative",px:1.4,py:1.05,borderRadius:3,border:"1px solid",borderColor:"divider",bgcolor:c?"primary.main":"background.paper",color:c?"primary.contrastText":"text.primary",boxShadow:c?"0 10px 30px rgba(25,118,210,.22)":"0 10px 30px rgba(0,0,0,.10)",whiteSpace:"pre-wrap","&:before":{content:'""',position:"absolute",top:14,width:10,height:10,transform:"rotate(45deg)",bgcolor:c?"primary.main":"background.paper",borderLeft:c?"none":"1px solid",borderTop:c?"none":"1px solid",borderColor:"divider",right:c?-5:"auto",left:c?"auto":-5},"& p":{margin:0},"& a":{color:"inherit",textDecoration:"underline"},"& code":{fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSize:"0.9em",padding:"2px 6px",borderRadius:8,backgroundColor:c?"rgba(255,255,255,.14)":"rgba(0,0,0,.06)"},"& pre":{margin:0,marginTop:8,padding:12,overflow:"auto",borderRadius:12,backgroundColor:c?"rgba(255,255,255,.12)":"rgba(0,0,0,.05)"}},children:Y.jsx(C5,{children:l.text},"message"+l.id)}),d?Y.jsx(il,{sx:{mt:.35,fontSize:12,textAlign:"right",color:m?"text.secondary":"text.disabled"},children:m?"Seen":"Sent"}):null]},"container"+l.id),Y.jsx(tn,{children:c&&Y.jsxs(tn,{children:[Y.jsx(lu,{sx:{width:30,height:30,mt:.25,bgcolor:"grey.900"},children:Y.jsx(yk,{sx:{fontSize:18}})}),l.sentAt&&Y.jsx(tn,{sx:{display:"flex",justifyContent:c?"flex-end":"flex-start",mt:.5},children:Y.jsx(il,{variant:"caption",sx:{color:"text.secondary",fontSize:11},children:l.sentAt})})]},"sentad"+l.id)})]},l.id)}),Y.jsx("div",{ref:o})]})});class no extends Error{constructor(t,i){const o=new.target.prototype;super(`${t}: Status code '${i}'`),this.statusCode=i,this.__proto__=o}}class Xd extends Error{constructor(t="A timeout occurred."){const i=new.target.prototype;super(t),this.__proto__=i}}class yr extends Error{constructor(t="An abort occurred."){const i=new.target.prototype;super(t),this.__proto__=i}}class z5 extends Error{constructor(t,i){const o=new.target.prototype;super(t),this.transport=i,this.errorType="UnsupportedTransportError",this.__proto__=o}}class B5 extends Error{constructor(t,i){const o=new.target.prototype;super(t),this.transport=i,this.errorType="DisabledTransportError",this.__proto__=o}}class D5 extends Error{constructor(t,i){const o=new.target.prototype;super(t),this.transport=i,this.errorType="FailedToStartTransportError",this.__proto__=o}}class Sb extends Error{constructor(t){const i=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=i}}class I5 extends Error{constructor(t,i){const o=new.target.prototype;super(t),this.innerErrors=i,this.__proto__=o}}class vb{constructor(t,i,o){this.statusCode=t,this.statusText=i,this.content=o}}class Cu{get(t,i){return this.send({...i,method:"GET",url:t})}post(t,i){return this.send({...i,method:"POST",url:t})}delete(t,i){return this.send({...i,method:"DELETE",url:t})}getCookieString(t){return""}}var ae;(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"})(ae||(ae={}));class El{constructor(){}log(t,i){}}El.instance=new El;const $5="10.0.0";class Kt{static isRequired(t,i){if(t==null)throw new Error(`The '${i}' argument is required.`)}static isNotEmpty(t,i){if(!t||t.match(/^\s*$/))throw new Error(`The '${i}' argument should not be empty.`)}static isIn(t,i,o){if(!(t in i))throw new Error(`Unknown ${o} value: ${t}.`)}}class Mt{static get isBrowser(){return!Mt.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Mt.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Mt.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Cl(e,t){let i="";return ro(e)?(i=`Binary data of length ${e.byteLength}`,t&&(i+=`. Content: '${U5(e)}'`)):typeof e=="string"&&(i=`String data of length ${e.length}`,t&&(i+=`. Content: '${e}'`)),i}function U5(e){const t=new Uint8Array(e);let i="";return t.forEach(o=>{const l=o<16?"0":"";i+=`0x${l}${o.toString(16)} `}),i.substring(0,i.length-1)}function ro(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function xb(e,t,i,o,l,u){const c={},[d,m]=Go();c[d]=m,e.log(ae.Trace,`(${t} transport) sending data. ${Cl(l,u.logMessageContent)}.`);const p=ro(l)?"arraybuffer":"text",g=await i.post(o,{content:l,headers:{...c,...u.headers},responseType:p,timeout:u.timeout,withCredentials:u.withCredentials});e.log(ae.Trace,`(${t} transport) request complete. Response status: ${g.statusCode}.`)}function L5(e){return e===void 0?new Tu(ae.Information):e===null?El.instance:e.log!==void 0?e:new Tu(e)}class j5{constructor(t,i){this._subject=t,this._observer=i}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(i=>{})}}class Tu{constructor(t){this._minLevel=t,this.out=console}log(t,i){if(t>=this._minLevel){const o=`[${new Date().toISOString()}] ${ae[t]}: ${i}`;switch(t){case ae.Critical:case ae.Error:this.out.error(o);break;case ae.Warning:this.out.warn(o);break;case ae.Information:this.out.info(o);break;default:this.out.log(o);break}}}}function Go(){let e="X-SignalR-User-Agent";return Mt.isNode&&(e="User-Agent"),[e,P5($5,H5(),V5(),q5())]}function P5(e,t,i,o){let l="Microsoft SignalR/";const u=e.split(".");return l+=`${u[0]}.${u[1]}`,l+=` (${e}; `,t&&t!==""?l+=`${t}; `:l+="Unknown OS; ",l+=`${i}`,o?l+=`; ${o}`:l+="; Unknown Runtime Version",l+=")",l}function H5(){if(Mt.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function q5(){if(Mt.isNode)return process.versions.node}function V5(){return Mt.isNode?"NodeJS":"Browser"}function Kd(e){return e.stack?e.stack:e.message?e.message:`${e}`}function F5(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class Y5 extends Cu{constructor(t){if(super(),this._logger=t,typeof fetch>"u"||Mt.isNode){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(i("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=i("node-fetch"):this._fetchType=fetch,this._fetchType=i("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(F5());if(typeof AbortController>"u"){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=i("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new yr;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const i=new this._abortControllerType;let o;t.abortSignal&&(t.abortSignal.onabort=()=>{i.abort(),o=new yr});let l=null;if(t.timeout){const m=t.timeout;l=setTimeout(()=>{i.abort(),this._logger.log(ae.Warning,"Timeout from HTTP request."),o=new Xd},m)}t.content===""&&(t.content=void 0),t.content&&(t.headers=t.headers||{},ro(t.content)?t.headers["Content-Type"]="application/octet-stream":t.headers["Content-Type"]="text/plain;charset=UTF-8");let u;try{u=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:i.signal})}catch(m){throw o||(this._logger.log(ae.Warning,`Error from HTTP request. ${m}.`),m)}finally{l&&clearTimeout(l),t.abortSignal&&(t.abortSignal.onabort=null)}if(!u.ok){const m=await wb(u,"text");throw new no(m||u.statusText,u.status)}const d=await wb(u,t.responseType);return new vb(u.status,u.statusText,d)}getCookieString(t){let i="";return Mt.isNode&&this._jar&&this._jar.getCookies(t,(o,l)=>i=l.join("; ")),i}}function wb(e,t){let i;switch(t){case"arraybuffer":i=e.arrayBuffer();break;case"text":i=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:i=e.text();break}return i}class G5 extends Cu{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new yr):t.method?t.url?new Promise((i,o)=>{const l=new XMLHttpRequest;l.open(t.method,t.url,!0),l.withCredentials=t.withCredentials===void 0?!0:t.withCredentials,l.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.content===""&&(t.content=void 0),t.content&&(ro(t.content)?l.setRequestHeader("Content-Type","application/octet-stream"):l.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const u=t.headers;u&&Object.keys(u).forEach(c=>{l.setRequestHeader(c,u[c])}),t.responseType&&(l.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{l.abort(),o(new yr)}),t.timeout&&(l.timeout=t.timeout),l.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),l.status>=200&&l.status<300?i(new vb(l.status,l.statusText,l.response||l.responseText)):o(new no(l.response||l.responseText||l.statusText,l.status))},l.onerror=()=>{this._logger.log(ae.Warning,`Error from HTTP request. ${l.status}: ${l.statusText}.`),o(new no(l.statusText,l.status))},l.ontimeout=()=>{this._logger.log(ae.Warning,"Timeout from HTTP request."),o(new Xd)},l.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class X5 extends Cu{constructor(t){if(super(),typeof fetch<"u"||Mt.isNode)this._httpClient=new Y5(t);else if(typeof XMLHttpRequest<"u")this._httpClient=new G5(t);else throw new Error("No usable HttpClient found.")}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new yr):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}class Ln{static write(t){return`${t}${Ln.RecordSeparator}`}static parse(t){if(t[t.length-1]!==Ln.RecordSeparator)throw new Error("Message is incomplete.");const i=t.split(Ln.RecordSeparator);return i.pop(),i}}Ln.RecordSeparatorCode=30,Ln.RecordSeparator=String.fromCharCode(Ln.RecordSeparatorCode);class K5{writeHandshakeRequest(t){return Ln.write(JSON.stringify(t))}parseHandshakeResponse(t){let i,o;if(ro(t)){const d=new Uint8Array(t),m=d.indexOf(Ln.RecordSeparatorCode);if(m===-1)throw new Error("Message is incomplete.");const p=m+1;i=String.fromCharCode.apply(null,Array.prototype.slice.call(d.slice(0,p))),o=d.byteLength>p?d.slice(p).buffer:null}else{const d=t,m=d.indexOf(Ln.RecordSeparator);if(m===-1)throw new Error("Message is incomplete.");const p=m+1;i=d.substring(0,p),o=d.length>p?d.substring(p):null}const l=Ln.parse(i),u=JSON.parse(l[0]);if(u.type)throw new Error("Expected a handshake response from the server.");return[o,u]}}var Be;(function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"})(Be||(Be={}));class Q5{constructor(){this.observers=[]}next(t){for(const i of this.observers)i.next(t)}error(t){for(const i of this.observers)i.error&&i.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new j5(this,t)}}class Z5{constructor(t,i,o){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=i,this._bufferSize=o}async _send(t){const i=this._protocol.writeMessage(t);let o=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let l=()=>{},u=()=>{};ro(i)?this._bufferedByteCount+=i.byteLength:this._bufferedByteCount+=i.length,this._bufferedByteCount>=this._bufferSize&&(o=new Promise((c,d)=>{l=c,u=d})),this._messages.push(new W5(i,this._totalMessageCount,l,u))}try{this._reconnectInProgress||await this._connection.send(i)}catch{this._disconnected()}await o}_ack(t){let i=-1;for(let o=0;o<this._messages.length;o++){const l=this._messages[o];if(l._id<=t.sequenceId)i=o,ro(l._message)?this._bufferedByteCount-=l._message.byteLength:this._bufferedByteCount-=l._message.length,l._resolver();else if(this._bufferedByteCount<this._bufferSize)l._resolver();else break}i!==-1&&(this._messages=this._messages.slice(i+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==Be.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;const i=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,i<=this._latestReceivedSequenceId?(i===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=i,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:Be.Sequence,sequenceId:t}));const i=this._messages;for(const o of i)await this._connection.send(o._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(const i of this._messages)i._rejector(t)}_isInvocationMessage(t){switch(t.type){case Be.Invocation:case Be.StreamItem:case Be.Completion:case Be.StreamInvocation:case Be.CancelInvocation:return!0;case Be.Close:case Be.Sequence:case Be.Ping:case Be.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:Be.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class W5{constructor(t,i,o,l){this._message=t,this._id=i,this._resolver=o,this._rejector=l}}const J5=30*1e3,eM=15*1e3,tM=1e5;var ut;(function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"})(ut||(ut={}));class Qd{static create(t,i,o,l,u,c,d){return new Qd(t,i,o,l,u,c,d)}constructor(t,i,o,l,u,c,d){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(ae.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Kt.isRequired(t,"connection"),Kt.isRequired(i,"logger"),Kt.isRequired(o,"protocol"),this.serverTimeoutInMilliseconds=u??J5,this.keepAliveIntervalInMilliseconds=c??eM,this._statefulReconnectBufferSize=d??tM,this._logger=i,this._protocol=o,this.connection=t,this._reconnectPolicy=l,this._handshakeProtocol=new K5,this.connection.onreceive=m=>this._processIncomingData(m),this.connection.onclose=m=>this._connectionClosed(m),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ut.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:Be.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==ut.Disconnected&&this._connectionState!==ut.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==ut.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=ut.Connecting,this._logger.log(ae.Debug,"Starting HubConnection.");try{await this._startInternal(),Mt.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=ut.Connected,this._connectionStarted=!0,this._logger.log(ae.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=ut.Disconnected,this._logger.log(ae.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise((i,o)=>{this._handshakeResolver=i,this._handshakeRejecter=o});await this.connection.start(this._protocol.transferFormat);try{let i=this._protocol.version;this.connection.features.reconnect||(i=1);const o={protocol:this._protocol.name,version:i};if(this._logger.log(ae.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)),this._logger.log(ae.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Z5(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(i){throw this._logger.log(ae.Debug,`Hub handshake failed with error '${i}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(i),i}}async stop(){const t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===ut.Disconnected)return this._logger.log(ae.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===ut.Disconnecting)return this._logger.log(ae.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const i=this._connectionState;return this._connectionState=ut.Disconnecting,this._logger.log(ae.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(ae.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(i===ut.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new yr("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...i){const[o,l]=this._replaceStreamingParams(i),u=this._createStreamInvocation(t,i,l);let c;const d=new Q5;return d.cancelCallback=()=>{const m=this._createCancelInvocation(u.invocationId);return delete this._callbacks[u.invocationId],c.then(()=>this._sendWithProtocol(m))},this._callbacks[u.invocationId]=(m,p)=>{if(p){d.error(p);return}else m&&(m.type===Be.Completion?m.error?d.error(new Error(m.error)):d.complete():d.next(m.item))},c=this._sendWithProtocol(u).catch(m=>{d.error(m),delete this._callbacks[u.invocationId]}),this._launchStreams(o,c),d}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...i){const[o,l]=this._replaceStreamingParams(i),u=this._sendWithProtocol(this._createInvocation(t,i,!0,l));return this._launchStreams(o,u),u}invoke(t,...i){const[o,l]=this._replaceStreamingParams(i),u=this._createInvocation(t,i,!1,l);return new Promise((d,m)=>{this._callbacks[u.invocationId]=(g,y)=>{if(y){m(y);return}else g&&(g.type===Be.Completion?g.error?m(new Error(g.error)):d(g.result):m(new Error(`Unexpected message type: ${g.type}`)))};const p=this._sendWithProtocol(u).catch(g=>{m(g),delete this._callbacks[u.invocationId]});this._launchStreams(o,p)})}on(t,i){!t||!i||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(i)===-1&&this._methods[t].push(i))}off(t,i){if(!t)return;t=t.toLowerCase();const o=this._methods[t];if(o)if(i){const l=o.indexOf(i);l!==-1&&(o.splice(l,1),o.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const i=this._protocol.parseMessages(t,this._logger);for(const o of i)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(o)))switch(o.type){case Be.Invocation:this._invokeClientMethod(o).catch(l=>{this._logger.log(ae.Error,`Invoke client method threw error: ${Kd(l)}`)});break;case Be.StreamItem:case Be.Completion:{const l=this._callbacks[o.invocationId];if(l){o.type===Be.Completion&&delete this._callbacks[o.invocationId];try{l(o)}catch(u){this._logger.log(ae.Error,`Stream callback threw error: ${Kd(u)}`)}}break}case Be.Ping:break;case Be.Close:{this._logger.log(ae.Information,"Close message received from server.");const l=o.error?new Error("Server returned an error on close: "+o.error):void 0;o.allowReconnect===!0?this.connection.stop(l):this._stopPromise=this._stopInternal(l);break}case Be.Ack:this._messageBuffer&&this._messageBuffer._ack(o);break;case Be.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(o);break;default:this._logger.log(ae.Warning,`Invalid message type: ${o.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let i,o;try{[o,i]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(l){const u="Error parsing handshake response: "+l;this._logger.log(ae.Error,u);const c=new Error(u);throw this._handshakeRejecter(c),c}if(i.error){const l="Server returned handshake error: "+i.error;this._logger.log(ae.Error,l);const u=new Error(l);throw this._handshakeRejecter(u),u}else this._logger.log(ae.Debug,"Server handshake complete.");return this._handshakeResolver(),o}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!this.connection.features||!this.connection.features.inherentKeepAlive){this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds);let t=this._nextKeepAlive-new Date().getTime();if(t<0){this._connectionState===ut.Connected&&this._trySendPingMessage();return}this._pingServerHandle===void 0&&(t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{this._connectionState===ut.Connected&&await this._trySendPingMessage()},t))}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const i=t.target.toLowerCase(),o=this._methods[i];if(!o){this._logger.log(ae.Warning,`No client method with the name '${i}' found.`),t.invocationId&&(this._logger.log(ae.Warning,`No result given for '${i}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const l=o.slice(),u=!!t.invocationId;let c,d,m;for(const p of l)try{const g=c;c=await p.apply(this,t.arguments),u&&c&&g&&(this._logger.log(ae.Error,`Multiple results provided for '${i}'. Sending error to server.`),m=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),d=void 0}catch(g){d=g,this._logger.log(ae.Error,`A callback for the method '${i}' threw error '${g}'.`)}m?await this._sendWithProtocol(m):u?(d?m=this._createCompletionMessage(t.invocationId,`${d}`,null):c!==void 0?m=this._createCompletionMessage(t.invocationId,null,c):(this._logger.log(ae.Warning,`No result given for '${i}' method and invocation ID '${t.invocationId}'.`),m=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(m)):c&&this._logger.log(ae.Error,`Result given for '${i}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(ae.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new yr("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ut.Disconnecting?this._completeClose(t):this._connectionState===ut.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===ut.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=ut.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),Mt.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(i=>i.apply(this,[t]))}catch(i){this._logger.log(ae.Error,`An onclose callback called with error '${t}' threw error '${i}'.`)}}}async _reconnect(t){const i=Date.now();let o=0,l=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),u=this._getNextRetryDelay(o,0,l);if(u===null){this._logger.log(ae.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=ut.Reconnecting,t?this._logger.log(ae.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(ae.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(c=>c.apply(this,[t]))}catch(c){this._logger.log(ae.Error,`An onreconnecting callback called with error '${t}' threw error '${c}'.`)}if(this._connectionState!==ut.Reconnecting){this._logger.log(ae.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;u!==null;){if(this._logger.log(ae.Information,`Reconnect attempt number ${o+1} will start in ${u} ms.`),await new Promise(c=>{this._reconnectDelayHandle=setTimeout(c,u)}),this._reconnectDelayHandle=void 0,this._connectionState!==ut.Reconnecting){this._logger.log(ae.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=ut.Connected,this._logger.log(ae.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(c=>c.apply(this,[this.connection.connectionId]))}catch(c){this._logger.log(ae.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${c}'.`)}return}catch(c){if(this._logger.log(ae.Information,`Reconnect attempt failed because of error '${c}'.`),this._connectionState!==ut.Reconnecting){this._logger.log(ae.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===ut.Disconnecting&&this._completeClose();return}o++,l=c instanceof Error?c:new Error(c.toString()),u=this._getNextRetryDelay(o,Date.now()-i,l)}}this._logger.log(ae.Information,`Reconnect retries have been exhausted after ${Date.now()-i} ms and ${o} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,i,o){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:i,previousRetryCount:t,retryReason:o})}catch(l){return this._logger.log(ae.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${i}) threw error '${l}'.`),null}}_cancelCallbacksWithError(t){const i=this._callbacks;this._callbacks={},Object.keys(i).forEach(o=>{const l=i[o];try{l(null,t)}catch(u){this._logger.log(ae.Error,`Stream 'error' callback called with '${t}' threw error: ${Kd(u)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,i,o,l){if(o)return l.length!==0?{target:t,arguments:i,streamIds:l,type:Be.Invocation}:{target:t,arguments:i,type:Be.Invocation};{const u=this._invocationId;return this._invocationId++,l.length!==0?{target:t,arguments:i,invocationId:u.toString(),streamIds:l,type:Be.Invocation}:{target:t,arguments:i,invocationId:u.toString(),type:Be.Invocation}}}_launchStreams(t,i){if(t.length!==0){i||(i=Promise.resolve());for(const o in t)t[o].subscribe({complete:()=>{i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(o)))},error:l=>{let u;l instanceof Error?u=l.message:l&&l.toString?u=l.toString():u="Unknown error",i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(o,u)))},next:l=>{i=i.then(()=>this._sendWithProtocol(this._createStreamItemMessage(o,l)))}})}}_replaceStreamingParams(t){const i=[],o=[];for(let l=0;l<t.length;l++){const u=t[l];if(this._isObservable(u)){const c=this._invocationId;this._invocationId++,i[c]=u,o.push(c.toString()),t.splice(l,1)}}return[i,o]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,i,o){const l=this._invocationId;return this._invocationId++,o.length!==0?{target:t,arguments:i,invocationId:l.toString(),streamIds:o,type:Be.StreamInvocation}:{target:t,arguments:i,invocationId:l.toString(),type:Be.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:Be.CancelInvocation}}_createStreamItemMessage(t,i){return{invocationId:t,item:i,type:Be.StreamItem}}_createCompletionMessage(t,i,o){return i?{error:i,invocationId:t,type:Be.Completion}:{invocationId:t,result:o,type:Be.Completion}}_createCloseMessage(){return{type:Be.Close}}async _trySendPingMessage(){try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}}const nM=[0,2e3,1e4,3e4,null];class Eb{constructor(t){this._retryDelays=t!==void 0?[...t,null]:nM}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}class io{}io.Authorization="Authorization",io.Cookie="Cookie";class rM extends Cu{constructor(t,i){super(),this._innerClient=t,this._accessTokenFactory=i}async send(t){let i=!0;this._accessTokenFactory&&(!this._accessToken||t.url&&t.url.indexOf("/negotiate?")>0)&&(i=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(t);const o=await this._innerClient.send(t);return i&&o.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(t),await this._innerClient.send(t)):o}_setAuthorizationHeader(t){t.headers||(t.headers={}),this._accessToken?t.headers[io.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&t.headers[io.Authorization]&&delete t.headers[io.Authorization]}getCookieString(t){return this._innerClient.getCookieString(t)}}var nn;(function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"})(nn||(nn={}));var Sn;(function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"})(Sn||(Sn={}));let iM=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Cb{get pollAborted(){return this._pollAbort.aborted}constructor(t,i,o){this._httpClient=t,this._logger=i,this._pollAbort=new iM,this._options=o,this._running=!1,this.onreceive=null,this.onclose=null}async connect(t,i){if(Kt.isRequired(t,"url"),Kt.isRequired(i,"transferFormat"),Kt.isIn(i,Sn,"transferFormat"),this._url=t,this._logger.log(ae.Trace,"(LongPolling transport) Connecting."),i===Sn.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,l]=Go(),u={[o]:l,...this._options.headers},c={abortSignal:this._pollAbort.signal,headers:u,timeout:1e5,withCredentials:this._options.withCredentials};i===Sn.Binary&&(c.responseType="arraybuffer");const d=`${t}&_=${Date.now()}`;this._logger.log(ae.Trace,`(LongPolling transport) polling: ${d}.`);const m=await this._httpClient.get(d,c);m.statusCode!==200?(this._logger.log(ae.Error,`(LongPolling transport) Unexpected response code: ${m.statusCode}.`),this._closeError=new no(m.statusText||"",m.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,c)}async _poll(t,i){try{for(;this._running;)try{const o=`${t}&_=${Date.now()}`;this._logger.log(ae.Trace,`(LongPolling transport) polling: ${o}.`);const l=await this._httpClient.get(o,i);l.statusCode===204?(this._logger.log(ae.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):l.statusCode!==200?(this._logger.log(ae.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new no(l.statusText||"",l.statusCode),this._running=!1):l.content?(this._logger.log(ae.Trace,`(LongPolling transport) data received. ${Cl(l.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(l.content)):this._logger.log(ae.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){this._running?o instanceof Xd?this._logger.log(ae.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=o,this._running=!1):this._logger.log(ae.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{this._logger.log(ae.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?xb(this._logger,"LongPolling",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(ae.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(ae.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const t={},[i,o]=Go();t[i]=o;const l={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let u;try{await this._httpClient.delete(this._url,l)}catch(c){u=c}u?u instanceof no&&(u.statusCode===404?this._logger.log(ae.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(ae.Trace,`(LongPolling transport) Error sending a DELETE request: ${u}`)):this._logger.log(ae.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(ae.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(ae.Trace,t),this.onclose(this._closeError)}}}class oM{constructor(t,i,o,l){this._httpClient=t,this._accessToken=i,this._logger=o,this._options=l,this.onreceive=null,this.onclose=null}async connect(t,i){return Kt.isRequired(t,"url"),Kt.isRequired(i,"transferFormat"),Kt.isIn(i,Sn,"transferFormat"),this._logger.log(ae.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((o,l)=>{let u=!1;if(i!==Sn.Text){l(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let c;if(Mt.isBrowser||Mt.isWebWorker)c=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const d=this._httpClient.getCookieString(t),m={};m.Cookie=d;const[p,g]=Go();m[p]=g,c=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...m,...this._options.headers}})}try{c.onmessage=d=>{if(this.onreceive)try{this._logger.log(ae.Trace,`(SSE transport) data received. ${Cl(d.data,this._options.logMessageContent)}.`),this.onreceive(d.data)}catch(m){this._close(m);return}},c.onerror=d=>{u?this._close():l(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},c.onopen=()=>{this._logger.log(ae.Information,`SSE connected to ${this._url}`),this._eventSource=c,u=!0,o()}}catch(d){l(d);return}})}async send(t){return this._eventSource?xb(this._logger,"SSE",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}class aM{constructor(t,i,o,l,u,c){this._logger=o,this._accessTokenFactory=i,this._logMessageContent=l,this._webSocketConstructor=u,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=c}async connect(t,i){Kt.isRequired(t,"url"),Kt.isRequired(i,"transferFormat"),Kt.isIn(i,Sn,"transferFormat"),this._logger.log(ae.Trace,"(WebSockets transport) Connecting.");let o;return this._accessTokenFactory&&(o=await this._accessTokenFactory()),new Promise((l,u)=>{t=t.replace(/^http/,"ws");let c;const d=this._httpClient.getCookieString(t);let m=!1;if(Mt.isNode||Mt.isReactNative){const p={},[g,y]=Go();p[g]=y,o&&(p[io.Authorization]=`Bearer ${o}`),d&&(p[io.Cookie]=d),c=new this._webSocketConstructor(t,void 0,{headers:{...p,...this._headers}})}else o&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);c||(c=new this._webSocketConstructor(t)),i===Sn.Binary&&(c.binaryType="arraybuffer"),c.onopen=p=>{this._logger.log(ae.Information,`WebSocket connected to ${t}.`),this._webSocket=c,m=!0,l()},c.onerror=p=>{let g=null;typeof ErrorEvent<"u"&&p instanceof ErrorEvent?g=p.error:g="There was an error with the transport",this._logger.log(ae.Information,`(WebSockets transport) ${g}.`)},c.onmessage=p=>{if(this._logger.log(ae.Trace,`(WebSockets transport) data received. ${Cl(p.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(p.data)}catch(g){this._close(g);return}},c.onclose=p=>{if(m)this._close(p);else{let g=null;typeof ErrorEvent<"u"&&p instanceof ErrorEvent?g=p.error:g="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",u(new Error(g))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(ae.Trace,`(WebSockets transport) sending data. ${Cl(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(ae.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)):t instanceof Error?this.onclose(t):this.onclose())}_isCloseEvent(t){return t&&typeof t.wasClean=="boolean"&&typeof t.code=="number"}}const Tb=100;class lM{constructor(t,i={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Kt.isRequired(t,"url"),this._logger=L5(i.logger),this.baseUrl=this._resolveUrl(t),i=i||{},i.logMessageContent=i.logMessageContent===void 0?!1:i.logMessageContent,typeof i.withCredentials=="boolean"||i.withCredentials===void 0)i.withCredentials=i.withCredentials===void 0?!0:i.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");i.timeout=i.timeout===void 0?100*1e3:i.timeout;let o=null,l=null;if(Mt.isNode&&typeof require<"u"){const u=typeof __webpack_require__=="function"?__non_webpack_require__:require;o=u("ws"),l=u("eventsource")}!Mt.isNode&&typeof WebSocket<"u"&&!i.WebSocket?i.WebSocket=WebSocket:Mt.isNode&&!i.WebSocket&&o&&(i.WebSocket=o),!Mt.isNode&&typeof EventSource<"u"&&!i.EventSource?i.EventSource=EventSource:Mt.isNode&&!i.EventSource&&typeof l<"u"&&(i.EventSource=l),this._httpClient=new rM(i.httpClient||new X5(this._logger),i.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=i,this.onreceive=null,this.onclose=null}async start(t){if(t=t||Sn.Binary,Kt.isIn(t,Sn,"transferFormat"),this._logger.log(ae.Debug,`Starting connection with transfer format '${Sn[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){const i="Failed to start the HttpConnection before stop() was called.";return this._logger.log(ae.Error,i),await this._stopPromise,Promise.reject(new yr(i))}else if(this._connectionState!=="Connected"){const i="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(ae.Error,i),Promise.reject(new yr(i))}this._connectionStarted=!0}send(t){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Zd(this.transport)),this._sendQueue.send(t))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(ae.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(ae.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(i=>{this._stopPromiseResolver=i}),await this._stopInternal(t),await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(i){this._logger.log(ae.Error,`HttpConnection.transport.stop() threw error '${i}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(ae.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let i=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===nn.WebSockets)this.transport=this._constructTransport(nn.WebSockets),await this._startTransport(i,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let o=null,l=0;do{if(o=await this._getNegotiationResponse(i),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new yr("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(i=o.url),o.accessToken){const u=o.accessToken;this._accessTokenFactory=()=>u,this._httpClient._accessToken=u,this._httpClient._accessTokenFactory=void 0}l++}while(o.url&&l<Tb);if(l===Tb&&o.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(i,this._options.transport,o,t)}this.transport instanceof Cb&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(ae.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(o){return this._logger.log(ae.Error,"Failed to start the connection: "+o),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(o)}}async _getNegotiationResponse(t){const i={},[o,l]=Go();i[o]=l;const u=this._resolveNegotiateUrl(t);this._logger.log(ae.Debug,`Sending negotiation request: ${u}.`);try{const c=await this._httpClient.post(u,{content:"",headers:{...i,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(c.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${c.statusCode}'`));const d=JSON.parse(c.content);return(!d.negotiateVersion||d.negotiateVersion<1)&&(d.connectionToken=d.connectionId),d.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new Sb("Client didn't negotiate Stateful Reconnect but the server did.")):d}catch(c){let d="Failed to complete negotiation with the server: "+c;return c instanceof no&&c.statusCode===404&&(d=d+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(ae.Error,d),Promise.reject(new Sb(d))}}_createConnectUrl(t,i){return i?t+(t.indexOf("?")===-1?"?":"&")+`id=${i}`:t}async _createTransport(t,i,o,l){let u=this._createConnectUrl(t,o.connectionToken);if(this._isITransport(i)){this._logger.log(ae.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=i,await this._startTransport(u,l),this.connectionId=o.connectionId;return}const c=[],d=o.availableTransports||[];let m=o;for(const p of d){const g=this._resolveTransportOrError(p,i,l,m?.useStatefulReconnect===!0);if(g instanceof Error)c.push(`${p.transport} failed:`),c.push(g);else if(this._isITransport(g)){if(this.transport=g,!m){try{m=await this._getNegotiationResponse(t)}catch(y){return Promise.reject(y)}u=this._createConnectUrl(t,m.connectionToken)}try{await this._startTransport(u,l),this.connectionId=m.connectionId;return}catch(y){if(this._logger.log(ae.Error,`Failed to start the transport '${p.transport}': ${y}`),m=void 0,c.push(new D5(`${p.transport} failed: ${y}`,nn[p.transport])),this._connectionState!=="Connecting"){const v="Failed to select transport before stop() was called.";return this._logger.log(ae.Debug,v),Promise.reject(new yr(v))}}}}return c.length>0?Promise.reject(new I5(`Unable to connect to the server with any of the available transports. ${c.join(" ")}`,c)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case nn.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new aM(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case nn.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new oM(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case nn.LongPolling:return new Cb(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,i){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async o=>{let l=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(t,i),await this.features.resend()}catch{l=!0}else{this._stopConnection(o);return}l&&this._stopConnection(o)}:this.transport.onclose=o=>this._stopConnection(o),this.transport.connect(t,i)}_resolveTransportOrError(t,i,o,l){const u=nn[t.transport];if(u==null)return this._logger.log(ae.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(sM(i,u))if(t.transferFormats.map(d=>Sn[d]).indexOf(o)>=0){if(u===nn.WebSockets&&!this._options.WebSocket||u===nn.ServerSentEvents&&!this._options.EventSource)return this._logger.log(ae.Debug,`Skipping transport '${nn[u]}' because it is not supported in your environment.'`),new z5(`'${nn[u]}' is not supported in your environment.`,u);this._logger.log(ae.Debug,`Selecting transport '${nn[u]}'.`);try{return this.features.reconnect=u===nn.WebSockets?l:void 0,this._constructTransport(u)}catch(d){return d}}else return this._logger.log(ae.Debug,`Skipping transport '${nn[u]}' because it does not support the requested transfer format '${Sn[o]}'.`),new Error(`'${nn[u]}' does not support ${Sn[o]}.`);else return this._logger.log(ae.Debug,`Skipping transport '${nn[u]}' because it was disabled by the client.`),new B5(`'${nn[u]}' is disabled by the client.`,u)}_isITransport(t){return t&&typeof t=="object"&&"connect"in t}_stopConnection(t){if(this._logger.log(ae.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(ae.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(ae.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(ae.Error,`Connection disconnected with error '${t}'.`):this._logger.log(ae.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(i=>{this._logger.log(ae.Error,`TransportSendQueue.stop() threw error '${i}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(i){this._logger.log(ae.Error,`HttpConnection.onclose(${t}) threw error '${i}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!Mt.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const i=window.document.createElement("a");return i.href=t,this._logger.log(ae.Information,`Normalizing '${t}' to '${i.href}'.`),i.href}_resolveNegotiateUrl(t){const i=new URL(t);i.pathname.endsWith("/")?i.pathname+="negotiate":i.pathname+="/negotiate";const o=new URLSearchParams(i.searchParams);return o.has("negotiateVersion")||o.append("negotiateVersion",this._negotiateVersion.toString()),o.has("useStatefulReconnect")?o.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&o.append("useStatefulReconnect","true"),i.search=o.toString(),i.toString()}}function sM(e,t){return!e||(t&e)!==0}class Zd{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new _u,this._transportResult=new _u,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new _u),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new _u;const t=this._transportResult;this._transportResult=void 0;const i=typeof this._buffer[0]=="string"?this._buffer.join(""):Zd._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(i),t.resolve()}catch(o){t.reject(o)}}}static _concatBuffers(t){const i=t.map(u=>u.byteLength).reduce((u,c)=>u+c),o=new Uint8Array(i);let l=0;for(const u of t)o.set(new Uint8Array(u),l),l+=u.byteLength;return o.buffer}}class _u{constructor(){this.promise=new Promise((t,i)=>[this._resolver,this._rejecter]=[t,i])}resolve(){this._resolver()}reject(t){this._rejecter(t)}}const uM="json";class cM{constructor(){this.name=uM,this.version=2,this.transferFormat=Sn.Text}parseMessages(t,i){if(typeof t!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];i===null&&(i=El.instance);const o=Ln.parse(t),l=[];for(const u of o){const c=JSON.parse(u);if(typeof c.type!="number")throw new Error("Invalid payload.");switch(c.type){case Be.Invocation:this._isInvocationMessage(c);break;case Be.StreamItem:this._isStreamItemMessage(c);break;case Be.Completion:this._isCompletionMessage(c);break;case Be.Ping:break;case Be.Close:break;case Be.Ack:this._isAckMessage(c);break;case Be.Sequence:this._isSequenceMessage(c);break;default:i.log(ae.Information,"Unknown message type '"+c.type+"' ignored.");continue}l.push(c)}return l}writeMessage(t){return Ln.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),t.invocationId!==void 0&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),t.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_isAckMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(t,i){if(typeof t!="string"||t==="")throw new Error(i)}}const fM={trace:ae.Trace,debug:ae.Debug,info:ae.Information,information:ae.Information,warn:ae.Warning,warning:ae.Warning,error:ae.Error,critical:ae.Critical,none:ae.None};function dM(e){const t=fM[e.toLowerCase()];if(typeof t<"u")return t;throw new Error(`Unknown log level: ${e}`)}class hM{configureLogging(t){if(Kt.isRequired(t,"logging"),pM(t))this.logger=t;else if(typeof t=="string"){const i=dM(t);this.logger=new Tu(i)}else this.logger=new Tu(t);return this}withUrl(t,i){return Kt.isRequired(t,"url"),Kt.isNotEmpty(t,"url"),this.url=t,typeof i=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...i}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:i},this}withHubProtocol(t){return Kt.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new Eb(t):this.reconnectPolicy=t:this.reconnectPolicy=new Eb,this}withServerTimeout(t){return Kt.isRequired(t,"milliseconds"),this._serverTimeoutInMilliseconds=t,this}withKeepAliveInterval(t){return Kt.isRequired(t,"milliseconds"),this._keepAliveIntervalInMilliseconds=t,this}withStatefulReconnect(t){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=t?.bufferSize,this}build(){const t=this.httpConnectionOptions||{};if(t.logger===void 0&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const i=new lM(this.url,t);return Qd.create(i,this.logger||El.instance,this.protocol||new cM,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function pM(e){return e.log!==void 0}function mM({url:e,accessToken:t,autoStart:i=!0}){const o=O.useRef(null),l=O.useRef(new Map),u=O.useRef(null),c=O.useRef(0),d=O.useRef(!1),[m,p]=O.useState("disconnected"),[g,y]=O.useState(null),v=O.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]),S=O.useCallback(()=>{if(d.current||u.current)return;c.current+=1;const T=c.current,L=Math.min(3e4,1e3*Math.pow(2,T-1)),V=Math.floor(Math.random()*500),q=L+V;u.current=setTimeout(()=>{u.current=null,k()},q)},[v]),C=O.useCallback(T=>{l.current.forEach((L,V)=>{T.off(V),L.forEach(q=>{T.on(V,q)})})},[]),w=O.useCallback(async()=>Wy(),[]),R=O.useCallback(()=>{const T=new hM().withUrl(e,{accessTokenFactory:w}).withAutomaticReconnect({nextRetryDelayInMilliseconds:L=>L.elapsedMilliseconds<6e4?Math.random()*1e4:null}).build();return T.onreconnecting(()=>{v(),p("reconnecting")}),T.onreconnected(()=>{v(),c.current=0,p("connected"),C(T)}),T.onclose(L=>{p("disconnected"),L&&y(L),d.current||S()}),T},[e,w,C,v,S]),k=O.useCallback(async()=>{d.current=!1,v(),o.current||(o.current=R());const T=o.current;if(T.state===ut.Connected){p("connected");return}if(T.state===ut.Connecting){p("connecting");return}if(T.state===ut.Reconnecting){p("reconnecting");return}p("connecting");try{await T.start(),C(T),c.current=0,p("connected"),y(null)}catch(L){y(L),p("disconnected"),S()}},[C,R,v,S]),$=O.useCallback(async()=>{d.current=!0,v(),c.current=0;const T=o.current;if(o.current=null,!T){p("disconnected");return}try{await T.stop()}finally{p("disconnected")}},[v]),M=O.useCallback((T,L)=>{let V=l.current.get(T);V||(V=new Set,l.current.set(T,V)),V.add(L);const q=o.current;q&&q.on(T,L)},[]),_=O.useCallback((T,L)=>{const V=l.current.get(T);if(!V)return;V.delete(L),V.size===0&&l.current.delete(T);const q=o.current;q&&q.off(T,L)},[]),B=O.useCallback(async(T,...L)=>{const V=o.current;if(!V||V.state!==ut.Connected)throw new Error("SignalR not connected");return V.invoke(T,...L)},[]);return O.useEffect(()=>(i&&k(),()=>{$()}),[i,k,$]),{status:m,connected:m==="connected",error:g,start:k,stop:$,on:M,off:_,invoke:B}}const gM=(()=>{const e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),Symbol.toStringTag).get;return t=>e.call(t)})();function _b(e){return gM(e)==="Uint8Array"}function yM(e){return typeof e=="object"&&e!=null&&Symbol.toStringTag in e&&(e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer")}function bM(e){return e instanceof RegExp||Object.prototype.toString.call(e)==="[object RegExp]"}function Ab(e){return typeof e=="object"&&e!=null&&Symbol.toStringTag in e&&e[Symbol.toStringTag]==="Map"}function SM(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function jn(e,t){return JSON.stringify(e,(i,o)=>typeof o=="bigint"?{$numberLong:`${o}`}:Ab(o)?Object.fromEntries(o):o)}function vM(e){if(e!=null&&typeof e=="object"&&"stylize"in e&&typeof e.stylize=="function")return e.stylize}const Wd=7,kb=Symbol.for("@@mdb.bson.version"),Jd=2147483647,eh=-2147483648,Rb=Math.pow(2,63)-1,Ob=-Math.pow(2,63),xM=Math.pow(2,53),wM=-Math.pow(2,53),Mb=4;class pe extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(t,i){super(t,i)}static isBSONError(t){return t!=null&&typeof t=="object"&&"bsonError"in t&&t.bsonError===!0&&"name"in t&&"message"in t&&"stack"in t}}class EM extends pe{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${Wd}.x.x`)}}class Nb extends pe{get name(){return"BSONRuntimeError"}constructor(t){super(t)}}class Si extends pe{get name(){return"BSONOffsetError"}offset;constructor(t,i,o){super(`${t}. offset: ${i}`,o),this.offset=i}}let zb,Bb;function Db(e,t,i,o){if(o){zb??=new TextDecoder("utf8",{fatal:!0});try{return zb.decode(e.subarray(t,i))}catch(l){throw new pe("Invalid UTF-8 string in BSON document",{cause:l})}}return Bb??=new TextDecoder("utf8",{fatal:!1}),Bb.decode(e.subarray(t,i))}function Ib(e,t,i){if(e.length===0)return"";const o=i-t;if(o===0)return"";if(o>20)return null;if(o===1&&e[t]<128)return String.fromCharCode(e[t]);if(o===2&&e[t]<128&&e[t+1]<128)return String.fromCharCode(e[t])+String.fromCharCode(e[t+1]);if(o===3&&e[t]<128&&e[t+1]<128&&e[t+2]<128)return String.fromCharCode(e[t])+String.fromCharCode(e[t+1])+String.fromCharCode(e[t+2]);const l=[];for(let u=t;u<i;u++){const c=e[u];if(c>127)return null;l.push(c)}return String.fromCharCode(...l)}function CM(e,t,i){if(t.length===0)return 0;if(t.length>25||e.length-i<t.length)return null;for(let o=0,l=i;o<t.length;o++,l++){const u=t.charCodeAt(o);if(u>127)return null;e[l]=u}return t.length}function TM(e){return Ir.fromNumberArray(Array.from({length:e},()=>Math.floor(Math.random()*256)))}function _M(e){return crypto.getRandomValues(Ir.allocate(e))}const AM=(()=>{const{crypto:e}=globalThis;return e!=null&&typeof e.getRandomValues=="function"?_M:TM})(),Ir={toLocalBufferType(e){if(Buffer.isBuffer(e))return e;if(ArrayBuffer.isView(e))return Buffer.from(e.buffer,e.byteOffset,e.byteLength);const t=e?.[Symbol.toStringTag]??Object.prototype.toString.call(e);if(t==="ArrayBuffer"||t==="SharedArrayBuffer"||t==="[object ArrayBuffer]"||t==="[object SharedArrayBuffer]")return Buffer.from(e);throw new pe("Cannot create Buffer from the passed potentialBuffer.")},allocate(e){return Buffer.alloc(e)},allocateUnsafe(e){return Buffer.allocUnsafe(e)},equals(e,t){return Ir.toLocalBufferType(e).equals(t)},fromNumberArray(e){return Buffer.from(e)},fromBase64(e){return Buffer.from(e,"base64")},toBase64(e){return Ir.toLocalBufferType(e).toString("base64")},fromISO88591(e){return Buffer.from(e,"binary")},toISO88591(e){return Ir.toLocalBufferType(e).toString("binary")},fromHex(e){return Buffer.from(e,"hex")},toHex(e){return Ir.toLocalBufferType(e).toString("hex")},toUTF8(e,t,i,o){const l=i-t<=20?Ib(e,t,i):null;if(l!=null)return l;const u=Ir.toLocalBufferType(e).toString("utf8",t,i);if(o){for(let c=0;c<u.length;c++)if(u.charCodeAt(c)===65533){Db(e,t,i,!0);break}}return u},utf8ByteLength(e){return Buffer.byteLength(e,"utf8")},encodeUTF8Into(e,t,i){const o=CM(e,t,i);return o??Ir.toLocalBufferType(e).write(t,i,void 0,"utf8")},randomBytes:AM,swap32(e){return Ir.toLocalBufferType(e).swap32()}};function kM(){const{navigator:e}=globalThis;return typeof e=="object"&&e.product==="ReactNative"}function RM(e){if(e<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${e}`);return Tl.fromNumberArray(Array.from({length:e},()=>Math.floor(Math.random()*256)))}const OM=(()=>{const{crypto:e}=globalThis;if(e!=null&&typeof e.getRandomValues=="function")return t=>e.getRandomValues(Tl.allocate(t));if(kM()){const{console:t}=globalThis;t?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return RM})(),$b=/(\d|[a-f])/i,Tl={toLocalBufferType(e){const t=e?.[Symbol.toStringTag]??Object.prototype.toString.call(e);if(t==="Uint8Array")return e;if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));if(t==="ArrayBuffer"||t==="SharedArrayBuffer"||t==="[object ArrayBuffer]"||t==="[object SharedArrayBuffer]")return new Uint8Array(e);throw new pe("Cannot make a Uint8Array from passed potentialBuffer.")},allocate(e){if(typeof e!="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(e)}`);return new Uint8Array(e)},allocateUnsafe(e){return Tl.allocate(e)},equals(e,t){if(e.byteLength!==t.byteLength)return!1;for(let i=0;i<e.byteLength;i++)if(e[i]!==t[i])return!1;return!0},fromNumberArray(e){return Uint8Array.from(e)},fromBase64(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))},toBase64(e){return btoa(Tl.toISO88591(e))},fromISO88591(e){return Uint8Array.from(e,t=>t.charCodeAt(0)&255)},toISO88591(e){return Array.from(Uint16Array.from(e),t=>String.fromCharCode(t)).join("")},fromHex(e){const t=e.length%2===0?e:e.slice(0,e.length-1),i=[];for(let o=0;o<t.length;o+=2){const l=t[o],u=t[o+1];if(!$b.test(l)||!$b.test(u))break;const c=Number.parseInt(`${l}${u}`,16);i.push(c)}return Uint8Array.from(i)},toHex(e){return Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")},toUTF8(e,t,i,o){const l=i-t<=20?Ib(e,t,i):null;return l??Db(e,t,i,o)},utf8ByteLength(e){return new TextEncoder().encode(e).byteLength},encodeUTF8Into(e,t,i){const o=new TextEncoder().encode(t);return e.set(o,i),o.byteLength},randomBytes:OM,swap32(e){if(e.length%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e.length;t+=4){const i=e[t],o=e[t+1],l=e[t+2],u=e[t+3];e[t]=u,e[t+1]=l,e[t+2]=o,e[t+3]=i}return e}},_e=typeof Buffer=="function"&&Buffer.prototype?._isBuffer!==!0?Ir:Tl,Ub=Symbol.for("@@mdb.bson.type");class er{get[Ub](){return this._bsontype}get[kb](){return Wd}[Symbol.for("nodejs.util.inspect.custom")](t,i,o){return this.inspect(t,i,o)}}const Xo=new Float64Array(1),We=new Uint8Array(Xo.buffer,0,8);Xo[0]=-1;const th=We[7]===0,oo={isBigEndian:th,getNonnegativeInt32LE(e,t){if(e[t+3]>127)throw new RangeError(`Size cannot be negative at offset: ${t}`);return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24},getInt32LE(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24},getUint32LE(e,t){return e[t]+e[t+1]*256+e[t+2]*65536+e[t+3]*16777216},getUint32BE(e,t){return e[t+3]+e[t+2]*256+e[t+1]*65536+e[t]*16777216},getBigInt64LE(e,t){const i=BigInt(e[t+4]+e[t+5]*256+e[t+6]*65536+(e[t+7]<<24)),o=BigInt(e[t]+e[t+1]*256+e[t+2]*65536+e[t+3]*16777216);return(i<<32n)+o},getFloat64LE:th?(e,t)=>(We[7]=e[t],We[6]=e[t+1],We[5]=e[t+2],We[4]=e[t+3],We[3]=e[t+4],We[2]=e[t+5],We[1]=e[t+6],We[0]=e[t+7],Xo[0]):(e,t)=>(We[0]=e[t],We[1]=e[t+1],We[2]=e[t+2],We[3]=e[t+3],We[4]=e[t+4],We[5]=e[t+5],We[6]=e[t+6],We[7]=e[t+7],Xo[0]),setInt32BE(e,t,i){return e[t+3]=i,i>>>=8,e[t+2]=i,i>>>=8,e[t+1]=i,i>>>=8,e[t]=i,4},setInt32LE(e,t,i){return e[t]=i,i>>>=8,e[t+1]=i,i>>>=8,e[t+2]=i,i>>>=8,e[t+3]=i,4},setBigInt64LE(e,t,i){const o=0xffffffffn;let l=Number(i&o);e[t]=l,l>>=8,e[t+1]=l,l>>=8,e[t+2]=l,l>>=8,e[t+3]=l;let u=Number(i>>32n&o);return e[t+4]=u,u>>=8,e[t+5]=u,u>>=8,e[t+6]=u,u>>=8,e[t+7]=u,8},setFloat64LE:th?(e,t,i)=>(Xo[0]=i,e[t]=We[7],e[t+1]=We[6],e[t+2]=We[5],e[t+3]=We[4],e[t+4]=We[3],e[t+5]=We[2],e[t+6]=We[1],e[t+7]=We[0],8):(e,t,i)=>(Xo[0]=i,e[t]=We[0],e[t+1]=We[1],e[t+2]=We[2],e[t+3]=We[3],e[t+4]=We[4],e[t+5]=We[5],e[t+6]=We[6],e[t+7]=We[7],8)};class Ke extends er{get _bsontype(){return"Binary"}static BSON_BINARY_SUBTYPE_DEFAULT=0;static BUFFER_SIZE=256;static SUBTYPE_DEFAULT=0;static SUBTYPE_FUNCTION=1;static SUBTYPE_BYTE_ARRAY=2;static SUBTYPE_UUID_OLD=3;static SUBTYPE_UUID=4;static SUBTYPE_MD5=5;static SUBTYPE_ENCRYPTED=6;static SUBTYPE_COLUMN=7;static SUBTYPE_SENSITIVE=8;static SUBTYPE_VECTOR=9;static SUBTYPE_USER_DEFINED=128;static VECTOR_TYPE=Object.freeze({Int8:3,Float32:39,PackedBit:16});buffer;sub_type;position;constructor(t,i){if(super(),t!=null&&typeof t=="string"&&!ArrayBuffer.isView(t)&&!yM(t)&&!Array.isArray(t))throw new pe("Binary can only be constructed from Uint8Array or number[]");this.sub_type=i??Ke.BSON_BINARY_SUBTYPE_DEFAULT,t==null?(this.buffer=_e.allocate(Ke.BUFFER_SIZE),this.position=0):(this.buffer=Array.isArray(t)?_e.fromNumberArray(t):_e.toLocalBufferType(t),this.position=this.buffer.byteLength)}put(t){if(typeof t=="string"&&t.length!==1)throw new pe("only accepts single character String");if(typeof t!="number"&&t.length!==1)throw new pe("only accepts single character Uint8Array or Array");let i;if(typeof t=="string"?i=t.charCodeAt(0):typeof t=="number"?i=t:i=t[0],i<0||i>255)throw new pe("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=i;else{const o=_e.allocate(Ke.BUFFER_SIZE+this.buffer.length);o.set(this.buffer,0),this.buffer=o,this.buffer[this.position++]=i}}write(t,i){if(i=typeof i=="number"?i:this.position,this.buffer.byteLength<i+t.length){const o=_e.allocate(this.buffer.byteLength+t.length);o.set(this.buffer,0),this.buffer=o}if(ArrayBuffer.isView(t))this.buffer.set(_e.toLocalBufferType(t),i),this.position=i+t.byteLength>this.position?i+t.length:this.position;else if(typeof t=="string")throw new pe("input cannot be string")}read(t,i){i=i&&i>0?i:this.position;const o=t+i;return this.buffer.subarray(t,o>this.position?this.position:o)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return _e.toBase64(this.buffer.subarray(0,this.position))}toString(t){return t==="hex"?_e.toHex(this.buffer.subarray(0,this.position)):t==="base64"?_e.toBase64(this.buffer.subarray(0,this.position)):t==="utf8"||t==="utf-8"?_e.toUTF8(this.buffer,0,this.position,!1):_e.toUTF8(this.buffer,0,this.position,!1)}toExtendedJSON(t){t=t||{},this.sub_type===Ke.SUBTYPE_VECTOR&&vi(this);const i=_e.toBase64(this.buffer),o=Number(this.sub_type).toString(16);return t.legacy?{$binary:i,$type:o.length===1?"0"+o:o}:{$binary:{base64:i,subType:o.length===1?"0"+o:o}}}toUUID(){if(this.sub_type===Ke.SUBTYPE_UUID)return new xn(this.buffer.subarray(0,this.position));throw new pe(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${Ke.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(t,i){return new Ke(_e.fromHex(t),i)}static createFromBase64(t,i){return new Ke(_e.fromBase64(t),i)}static fromExtendedJSON(t,i){i=i||{};let o,l;if("$binary"in t?i.legacy&&typeof t.$binary=="string"&&"$type"in t?(l=t.$type?parseInt(t.$type,16):0,o=_e.fromBase64(t.$binary)):typeof t.$binary!="string"&&(l=t.$binary.subType?parseInt(t.$binary.subType,16):0,o=_e.fromBase64(t.$binary.base64)):"$uuid"in t&&(l=4,o=xn.bytesFromString(t.$uuid)),!o)throw new pe(`Unexpected Binary Extended JSON format ${JSON.stringify(t)}`);return l===Mb?new xn(o):new Ke(o,l)}inspect(t,i,o){o??=jn;const l=_e.toBase64(this.buffer.subarray(0,this.position)),u=o(l,i),c=o(this.sub_type,i);return`Binary.createFromBase64(${u}, ${c})`}toInt8Array(){if(this.sub_type!==Ke.SUBTYPE_VECTOR)throw new pe("Binary sub_type is not Vector");if(this.buffer[0]!==Ke.VECTOR_TYPE.Int8)throw new pe("Binary datatype field is not Int8");return vi(this),new Int8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toFloat32Array(){if(this.sub_type!==Ke.SUBTYPE_VECTOR)throw new pe("Binary sub_type is not Vector");if(this.buffer[0]!==Ke.VECTOR_TYPE.Float32)throw new pe("Binary datatype field is not Float32");vi(this);const t=new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position));return oo.isBigEndian&&_e.swap32(t),new Float32Array(t.buffer)}toPackedBits(){if(this.sub_type!==Ke.SUBTYPE_VECTOR)throw new pe("Binary sub_type is not Vector");if(this.buffer[0]!==Ke.VECTOR_TYPE.PackedBit)throw new pe("Binary datatype field is not packed bit");return vi(this),new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toBits(){if(this.sub_type!==Ke.SUBTYPE_VECTOR)throw new pe("Binary sub_type is not Vector");if(this.buffer[0]!==Ke.VECTOR_TYPE.PackedBit)throw new pe("Binary datatype field is not packed bit");vi(this);const i=(this.length()-2)*8-this.buffer[1],o=new Int8Array(i);for(let l=0;l<o.length;l++){const u=l/8|0,c=this.buffer[u+2],d=7-l%8,m=c>>d&1;o[l]=m}return o}static fromInt8Array(t){const i=_e.allocate(t.byteLength+2);i[0]=Ke.VECTOR_TYPE.Int8,i[1]=0;const o=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);i.set(o,2);const l=new this(i,this.SUBTYPE_VECTOR);return vi(l),l}static fromFloat32Array(t){const i=_e.allocate(t.byteLength+2);i[0]=Ke.VECTOR_TYPE.Float32,i[1]=0;const o=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);i.set(o,2),oo.isBigEndian&&_e.swap32(new Uint8Array(i.buffer,2));const l=new this(i,this.SUBTYPE_VECTOR);return vi(l),l}static fromPackedBits(t,i=0){const o=_e.allocate(t.byteLength+2);o[0]=Ke.VECTOR_TYPE.PackedBit,o[1]=i,o.set(t,2);const l=new this(o,this.SUBTYPE_VECTOR);return vi(l),l}static fromBits(t){const i=t.length+7>>>3,o=new Uint8Array(i+2);o[0]=Ke.VECTOR_TYPE.PackedBit;const l=t.length%8;o[1]=l===0?0:8-l;for(let u=0;u<t.length;u++){const c=u>>>3,d=t[u];if(d!==0&&d!==1)throw new pe(`Invalid bit value at ${u}: must be 0 or 1, found ${t[u]}`);if(d===0)continue;const m=7-u%8;o[c+2]|=d<<m}return new this(o,Ke.SUBTYPE_VECTOR)}}function vi(e){if(e.sub_type!==Ke.SUBTYPE_VECTOR)return;const t=e.position,i=e.buffer[0],o=e.buffer[1];if((i===Ke.VECTOR_TYPE.Float32||i===Ke.VECTOR_TYPE.Int8)&&o!==0)throw new pe("Invalid Vector: padding must be zero for int8 and float32 vectors");if(i===Ke.VECTOR_TYPE.Float32&&t!==0&&t-2!==0&&(t-2)%4!==0)throw new pe("Invalid Vector: Float32 vector must contain a multiple of 4 bytes");if(i===Ke.VECTOR_TYPE.PackedBit&&o!==0&&t===2)throw new pe("Invalid Vector: padding must be zero for packed bit vectors that are empty");if(i===Ke.VECTOR_TYPE.PackedBit&&o>7)throw new pe(`Invalid Vector: padding must be a value between 0 and 7. found: ${o}`)}const nh=16,MM=/^[0-9A-F]{32}$/i,NM=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class xn extends Ke{constructor(t){let i;if(t==null)i=xn.generate();else if(t instanceof xn)i=_e.toLocalBufferType(new Uint8Array(t.buffer));else if(ArrayBuffer.isView(t)&&t.byteLength===nh)i=_e.toLocalBufferType(t);else if(typeof t=="string")i=xn.bytesFromString(t);else throw new pe("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(i,Mb)}get id(){return this.buffer}set id(t){this.buffer=t}toHexString(t=!0){return t?[_e.toHex(this.buffer.subarray(0,4)),_e.toHex(this.buffer.subarray(4,6)),_e.toHex(this.buffer.subarray(6,8)),_e.toHex(this.buffer.subarray(8,10)),_e.toHex(this.buffer.subarray(10,16))].join("-"):_e.toHex(this.buffer)}toString(t){return t==="hex"?_e.toHex(this.id):t==="base64"?_e.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}equals(t){if(!t)return!1;if(t instanceof xn)return _e.equals(t.id,this.id);try{return _e.equals(new xn(t).id,this.id)}catch{return!1}}toBinary(){return new Ke(this.id,Ke.SUBTYPE_UUID)}static generate(){const t=_e.randomBytes(nh);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,t}static isValid(t){return t?typeof t=="string"?xn.isValidUUIDString(t):_b(t)?t.byteLength===nh:t._bsontype==="Binary"&&t.sub_type===this.SUBTYPE_UUID&&t.buffer.byteLength===16:!1}static createFromHexString(t){const i=xn.bytesFromString(t);return new xn(i)}static createFromBase64(t){return new xn(_e.fromBase64(t))}static bytesFromString(t){if(!xn.isValidUUIDString(t))throw new pe("UUID string representation must be 32 hex digits or canonical hyphenated representation");return _e.fromHex(t.replace(/-/g,""))}static isValidUUIDString(t){return MM.test(t)||NM.test(t)}inspect(t,i,o){return o??=jn,`new UUID(${o(this.toHexString(),i)})`}}class _l extends er{get _bsontype(){return"Code"}code;scope;constructor(t,i){super(),this.code=t.toString(),this.scope=i??null}toJSON(){return this.scope!=null?{code:this.code,scope:this.scope}:{code:this.code}}toExtendedJSON(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}}static fromExtendedJSON(t){return new _l(t.$code,t.$scope)}inspect(t,i,o){o??=jn;let l=o(this.code,i);const u=l.includes(`
|
|
161
|
+
`);this.scope!=null&&(l+=`,${u?`
|
|
162
|
+
`:" "}${o(this.scope,i)}`);const c=u&&this.scope===null;return`new Code(${u?`
|
|
163
|
+
`:""}${l}${c?`
|
|
164
|
+
`:""})`}}function zM(e){return e!=null&&typeof e=="object"&&"$id"in e&&e.$id!=null&&"$ref"in e&&typeof e.$ref=="string"&&(!("$db"in e)||"$db"in e&&typeof e.$db=="string")}class Ko extends er{get _bsontype(){return"DBRef"}collection;oid;db;fields;constructor(t,i,o,l){super();const u=t.split(".");u.length===2&&(o=u.shift(),t=u.shift()),this.collection=t,this.oid=i,this.db=o,this.fields=l||{}}get namespace(){return this.collection}set namespace(t){this.collection=t}toJSON(){const t=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(t.$db=this.db),t}toExtendedJSON(t){t=t||{};let i={$ref:this.collection,$id:this.oid};return t.legacy||(this.db&&(i.$db=this.db),i=Object.assign(i,this.fields)),i}static fromExtendedJSON(t){const i=Object.assign({},t);return delete i.$ref,delete i.$id,delete i.$db,new Ko(t.$ref,t.$id,t.$db,i)}inspect(t,i,o){o??=jn;const l=[o(this.namespace,i),o(this.oid,i),...this.db?[o(this.db,i)]:[],...Object.keys(this.fields).length>0?[o(this.fields,i)]:[]];return l[1]=o===jn?`new ObjectId(${l[1]})`:l[1],`new DBRef(${l.join(", ")})`}}function Lb(e){if(e==="")return e;let t=0;const i=e[t]==="-",o=e[t]==="+";(o||i)&&(t+=1);let l=!1;for(;t<e.length&&e[t]==="0";++t)l=!0;return l?`${i?"-":""}${e.length===t?"0":e.slice(t)}`:o?e.slice(1):e}function BM(e,t){t=t??10;const i="0123456789abcdefghijklmnopqrstuvwxyz".slice(0,t);return new RegExp(`[^-+${i}]`,"i").test(e)?!1:e}let tr;try{tr=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}const jb=65536,DM=1<<24,Qo=jb*jb,Pb=Qo*Qo,Hb=Pb/2,qb={},Vb={},IM=20,$M=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class X extends er{get _bsontype(){return"Long"}get __isLong__(){return!0}high;low;unsigned;constructor(t=0,i,o){super();const l=typeof i=="boolean"?i:!!o,u=typeof i=="number"?i:0,c=typeof t=="string"?X.fromString(t,l):typeof t=="bigint"?X.fromBigInt(t,l):{low:t|0,high:u|0,unsigned:l};this.low=c.low,this.high=c.high,this.unsigned=c.unsigned}static TWO_PWR_24=X.fromInt(DM);static MAX_UNSIGNED_VALUE=X.fromBits(-1,-1,!0);static ZERO=X.fromInt(0);static UZERO=X.fromInt(0,!0);static ONE=X.fromInt(1);static UONE=X.fromInt(1,!0);static NEG_ONE=X.fromInt(-1);static MAX_VALUE=X.fromBits(-1,2147483647,!1);static MIN_VALUE=X.fromBits(0,-2147483648,!1);static fromBits(t,i,o){return new X(t,i,o)}static fromInt(t,i){let o,l,u;return i?(t>>>=0,(u=0<=t&&t<256)&&(l=Vb[t],l)?l:(o=X.fromBits(t,(t|0)<0?-1:0,!0),u&&(Vb[t]=o),o)):(t|=0,(u=-128<=t&&t<128)&&(l=qb[t],l)?l:(o=X.fromBits(t,t<0?-1:0,!1),u&&(qb[t]=o),o))}static fromNumber(t,i){if(isNaN(t))return i?X.UZERO:X.ZERO;if(i){if(t<0)return X.UZERO;if(t>=Pb)return X.MAX_UNSIGNED_VALUE}else{if(t<=-Hb)return X.MIN_VALUE;if(t+1>=Hb)return X.MAX_VALUE}return t<0?X.fromNumber(-t,i).neg():X.fromBits(t%Qo|0,t/Qo|0,i)}static fromBigInt(t,i){const o=0xffffffffn,l=32n;return new X(Number(t&o),Number(t>>l&o),i)}static _fromString(t,i,o){if(t.length===0)throw new pe("empty string");if(o<2||36<o)throw new pe("radix");let l;if((l=t.indexOf("-"))>0)throw new pe("interior hyphen");if(l===0)return X._fromString(t.substring(1),i,o).neg();const u=X.fromNumber(Math.pow(o,8));let c=X.ZERO;for(let d=0;d<t.length;d+=8){const m=Math.min(8,t.length-d),p=parseInt(t.substring(d,d+m),o);if(m<8){const g=X.fromNumber(Math.pow(o,m));c=c.mul(g).add(X.fromNumber(p))}else c=c.mul(u),c=c.add(X.fromNumber(p))}return c.unsigned=i,c}static fromStringStrict(t,i,o){let l=!1;if(typeof i=="number"?(o=i,i=!1):l=!!i,o??=10,t.trim()!==t)throw new pe(`Input: '${t}' contains leading and/or trailing whitespace`);if(!BM(t,o))throw new pe(`Input: '${t}' contains invalid characters for radix: ${o}`);const u=Lb(t),c=X._fromString(u,l,o);if(c.toString(o).toLowerCase()!==u.toLowerCase())throw new pe(`Input: ${t} is not representable as ${c.unsigned?"an unsigned":"a signed"} 64-bit Long ${o!=null?`with radix: ${o}`:""}`);return c}static fromString(t,i,o){let l=!1;return typeof i=="number"?(o=i,i=!1):l=!!i,o??=10,t==="NaN"&&o<24||(t==="Infinity"||t==="+Infinity"||t==="-Infinity")&&o<35?X.ZERO:X._fromString(t,l,o)}static fromBytes(t,i,o){return o?X.fromBytesLE(t,i):X.fromBytesBE(t,i)}static fromBytesLE(t,i){return new X(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,i)}static fromBytesBE(t,i){return new X(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],i)}static isLong(t){return t!=null&&typeof t=="object"&&"__isLong__"in t&&t.__isLong__===!0}static fromValue(t,i){return typeof t=="number"?X.fromNumber(t,i):typeof t=="string"?X.fromString(t,i):X.fromBits(t.low,t.high,typeof i=="boolean"?i:t.unsigned)}add(t){X.isLong(t)||(t=X.fromValue(t));const i=this.high>>>16,o=this.high&65535,l=this.low>>>16,u=this.low&65535,c=t.high>>>16,d=t.high&65535,m=t.low>>>16,p=t.low&65535;let g=0,y=0,v=0,S=0;return S+=u+p,v+=S>>>16,S&=65535,v+=l+m,y+=v>>>16,v&=65535,y+=o+d,g+=y>>>16,y&=65535,g+=i+c,g&=65535,X.fromBits(v<<16|S,g<<16|y,this.unsigned)}and(t){return X.isLong(t)||(t=X.fromValue(t)),X.fromBits(this.low&t.low,this.high&t.high,this.unsigned)}compare(t){if(X.isLong(t)||(t=X.fromValue(t)),this.eq(t))return 0;const i=this.isNegative(),o=t.isNegative();return i&&!o?-1:!i&&o?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1}comp(t){return this.compare(t)}divide(t){if(X.isLong(t)||(t=X.fromValue(t)),t.isZero())throw new pe("division by zero");if(tr){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;const u=(this.unsigned?tr.div_u:tr.div_s)(this.low,this.high,t.low,t.high);return X.fromBits(u,tr.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?X.UZERO:X.ZERO;let i,o,l;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return X.UZERO;if(t.gt(this.shru(1)))return X.UONE;l=X.UZERO}else{if(this.eq(X.MIN_VALUE))return t.eq(X.ONE)||t.eq(X.NEG_ONE)?X.MIN_VALUE:t.eq(X.MIN_VALUE)?X.ONE:(i=this.shr(1).div(t).shl(1),i.eq(X.ZERO)?t.isNegative()?X.ONE:X.NEG_ONE:(o=this.sub(t.mul(i)),l=i.add(o.div(t)),l));if(t.eq(X.MIN_VALUE))return this.unsigned?X.UZERO:X.ZERO;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();l=X.ZERO}for(o=this;o.gte(t);){i=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));const u=Math.ceil(Math.log(i)/Math.LN2),c=u<=48?1:Math.pow(2,u-48);let d=X.fromNumber(i),m=d.mul(t);for(;m.isNegative()||m.gt(o);)i-=c,d=X.fromNumber(i,this.unsigned),m=d.mul(t);d.isZero()&&(d=X.ONE),l=l.add(d),o=o.sub(m)}return l}div(t){return this.divide(t)}equals(t){return X.isLong(t)||(t=X.fromValue(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low}eq(t){return this.equals(t)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(X.MIN_VALUE)?64:this.neg().getNumBitsAbs();const t=this.high!==0?this.high:this.low;let i;for(i=31;i>0&&(t&1<<i)===0;i--);return this.high!==0?i+33:i+1}greaterThan(t){return this.comp(t)>0}gt(t){return this.greaterThan(t)}greaterThanOrEqual(t){return this.comp(t)>=0}gte(t){return this.greaterThanOrEqual(t)}ge(t){return this.greaterThanOrEqual(t)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(t){return this.comp(t)<0}lt(t){return this.lessThan(t)}lessThanOrEqual(t){return this.comp(t)<=0}lte(t){return this.lessThanOrEqual(t)}modulo(t){if(X.isLong(t)||(t=X.fromValue(t)),tr){const i=(this.unsigned?tr.rem_u:tr.rem_s)(this.low,this.high,t.low,t.high);return X.fromBits(i,tr.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))}mod(t){return this.modulo(t)}rem(t){return this.modulo(t)}multiply(t){if(this.isZero())return X.ZERO;if(X.isLong(t)||(t=X.fromValue(t)),tr){const C=tr.mul(this.low,this.high,t.low,t.high);return X.fromBits(C,tr.get_high(),this.unsigned)}if(t.isZero())return X.ZERO;if(this.eq(X.MIN_VALUE))return t.isOdd()?X.MIN_VALUE:X.ZERO;if(t.eq(X.MIN_VALUE))return this.isOdd()?X.MIN_VALUE:X.ZERO;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(X.TWO_PWR_24)&&t.lt(X.TWO_PWR_24))return X.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);const i=this.high>>>16,o=this.high&65535,l=this.low>>>16,u=this.low&65535,c=t.high>>>16,d=t.high&65535,m=t.low>>>16,p=t.low&65535;let g=0,y=0,v=0,S=0;return S+=u*p,v+=S>>>16,S&=65535,v+=l*p,y+=v>>>16,v&=65535,v+=u*m,y+=v>>>16,v&=65535,y+=o*p,g+=y>>>16,y&=65535,y+=l*m,g+=y>>>16,y&=65535,y+=u*d,g+=y>>>16,y&=65535,g+=i*p+o*m+l*d+u*c,g&=65535,X.fromBits(v<<16|S,g<<16|y,this.unsigned)}mul(t){return this.multiply(t)}negate(){return!this.unsigned&&this.eq(X.MIN_VALUE)?X.MIN_VALUE:this.not().add(X.ONE)}neg(){return this.negate()}not(){return X.fromBits(~this.low,~this.high,this.unsigned)}notEquals(t){return!this.equals(t)}neq(t){return this.notEquals(t)}ne(t){return this.notEquals(t)}or(t){return X.isLong(t)||(t=X.fromValue(t)),X.fromBits(this.low|t.low,this.high|t.high,this.unsigned)}shiftLeft(t){return X.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?X.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):X.fromBits(0,this.low<<t-32,this.unsigned)}shl(t){return this.shiftLeft(t)}shiftRight(t){return X.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?X.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):X.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)}shr(t){return this.shiftRight(t)}shiftRightUnsigned(t){if(X.isLong(t)&&(t=t.toInt()),t&=63,t===0)return this;{const i=this.high;if(t<32){const o=this.low;return X.fromBits(o>>>t|i<<32-t,i>>>t,this.unsigned)}else return t===32?X.fromBits(i,0,this.unsigned):X.fromBits(i>>>t-32,0,this.unsigned)}}shr_u(t){return this.shiftRightUnsigned(t)}shru(t){return this.shiftRightUnsigned(t)}subtract(t){return X.isLong(t)||(t=X.fromValue(t)),this.add(t.neg())}sub(t){return this.subtract(t)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){return this.unsigned?(this.high>>>0)*Qo+(this.low>>>0):this.high*Qo+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(t){return t?this.toBytesLE():this.toBytesBE()}toBytesLE(){const t=this.high,i=this.low;return[i&255,i>>>8&255,i>>>16&255,i>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}toBytesBE(){const t=this.high,i=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,i>>>24,i>>>16&255,i>>>8&255,i&255]}toSigned(){return this.unsigned?X.fromBits(this.low,this.high,!1):this}toString(t){if(t=t||10,t<2||36<t)throw new pe("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(X.MIN_VALUE)){const u=X.fromNumber(t),c=this.div(u),d=c.mul(u).sub(this);return c.toString(t)+d.toInt().toString(t)}else return"-"+this.neg().toString(t);const i=X.fromNumber(Math.pow(t,6),this.unsigned);let o=this,l="";for(;;){const u=o.div(i);let d=(o.sub(u.mul(i)).toInt()>>>0).toString(t);if(o=u,o.isZero())return d+l;for(;d.length<6;)d="0"+d;l=""+d+l}}toUnsigned(){return this.unsigned?this:X.fromBits(this.low,this.high,!0)}xor(t){return X.isLong(t)||(t=X.fromValue(t)),X.fromBits(this.low^t.low,this.high^t.high,this.unsigned)}eqz(){return this.isZero()}le(t){return this.lessThanOrEqual(t)}toExtendedJSON(t){return t&&t.relaxed?this.toNumber():{$numberLong:this.toString()}}static fromExtendedJSON(t,i){const{useBigInt64:o=!1,relaxed:l=!0}={...i};if(t.$numberLong.length>IM)throw new pe("$numberLong string is too long");if(!$M.test(t.$numberLong))throw new pe(`$numberLong string "${t.$numberLong}" is in an invalid format`);if(o){const c=BigInt(t.$numberLong);return BigInt.asIntN(64,c)}const u=X.fromString(t.$numberLong);return l?u.toNumber():u}inspect(t,i,o){o??=jn;const l=o(this.toString(),i),u=this.unsigned?`, ${o(this.unsigned,i)}`:"";return`new Long(${l}${u})`}}const UM=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,LM=/^(\+|-)?(Infinity|inf)$/i,jM=/^(\+|-)?NaN$/i,Zo=6111,Al=-6176,Fb=6176,Yb=34,rh=_e.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),Gb=_e.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),Xb=_e.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),PM=/^([-+])?(\d+)?$/,HM=31,Kb=16383,qM=30,VM=31;function Qb(e){return!isNaN(parseInt(e,10))}function FM(e){const t=X.fromNumber(1e9);let i=X.fromNumber(0);if(!e.parts[0]&&!e.parts[1]&&!e.parts[2]&&!e.parts[3])return{quotient:e,rem:i};for(let o=0;o<=3;o++)i=i.shiftLeft(32),i=i.add(new X(e.parts[o],0)),e.parts[o]=i.div(t).low,i=i.modulo(t);return{quotient:e,rem:i}}function YM(e,t){if(!e&&!t)return{high:X.fromNumber(0),low:X.fromNumber(0)};const i=e.shiftRightUnsigned(32),o=new X(e.getLowBits(),0),l=t.shiftRightUnsigned(32),u=new X(t.getLowBits(),0);let c=i.multiply(l),d=i.multiply(u);const m=o.multiply(l);let p=o.multiply(u);return c=c.add(d.shiftRightUnsigned(32)),d=new X(d.getLowBits(),0).add(m).add(p.shiftRightUnsigned(32)),c=c.add(d.shiftRightUnsigned(32)),p=d.shiftLeft(32).add(new X(p.getLowBits(),0)),{high:c,low:p}}function GM(e,t){const i=e.high>>>0,o=t.high>>>0;if(i<o)return!0;if(i===o){const l=e.low>>>0,u=t.low>>>0;if(l<u)return!0}return!1}function br(e,t){throw new pe(`"${e}" is not a valid Decimal128 string - ${t}`)}class Pn extends er{get _bsontype(){return"Decimal128"}bytes;constructor(t){if(super(),typeof t=="string")this.bytes=Pn.fromString(t).bytes;else if(t instanceof Uint8Array||_b(t)){if(t.byteLength!==16)throw new pe("Decimal128 must take a Buffer of 16 bytes");this.bytes=t}else throw new pe("Decimal128 must take a Buffer or string")}static fromString(t){return Pn._fromString(t,{allowRounding:!1})}static fromStringWithRounding(t){return Pn._fromString(t,{allowRounding:!0})}static _fromString(t,i){let o=!1,l=!1,u=!1,c=!1,d=0,m=0,p=0,g=0,y=0;const v=[0];let S=0,C=0,w=0,R=0,k=new X(0,0),$=new X(0,0),M=0,_=0;if(t.length>=7e3)throw new pe(""+t+" not a valid Decimal128 string");const B=t.match(UM),T=t.match(LM),L=t.match(jM);if(!B&&!T&&!L||t.length===0)throw new pe(""+t+" not a valid Decimal128 string");if(B){const U=B[2],x=B[4],K=B[5],H=B[6];x&&H===void 0&&br(t,"missing exponent power"),x&&U===void 0&&br(t,"missing exponent base"),x===void 0&&(K||H)&&br(t,"missing e before exponent")}if((t[_]==="+"||t[_]==="-")&&(l=!0,o=t[_++]==="-"),!Qb(t[_])&&t[_]!=="."){if(t[_]==="i"||t[_]==="I")return new Pn(o?Gb:Xb);if(t[_]==="N")return new Pn(rh)}for(;Qb(t[_])||t[_]===".";){if(t[_]==="."){u&&br(t,"contains multiple periods"),u=!0,_=_+1;continue}S<Yb&&(t[_]!=="0"||c)&&(c||(y=m),c=!0,v[C++]=parseInt(t[_],10),S=S+1),c&&(p=p+1),u&&(g=g+1),m=m+1,_=_+1}if(u&&!m)throw new pe(""+t+" not a valid Decimal128 string");if(t[_]==="e"||t[_]==="E"){const U=t.substr(++_).match(PM);if(!U||!U[2])return new Pn(rh);R=parseInt(U[0],10),_=_+U[0].length}if(t[_])return new Pn(rh);if(!S)v[0]=0,p=1,S=1,d=0;else if(w=S-1,d=p,d!==1)for(;t[y+d-1+Number(l)+Number(u)]==="0";)d=d-1;for(R<=g&&g>R+16384?R=Al:R=R-g;R>Zo;){if(w=w+1,w>=Yb){if(d===0){R=Zo;break}br(t,"overflow")}R=R-1}if(i.allowRounding){for(;R<Al||S<p;){if(w===0&&d<S){R=Al,d=0;break}if(S<p?p=p-1:w=w-1,R<Zo)R=R+1;else{if(v.join("").match(/^0+$/)){R=Zo;break}br(t,"overflow")}}if(w+1<d){let U=m;u&&(y=y+1,U=U+1),l&&(y=y+1,U=U+1);const x=parseInt(t[y+w+1],10);let K=0;if(x>=5&&(K=1,x===5)){K=v[w]%2===1?1:0;for(let H=y+w+2;H<U;H++)if(parseInt(t[H],10)){K=1;break}}if(K){let H=w;for(;H>=0&&++v[H]>9;H--)if(v[H]=0,H===0)if(R<Zo)R=R+1,v[H]=1;else return new Pn(o?Gb:Xb)}}}else{for(;R<Al||S<p;){if(w===0){if(d===0){R=Al;break}br(t,"exponent underflow")}S<p?(t[p-1+Number(l)+Number(u)]!=="0"&&d!==0&&br(t,"inexact rounding"),p=p-1):(v[w]!==0&&br(t,"inexact rounding"),w=w-1),R<Zo?R=R+1:br(t,"overflow")}w+1<d&&(u&&(y=y+1),l&&(y=y+1),parseInt(t[y+w+1],10)!==0&&br(t,"inexact rounding"))}if(k=X.fromNumber(0),$=X.fromNumber(0),d===0)k=X.fromNumber(0),$=X.fromNumber(0);else if(w<17){let U=0;for($=X.fromNumber(v[U++]),k=new X(0,0);U<=w;U++)$=$.multiply(X.fromNumber(10)),$=$.add(X.fromNumber(v[U]))}else{let U=0;for(k=X.fromNumber(v[U++]);U<=w-17;U++)k=k.multiply(X.fromNumber(10)),k=k.add(X.fromNumber(v[U]));for($=X.fromNumber(v[U++]);U<=w;U++)$=$.multiply(X.fromNumber(10)),$=$.add(X.fromNumber(v[U]))}const V=YM(k,X.fromString("100000000000000000"));V.low=V.low.add($),GM(V.low,$)&&(V.high=V.high.add(X.fromNumber(1))),M=R+Fb;const q={low:X.fromNumber(0),high:X.fromNumber(0)};V.high.shiftRightUnsigned(49).and(X.fromNumber(1)).equals(X.fromNumber(1))?(q.high=q.high.or(X.fromNumber(3).shiftLeft(61)),q.high=q.high.or(X.fromNumber(M).and(X.fromNumber(16383).shiftLeft(47))),q.high=q.high.or(V.high.and(X.fromNumber(0x7fffffffffff)))):(q.high=q.high.or(X.fromNumber(M&16383).shiftLeft(49)),q.high=q.high.or(V.high.and(X.fromNumber(562949953421311)))),q.low=V.low,o&&(q.high=q.high.or(X.fromString("9223372036854775808")));const F=_e.allocateUnsafe(16);return _=0,F[_++]=q.low.low&255,F[_++]=q.low.low>>8&255,F[_++]=q.low.low>>16&255,F[_++]=q.low.low>>24&255,F[_++]=q.low.high&255,F[_++]=q.low.high>>8&255,F[_++]=q.low.high>>16&255,F[_++]=q.low.high>>24&255,F[_++]=q.high.low&255,F[_++]=q.high.low>>8&255,F[_++]=q.high.low>>16&255,F[_++]=q.high.low>>24&255,F[_++]=q.high.high&255,F[_++]=q.high.high>>8&255,F[_++]=q.high.high>>16&255,F[_++]=q.high.high>>24&255,new Pn(F)}toString(){let t,i=0;const o=new Array(36);for(let _=0;_<o.length;_++)o[_]=0;let l=0,u=!1,c,d={parts:[0,0,0,0]},m,p;const g=[];l=0;const y=this.bytes,v=y[l++]|y[l++]<<8|y[l++]<<16|y[l++]<<24,S=y[l++]|y[l++]<<8|y[l++]<<16|y[l++]<<24,C=y[l++]|y[l++]<<8|y[l++]<<16|y[l++]<<24,w=y[l++]|y[l++]<<8|y[l++]<<16|y[l++]<<24;l=0,{low:new X(v,S),high:new X(C,w)}.high.lessThan(X.ZERO)&&g.push("-");const k=w>>26&HM;if(k>>3===3){if(k===qM)return g.join("")+"Infinity";if(k===VM)return"NaN";t=w>>15&Kb,c=8+(w>>14&1)}else c=w>>14&7,t=w>>17&Kb;const $=t-Fb;if(d.parts[0]=(w&16383)+((c&15)<<14),d.parts[1]=C,d.parts[2]=S,d.parts[3]=v,d.parts[0]===0&&d.parts[1]===0&&d.parts[2]===0&&d.parts[3]===0)u=!0;else for(p=3;p>=0;p--){let _=0;const B=FM(d);if(d=B.quotient,_=B.rem.low,!!_)for(m=8;m>=0;m--)o[p*9+m]=_%10,_=Math.floor(_/10)}if(u)i=1,o[l]=0;else for(i=36;!o[l];)i=i-1,l=l+1;const M=i-1+$;if(M>=34||M<=-7||$>0){if(i>34)return g.push("0"),$>0?g.push(`E+${$}`):$<0&&g.push(`E${$}`),g.join("");g.push(`${o[l++]}`),i=i-1,i&&g.push(".");for(let _=0;_<i;_++)g.push(`${o[l++]}`);g.push("E"),M>0?g.push(`+${M}`):g.push(`${M}`)}else if($>=0)for(let _=0;_<i;_++)g.push(`${o[l++]}`);else{let _=i+$;if(_>0)for(let B=0;B<_;B++)g.push(`${o[l++]}`);else g.push("0");for(g.push(".");_++<0;)g.push("0");for(let B=0;B<i-Math.max(_-1,0);B++)g.push(`${o[l++]}`)}return g.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(t){return Pn.fromString(t.$numberDecimal)}inspect(t,i,o){return o??=jn,`new Decimal128(${o(this.toString(),i)})`}}class Yr extends er{get _bsontype(){return"Double"}value;constructor(t){super(),t instanceof Number&&(t=t.valueOf()),this.value=+t}static fromString(t){const i=Number(t);if(t==="NaN")return new Yr(NaN);if(t==="Infinity")return new Yr(1/0);if(t==="-Infinity")return new Yr(-1/0);if(!Number.isFinite(i))throw new pe(`Input: ${t} is not representable as a Double`);if(t.trim()!==t)throw new pe(`Input: '${t}' contains whitespace`);if(t==="")throw new pe("Input is an empty string");if(/[^-0-9.+eE]/.test(t))throw new pe(`Input: '${t}' is not in decimal or exponential notation`);return new Yr(i)}valueOf(){return this.value}toJSON(){return this.value}toString(t){return this.value.toString(t)}toExtendedJSON(t){return t&&(t.legacy||t.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-0.0"}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(t,i){const o=parseFloat(t.$numberDouble);return i&&i.relaxed?o:new Yr(o)}inspect(t,i,o){return o??=jn,`new Double(${o(this.value,i)})`}}class Wo extends er{get _bsontype(){return"Int32"}value;constructor(t){super(),t instanceof Number&&(t=t.valueOf()),this.value=+t|0}static fromString(t){const i=Lb(t),o=Number(t);if(Jd<o)throw new pe(`Input: '${t}' is larger than the maximum value for Int32`);if(eh>o)throw new pe(`Input: '${t}' is smaller than the minimum value for Int32`);if(Number.isSafeInteger(o)){if(o.toString()!==i)throw new pe(`Input: '${t}' is not a valid Int32 string`)}else throw new pe(`Input: '${t}' is not a safe integer`);return new Wo(o)}valueOf(){return this.value}toString(t){return this.value.toString(t)}toJSON(){return this.value}toExtendedJSON(t){return t&&(t.relaxed||t.legacy)?this.value:{$numberInt:this.value.toString()}}static fromExtendedJSON(t,i){return i&&i.relaxed?parseInt(t.$numberInt,10):new Wo(t.$numberInt)}inspect(t,i,o){return o??=jn,`new Int32(${o(this.value,i)})`}}class Au extends er{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new Au}inspect(){return"new MaxKey()"}}class ku extends er{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new ku}inspect(){return"new MinKey()"}}let ao=null;const kl=new WeakMap;class qt extends er{get _bsontype(){return"ObjectId"}static index=Math.floor(Math.random()*16777215);static cacheHexString;buffer;constructor(t){super();let i;if(typeof t=="object"&&t&&"id"in t){if(typeof t.id!="string"&&!ArrayBuffer.isView(t.id))throw new pe("Argument passed in must have an id that is of type string or Buffer");"toHexString"in t&&typeof t.toHexString=="function"?i=_e.fromHex(t.toHexString()):i=t.id}else i=t;if(i==null)this.buffer=qt.generate();else if(ArrayBuffer.isView(i)&&i.byteLength===12)this.buffer=_e.toLocalBufferType(i);else if(typeof i=="string")if(qt.validateHexString(i))this.buffer=_e.fromHex(i),qt.cacheHexString&&kl.set(this,i);else throw new pe("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");else throw new pe("Argument passed in does not match the accepted types")}get id(){return this.buffer}set id(t){this.buffer=t,qt.cacheHexString&&kl.set(this,_e.toHex(t))}static validateHexString(t){if(t?.length!==24)return!1;for(let i=0;i<24;i++){const o=t.charCodeAt(i);if(!(o>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70))return!1}return!0}toHexString(){if(qt.cacheHexString){const i=kl.get(this);if(i)return i}const t=_e.toHex(this.id);return qt.cacheHexString&&kl.set(this,t),t}static getInc(){return qt.index=(qt.index+1)%16777215}static generate(t){typeof t!="number"&&(t=Math.floor(Date.now()/1e3));const i=qt.getInc(),o=_e.allocateUnsafe(12);return oo.setInt32BE(o,0,t),ao===null&&(ao=_e.randomBytes(5)),o[4]=ao[0],o[5]=ao[1],o[6]=ao[2],o[7]=ao[3],o[8]=ao[4],o[11]=i&255,o[10]=i>>8&255,o[9]=i>>16&255,o}toString(t){return t==="base64"?_e.toBase64(this.id):t==="hex"?this.toHexString():this.toHexString()}toJSON(){return this.toHexString()}static is(t){return t!=null&&typeof t=="object"&&"_bsontype"in t&&t._bsontype==="ObjectId"}equals(t){if(t==null)return!1;if(qt.is(t))return this.buffer[11]===t.buffer[11]&&_e.equals(this.buffer,t.buffer);if(typeof t=="string")return t.toLowerCase()===this.toHexString();if(typeof t=="object"&&typeof t.toHexString=="function"){const i=t.toHexString(),o=this.toHexString();return typeof i=="string"&&i.toLowerCase()===o}return!1}getTimestamp(){const t=new Date,i=oo.getUint32BE(this.buffer,0);return t.setTime(Math.floor(i)*1e3),t}static createPk(){return new qt}serializeInto(t,i){return t[i]=this.buffer[0],t[i+1]=this.buffer[1],t[i+2]=this.buffer[2],t[i+3]=this.buffer[3],t[i+4]=this.buffer[4],t[i+5]=this.buffer[5],t[i+6]=this.buffer[6],t[i+7]=this.buffer[7],t[i+8]=this.buffer[8],t[i+9]=this.buffer[9],t[i+10]=this.buffer[10],t[i+11]=this.buffer[11],12}static createFromTime(t){const i=_e.allocate(12);for(let o=11;o>=4;o--)i[o]=0;return oo.setInt32BE(i,0,t),new qt(i)}static createFromHexString(t){if(t?.length!==24)throw new pe("hex string must be 24 characters");return new qt(_e.fromHex(t))}static createFromBase64(t){if(t?.length!==16)throw new pe("base64 string must be 16 characters");return new qt(_e.fromBase64(t))}static isValid(t){if(t==null)return!1;if(typeof t=="string")return qt.validateHexString(t);try{return new qt(t),!0}catch{return!1}}toExtendedJSON(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}}static fromExtendedJSON(t){return new qt(t.$oid)}isCached(){return qt.cacheHexString&&kl.has(this)}inspect(t,i,o){return o??=jn,`new ObjectId(${o(this.toHexString(),i)})`}}function XM(e){return e.split("").sort().join("")}class Gr extends er{get _bsontype(){return"BSONRegExp"}pattern;options;constructor(t,i){if(super(),this.pattern=t,this.options=XM(i??""),this.pattern.indexOf("\0")!==-1)throw new pe(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new pe(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let o=0;o<this.options.length;o++)if(!(this.options[o]==="i"||this.options[o]==="m"||this.options[o]==="x"||this.options[o]==="l"||this.options[o]==="s"||this.options[o]==="u"))throw new pe(`The regular expression option [${this.options[o]}] is not supported`)}static parseOptions(t){return t?t.split("").sort().join(""):""}toExtendedJSON(t){return t=t||{},t.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(t){if("$regex"in t)if(typeof t.$regex!="string"){if(t.$regex._bsontype==="BSONRegExp")return t}else return new Gr(t.$regex,Gr.parseOptions(t.$options));if("$regularExpression"in t)return new Gr(t.$regularExpression.pattern,Gr.parseOptions(t.$regularExpression.options));throw new pe(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(t)}`)}inspect(t,i,o){const l=vM(i)??(d=>d);o??=jn;const u=l(o(this.pattern),"regexp"),c=l(o(this.options),"regexp");return`new BSONRegExp(${u}, ${c})`}}class Ru extends er{get _bsontype(){return"BSONSymbol"}value;constructor(t){super(),this.value=t}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(t){return new Ru(t.$symbol)}inspect(t,i,o){return o??=jn,`new BSONSymbol(${o(this.value,i)})`}}const KM=X;class xi extends KM{get _bsontype(){return"Timestamp"}get[Ub](){return"Timestamp"}static MAX_VALUE=X.MAX_UNSIGNED_VALUE;get i(){return this.low>>>0}get t(){return this.high>>>0}constructor(t){if(t==null)super(0,0,!0);else if(typeof t=="bigint")super(t,!0);else if(X.isLong(t))super(t.low,t.high,!0);else if(typeof t=="object"&&"t"in t&&"i"in t){if(typeof t.t!="number"&&(typeof t.t!="object"||t.t._bsontype!=="Int32"))throw new pe("Timestamp constructed from { t, i } must provide t as a number");if(typeof t.i!="number"&&(typeof t.i!="object"||t.i._bsontype!=="Int32"))throw new pe("Timestamp constructed from { t, i } must provide i as a number");const i=Number(t.t),o=Number(t.i);if(i<0||Number.isNaN(i))throw new pe("Timestamp constructed from { t, i } must provide a positive t");if(o<0||Number.isNaN(o))throw new pe("Timestamp constructed from { t, i } must provide a positive i");if(i>4294967295)throw new pe("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if(o>4294967295)throw new pe("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super(o,i,!0)}else throw new pe("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(t){return new xi(X.fromInt(t,!0))}static fromNumber(t){return new xi(X.fromNumber(t,!0))}static fromBits(t,i){return new xi({i:t,t:i})}static fromString(t,i){return new xi(X.fromString(t,!0,i))}toExtendedJSON(){return{$timestamp:{t:this.t,i:this.i}}}static fromExtendedJSON(t){const i=X.isLong(t.$timestamp.i)?t.$timestamp.i.getLowBitsUnsigned():t.$timestamp.i,o=X.isLong(t.$timestamp.t)?t.$timestamp.t.getLowBitsUnsigned():t.$timestamp.t;return new xi({t:o,i})}inspect(t,i,o){o??=jn;const l=o(this.t,i),u=o(this.i,i);return`new Timestamp({ t: ${l}, i: ${u} })`}}X.fromNumber(xM),X.fromNumber(wM);function QM(e){return e!=null&&typeof e=="object"&&"_bsontype"in e&&typeof e._bsontype=="string"}const ZM={$oid:qt,$binary:Ke,$uuid:Ke,$symbol:Ru,$numberInt:Wo,$numberDecimal:Pn,$numberDouble:Yr,$numberLong:X,$minKey:ku,$maxKey:Au,$regex:Gr,$regularExpression:Gr,$timestamp:xi};function Zb(e,t={}){if(typeof e=="number"){const o=e<=Jd&&e>=eh,l=e<=Rb&&e>=Ob;if(t.relaxed||t.legacy)return e;if(Number.isInteger(e)&&!Object.is(e,-0)){if(o)return new Wo(e);if(l)return t.useBigInt64?BigInt(e):X.fromNumber(e)}return new Yr(e)}if(e==null||typeof e!="object")return e;if(e.$undefined)return null;const i=Object.keys(e).filter(o=>o.startsWith("$")&&e[o]!=null);for(let o=0;o<i.length;o++){const l=ZM[i[o]];if(l)return l.fromExtendedJSON(e,t)}if(e.$date!=null){const o=e.$date,l=new Date;if(t.legacy)if(typeof o=="number")l.setTime(o);else if(typeof o=="string")l.setTime(Date.parse(o));else if(typeof o=="bigint")l.setTime(Number(o));else throw new Nb(`Unrecognized type for EJSON date: ${typeof o}`);else if(typeof o=="string")l.setTime(Date.parse(o));else if(X.isLong(o))l.setTime(o.toNumber());else if(typeof o=="number"&&t.relaxed)l.setTime(o);else if(typeof o=="bigint")l.setTime(Number(o));else throw new Nb(`Unrecognized type for EJSON date: ${typeof o}`);return l}if(e.$code!=null){const o=Object.assign({},e);return e.$scope&&(o.$scope=Zb(e.$scope)),_l.fromExtendedJSON(e)}if(zM(e)||e.$dbPointer){const o=e.$ref?e:e.$dbPointer;if(o instanceof Ko)return o;const l=Object.keys(o).filter(c=>c.startsWith("$"));let u=!0;if(l.forEach(c=>{["$ref","$id","$db"].indexOf(c)===-1&&(u=!1)}),u)return Ko.fromExtendedJSON(o)}return e}function WM(e,t){return e.map((i,o)=>{t.seenObjects.push({propertyName:`index ${o}`,obj:null});try{return Xr(i,t)}finally{t.seenObjects.pop()}})}function Wb(e){const t=e.toISOString();return e.getUTCMilliseconds()!==0?t:t.slice(0,-5)+"Z"}function Xr(e,t){if(e instanceof Map||Ab(e)){const i=Object.create(null);for(const[o,l]of e){if(typeof o!="string")throw new pe("Can only serialize maps with string keys");i[o]=l}return Xr(i,t)}if((typeof e=="object"||typeof e=="function")&&e!==null){const i=t.seenObjects.findIndex(o=>o.obj===e);if(i!==-1){const o=t.seenObjects.map(g=>g.propertyName),l=o.slice(0,i).map(g=>`${g} -> `).join(""),u=o[i],c=" -> "+o.slice(i+1,o.length-1).map(g=>`${g} -> `).join(""),d=o[o.length-1],m=" ".repeat(l.length+u.length/2),p="-".repeat(c.length+(u.length+d.length)/2-1);throw new pe(`Converting circular structure to EJSON:
|
|
165
|
+
${l}${u}${c}${d}
|
|
166
|
+
${m}\\${p}/`)}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return WM(e,t);if(e===void 0)return null;if(e instanceof Date||SM(e)){const i=e.getTime(),o=i>-1&&i<2534023188e5;return t.legacy?t.relaxed&&o?{$date:e.getTime()}:{$date:Wb(e)}:t.relaxed&&o?{$date:Wb(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(typeof e=="number"&&(!t.relaxed||!isFinite(e))){if(Number.isInteger(e)&&!Object.is(e,-0)){if(e>=eh&&e<=Jd)return{$numberInt:e.toString()};if(e>=Ob&&e<=Rb)return{$numberLong:e.toString()}}return{$numberDouble:Object.is(e,-0)?"-0.0":e.toString()}}if(typeof e=="bigint")return t.relaxed?Number(BigInt.asIntN(64,e)):{$numberLong:BigInt.asIntN(64,e).toString()};if(e instanceof RegExp||bM(e)){let i=e.flags;if(i===void 0){const l=e.toString().match(/[gimuy]*$/);l&&(i=l[0])}return new Gr(e.source,i).toExtendedJSON(t)}return e!=null&&typeof e=="object"?eN(e,t):e}const JM={Binary:e=>new Ke(e.value(),e.sub_type),Code:e=>new _l(e.code,e.scope),DBRef:e=>new Ko(e.collection||e.namespace,e.oid,e.db,e.fields),Decimal128:e=>new Pn(e.bytes),Double:e=>new Yr(e.value),Int32:e=>new Wo(e.value),Long:e=>X.fromBits(e.low!=null?e.low:e.low_,e.low!=null?e.high:e.high_,e.low!=null?e.unsigned:e.unsigned_),MaxKey:()=>new Au,MinKey:()=>new ku,ObjectId:e=>new qt(e),BSONRegExp:e=>new Gr(e.pattern,e.options),BSONSymbol:e=>new Ru(e.value),Timestamp:e=>xi.fromBits(e.low,e.high)};function eN(e,t){if(e==null||typeof e!="object")throw new pe("not an object instance");const i=e._bsontype;if(typeof i>"u"){const o={};for(const l of Object.keys(e)){t.seenObjects.push({propertyName:l,obj:null});try{const u=Xr(e[l],t);l==="__proto__"?Object.defineProperty(o,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[l]=u}finally{t.seenObjects.pop()}}return o}else{if(e!=null&&typeof e=="object"&&typeof e._bsontype=="string"&&e[kb]!==Wd)throw new EM;if(QM(e)){let o=e;if(typeof o.toExtendedJSON!="function"){const l=JM[e._bsontype];if(!l)throw new pe("Unrecognized or invalid _bsontype: "+e._bsontype);o=l(o)}return i==="Code"&&o.scope?o=new _l(o.code,Xr(o.scope,t)):i==="DBRef"&&o.oid&&(o=new Ko(Xr(o.collection,t),Xr(o.oid,t),Xr(o.db,t),Xr(o.fields,t))),o.toExtendedJSON(t)}else throw new pe("_bsontype must be a string, but was: "+typeof i)}}function Jb(e,t){const i={useBigInt64:t?.useBigInt64??!1,relaxed:t?.relaxed??!0,legacy:t?.legacy??!1};return JSON.parse(e,(o,l)=>{if(o.indexOf("\0")!==-1)throw new pe(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(o)}`);return Zb(l,i)})}function e1(e,t,i,o){i!=null&&typeof i=="object"&&(o=i,i=0),t!=null&&typeof t=="object"&&!Array.isArray(t)&&(o=t,t=void 0,i=0);const l=Object.assign({relaxed:!0,legacy:!1},o,{seenObjects:[{propertyName:"(root)",obj:null}]}),u=Xr(e,l);return JSON.stringify(u,t,i)}function tN(e,t){return t=t||{},JSON.parse(e1(e,t))}function nN(e,t){return t=t||{},Jb(JSON.stringify(e),t)}const Rl=Object.create(null);Rl.parse=Jb,Rl.stringify=e1,Rl.serialize=tN,Rl.deserialize=nN,Object.freeze(Rl);const Nt={double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:255,maxKey:127};function ih(e,t){try{return oo.getNonnegativeInt32LE(e,t)}catch(i){throw new Si("BSON size cannot be negative",t,{cause:i})}}function oh(e,t){let i=t;for(;e[i]!==0;i++);if(i===e.length-1)throw new Si("Null terminator not found",t);return i}function rN(e,t=0){if(t??=0,e.length<5)throw new Si(`Input must be at least 5 bytes, got ${e.length} bytes`,t);const i=ih(e,t);if(i>e.length-t)throw new Si(`Parsed documentSize (${i} bytes) does not match input length (${e.length} bytes)`,t);if(e[t+i-1]!==0)throw new Si("BSON documents must end in 0x00",t+i);const o=[];let l=t+4;for(;l<=i+t;){const u=e[l];if(l+=1,u===0){if(l-t!==i)throw new Si("Invalid 0x00 type byte",l);break}const c=l,d=oh(e,l)-c;l+=d+1;let m;if(u===Nt.double||u===Nt.long||u===Nt.date||u===Nt.timestamp)m=8;else if(u===Nt.int)m=4;else if(u===Nt.objectId)m=12;else if(u===Nt.decimal)m=16;else if(u===Nt.bool)m=1;else if(u===Nt.null||u===Nt.undefined||u===Nt.maxKey||u===Nt.minKey)m=0;else if(u===Nt.regex)m=oh(e,oh(e,l)+1)+1-l;else if(u===Nt.object||u===Nt.array||u===Nt.javascriptWithScope)m=ih(e,l);else if(u===Nt.string||u===Nt.binData||u===Nt.dbPointer||u===Nt.javascript||u===Nt.symbol)m=ih(e,l)+4,u===Nt.binData&&(m+=1),u===Nt.dbPointer&&(m+=12);else throw new Si(`Invalid 0x${u.toString(16).padStart(2,"0")} type byte`,l);if(m>i)throw new Si("value reports length larger than document",l);o.push([u,c,d,l,m]),l+=m}return o}const Ou=Object.create(null);Ou.parseToElements=rN,Ou.ByteUtils=_e,Ou.NumberUtils=oo,Object.freeze(Ou);const iN=1024*1024*17;_e.allocate(iN);async function oN(e,t,i){dl(e.apiBaseUrl+fu+"/"+e.clientId+"/messages/",{method:"GET",headers:{"Content-Type":"application/json","X-Conversation-Id":t}}).then(o=>{if(!o.ok)throw new Error("Request failed");return o.json()}).then(o=>{i(o.map(l=>l))}).catch(o=>{console.error(o)})}async function aN(e,t){const i=await dl(e.apiBaseUrl+fu+"/"+e.clientId+"/conversation-status/",{method:"GET",headers:{"Content-Type":"application/json","X-Conversation-Id":t}});return i.ok,await i.json()}async function lN(e){return(await dl(e.apiBaseUrl+"/api/health/"+e.clientId,{method:"GET",headers:{"Content-Type":"application/json"}})).ok}async function sN(e,t){const i=await dl(e.apiBaseUrl+fu+"/"+e.clientId+"/client-activity-status",{method:"GET",headers:{"Content-Type":"application/json",...t?{"X-Conversation-Id":t}:{}}});return i.ok?i.body?await i.json():{isActive:!1,hideForUrls:[]}:{isActive:!1,hideForUrls:[]}}function uN({config:e}){const{connected:t,start:i,on:o,off:l}=mM({url:e.apiBaseUrl+`/ws?sessionId=${pu()}&clientId=${e.clientId}`,autoStart:!1}),[u,c]=O.useState(!1),[d,m]=O.useState(""),[p,g]=O.useState(pu()),[y,v]=O.useState(),[S,C]=O.useState([]),[w,R]=O.useState(!1),[k,$]=O.useState(!1),M=O.useMemo(()=>({position:"fixed",right:16,bottom:16,zIndex:2147483647,fontFamily:"system-ui"}),[]);O.useEffect(()=>{const F=window.location.pathname;e.hideChatForUrls?.some(U=>F.startsWith(U))?$(!0):$(!1)}),O.useEffect(()=>{u&&S.length==0&&oN(e,pu()||e.conversationId||"",F=>{const U=F.map(x=>({id:x.id,role:x.role,text:x.text,sentAt:ah(x.sentAt),seen:x.seen}));C(x=>[...U])}),u&&p&&(async()=>{const U=await aN(e,p);v(U)})()},[u]);function _(F){C(U=>{const x=U[U.length-1];if(!x||x.role!=="Assistant"||x.id!==F.id)return[...U,{id:F.id,role:F.role,text:F.text,sentAt:ah(F.sentAt),seen:F.seen}];const K=U.slice();return K[K.length-1]={...x,text:x.text+F.text},K})}async function B(){const F=d.trim();if(!F||w)return;R(!0),m("");const U={id:new xn().toString(),role:"User",text:F,seen:!1,sentAt:ah(new Date().toISOString())};C(x=>[...x,U]);try{await uk({url:e.apiBaseUrl+fu+"/"+e.clientId+"/send-message/",token:e.sessionToken,clientId:e.clientId,conversationId:p,messageId:U.id,body:F,onDelta:x=>{_(x),g(x.conversationId),dk(x.conversationId)}})}catch{C(x=>[...x,{id:crypto.randomUUID(),role:"Assistant",text:"Eroare la trimitere.",seen:!1}])}finally{R(!1)}}const T=O.useCallback((F,U)=>{_({id:U.messageId,role:"Assistant",text:U.text,sentAt:new Date().toISOString(),seen:U.seen})},[]),L=O.useCallback(F=>{C(U=>U.map(x=>x.id===F?{...x,seen:!0}:x))},[]),V=O.useCallback(F=>{v(F),console.log(F)},[]);O.useEffect(()=>{p==""||p==null||i()},[p]),O.useEffect(()=>(o("ReceivedOperatorMessage",T),o("ReceivedSeenAtByOperator",L),o("RecievedConversationModeChanged",V),()=>{l("ReceivedOperatorMessage",T),l("ReceivedSeenAtByOperator",L),l("RecievedConversationModeChanged",V)}),[o,t,l]);const q=O.useCallback(F=>p?t?F?.mode=="Bot"?"AI":F?.mode=="Human"?"Human":"AI":"Disconnected":"New",[p,t]);return k?Y.jsx(Y.Fragment,{}):Y.jsx(M5,{anchorSx:M,open:u,setOpen:c,msgs:S,input:d,setInput:m,send:B,sending:w,conversationMode:q(y)})}function ah(e){return e?new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):""}class cN extends HTMLElement{connectedCallback(){const t=du();if(!t)return;const i=this.attachShadow({mode:"open"}),o=document.createElement("style");o.textContent=`
|
|
167
|
+
:host { all: initial; }
|
|
168
|
+
`,i.appendChild(o),this.mountEl=document.createElement("div"),i.appendChild(this.mountEl),R5();const l=Pm({key:"chatbot",container:i}),u=Gs();this.root=sw.createRoot(this.mountEl),this.root.render(Y.jsx(Gw,{value:l,children:Y.jsxs(O2,{theme:u,children:[Y.jsx(w_,{}),Y.jsx(uN,{config:t})]})}))}disconnectedCallback(){this.root?.unmount(),this.root=void 0}}function fN(){const e=document.currentScript;if(e)return e;const i=Array.from(document.getElementsByTagName("script")).filter(o=>(o.src||"").startsWith("http://localhost:5173/src/main.ts")||(o.src||"").includes("https://cdn.jsdelivr.net/npm/ss-support-widget"));return i.length?i[i.length-1]:null}const t1=fN(),n1=t1?.getAttribute("data-client-id")||"",dN=t1?.getAttribute("data-api-base-url")||"https://localhost:7352",Mu=`chat-bot-${n1}`;customElements.get(Mu)||customElements.define(Mu,cN),(async function(){var t=du();if(t||(t={clientId:n1,apiBaseUrl:dN,conversationId:void 0,userId:void 0,hideChatForUrls:void 0,sessionToken:null},lk(t)),document.querySelector(Mu))return;var i=await lN(t);if(!i)return;var o=await sN(t,pu());if(!o.isActive)return;t.hideChatForUrls=o.hideForUrls;const l=document.createElement(Mu);document.body.appendChild(l)})()})();
|