@puukis/cli 0.1.4 → 0.1.7

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.
@@ -0,0 +1,78 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const c of h.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function u(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(f){if(f.ep)return;f.ep=!0;const h=u(f);fetch(f.href,h)}})();function Hp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var js={exports:{}},Ma={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Um;function o0(){if(Um)return Ma;Um=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(r,f,h){var c=null;if(h!==void 0&&(c=""+h),f.key!==void 0&&(c=""+f.key),"key"in f){h={};for(var m in f)m!=="key"&&(h[m]=f[m])}else h=f;return f=h.ref,{$$typeof:n,type:r,key:c,ref:f!==void 0?f:null,props:h}}return Ma.Fragment=a,Ma.jsx=u,Ma.jsxs=u,Ma}var Hm;function s0(){return Hm||(Hm=1,js.exports=o0()),js.exports}var z=s0(),Bs={exports:{}},Ee={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var qm;function c0(){if(qm)return Ee;qm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,G={};function O(A,q,E){this.props=A,this.context=q,this.refs=G,this.updater=E||_}O.prototype.isReactComponent={},O.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,q,"setState")},O.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function K(){}K.prototype=O.prototype;function Q(A,q,E){this.props=A,this.context=q,this.refs=G,this.updater=E||_}var oe=Q.prototype=new K;oe.constructor=Q,H(oe,O.prototype),oe.isPureReactComponent=!0;var F=Array.isArray;function D(){}var te={H:null,A:null,T:null,S:null},me=Object.prototype.hasOwnProperty;function ve(A,q,E){var ee=E.ref;return{$$typeof:n,type:A,key:q,ref:ee!==void 0?ee:null,props:E}}function B(A,q){return ve(A.type,q,A.props)}function ie(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ne(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(E){return q[E]})}var ke=/\/+/g;function ue(A,q){return typeof A=="object"&&A!==null&&A.key!=null?ne(""+A.key):q.toString(36)}function P(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(D,D):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function R(A,q,E,ee,ge){var fe=typeof A;(fe==="undefined"||fe==="boolean")&&(A=null);var we=!1;if(A===null)we=!0;else switch(fe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(A.$$typeof){case n:case a:we=!0;break;case b:return we=A._init,R(we(A._payload),q,E,ee,ge)}}if(we)return ge=ge(A),we=ee===""?"."+ue(A,0):ee,F(ge)?(E="",we!=null&&(E=we.replace(ke,"$&/")+"/"),R(ge,q,E,"",function(ct){return ct})):ge!=null&&(ie(ge)&&(ge=B(ge,E+(ge.key==null||A&&A.key===ge.key?"":(""+ge.key).replace(ke,"$&/")+"/")+we)),q.push(ge)),1;we=0;var _e=ee===""?".":ee+":";if(F(A))for(var He=0;He<A.length;He++)ee=A[He],fe=_e+ue(ee,He),we+=R(ee,q,E,fe,ge);else if(He=S(A),typeof He=="function")for(A=He.call(A),He=0;!(ee=A.next()).done;)ee=ee.value,fe=_e+ue(ee,He++),we+=R(ee,q,E,fe,ge);else if(fe==="object"){if(typeof A.then=="function")return R(P(A),q,E,ee,ge);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return we}function I(A,q,E){if(A==null)return A;var ee=[],ge=0;return R(A,ee,"","",function(fe){return q.call(E,fe,ge++)}),ee}function ae(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(E){(A._status===0||A._status===-1)&&(A._status=1,A._result=E)},function(E){(A._status===0||A._status===-1)&&(A._status=2,A._result=E)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var Se=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},k={map:I,forEach:function(A,q,E){I(A,function(){q.apply(this,arguments)},E)},count:function(A){var q=0;return I(A,function(){q++}),q},toArray:function(A){return I(A,function(q){return q})||[]},only:function(A){if(!ie(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ee.Activity=y,Ee.Children=k,Ee.Component=O,Ee.Fragment=u,Ee.Profiler=f,Ee.PureComponent=Q,Ee.StrictMode=r,Ee.Suspense=p,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(A){return te.H.useMemoCache(A)}},Ee.cache=function(A){return function(){return A.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(A,q,E){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ee=H({},A.props),ge=A.key;if(q!=null)for(fe in q.key!==void 0&&(ge=""+q.key),q)!me.call(q,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&q.ref===void 0||(ee[fe]=q[fe]);var fe=arguments.length-2;if(fe===1)ee.children=E;else if(1<fe){for(var we=Array(fe),_e=0;_e<fe;_e++)we[_e]=arguments[_e+2];ee.children=we}return ve(A.type,ge,ee)},Ee.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:h,_context:A},A},Ee.createElement=function(A,q,E){var ee,ge={},fe=null;if(q!=null)for(ee in q.key!==void 0&&(fe=""+q.key),q)me.call(q,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ge[ee]=q[ee]);var we=arguments.length-2;if(we===1)ge.children=E;else if(1<we){for(var _e=Array(we),He=0;He<we;He++)_e[He]=arguments[He+2];ge.children=_e}if(A&&A.defaultProps)for(ee in we=A.defaultProps,we)ge[ee]===void 0&&(ge[ee]=we[ee]);return ve(A,fe,ge)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(A){return{$$typeof:m,render:A}},Ee.isValidElement=ie,Ee.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:ae}},Ee.memo=function(A,q){return{$$typeof:d,type:A,compare:q===void 0?null:q}},Ee.startTransition=function(A){var q=te.T,E={};te.T=E;try{var ee=A(),ge=te.S;ge!==null&&ge(E,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(D,Se)}catch(fe){Se(fe)}finally{q!==null&&E.types!==null&&(q.types=E.types),te.T=q}},Ee.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},Ee.use=function(A){return te.H.use(A)},Ee.useActionState=function(A,q,E){return te.H.useActionState(A,q,E)},Ee.useCallback=function(A,q){return te.H.useCallback(A,q)},Ee.useContext=function(A){return te.H.useContext(A)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(A,q){return te.H.useDeferredValue(A,q)},Ee.useEffect=function(A,q){return te.H.useEffect(A,q)},Ee.useEffectEvent=function(A){return te.H.useEffectEvent(A)},Ee.useId=function(){return te.H.useId()},Ee.useImperativeHandle=function(A,q,E){return te.H.useImperativeHandle(A,q,E)},Ee.useInsertionEffect=function(A,q){return te.H.useInsertionEffect(A,q)},Ee.useLayoutEffect=function(A,q){return te.H.useLayoutEffect(A,q)},Ee.useMemo=function(A,q){return te.H.useMemo(A,q)},Ee.useOptimistic=function(A,q){return te.H.useOptimistic(A,q)},Ee.useReducer=function(A,q,E){return te.H.useReducer(A,q,E)},Ee.useRef=function(A){return te.H.useRef(A)},Ee.useState=function(A){return te.H.useState(A)},Ee.useSyncExternalStore=function(A,q,E){return te.H.useSyncExternalStore(A,q,E)},Ee.useTransition=function(){return te.H.useTransition()},Ee.version="19.2.4",Ee}var Ym;function Tc(){return Ym||(Ym=1,Bs.exports=c0()),Bs.exports}var ce=Tc(),Ls={exports:{}},Na={},Us={exports:{}},Hs={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Vm;function f0(){return Vm||(Vm=1,(function(n){function a(R,I){var ae=R.length;R.push(I);e:for(;0<ae;){var Se=ae-1>>>1,k=R[Se];if(0<f(k,I))R[Se]=I,R[ae]=k,ae=Se;else break e}}function u(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var I=R[0],ae=R.pop();if(ae!==I){R[0]=ae;e:for(var Se=0,k=R.length,A=k>>>1;Se<A;){var q=2*(Se+1)-1,E=R[q],ee=q+1,ge=R[ee];if(0>f(E,ae))ee<k&&0>f(ge,E)?(R[Se]=ge,R[ee]=ae,Se=ee):(R[Se]=E,R[q]=ae,Se=q);else if(ee<k&&0>f(ge,ae))R[Se]=ge,R[ee]=ae,Se=ee;else break e}}return I}function f(R,I){var ae=R.sortIndex-I.sortIndex;return ae!==0?ae:R.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var c=Date,m=c.now();n.unstable_now=function(){return c.now()-m}}var p=[],d=[],b=1,y=null,x=3,S=!1,_=!1,H=!1,G=!1,O=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function oe(R){for(var I=u(d);I!==null;){if(I.callback===null)r(d);else if(I.startTime<=R)r(d),I.sortIndex=I.expirationTime,a(p,I);else break;I=u(d)}}function F(R){if(H=!1,oe(R),!_)if(u(p)!==null)_=!0,D||(D=!0,ne());else{var I=u(d);I!==null&&P(F,I.startTime-R)}}var D=!1,te=-1,me=5,ve=-1;function B(){return G?!0:!(n.unstable_now()-ve<me)}function ie(){if(G=!1,D){var R=n.unstable_now();ve=R;var I=!0;try{e:{_=!1,H&&(H=!1,K(te),te=-1),S=!0;var ae=x;try{t:{for(oe(R),y=u(p);y!==null&&!(y.expirationTime>R&&B());){var Se=y.callback;if(typeof Se=="function"){y.callback=null,x=y.priorityLevel;var k=Se(y.expirationTime<=R);if(R=n.unstable_now(),typeof k=="function"){y.callback=k,oe(R),I=!0;break t}y===u(p)&&r(p),oe(R)}else r(p);y=u(p)}if(y!==null)I=!0;else{var A=u(d);A!==null&&P(F,A.startTime-R),I=!1}}break e}finally{y=null,x=ae,S=!1}I=void 0}}finally{I?ne():D=!1}}}var ne;if(typeof Q=="function")ne=function(){Q(ie)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,ue=ke.port2;ke.port1.onmessage=ie,ne=function(){ue.postMessage(null)}}else ne=function(){O(ie,0)};function P(R,I){te=O(function(){R(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(R){switch(x){case 1:case 2:case 3:var I=3;break;default:I=x}var ae=x;x=I;try{return R()}finally{x=ae}},n.unstable_requestPaint=function(){G=!0},n.unstable_runWithPriority=function(R,I){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ae=x;x=R;try{return I()}finally{x=ae}},n.unstable_scheduleCallback=function(R,I,ae){var Se=n.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Se+ae:Se):ae=Se,R){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=ae+k,R={id:b++,callback:I,priorityLevel:R,startTime:ae,expirationTime:k,sortIndex:-1},ae>Se?(R.sortIndex=ae,a(d,R),u(p)===null&&R===u(d)&&(H?(K(te),te=-1):H=!0,P(F,ae-Se))):(R.sortIndex=k,a(p,R),_||S||(_=!0,D||(D=!0,ne()))),R},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(R){var I=x;return function(){var ae=x;x=I;try{return R.apply(this,arguments)}finally{x=ae}}}})(Hs)),Hs}var Gm;function h0(){return Gm||(Gm=1,Us.exports=f0()),Us.exports}var qs={exports:{}},wt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Xm;function d0(){if(Xm)return wt;Xm=1;var n=Tc();function a(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(p,d,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:y==null?null:""+y,children:p,containerInfo:d,implementation:b}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wt.createPortal=function(p,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(a(299));return h(p,d,null,b)},wt.flushSync=function(p){var d=c.T,b=r.p;try{if(c.T=null,r.p=2,p)return p()}finally{c.T=d,r.p=b,r.d.f()}},wt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(p,d))},wt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},wt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var b=d.as,y=m(b,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,S=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?r.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:S}):b==="script"&&r.d.X(p,{crossOrigin:y,integrity:x,fetchPriority:S,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},wt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=m(d.as,d.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(p)},wt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,y=m(b,d.crossOrigin);r.d.L(p,b,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},wt.preloadModule=function(p,d){if(typeof p=="string")if(d){var b=m(d.as,d.crossOrigin);r.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(p)},wt.requestFormReset=function(p){r.d.r(p)},wt.unstable_batchedUpdates=function(p,d){return p(d)},wt.useFormState=function(p,d,b){return c.H.useFormState(p,d,b)},wt.useFormStatus=function(){return c.H.useHostTransitionStatus()},wt.version="19.2.4",wt}var Qm;function m0(){if(Qm)return qs.exports;Qm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),qs.exports=d0(),qs.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Zm;function p0(){if(Zm)return Na;Zm=1;var n=h0(),a=Tc(),u=m0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(r(188))}function d(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,i=t;;){var o=l.return;if(o===null)break;var s=o.alternate;if(s===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===l)return p(o),e;if(s===i)return p(o),t;s=s.sibling}throw Error(r(188))}if(l.return!==i.return)l=o,i=s;else{for(var g=!1,v=o.child;v;){if(v===l){g=!0,l=o,i=s;break}if(v===i){g=!0,i=o,l=s;break}v=v.sibling}if(!g){for(v=s.child;v;){if(v===l){g=!0,l=s,i=o;break}if(v===i){g=!0,i=s,l=o;break}v=v.sibling}if(!g)throw Error(r(189))}}if(l.alternate!==i)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case O:return"Profiler";case G:return"StrictMode";case F:return"Suspense";case D:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case Q:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case me:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var P=Array.isArray,R=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Se=[],k=-1;function A(e){return{current:e}}function q(e){0>k||(e.current=Se[k],Se[k]=null,k--)}function E(e,t){k++,Se[k]=e.current,e.current=t}var ee=A(null),ge=A(null),fe=A(null),we=A(null);function _e(e,t){switch(E(fe,t),E(ge,e),E(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rm(t),e=om(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ee),E(ee,e)}function He(){q(ee),q(ge),q(fe)}function ct(e){e.memoizedState!==null&&E(we,e);var t=ee.current,l=om(t,e.type);t!==l&&(E(ge,e),E(ee,l))}function xt(e){ge.current===e&&(q(ee),q(ge)),we.current===e&&(q(we),_a._currentValue=ae)}var Xt,Sn;function mn(e){if(Xt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Xt=t&&t[1]||"",Sn=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Xt+e+Sn}var Ge=!1;function qe(e,t){if(!e||Ge)return"";Ge=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(U){var j=U}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(U){j=U}e.call(Z.prototype)}}else{try{throw Error()}catch(U){j=U}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(U){if(U&&j&&typeof U.stack=="string")return[U.stack,j.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=i.DetermineComponentFrameRoot(),g=s[0],v=s[1];if(g&&v){var T=g.split(`
44
+ `),N=v.split(`
45
+ `);for(o=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(i===T.length||o===N.length)for(i=T.length-1,o=N.length-1;1<=i&&0<=o&&T[i]!==N[o];)o--;for(;1<=i&&0<=o;i--,o--)if(T[i]!==N[o]){if(i!==1||o!==1)do if(i--,o--,0>o||T[i]!==N[o]){var V=`
46
+ `+T[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=o);break}}}finally{Ge=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?mn(l):""}function xl(e,t){switch(e.tag){case 26:case 27:case 5:return mn(e.type);case 16:return mn("Lazy");case 13:return e.child!==t&&t!==null?mn("Suspense Fallback"):mn("Suspense");case 19:return mn("SuspenseList");case 0:case 15:return qe(e.type,!1);case 11:return qe(e.type.render,!1);case 1:return qe(e.type,!0);case 31:return mn("Activity");default:return""}}function Zl(e){try{var t="",l=null;do t+=xl(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var xn=Object.prototype.hasOwnProperty,wn=n.unstable_scheduleCallback,El=n.unstable_cancelCallback,Yi=n.unstable_shouldYield,Kl=n.unstable_requestPaint,Et=n.unstable_now,Vi=n.unstable_getCurrentPriorityLevel,Y=n.unstable_ImmediatePriority,W=n.unstable_UserBlockingPriority,pe=n.unstable_NormalPriority,ze=n.unstable_LowPriority,Le=n.unstable_IdlePriority,Mt=n.log,pn=n.unstable_setDisableYieldValue,kt=null,it=null;function bt(e){if(typeof Mt=="function"&&pn(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(kt,e)}catch{}}var Qe=Math.clz32?Math.clz32:Ka,En=Math.log,Qt=Math.LN2;function Ka(e){return e>>>=0,e===0?32:31-(En(e)/Qt|0)|0}var Il=256,Jl=262144,kl=4194304;function L(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function De(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var o=0,s=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~s,i!==0?o=L(i):(g&=v,g!==0?o=L(g):l||(l=v&~e,l!==0&&(o=L(l))))):(v=i&~s,v!==0?o=L(v):g!==0?o=L(g):l||(l=i&~e,l!==0&&(o=L(l)))),o===0?0:t!==0&&t!==o&&(t&s)===0&&(s=o&-o,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:o}function J(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function le(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function he(){var e=kl;return kl<<=1,(kl&62914560)===0&&(kl=4194304),e}function xe(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tl(e,t,l,i,o,s){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,N=e.hiddenUpdates;for(l=g&~l;0<l;){var V=31-Qe(l),Z=1<<V;v[V]=0,T[V]=-1;var j=N[V];if(j!==null)for(N[V]=null,V=0;V<j.length;V++){var U=j[V];U!==null&&(U.lane&=-536870913)}l&=~Z}i!==0&&Ia(e,i,0),s!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=s&~(g&~t))}function Ia(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Qe(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Gc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Qe(l),o=1<<i;o&t|e[i]&t&&(e[i]|=t),l&=~o}}function Xc(e,t){var l=t&-t;return l=(l&42)!==0?1:kr(l),(l&(e.suspendedLanes|t))!==0?0:l}function kr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Tr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qc(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Zc(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Jn=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Jn,jt="__reactProps$"+Jn,Fl="__reactContainer$"+Jn,Ar="__reactEvents$"+Jn,$g="__reactListeners$"+Jn,Wg="__reactHandles$"+Jn,Kc="__reactResources$"+Jn,Gi="__reactMarker$"+Jn;function Cr(e){delete e[Tt],delete e[jt],delete e[Ar],delete e[$g],delete e[Wg]}function $l(e){var t=e[Tt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Fl]||l[Tt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=pm(e);e!==null;){if(l=e[Tt])return l;e=pm(e)}return t}e=l,l=e.parentNode}return null}function Wl(e){if(e=e[Tt]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Pl(e){var t=e[Kc];return t||(t=e[Kc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vt(e){e[Gi]=!0}var Ic=new Set,Jc={};function Al(e,t){ei(e,t),ei(e+"Capture",t)}function ei(e,t){for(Jc[e]=t,e=0;e<t.length;e++)Ic.add(t[e])}var Pg=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]*$"),Fc={},$c={};function ey(e){return xn.call($c,e)?!0:xn.call(Fc,e)?!1:Pg.test(e)?$c[e]=!0:(Fc[e]=!0,!1)}function Ja(e,t,l){if(ey(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Fa(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Dn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ty(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,s=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,s.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zr(e){if(!e._valueTracker){var t=Wc(e)?"checked":"value";e._valueTracker=ty(e,t,""+e[t])}}function Pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Wc(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function $a(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ny=/[\n"\\]/g;function ln(e){return e.replace(ny,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _r(e,t,l,i,o,s,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?wr(e,g,nn(t)):l!=null?wr(e,g,nn(l)):i!=null&&e.removeAttribute("value"),o==null&&s!=null&&(e.defaultChecked=!!s),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+nn(v):e.removeAttribute("name")}function ef(e,t,l,i,o,s,g,v){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){zr(e);return}l=l!=null?""+nn(l):"",t=t!=null?""+nn(t):l,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),zr(e)}function wr(e,t,l){t==="number"&&$a(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ti(e,t,l,i){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&i&&(e[l].defaultSelected=!0)}else{for(l=""+nn(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function tf(e,t,l){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+nn(l):""}function nf(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(r(92));if(P(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=nn(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),zr(e)}function ni(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ly=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 lf(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||ly.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function af(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&l[o]!==i&&lf(e,o,i)}else for(var s in t)t.hasOwnProperty(s)&&lf(e,s,t[s])}function Dr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iy=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"]]),ay=/^[\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 Wa(e){return ay.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function On(){}var Or=null;function Mr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var li=null,ii=null;function uf(e){var t=Wl(e);if(t&&(e=t.stateNode)){var l=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_r(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ln(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var o=i[jt]||null;if(!o)throw Error(r(90));_r(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Pc(i)}break e;case"textarea":tf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ti(e,!!l.multiple,t,!1)}}}var Nr=!1;function rf(e,t,l){if(Nr)return e(t,l);Nr=!0;try{var i=e(t);return i}finally{if(Nr=!1,(li!==null||ii!==null)&&(Hu(),li&&(t=li,e=ii,ii=li=null,uf(t),e)))for(t=0;t<e.length;t++)uf(e[t])}}function Qi(e,t){var l=e.stateNode;if(l===null)return null;var i=l[jt]||null;if(i===null)return null;l=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rr=!1;if(Mn)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Rr=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Rr=!1}var Fn=null,jr=null,Pa=null;function of(){if(Pa)return Pa;var e,t=jr,l=t.length,i,o="value"in Fn?Fn.value:Fn.textContent,s=o.length;for(e=0;e<l&&t[e]===o[e];e++);var g=l-e;for(i=1;i<=g&&t[l-i]===o[s-i];i++);return Pa=o.slice(e,1<i?1-i:void 0)}function eu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tu(){return!0}function sf(){return!1}function Bt(e){function t(l,i,o,s,g){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=s,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(s):s[v]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?tu:sf,this.isPropagationStopped=sf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nu=Bt(Cl),Ki=y({},Cl,{view:0,detail:0}),uy=Bt(Ki),Br,Lr,Ii,lu=y({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ii&&(Ii&&e.type==="mousemove"?(Br=e.screenX-Ii.screenX,Lr=e.screenY-Ii.screenY):Lr=Br=0,Ii=e),Br)},movementY:function(e){return"movementY"in e?e.movementY:Lr}}),cf=Bt(lu),ry=y({},lu,{dataTransfer:0}),oy=Bt(ry),sy=y({},Ki,{relatedTarget:0}),Ur=Bt(sy),cy=y({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),fy=Bt(cy),hy=y({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dy=Bt(hy),my=y({},Cl,{data:0}),ff=Bt(my),py={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gy={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"},yy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function by(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yy[e])?!!t[e]:!1}function Hr(){return by}var vy=y({},Ki,{key:function(e){if(e.key){var t=py[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hr,charCode:function(e){return e.type==="keypress"?eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sy=Bt(vy),xy=y({},lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hf=Bt(xy),Ey=y({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hr}),ky=Bt(Ey),Ty=y({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ay=Bt(Ty),Cy=y({},lu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zy=Bt(Cy),_y=y({},Cl,{newState:0,oldState:0}),wy=Bt(_y),Dy=[9,13,27,32],qr=Mn&&"CompositionEvent"in window,Ji=null;Mn&&"documentMode"in document&&(Ji=document.documentMode);var Oy=Mn&&"TextEvent"in window&&!Ji,df=Mn&&(!qr||Ji&&8<Ji&&11>=Ji),mf=" ",pf=!1;function gf(e,t){switch(e){case"keyup":return Dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function My(e,t){switch(e){case"compositionend":return yf(t);case"keypress":return t.which!==32?null:(pf=!0,mf);case"textInput":return e=t.data,e===mf&&pf?null:e;default:return null}}function Ny(e,t){if(ai)return e==="compositionend"||!qr&&gf(e,t)?(e=of(),Pa=jr=Fn=null,ai=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return df&&t.locale!=="ko"?null:t.data;default:return null}}var Ry={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 bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ry[e.type]:t==="textarea"}function vf(e,t,l,i){li?ii?ii.push(i):ii=[i]:li=i,t=Zu(t,"onChange"),0<t.length&&(l=new nu("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var Fi=null,$i=null;function jy(e){tm(e,0)}function iu(e){var t=Xi(e);if(Pc(t))return e}function Sf(e,t){if(e==="change")return t}var xf=!1;if(Mn){var Yr;if(Mn){var Vr="oninput"in document;if(!Vr){var Ef=document.createElement("div");Ef.setAttribute("oninput","return;"),Vr=typeof Ef.oninput=="function"}Yr=Vr}else Yr=!1;xf=Yr&&(!document.documentMode||9<document.documentMode)}function kf(){Fi&&(Fi.detachEvent("onpropertychange",Tf),$i=Fi=null)}function Tf(e){if(e.propertyName==="value"&&iu($i)){var t=[];vf(t,$i,e,Mr(e)),rf(jy,t)}}function By(e,t,l){e==="focusin"?(kf(),Fi=t,$i=l,Fi.attachEvent("onpropertychange",Tf)):e==="focusout"&&kf()}function Ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu($i)}function Uy(e,t){if(e==="click")return iu(t)}function Hy(e,t){if(e==="input"||e==="change")return iu(t)}function qy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:qy;function Wi(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!xn.call(t,o)||!Zt(e[o],t[o]))return!1}return!0}function Af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cf(e,t){var l=Af(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Af(l)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$a(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=$a(e.document)}return t}function Gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yy=Mn&&"documentMode"in document&&11>=document.documentMode,ui=null,Xr=null,Pi=null,Qr=!1;function wf(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qr||ui==null||ui!==$a(i)||(i=ui,"selectionStart"in i&&Gr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Pi&&Wi(Pi,i)||(Pi=i,i=Zu(Xr,"onSelect"),0<i.length&&(t=new nu("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=ui)))}function zl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ri={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionrun:zl("Transition","TransitionRun"),transitionstart:zl("Transition","TransitionStart"),transitioncancel:zl("Transition","TransitionCancel"),transitionend:zl("Transition","TransitionEnd")},Zr={},Df={};Mn&&(Df=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function _l(e){if(Zr[e])return Zr[e];if(!ri[e])return e;var t=ri[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Df)return Zr[e]=t[l];return e}var Of=_l("animationend"),Mf=_l("animationiteration"),Nf=_l("animationstart"),Vy=_l("transitionrun"),Gy=_l("transitionstart"),Xy=_l("transitioncancel"),Rf=_l("transitionend"),jf=new Map,Kr="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(" ");Kr.push("scrollEnd");function gn(e,t){jf.set(e,t),Al(t,[e])}var au=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],oi=0,Ir=0;function uu(){for(var e=oi,t=Ir=oi=0;t<e;){var l=an[t];an[t++]=null;var i=an[t];an[t++]=null;var o=an[t];an[t++]=null;var s=an[t];if(an[t++]=null,i!==null&&o!==null){var g=i.pending;g===null?o.next=o:(o.next=g.next,g.next=o),i.pending=o}s!==0&&Bf(l,o,s)}}function ru(e,t,l,i){an[oi++]=e,an[oi++]=t,an[oi++]=l,an[oi++]=i,Ir|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Jr(e,t,l,i){return ru(e,t,l,i),ou(e)}function wl(e,t){return ru(e,null,null,t),ou(e)}function Bf(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var o=!1,s=e.return;s!==null;)s.childLanes|=l,i=s.alternate,i!==null&&(i.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(o=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,o&&t!==null&&(o=31-Qe(l),e=s.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=l|536870912),s):null}function ou(e){if(50<xa)throw xa=0,as=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function Qy(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,l,i){return new Qy(e,t,l,i)}function Fr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var l=e.alternate;return l===null?(l=Kt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Lf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function su(e,t,l,i,o,s){var g=0;if(i=e,typeof e=="function")Fr(e)&&(g=1);else if(typeof e=="string")g=F1(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=Kt(31,l,t,o),e.elementType=ve,e.lanes=s,e;case H:return Dl(l.children,o,s,t);case G:g=8,o|=24;break;case O:return e=Kt(12,l,t,o|2),e.elementType=O,e.lanes=s,e;case F:return e=Kt(13,l,t,o),e.elementType=F,e.lanes=s,e;case D:return e=Kt(19,l,t,o),e.elementType=D,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:g=10;break e;case K:g=9;break e;case oe:g=11;break e;case te:g=14;break e;case me:g=16,i=null;break e}g=29,l=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=Kt(g,l,t,o),t.elementType=e,t.type=i,t.lanes=s,t}function Dl(e,t,l,i){return e=Kt(7,e,i,t),e.lanes=l,e}function $r(e,t,l){return e=Kt(6,e,null,t),e.lanes=l,e}function Uf(e){var t=Kt(18,null,null,0);return t.stateNode=e,t}function Wr(e,t,l){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hf=new WeakMap;function un(e,t){if(typeof e=="object"&&e!==null){var l=Hf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Zl(t)},Hf.set(e,t),t)}return{value:e,source:t,stack:Zl(t)}}var ci=[],fi=0,cu=null,ea=0,rn=[],on=0,$n=null,kn=1,Tn="";function Rn(e,t){ci[fi++]=ea,ci[fi++]=cu,cu=e,ea=t}function qf(e,t,l){rn[on++]=kn,rn[on++]=Tn,rn[on++]=$n,$n=e;var i=kn;e=Tn;var o=32-Qe(i)-1;i&=~(1<<o),l+=1;var s=32-Qe(t)+o;if(30<s){var g=o-o%5;s=(i&(1<<g)-1).toString(32),i>>=g,o-=g,kn=1<<32-Qe(t)+o|l<<o|i,Tn=s+e}else kn=1<<s|l<<o|i,Tn=e}function Pr(e){e.return!==null&&(Rn(e,1),qf(e,1,0))}function eo(e){for(;e===cu;)cu=ci[--fi],ci[fi]=null,ea=ci[--fi],ci[fi]=null;for(;e===$n;)$n=rn[--on],rn[on]=null,Tn=rn[--on],rn[on]=null,kn=rn[--on],rn[on]=null}function Yf(e,t){rn[on++]=kn,rn[on++]=Tn,rn[on++]=$n,kn=t.id,Tn=t.overflow,$n=e}var At=null,et=null,Be=!1,Wn=null,sn=!1,to=Error(r(519));function Pn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ta(un(t,e)),to}function Vf(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[Tt]=e,t[jt]=i,l){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(l=0;l<ka.length;l++)Me(ka[l],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),ef(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),nf(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||am(t.textContent,l)?(i.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),i.onScroll!=null&&Me("scroll",t),i.onScrollEnd!=null&&Me("scrollend",t),i.onClick!=null&&(t.onclick=On),t=!0):t=!1,t||Pn(e,!0)}function Gf(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:At=At.return}}function hi(e){if(e!==At)return!1;if(!Be)return Gf(e),Be=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ss(e.type,e.memoizedProps)),l=!l),l&&et&&Pn(e),Gf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));et=mm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));et=mm(e)}else t===27?(t=et,dl(e.type)?(e=As,As=null,et=e):et=t):et=At?fn(e.stateNode.nextSibling):null;return!0}function Ol(){et=At=null,Be=!1}function no(){var e=Wn;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),Wn=null),e}function ta(e){Wn===null?Wn=[e]:Wn.push(e)}var lo=A(null),Ml=null,jn=null;function el(e,t,l){E(lo,t._currentValue),t._currentValue=l}function Bn(e){e._currentValue=lo.current,q(lo)}function io(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function ao(e,t,l,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){var g=o.child;s=s.firstContext;e:for(;s!==null;){var v=s;s=o;for(var T=0;T<t.length;T++)if(v.context===t[T]){s.lanes|=l,v=s.alternate,v!==null&&(v.lanes|=l),io(s.return,l,e),i||(g=null);break e}s=v.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=l,s=g.alternate,s!==null&&(s.lanes|=l),io(g,l,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function di(e,t,l,i){e=null;for(var o=t,s=!1;o!==null;){if(!s){if((o.flags&524288)!==0)s=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var v=o.type;Zt(o.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(o===we.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(_a):e=[_a])}o=o.return}e!==null&&ao(t,e,l,i),t.flags|=262144}function fu(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Nl(e){Ml=e,jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return Xf(Ml,e)}function hu(e,t){return Ml===null&&Nl(e),Xf(e,t)}function Xf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},jn===null){if(e===null)throw Error(r(308));jn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else jn=jn.next=t;return l}var Zy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ky=n.unstable_scheduleCallback,Iy=n.unstable_NormalPriority,ft={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uo(){return{controller:new Zy,data:new Map,refCount:0}}function na(e){e.refCount--,e.refCount===0&&Ky(Iy,function(){e.controller.abort()})}var la=null,ro=0,mi=0,pi=null;function Jy(e,t){if(la===null){var l=la=[];ro=0,mi=fs(),pi={status:"pending",value:void 0,then:function(i){l.push(i)}}}return ro++,t.then(Qf,Qf),t}function Qf(){if(--ro===0&&la!==null){pi!==null&&(pi.status="fulfilled");var e=la;la=null,mi=0,pi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fy(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var Zf=R.S;R.S=function(e,t){wd=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Jy(e,t),Zf!==null&&Zf(e,t)};var Rl=A(null);function oo(){var e=Rl.current;return e!==null?e:$e.pooledCache}function du(e,t){t===null?E(Rl,Rl.current):E(Rl,t.pool)}function Kf(){var e=oo();return e===null?null:{parent:ft._currentValue,pool:e}}var gi=Error(r(460)),so=Error(r(474)),mu=Error(r(542)),pu={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(On,On),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$f(e),e;default:if(typeof t.status=="string")t.then(On,On);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$f(e),e}throw Bl=t,gi}}function jl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Bl=l,gi):l}}var Bl=null;function Ff(){if(Bl===null)throw Error(r(459));var e=Bl;return Bl=null,e}function $f(e){if(e===gi||e===mu)throw Error(r(483))}var yi=null,ia=0;function gu(e){var t=ia;return ia+=1,yi===null&&(yi=[]),Jf(yi,e,t)}function aa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yu(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wf(e){function t(w,C){if(e){var M=w.deletions;M===null?(w.deletions=[C],w.flags|=16):M.push(C)}}function l(w,C){if(!e)return null;for(;C!==null;)t(w,C),C=C.sibling;return null}function i(w){for(var C=new Map;w!==null;)w.key!==null?C.set(w.key,w):C.set(w.index,w),w=w.sibling;return C}function o(w,C){return w=Nn(w,C),w.index=0,w.sibling=null,w}function s(w,C,M){return w.index=M,e?(M=w.alternate,M!==null?(M=M.index,M<C?(w.flags|=67108866,C):M):(w.flags|=67108866,C)):(w.flags|=1048576,C)}function g(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function v(w,C,M,X){return C===null||C.tag!==6?(C=$r(M,w.mode,X),C.return=w,C):(C=o(C,M),C.return=w,C)}function T(w,C,M,X){var de=M.type;return de===H?V(w,C,M.props.children,X,M.key):C!==null&&(C.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===me&&jl(de)===C.type)?(C=o(C,M.props),aa(C,M),C.return=w,C):(C=su(M.type,M.key,M.props,null,w.mode,X),aa(C,M),C.return=w,C)}function N(w,C,M,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=Wr(M,w.mode,X),C.return=w,C):(C=o(C,M.children||[]),C.return=w,C)}function V(w,C,M,X,de){return C===null||C.tag!==7?(C=Dl(M,w.mode,X,de),C.return=w,C):(C=o(C,M),C.return=w,C)}function Z(w,C,M){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=$r(""+C,w.mode,M),C.return=w,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return M=su(C.type,C.key,C.props,null,w.mode,M),aa(M,C),M.return=w,M;case _:return C=Wr(C,w.mode,M),C.return=w,C;case me:return C=jl(C),Z(w,C,M)}if(P(C)||ne(C))return C=Dl(C,w.mode,M,null),C.return=w,C;if(typeof C.then=="function")return Z(w,gu(C),M);if(C.$$typeof===Q)return Z(w,hu(w,C),M);yu(w,C)}return null}function j(w,C,M,X){var de=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return de!==null?null:v(w,C,""+M,X);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return M.key===de?T(w,C,M,X):null;case _:return M.key===de?N(w,C,M,X):null;case me:return M=jl(M),j(w,C,M,X)}if(P(M)||ne(M))return de!==null?null:V(w,C,M,X,null);if(typeof M.then=="function")return j(w,C,gu(M),X);if(M.$$typeof===Q)return j(w,C,hu(w,M),X);yu(w,M)}return null}function U(w,C,M,X,de){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return w=w.get(M)||null,v(C,w,""+X,de);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case S:return w=w.get(X.key===null?M:X.key)||null,T(C,w,X,de);case _:return w=w.get(X.key===null?M:X.key)||null,N(C,w,X,de);case me:return X=jl(X),U(w,C,M,X,de)}if(P(X)||ne(X))return w=w.get(M)||null,V(C,w,X,de,null);if(typeof X.then=="function")return U(w,C,M,gu(X),de);if(X.$$typeof===Q)return U(w,C,M,hu(C,X),de);yu(C,X)}return null}function re(w,C,M,X){for(var de=null,Ye=null,se=C,Ae=C=0,je=null;se!==null&&Ae<M.length;Ae++){se.index>Ae?(je=se,se=null):je=se.sibling;var Ve=j(w,se,M[Ae],X);if(Ve===null){se===null&&(se=je);break}e&&se&&Ve.alternate===null&&t(w,se),C=s(Ve,C,Ae),Ye===null?de=Ve:Ye.sibling=Ve,Ye=Ve,se=je}if(Ae===M.length)return l(w,se),Be&&Rn(w,Ae),de;if(se===null){for(;Ae<M.length;Ae++)se=Z(w,M[Ae],X),se!==null&&(C=s(se,C,Ae),Ye===null?de=se:Ye.sibling=se,Ye=se);return Be&&Rn(w,Ae),de}for(se=i(se);Ae<M.length;Ae++)je=U(se,w,Ae,M[Ae],X),je!==null&&(e&&je.alternate!==null&&se.delete(je.key===null?Ae:je.key),C=s(je,C,Ae),Ye===null?de=je:Ye.sibling=je,Ye=je);return e&&se.forEach(function(bl){return t(w,bl)}),Be&&Rn(w,Ae),de}function be(w,C,M,X){if(M==null)throw Error(r(151));for(var de=null,Ye=null,se=C,Ae=C=0,je=null,Ve=M.next();se!==null&&!Ve.done;Ae++,Ve=M.next()){se.index>Ae?(je=se,se=null):je=se.sibling;var bl=j(w,se,Ve.value,X);if(bl===null){se===null&&(se=je);break}e&&se&&bl.alternate===null&&t(w,se),C=s(bl,C,Ae),Ye===null?de=bl:Ye.sibling=bl,Ye=bl,se=je}if(Ve.done)return l(w,se),Be&&Rn(w,Ae),de;if(se===null){for(;!Ve.done;Ae++,Ve=M.next())Ve=Z(w,Ve.value,X),Ve!==null&&(C=s(Ve,C,Ae),Ye===null?de=Ve:Ye.sibling=Ve,Ye=Ve);return Be&&Rn(w,Ae),de}for(se=i(se);!Ve.done;Ae++,Ve=M.next())Ve=U(se,w,Ae,Ve.value,X),Ve!==null&&(e&&Ve.alternate!==null&&se.delete(Ve.key===null?Ae:Ve.key),C=s(Ve,C,Ae),Ye===null?de=Ve:Ye.sibling=Ve,Ye=Ve);return e&&se.forEach(function(r0){return t(w,r0)}),Be&&Rn(w,Ae),de}function Fe(w,C,M,X){if(typeof M=="object"&&M!==null&&M.type===H&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case S:e:{for(var de=M.key;C!==null;){if(C.key===de){if(de=M.type,de===H){if(C.tag===7){l(w,C.sibling),X=o(C,M.props.children),X.return=w,w=X;break e}}else if(C.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===me&&jl(de)===C.type){l(w,C.sibling),X=o(C,M.props),aa(X,M),X.return=w,w=X;break e}l(w,C);break}else t(w,C);C=C.sibling}M.type===H?(X=Dl(M.props.children,w.mode,X,M.key),X.return=w,w=X):(X=su(M.type,M.key,M.props,null,w.mode,X),aa(X,M),X.return=w,w=X)}return g(w);case _:e:{for(de=M.key;C!==null;){if(C.key===de)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){l(w,C.sibling),X=o(C,M.children||[]),X.return=w,w=X;break e}else{l(w,C);break}else t(w,C);C=C.sibling}X=Wr(M,w.mode,X),X.return=w,w=X}return g(w);case me:return M=jl(M),Fe(w,C,M,X)}if(P(M))return re(w,C,M,X);if(ne(M)){if(de=ne(M),typeof de!="function")throw Error(r(150));return M=de.call(M),be(w,C,M,X)}if(typeof M.then=="function")return Fe(w,C,gu(M),X);if(M.$$typeof===Q)return Fe(w,C,hu(w,M),X);yu(w,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,C!==null&&C.tag===6?(l(w,C.sibling),X=o(C,M),X.return=w,w=X):(l(w,C),X=$r(M,w.mode,X),X.return=w,w=X),g(w)):l(w,C)}return function(w,C,M,X){try{ia=0;var de=Fe(w,C,M,X);return yi=null,de}catch(se){if(se===gi||se===mu)throw se;var Ye=Kt(29,se,null,w.mode);return Ye.lanes=X,Ye.return=w,Ye}finally{}}}var Ll=Wf(!0),Pf=Wf(!1),tl=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=ou(e),Bf(e,null,l),t}return ru(e,i,t,l),ou(e)}function ua(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Gc(e,l)}}function ho(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?o=s=g:s=s.next=g,l=l.next}while(l!==null);s===null?o=s=t:s=s.next=t}else o=s=t;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var mo=!1;function ra(){if(mo){var e=pi;if(e!==null)throw e}}function oa(e,t,l,i){mo=!1;var o=e.updateQueue;tl=!1;var s=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,N=T.next;T.next=null,g===null?s=N:g.next=N,g=T;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==g&&(v===null?V.firstBaseUpdate=N:v.next=N,V.lastBaseUpdate=T))}if(s!==null){var Z=o.baseState;g=0,V=N=T=null,v=s;do{var j=v.lane&-536870913,U=j!==v.lane;if(U?(Re&j)===j:(i&j)===j){j!==0&&j===mi&&(mo=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,be=v;j=t;var Fe=l;switch(be.tag){case 1:if(re=be.payload,typeof re=="function"){Z=re.call(Fe,Z,j);break e}Z=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=be.payload,j=typeof re=="function"?re.call(Fe,Z,j):re,j==null)break e;Z=y({},Z,j);break e;case 2:tl=!0}}j=v.callback,j!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[j]:U.push(j))}else U={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(N=V=U,T=Z):V=V.next=U,g|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;U=v,v=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);V===null&&(T=Z),o.baseState=T,o.firstBaseUpdate=N,o.lastBaseUpdate=V,s===null&&(o.shared.lanes=0),ol|=g,e.lanes=g,e.memoizedState=Z}}function eh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function th(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)eh(l[e],t)}var bi=A(null),bu=A(0);function nh(e,t){e=Qn,E(bu,e),E(bi,t),Qn=e|t.baseLanes}function po(){E(bu,Qn),E(bi,bi.current)}function go(){Qn=bu.current,q(bi),q(bu)}var It=A(null),cn=null;function il(e){var t=e.alternate;E(ot,ot.current&1),E(It,e),cn===null&&(t===null||bi.current!==null||t.memoizedState!==null)&&(cn=e)}function yo(e){E(ot,ot.current),E(It,e),cn===null&&(cn=e)}function lh(e){e.tag===22?(E(ot,ot.current),E(It,e),cn===null&&(cn=e)):al()}function al(){E(ot,ot.current),E(It,It.current)}function Jt(e){q(It),cn===e&&(cn=null),q(ot)}var ot=A(0);function vu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ks(l)||Ts(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ln=0,Te=null,Ie=null,ht=null,Su=!1,vi=!1,Ul=!1,xu=0,sa=0,Si=null,$y=0;function ut(){throw Error(r(321))}function bo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Zt(e[l],t[l]))return!1;return!0}function vo(e,t,l,i,o,s){return Ln=s,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?qh:Ro,Ul=!1,s=l(i,o),Ul=!1,vi&&(s=ah(t,l,i,o)),ih(e),s}function ih(e){R.H=ha;var t=Ie!==null&&Ie.next!==null;if(Ln=0,ht=Ie=Te=null,Su=!1,sa=0,Si=null,t)throw Error(r(300));e===null||dt||(e=e.dependencies,e!==null&&fu(e)&&(dt=!0))}function ah(e,t,l,i){Te=e;var o=0;do{if(vi&&(Si=null),sa=0,vi=!1,25<=o)throw Error(r(301));if(o+=1,ht=Ie=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}R.H=Yh,s=t(l,i)}while(vi);return s}function Wy(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?ca(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(Te.flags|=1024),t}function So(){var e=xu!==0;return xu=0,e}function xo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Eo(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}Ln=0,ht=Ie=Te=null,vi=!1,sa=xu=0,Si=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?Te.memoizedState=ht=e:ht=ht.next=e,ht}function st(){if(Ie===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=ht===null?Te.memoizedState:ht.next;if(t!==null)ht=t,Ie=e;else{if(e===null)throw Te.alternate===null?Error(r(467)):Error(r(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},ht===null?Te.memoizedState=ht=e:ht=ht.next=e}return ht}function Eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ca(e){var t=sa;return sa+=1,Si===null&&(Si=[]),e=Jf(Si,e,t),t=Te,(ht===null?t.memoizedState:ht.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?qh:Ro),e}function ku(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ca(e);if(e.$$typeof===Q)return Ct(e)}throw Error(r(438,String(e)))}function ko(e){var t=null,l=Te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=Te.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Eu(),Te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=B;return t.index++,l}function Un(e,t){return typeof t=="function"?t(e):t}function Tu(e){var t=st();return To(t,Ie,e)}function To(e,t,l){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var o=e.baseQueue,s=i.pending;if(s!==null){if(o!==null){var g=o.next;o.next=s.next,s.next=g}t.baseQueue=o=s,i.pending=null}if(s=e.baseState,o===null)e.memoizedState=s;else{t=o.next;var v=g=null,T=null,N=t,V=!1;do{var Z=N.lane&-536870913;if(Z!==N.lane?(Re&Z)===Z:(Ln&Z)===Z){var j=N.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Z===mi&&(V=!0);else if((Ln&j)===j){N=N.next,j===mi&&(V=!0);continue}else Z={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(v=T=Z,g=s):T=T.next=Z,Te.lanes|=j,ol|=j;Z=N.action,Ul&&l(s,Z),s=N.hasEagerState?N.eagerState:l(s,Z)}else j={lane:Z,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(v=T=j,g=s):T=T.next=j,Te.lanes|=Z,ol|=Z;N=N.next}while(N!==null&&N!==t);if(T===null?g=s:T.next=v,!Zt(s,e.memoizedState)&&(dt=!0,V&&(l=pi,l!==null)))throw l;e.memoizedState=s,e.baseState=g,e.baseQueue=T,i.lastRenderedState=s}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ao(e){var t=st(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var i=l.dispatch,o=l.pending,s=t.memoizedState;if(o!==null){l.pending=null;var g=o=o.next;do s=e(s,g.action),g=g.next;while(g!==o);Zt(s,t.memoizedState)||(dt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,i]}function uh(e,t,l){var i=Te,o=st(),s=Be;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=t();var g=!Zt((Ie||o).memoizedState,l);if(g&&(o.memoizedState=l,dt=!0),o=o.queue,_o(sh.bind(null,i,o,e),[e]),o.getSnapshot!==t||g||ht!==null&&ht.memoizedState.tag&1){if(i.flags|=2048,xi(9,{destroy:void 0},oh.bind(null,i,o,l,t),null),$e===null)throw Error(r(349));s||(Ln&127)!==0||rh(i,t,l)}return l}function rh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Te.updateQueue,t===null?(t=Eu(),Te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function oh(e,t,l,i){t.value=l,t.getSnapshot=i,ch(t)&&fh(e)}function sh(e,t,l){return l(function(){ch(t)&&fh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Zt(e,l)}catch{return!0}}function fh(e){var t=wl(e,2);t!==null&&Yt(t,e,2)}function Co(e){var t=Nt();if(typeof e=="function"){var l=e;if(e=l(),Ul){bt(!0);try{l()}finally{bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:e},t}function hh(e,t,l,i){return e.baseState=l,To(e,Ie,typeof i=="function"?i:Un)}function Py(e,t,l,i,o){if(zu(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){s.listeners.push(g)}};R.T!==null?l(!0):s.isTransition=!1,i(s),l=t.pending,l===null?(s.next=t.pending=s,dh(t,s)):(s.next=l.next,t.pending=l.next=s)}}function dh(e,t){var l=t.action,i=t.payload,o=e.state;if(t.isTransition){var s=R.T,g={};R.T=g;try{var v=l(o,i),T=R.S;T!==null&&T(g,v),mh(e,t,v)}catch(N){zo(e,t,N)}finally{s!==null&&g.types!==null&&(s.types=g.types),R.T=s}}else try{s=l(o,i),mh(e,t,s)}catch(N){zo(e,t,N)}}function mh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){ph(e,t,i)},function(i){return zo(e,t,i)}):ph(e,t,l)}function ph(e,t,l){t.status="fulfilled",t.value=l,gh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,dh(e,l)))}function zo(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,gh(t),t=t.next;while(t!==i)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yh(e,t){return t}function bh(e,t){if(Be){var l=$e.formState;if(l!==null){e:{var i=Te;if(Be){if(et){t:{for(var o=et,s=sn;o.nodeType!==8;){if(!s){o=null;break t}if(o=fn(o.nextSibling),o===null){o=null;break t}}s=o.data,o=s==="F!"||s==="F"?o:null}if(o){et=fn(o.nextSibling),i=o.data==="F!";break e}}Pn(i)}i=!1}i&&(t=l[0])}}return l=Nt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:t},l.queue=i,l=Lh.bind(null,Te,i),i.dispatch=l,i=Co(!1),s=No.bind(null,Te,!1,i.queue),i=Nt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=Py.bind(null,Te,o,s,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function vh(e){var t=st();return Sh(t,Ie,e)}function Sh(e,t,l){if(t=To(e,t,yh)[0],e=Tu(Un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ca(t)}catch(g){throw g===gi?mu:g}else i=t;t=st();var o=t.queue,s=o.dispatch;return l!==t.memoizedState&&(Te.flags|=2048,xi(9,{destroy:void 0},e1.bind(null,o,l),null)),[i,s,e]}function e1(e,t){e.action=t}function xh(e){var t=st(),l=Ie;if(l!==null)return Sh(t,l,e);st(),t=t.memoizedState,l=st();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function xi(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=Te.updateQueue,t===null&&(t=Eu(),Te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function Eh(){return st().memoizedState}function Au(e,t,l,i){var o=Nt();Te.flags|=e,o.memoizedState=xi(1|t,{destroy:void 0},l,i===void 0?null:i)}function Cu(e,t,l,i){var o=st();i=i===void 0?null:i;var s=o.memoizedState.inst;Ie!==null&&i!==null&&bo(i,Ie.memoizedState.deps)?o.memoizedState=xi(t,s,l,i):(Te.flags|=e,o.memoizedState=xi(1|t,s,l,i))}function kh(e,t){Au(8390656,8,e,t)}function _o(e,t){Cu(2048,8,e,t)}function t1(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=Eu(),Te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Th(e){var t=st().memoizedState;return t1({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Ah(e,t){return Cu(4,2,e,t)}function Ch(e,t){return Cu(4,4,e,t)}function zh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _h(e,t,l){l=l!=null?l.concat([e]):null,Cu(4,4,zh.bind(null,t,e),l)}function wo(){}function wh(e,t){var l=st();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&bo(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Dh(e,t){var l=st();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&bo(t,i[1]))return i[0];if(i=e(),Ul){bt(!0);try{e()}finally{bt(!1)}}return l.memoizedState=[i,t],i}function Do(e,t,l){return l===void 0||(Ln&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Od(),Te.lanes|=e,ol|=e,l)}function Oh(e,t,l,i){return Zt(l,t)?l:bi.current!==null?(e=Do(e,l,i),Zt(e,t)||(dt=!0),e):(Ln&42)===0||(Ln&1073741824)!==0&&(Re&261930)===0?(dt=!0,e.memoizedState=l):(e=Od(),Te.lanes|=e,ol|=e,t)}function Mh(e,t,l,i,o){var s=I.p;I.p=s!==0&&8>s?s:8;var g=R.T,v={};R.T=v,No(e,!1,t,l);try{var T=o(),N=R.S;if(N!==null&&N(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var V=Fy(T,i);fa(e,t,V,Wt(e))}else fa(e,t,i,Wt(e))}catch(Z){fa(e,t,{then:function(){},status:"rejected",reason:Z},Wt())}finally{I.p=s,g!==null&&v.types!==null&&(g.types=v.types),R.T=g}}function n1(){}function Oo(e,t,l,i){if(e.tag!==5)throw Error(r(476));var o=Nh(e).queue;Mh(e,o,t,ae,l===null?n1:function(){return Rh(e),l(i)})}function Nh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rh(e){var t=Nh(e);t.next===null&&(t=e.alternate.memoizedState),fa(e,t.next.queue,{},Wt())}function Mo(){return Ct(_a)}function jh(){return st().memoizedState}function Bh(){return st().memoizedState}function l1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Wt();e=nl(l);var i=ll(t,e,l);i!==null&&(Yt(i,t,l),ua(i,t,l)),t={cache:uo()},e.payload=t;return}t=t.return}}function i1(e,t,l){var i=Wt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},zu(e)?Uh(t,l):(l=Jr(e,t,l,i),l!==null&&(Yt(l,e,i),Hh(l,t,i)))}function Lh(e,t,l){var i=Wt();fa(e,t,l,i)}function fa(e,t,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(zu(e))Uh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var g=t.lastRenderedState,v=s(g,l);if(o.hasEagerState=!0,o.eagerState=v,Zt(v,g))return ru(e,t,o,0),$e===null&&uu(),!1}catch{}finally{}if(l=Jr(e,t,o,i),l!==null)return Yt(l,e,i),Hh(l,t,i),!0}return!1}function No(e,t,l,i){if(i={lane:2,revertLane:fs(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},zu(e)){if(t)throw Error(r(479))}else t=Jr(e,l,i,2),t!==null&&Yt(t,e,2)}function zu(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Uh(e,t){vi=Su=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Hh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Gc(e,l)}}var ha={readContext:Ct,use:ku,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};ha.useEffectEvent=ut;var qh={readContext:Ct,use:ku,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:kh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Au(4194308,4,zh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){Au(4,2,e,t)},useMemo:function(e,t){var l=Nt();t=t===void 0?null:t;var i=e();if(Ul){bt(!0);try{e()}finally{bt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=Nt();if(l!==void 0){var o=l(t);if(Ul){bt(!0);try{l(t)}finally{bt(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=i1.bind(null,Te,e),[i.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Co(e);var t=e.queue,l=Lh.bind(null,Te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:wo,useDeferredValue:function(e,t){var l=Nt();return Do(l,e,t)},useTransition:function(){var e=Co(!1);return e=Mh.bind(null,Te,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=Te,o=Nt();if(Be){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),$e===null)throw Error(r(349));(Re&127)!==0||rh(i,t,l)}o.memoizedState=l;var s={value:l,getSnapshot:t};return o.queue=s,kh(sh.bind(null,i,s,e),[e]),i.flags|=2048,xi(9,{destroy:void 0},oh.bind(null,i,s,l,t),null),l},useId:function(){var e=Nt(),t=$e.identifierPrefix;if(Be){var l=Tn,i=kn;l=(i&~(1<<32-Qe(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=$y++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mo,useFormState:bh,useActionState:bh,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=No.bind(null,Te,!0,l),l.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return Nt().memoizedState=l1.bind(null,Te)},useEffectEvent:function(e){var t=Nt(),l={impl:e};return t.memoizedState=l,function(){if((Xe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Ro={readContext:Ct,use:ku,useCallback:wh,useContext:Ct,useEffect:_o,useImperativeHandle:_h,useInsertionEffect:Ah,useLayoutEffect:Ch,useMemo:Dh,useReducer:Tu,useRef:Eh,useState:function(){return Tu(Un)},useDebugValue:wo,useDeferredValue:function(e,t){var l=st();return Oh(l,Ie.memoizedState,e,t)},useTransition:function(){var e=Tu(Un)[0],t=st().memoizedState;return[typeof e=="boolean"?e:ca(e),t]},useSyncExternalStore:uh,useId:jh,useHostTransitionStatus:Mo,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var l=st();return hh(l,Ie,e,t)},useMemoCache:ko,useCacheRefresh:Bh};Ro.useEffectEvent=Th;var Yh={readContext:Ct,use:ku,useCallback:wh,useContext:Ct,useEffect:_o,useImperativeHandle:_h,useInsertionEffect:Ah,useLayoutEffect:Ch,useMemo:Dh,useReducer:Ao,useRef:Eh,useState:function(){return Ao(Un)},useDebugValue:wo,useDeferredValue:function(e,t){var l=st();return Ie===null?Do(l,e,t):Oh(l,Ie.memoizedState,e,t)},useTransition:function(){var e=Ao(Un)[0],t=st().memoizedState;return[typeof e=="boolean"?e:ca(e),t]},useSyncExternalStore:uh,useId:jh,useHostTransitionStatus:Mo,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var l=st();return Ie!==null?hh(l,Ie,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ko,useCacheRefresh:Bh};Yh.useEffectEvent=Th;function jo(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bo={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Wt(),o=nl(i);o.payload=t,l!=null&&(o.callback=l),t=ll(e,o,i),t!==null&&(Yt(t,e,i),ua(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Wt(),o=nl(i);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=ll(e,o,i),t!==null&&(Yt(t,e,i),ua(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Wt(),i=nl(l);i.tag=2,t!=null&&(i.callback=t),t=ll(e,i,l),t!==null&&(Yt(t,e,l),ua(t,e,l))}};function Vh(e,t,l,i,o,s,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,s,g):t.prototype&&t.prototype.isPureReactComponent?!Wi(l,i)||!Wi(o,s):!0}function Gh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&Bo.enqueueReplaceState(t,t.state,null)}function Hl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Xh(e){au(e)}function Qh(e){console.error(e)}function Zh(e){au(e)}function _u(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Kh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Lo(e,t,l){return l=nl(l),l.tag=3,l.payload={element:null},l.callback=function(){_u(e,t)},l}function Ih(e){return e=nl(e),e.tag=3,e}function Jh(e,t,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var s=i.value;e.payload=function(){return o(s)},e.callback=function(){Kh(t,l,i)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Kh(t,l,i),typeof o!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function a1(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&di(t,l,o,!0),l=It.current,l!==null){switch(l.tag){case 31:case 13:return cn===null?qu():l.alternate===null&&rt===0&&(rt=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===pu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),os(e,i,o)),!1;case 22:return l.flags|=65536,i===pu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),os(e,i,o)),!1}throw Error(r(435,l.tag))}return os(e,i,o),qu(),!1}if(Be)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==to&&(e=Error(r(422),{cause:i}),ta(un(e,l)))):(i!==to&&(t=Error(r(423),{cause:i}),ta(un(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=un(i,l),o=Lo(e.stateNode,i,o),ho(e,o),rt!==4&&(rt=2)),!1;var s=Error(r(520),{cause:i});if(s=un(s,l),Sa===null?Sa=[s]:Sa.push(s),rt!==4&&(rt=2),t===null)return!0;i=un(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Lo(l.stateNode,i,e),ho(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(sl===null||!sl.has(s))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Ih(o),Jh(o,e,l,i),ho(l,o),!1}l=l.return}while(l!==null);return!1}var Uo=Error(r(461)),dt=!1;function zt(e,t,l,i){t.child=e===null?Pf(t,null,l,i):Ll(t,e.child,l,i)}function Fh(e,t,l,i,o){l=l.render;var s=t.ref;if("ref"in i){var g={};for(var v in i)v!=="ref"&&(g[v]=i[v])}else g=i;return Nl(t),i=vo(e,t,l,g,s,o),v=So(),e!==null&&!dt?(xo(e,t,o),Hn(e,t,o)):(Be&&v&&Pr(t),t.flags|=1,zt(e,t,i,o),t.child)}function $h(e,t,l,i,o){if(e===null){var s=l.type;return typeof s=="function"&&!Fr(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,Wh(e,t,s,i,o)):(e=su(l.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Zo(e,o)){var g=s.memoizedProps;if(l=l.compare,l=l!==null?l:Wi,l(g,i)&&e.ref===t.ref)return Hn(e,t,o)}return t.flags|=1,e=Nn(s,i),e.ref=t.ref,e.return=t,t.child=e}function Wh(e,t,l,i,o){if(e!==null){var s=e.memoizedProps;if(Wi(s,i)&&e.ref===t.ref)if(dt=!1,t.pendingProps=i=s,Zo(e,o))(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,Hn(e,t,o)}return Ho(e,t,l,i,o)}function Ph(e,t,l,i){var o=i.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~s}else i=0,t.child=null;return ed(e,t,s,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&du(t,s!==null?s.cachePool:null),s!==null?nh(t,s):po(),lh(t);else return i=t.lanes=536870912,ed(e,t,s!==null?s.baseLanes|l:l,l,i)}else s!==null?(du(t,s.cachePool),nh(t,s),al(),t.memoizedState=null):(e!==null&&du(t,null),po(),al());return zt(e,t,o,l),t.child}function da(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ed(e,t,l,i,o){var s=oo();return s=s===null?null:{parent:ft._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&du(t,null),po(),lh(t),e!==null&&di(e,t,i,!0),t.childLanes=o,null}function wu(e,t){return t=Ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function td(e,t,l){return Ll(t,e.child,null,l),e=wu(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function u1(e,t,l){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Be){if(i.mode==="hidden")return e=wu(t,i),t.lanes=536870912,da(null,e);if(yo(t),(e=et)?(e=dm(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:kn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},l=Uf(e),l.return=t,t.child=l,At=t,et=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return wu(t,i)}var s=e.memoizedState;if(s!==null){var g=s.dehydrated;if(yo(t),o)if(t.flags&256)t.flags&=-257,t=td(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(dt||di(e,t,l,!1),o=(l&e.childLanes)!==0,dt||o){if(i=$e,i!==null&&(g=Xc(i,l),g!==0&&g!==s.retryLane))throw s.retryLane=g,wl(e,g),Yt(i,e,g),Uo;qu(),t=td(e,t,l)}else e=s.treeContext,et=fn(g.nextSibling),At=t,Be=!0,Wn=null,sn=!1,e!==null&&Yf(t,e),t=wu(t,i),t.flags|=4096;return t}return e=Nn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Du(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ho(e,t,l,i,o){return Nl(t),l=vo(e,t,l,i,void 0,o),i=So(),e!==null&&!dt?(xo(e,t,o),Hn(e,t,o)):(Be&&i&&Pr(t),t.flags|=1,zt(e,t,l,o),t.child)}function nd(e,t,l,i,o,s){return Nl(t),t.updateQueue=null,l=ah(t,i,l,o),ih(e),i=So(),e!==null&&!dt?(xo(e,t,s),Hn(e,t,s)):(Be&&i&&Pr(t),t.flags|=1,zt(e,t,l,s),t.child)}function ld(e,t,l,i,o){if(Nl(t),t.stateNode===null){var s=si,g=l.contextType;typeof g=="object"&&g!==null&&(s=Ct(g)),s=new l(i,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Bo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=i,s.state=t.memoizedState,s.refs={},co(t),g=l.contextType,s.context=typeof g=="object"&&g!==null?Ct(g):si,s.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(jo(t,l,g,i),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(g=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),g!==s.state&&Bo.enqueueReplaceState(s,s.state,null),oa(t,i,s,o),ra(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){s=t.stateNode;var v=t.memoizedProps,T=Hl(l,v);s.props=T;var N=s.context,V=l.contextType;g=si,typeof V=="object"&&V!==null&&(g=Ct(V));var Z=l.getDerivedStateFromProps;V=typeof Z=="function"||typeof s.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(v||N!==g)&&Gh(t,s,i,g),tl=!1;var j=t.memoizedState;s.state=j,oa(t,i,s,o),ra(),N=t.memoizedState,v||j!==N||tl?(typeof Z=="function"&&(jo(t,l,Z,i),N=t.memoizedState),(T=tl||Vh(t,l,T,i,j,N,g))?(V||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=N),s.props=i,s.state=N,s.context=g,i=T):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,fo(e,t),g=t.memoizedProps,V=Hl(l,g),s.props=V,Z=t.pendingProps,j=s.context,N=l.contextType,T=si,typeof N=="object"&&N!==null&&(T=Ct(N)),v=l.getDerivedStateFromProps,(N=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(g!==Z||j!==T)&&Gh(t,s,i,T),tl=!1,j=t.memoizedState,s.state=j,oa(t,i,s,o),ra();var U=t.memoizedState;g!==Z||j!==U||tl||e!==null&&e.dependencies!==null&&fu(e.dependencies)?(typeof v=="function"&&(jo(t,l,v,i),U=t.memoizedState),(V=tl||Vh(t,l,V,i,j,U,T)||e!==null&&e.dependencies!==null&&fu(e.dependencies))?(N||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,U,T),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,U,T)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=U),s.props=i,s.state=U,s.context=T,i=V):(typeof s.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),i=!1)}return s=i,Du(e,t),i=(t.flags&128)!==0,s||i?(s=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&i?(t.child=Ll(t,e.child,null,o),t.child=Ll(t,null,l,o)):zt(e,t,l,o),t.memoizedState=s.state,e=t.child):e=Hn(e,t,o),e}function id(e,t,l,i){return Ol(),t.flags|=256,zt(e,t,l,i),t.child}var qo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yo(e){return{baseLanes:e,cachePool:Kf()}}function Vo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=$t),e}function ad(e,t,l){var i=t.pendingProps,o=!1,s=(t.flags&128)!==0,g;if((g=s)||(g=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(o?il(t):al(),(e=et)?(e=dm(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:kn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},l=Uf(e),l.return=t,t.child=l,At=t,et=null)):e=null,e===null)throw Pn(t);return Ts(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(al(),o=t.mode,v=Ou({mode:"hidden",children:v},o),i=Dl(i,o,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=Yo(l),i.childLanes=Vo(e,g,l),t.memoizedState=qo,da(null,i)):(il(t),Go(t,v))}var T=e.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(s)t.flags&256?(il(t),t.flags&=-257,t=Xo(e,t,l)):t.memoizedState!==null?(al(),t.child=e.child,t.flags|=128,t=null):(al(),v=i.fallback,o=t.mode,i=Ou({mode:"visible",children:i.children},o),v=Dl(v,o,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ll(t,e.child,null,l),i=t.child,i.memoizedState=Yo(l),i.childLanes=Vo(e,g,l),t.memoizedState=qo,t=da(null,i));else if(il(t),Ts(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var N=g.dgst;g=N,i=Error(r(419)),i.stack="",i.digest=g,ta({value:i,source:null,stack:null}),t=Xo(e,t,l)}else if(dt||di(e,t,l,!1),g=(l&e.childLanes)!==0,dt||g){if(g=$e,g!==null&&(i=Xc(g,l),i!==0&&i!==T.retryLane))throw T.retryLane=i,wl(e,i),Yt(g,e,i),Uo;ks(v)||qu(),t=Xo(e,t,l)}else ks(v)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,et=fn(v.nextSibling),At=t,Be=!0,Wn=null,sn=!1,e!==null&&Yf(t,e),t=Go(t,i.children),t.flags|=4096);return t}return o?(al(),v=i.fallback,o=t.mode,T=e.child,N=T.sibling,i=Nn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,N!==null?v=Nn(N,v):(v=Dl(v,o,l,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,da(null,i),i=t.child,v=e.child.memoizedState,v===null?v=Yo(l):(o=v.cachePool,o!==null?(T=ft._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Kf(),v={baseLanes:v.baseLanes|l,cachePool:o}),i.memoizedState=v,i.childLanes=Vo(e,g,l),t.memoizedState=qo,da(e.child,i)):(il(t),l=e.child,e=l.sibling,l=Nn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Go(e,t){return t=Ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ou(e,t){return e=Kt(22,e,null,t),e.lanes=0,e}function Xo(e,t,l){return Ll(t,e.child,null,l),e=Go(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ud(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),io(e.return,t,l)}function Qo(e,t,l,i,o,s){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:s}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=l,g.tailMode=o,g.treeForkCount=s)}function rd(e,t,l){var i=t.pendingProps,o=i.revealOrder,s=i.tail;i=i.children;var g=ot.current,v=(g&2)!==0;if(v?(g=g&1|2,t.flags|=128):g&=1,E(ot,g),zt(e,t,i,l),i=Be?ea:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ud(e,l,t);else if(e.tag===19)ud(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&vu(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Qo(t,!1,o,l,s,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vu(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Qo(t,!0,l,null,s,i);break;case"together":Qo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Hn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(di(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Nn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Nn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Zo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fu(e)))}function r1(e,t,l){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),el(t,ft,e.memoizedState.cache),Ol();break;case 27:case 5:ct(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:el(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yo(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(il(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ad(e,t,l):(il(t),e=Hn(e,t,l),e!==null?e.sibling:null);il(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(di(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return rd(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),E(ot,ot.current),i)break;return null;case 22:return t.lanes=0,Ph(e,t,l,t.pendingProps);case 24:el(t,ft,e.memoizedState.cache)}return Hn(e,t,l)}function od(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!Zo(e,l)&&(t.flags&128)===0)return dt=!1,r1(e,t,l);dt=(e.flags&131072)!==0}else dt=!1,Be&&(t.flags&1048576)!==0&&qf(t,ea,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")Fr(e)?(i=Hl(e,i),t.tag=1,t=ld(null,t,e,i,l)):(t.tag=0,t=Ho(null,t,e,i,l));else{if(e!=null){var o=e.$$typeof;if(o===oe){t.tag=11,t=Fh(null,t,e,i,l);break e}else if(o===te){t.tag=14,t=$h(null,t,e,i,l);break e}}throw t=ue(e)||e,Error(r(306,t,""))}}return t;case 0:return Ho(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,o=Hl(i,t.pendingProps),ld(e,t,i,o,l);case 3:e:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var s=t.memoizedState;o=s.element,fo(e,t),oa(t,i,null,l);var g=t.memoizedState;if(i=g.cache,el(t,ft,i),i!==s.cache&&ao(t,[ft],l,!0),ra(),i=g.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=id(e,t,i,l);break e}else if(i!==o){o=un(Error(r(424)),t),ta(o),t=id(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=fn(e.firstChild),At=t,Be=!0,Wn=null,sn=!0,l=Pf(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ol(),i===o){t=Hn(e,t,l);break e}zt(e,t,i,l)}t=t.child}return t;case 26:return Du(e,t),e===null?(l=vm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Be||(l=t.type,e=t.pendingProps,i=Ku(fe.current).createElement(l),i[Tt]=t,i[jt]=e,_t(i,l,e),vt(i),t.stateNode=i):t.memoizedState=vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ct(t),e===null&&Be&&(i=t.stateNode=gm(t.type,t.pendingProps,fe.current),At=t,sn=!0,o=et,dl(t.type)?(As=o,et=fn(i.firstChild)):et=o),zt(e,t,t.pendingProps.children,l),Du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Be&&((o=i=et)&&(i=L1(i,t.type,t.pendingProps,sn),i!==null?(t.stateNode=i,At=t,et=fn(i.firstChild),sn=!1,o=!0):o=!1),o||Pn(t)),ct(t),o=t.type,s=t.pendingProps,g=e!==null?e.memoizedProps:null,i=s.children,Ss(o,s)?i=null:g!==null&&Ss(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=vo(e,t,Wy,null,null,l),_a._currentValue=o),Du(e,t),zt(e,t,i,l),t.child;case 6:return e===null&&Be&&((e=l=et)&&(l=U1(l,t.pendingProps,sn),l!==null?(t.stateNode=l,At=t,et=null,e=!0):e=!1),e||Pn(t)),null;case 13:return ad(e,t,l);case 4:return _e(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ll(t,null,i,l):zt(e,t,i,l),t.child;case 11:return Fh(e,t,t.type,t.pendingProps,l);case 7:return zt(e,t,t.pendingProps,l),t.child;case 8:return zt(e,t,t.pendingProps.children,l),t.child;case 12:return zt(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,el(t,t.type,i.value),zt(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Nl(t),o=Ct(o),i=i(o),t.flags|=1,zt(e,t,i,l),t.child;case 14:return $h(e,t,t.type,t.pendingProps,l);case 15:return Wh(e,t,t.type,t.pendingProps,l);case 19:return rd(e,t,l);case 31:return u1(e,t,l);case 22:return Ph(e,t,l,t.pendingProps);case 24:return Nl(t),i=Ct(ft),e===null?(o=oo(),o===null&&(o=$e,s=uo(),o.pooledCache=s,s.refCount++,s!==null&&(o.pooledCacheLanes|=l),o=s),t.memoizedState={parent:i,cache:o},co(t),el(t,ft,o)):((e.lanes&l)!==0&&(fo(e,t),oa(t,null,null,l),ra()),o=e.memoizedState,s=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),el(t,ft,i)):(i=s.cache,el(t,ft,i),i!==o.cache&&ao(t,[ft],l,!0))),zt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function qn(e){e.flags|=4}function Ko(e,t,l,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(jd())e.flags|=8192;else throw Bl=pu,so}else e.flags&=-16777217}function sd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tm(t))if(jd())e.flags|=8192;else throw Bl=pu,so}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?he():536870912,e.lanes|=t,Ai|=t)}function ma(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function o1(e,t,l){var i=t.pendingProps;switch(eo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Bn(ft),He(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(hi(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,no())),tt(t),null;case 26:var o=t.type,s=t.memoizedState;return e===null?(qn(t),s!==null?(tt(t),sd(t,s)):(tt(t),Ko(t,o,null,i,l))):s?s!==e.memoizedState?(qn(t),tt(t),sd(t,s)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&qn(t),tt(t),Ko(t,o,e,i,l)),null;case 27:if(xt(t),l=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&qn(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return tt(t),null}e=ee.current,hi(t)?Vf(t):(e=gm(o,i,l),t.stateNode=e,qn(t))}return tt(t),null;case 5:if(xt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&qn(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return tt(t),null}if(s=ee.current,hi(t))Vf(t);else{var g=Ku(fe.current);switch(s){case 1:s=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:s=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":s=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":s=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":s=g.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?s.multiple=!0:i.size&&(s.size=i.size);break;default:s=typeof i.is=="string"?g.createElement(o,{is:i.is}):g.createElement(o)}}s[Tt]=t,s[jt]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)s.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=s;e:switch(_t(s,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&qn(t)}}return tt(t),Ko(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&qn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,hi(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=At,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||am(e.nodeValue,l)),e||Pn(t,!0)}else e=Ku(e).createTextNode(i),e[Tt]=t,t.stateNode=e}return tt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=hi(t),l!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Tt]=t}else Ol(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else l=no(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return tt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=hi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Tt]=t}else Ol(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),o=!1}else o=no(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Mu(t,t.updateQueue),tt(t),null);case 4:return He(),e===null&&ps(t.stateNode.containerInfo),tt(t),null;case 10:return Bn(t.type),tt(t),null;case 19:if(q(ot),i=t.memoizedState,i===null)return tt(t),null;if(o=(t.flags&128)!==0,s=i.rendering,s===null)if(o)ma(i,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=vu(e),s!==null){for(t.flags|=128,ma(i,!1),e=s.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lf(l,e),l=l.sibling;return E(ot,ot.current&1|2),Be&&Rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Et()>Lu&&(t.flags|=128,o=!0,ma(i,!1),t.lanes=4194304)}else{if(!o)if(e=vu(s),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),ma(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Be)return tt(t),null}else 2*Et()-i.renderingStartTime>Lu&&l!==536870912&&(t.flags|=128,o=!0,ma(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(e=i.last,e!==null?e.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Et(),e.sibling=null,l=ot.current,E(ot,o?l&1|2:l&1),Be&&Rn(t,i.treeForkCount),e):(tt(t),null);case 22:case 23:return Jt(t),go(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),l=t.updateQueue,l!==null&&Mu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&q(Rl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Bn(ft),tt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function s1(e,t){switch(eo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(ft),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xt(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(r(340));Ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(ot),null;case 4:return He(),null;case 10:return Bn(t.type),null;case 22:case 23:return Jt(t),go(),e!==null&&q(Rl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bn(ft),null;case 25:return null;default:return null}}function cd(e,t){switch(eo(t),t.tag){case 3:Bn(ft),He();break;case 26:case 27:case 5:xt(t);break;case 4:He();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:q(ot);break;case 10:Bn(t.type);break;case 22:case 23:Jt(t),go(),e!==null&&q(Rl);break;case 24:Bn(ft)}}function pa(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){i=void 0;var s=l.create,g=l.inst;i=s(),g.destroy=i}l=l.next}while(l!==o)}}catch(v){Ke(t,t.return,v)}}function ul(e,t,l){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var s=o.next;i=s;do{if((i.tag&e)===e){var g=i.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=t;var T=l,N=v;try{N()}catch(V){Ke(o,T,V)}}}i=i.next}while(i!==s)}}catch(V){Ke(t,t.return,V)}}function fd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{th(t,l)}catch(i){Ke(e,e.return,i)}}}function hd(e,t,l){l.props=Hl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Ke(e,t,i)}}function ga(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(o){Ke(e,t,o)}}function An(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){Ke(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Ke(e,t,o)}else l.current=null}function dd(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){Ke(e,e.return,o)}}function Io(e,t,l){try{var i=e.stateNode;O1(i,e.type,l,t),i[jt]=t}catch(o){Ke(e,e.return,o)}}function md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dl(e.type)||e.tag===4}function Jo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||md(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fo(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=On));else if(i!==4&&(i===27&&dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fo(e,t,l),e=e.sibling;e!==null;)Fo(e,t,l),e=e.sibling}function Nu(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Nu(e,t,l),e=e.sibling;e!==null;)Nu(e,t,l),e=e.sibling}function pd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);_t(t,i,l),t[Tt]=e,t[jt]=l}catch(s){Ke(e,e.return,s)}}var Yn=!1,mt=!1,$o=!1,gd=typeof WeakSet=="function"?WeakSet:Set,St=null;function c1(e,t){if(e=e.containerInfo,bs=er,e=_f(e),Gr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var g=0,v=-1,T=-1,N=0,V=0,Z=e,j=null;t:for(;;){for(var U;Z!==l||o!==0&&Z.nodeType!==3||(v=g+o),Z!==s||i!==0&&Z.nodeType!==3||(T=g+i),Z.nodeType===3&&(g+=Z.nodeValue.length),(U=Z.firstChild)!==null;)j=Z,Z=U;for(;;){if(Z===e)break t;if(j===l&&++N===o&&(v=g),j===s&&++V===i&&(T=g),(U=Z.nextSibling)!==null)break;Z=j,j=Z.parentNode}Z=U}l=v===-1||T===-1?null:{start:v,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(vs={focusedElem:e,selectionRange:l},er=!1,St=t;St!==null;)if(t=St,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,St=e;else for(;St!==null;){switch(t=St,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,o=s.memoizedProps,s=s.memoizedState,i=l.stateNode;try{var re=Hl(l.type,o);e=i.getSnapshotBeforeUpdate(re,s),i.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ke(l,l.return,be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Es(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Es(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,St=e;break}St=t.return}}function yd(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Gn(e,l),i&4&&pa(5,l);break;case 1:if(Gn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){Ke(l,l.return,g)}else{var o=Hl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ke(l,l.return,g)}}i&64&&fd(l),i&512&&ga(l,l.return);break;case 3:if(Gn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{th(e,t)}catch(g){Ke(l,l.return,g)}}break;case 27:t===null&&i&4&&pd(l);case 26:case 5:Gn(e,l),t===null&&i&4&&dd(l),i&512&&ga(l,l.return);break;case 12:Gn(e,l);break;case 31:Gn(e,l),i&4&&Sd(e,l);break;case 13:Gn(e,l),i&4&&xd(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=v1.bind(null,l),H1(e,l))));break;case 22:if(i=l.memoizedState!==null||Yn,!i){t=t!==null&&t.memoizedState!==null||mt,o=Yn;var s=mt;Yn=i,(mt=t)&&!s?Xn(e,l,(l.subtreeFlags&8772)!==0):Gn(e,l),Yn=o,mt=s}break;case 30:break;default:Gn(e,l)}}function bd(e){var t=e.alternate;t!==null&&(e.alternate=null,bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nt=null,Lt=!1;function Vn(e,t,l){for(l=l.child;l!==null;)vd(e,t,l),l=l.sibling}function vd(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(kt,l)}catch{}switch(l.tag){case 26:mt||An(l,t),Vn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:mt||An(l,t);var i=nt,o=Lt;dl(l.type)&&(nt=l.stateNode,Lt=!1),Vn(e,t,l),Aa(l.stateNode),nt=i,Lt=o;break;case 5:mt||An(l,t);case 6:if(i=nt,o=Lt,nt=null,Vn(e,t,l),nt=i,Lt=o,nt!==null)if(Lt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(l.stateNode)}catch(s){Ke(l,t,s)}else try{nt.removeChild(l.stateNode)}catch(s){Ke(l,t,s)}break;case 18:nt!==null&&(Lt?(e=nt,fm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ni(e)):fm(nt,l.stateNode));break;case 4:i=nt,o=Lt,nt=l.stateNode.containerInfo,Lt=!0,Vn(e,t,l),nt=i,Lt=o;break;case 0:case 11:case 14:case 15:ul(2,l,t),mt||ul(4,l,t),Vn(e,t,l);break;case 1:mt||(An(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&hd(l,t,i)),Vn(e,t,l);break;case 21:Vn(e,t,l);break;case 22:mt=(i=mt)||l.memoizedState!==null,Vn(e,t,l),mt=i;break;default:Vn(e,t,l)}}function Sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ni(e)}catch(l){Ke(t,t.return,l)}}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ni(e)}catch(l){Ke(t,t.return,l)}}function f1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gd),t;default:throw Error(r(435,e.tag))}}function Ru(e,t){var l=f1(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=S1.bind(null,e,i);i.then(o,o)}})}function Ut(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],s=e,g=t,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(dl(v.type)){nt=v.stateNode,Lt=!1;break e}break;case 5:nt=v.stateNode,Lt=!1;break e;case 3:case 4:nt=v.stateNode.containerInfo,Lt=!0;break e}v=v.return}if(nt===null)throw Error(r(160));vd(s,g,o),nt=null,Lt=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ed(t,e),t=t.sibling}var yn=null;function Ed(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ut(t,e),Ht(e),i&4&&(ul(3,e,e.return),pa(3,e),ul(5,e,e.return));break;case 1:Ut(t,e),Ht(e),i&512&&(mt||l===null||An(l,l.return)),i&64&&Yn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=yn;if(Ut(t,e),Ht(e),i&512&&(mt||l===null||An(l,l.return)),i&4){var s=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":s=o.getElementsByTagName("title")[0],(!s||s[Gi]||s[Tt]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=o.createElement(i),o.head.insertBefore(s,o.querySelector("head > title"))),_t(s,i,l),s[Tt]=e,vt(s),i=s;break e;case"link":var g=Em("link","href",o).get(i+(l.href||""));if(g){for(var v=0;v<g.length;v++)if(s=g[v],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(v,1);break t}}s=o.createElement(i),_t(s,i,l),o.head.appendChild(s);break;case"meta":if(g=Em("meta","content",o).get(i+(l.content||""))){for(v=0;v<g.length;v++)if(s=g[v],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(v,1);break t}}s=o.createElement(i),_t(s,i,l),o.head.appendChild(s);break;default:throw Error(r(468,i))}s[Tt]=e,vt(s),i=s}e.stateNode=i}else km(o,e.type,e.stateNode);else e.stateNode=xm(o,i,e.memoizedProps);else s!==i?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,i===null?km(o,e.type,e.stateNode):xm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Io(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ut(t,e),Ht(e),i&512&&(mt||l===null||An(l,l.return)),l!==null&&i&4&&Io(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ut(t,e),Ht(e),i&512&&(mt||l===null||An(l,l.return)),e.flags&32){o=e.stateNode;try{ni(o,"")}catch(re){Ke(e,e.return,re)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Io(e,o,l!==null?l.memoizedProps:o)),i&1024&&($o=!0);break;case 6:if(Ut(t,e),Ht(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(re){Ke(e,e.return,re)}}break;case 3:if(Fu=null,o=yn,yn=Iu(t.containerInfo),Ut(t,e),yn=o,Ht(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Ni(t.containerInfo)}catch(re){Ke(e,e.return,re)}$o&&($o=!1,kd(e));break;case 4:i=yn,yn=Iu(e.stateNode.containerInfo),Ut(t,e),Ht(e),yn=i;break;case 12:Ut(t,e),Ht(e);break;case 31:Ut(t,e),Ht(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ru(e,i)));break;case 13:Ut(t,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bu=Et()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ru(e,i)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,N=Yn,V=mt;if(Yn=N||o,mt=V||T,Ut(t,e),mt=V,Yn=N,Ht(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||Yn||mt||ql(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(s=T.stateNode,o)g=s.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=T.stateNode;var Z=T.memoizedProps.style,j=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(re){Ke(T,T.return,re)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(re){Ke(T,T.return,re)}}}else if(t.tag===18){if(l===null){T=t;try{var U=T.stateNode;o?hm(U,!0):hm(T.stateNode,!1)}catch(re){Ke(T,T.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Ru(e,l))));break;case 19:Ut(t,e),Ht(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ru(e,i)));break;case 30:break;case 21:break;default:Ut(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(md(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var o=l.stateNode,s=Jo(e);Nu(e,s,o);break;case 5:var g=l.stateNode;l.flags&32&&(ni(g,""),l.flags&=-33);var v=Jo(e);Nu(e,v,g);break;case 3:case 4:var T=l.stateNode.containerInfo,N=Jo(e);Fo(e,N,T);break;default:throw Error(r(161))}}catch(V){Ke(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yd(e,t.alternate,t),t=t.sibling}function ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),ql(t);break;case 1:An(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&hd(t,t.return,l),ql(t);break;case 27:Aa(t.stateNode);case 26:case 5:An(t,t.return),ql(t);break;case 22:t.memoizedState===null&&ql(t);break;case 30:ql(t);break;default:ql(t)}e=e.sibling}}function Xn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,s=t,g=s.flags;switch(s.tag){case 0:case 11:case 15:Xn(o,s,l),pa(4,s);break;case 1:if(Xn(o,s,l),i=s,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Ke(i,i.return,N)}if(i=s,o=i.updateQueue,o!==null){var v=i.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)eh(T[o],v)}catch(N){Ke(i,i.return,N)}}l&&g&64&&fd(s),ga(s,s.return);break;case 27:pd(s);case 26:case 5:Xn(o,s,l),l&&i===null&&g&4&&dd(s),ga(s,s.return);break;case 12:Xn(o,s,l);break;case 31:Xn(o,s,l),l&&g&4&&Sd(o,s);break;case 13:Xn(o,s,l),l&&g&4&&xd(o,s);break;case 22:s.memoizedState===null&&Xn(o,s,l),ga(s,s.return);break;case 30:break;default:Xn(o,s,l)}t=t.sibling}}function Wo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&na(l))}function Po(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e))}function bn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Td(e,t,l,i),t=t.sibling}function Td(e,t,l,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:bn(e,t,l,i),o&2048&&pa(9,t);break;case 1:bn(e,t,l,i);break;case 3:bn(e,t,l,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e)));break;case 12:if(o&2048){bn(e,t,l,i),e=t.stateNode;try{var s=t.memoizedProps,g=s.id,v=s.onPostCommit;typeof v=="function"&&v(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ke(t,t.return,T)}}else bn(e,t,l,i);break;case 31:bn(e,t,l,i);break;case 13:bn(e,t,l,i);break;case 23:break;case 22:s=t.stateNode,g=t.alternate,t.memoizedState!==null?s._visibility&2?bn(e,t,l,i):ya(e,t):s._visibility&2?bn(e,t,l,i):(s._visibility|=2,Ei(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Wo(g,t);break;case 24:bn(e,t,l,i),o&2048&&Po(t.alternate,t);break;default:bn(e,t,l,i)}}function Ei(e,t,l,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,g=t,v=l,T=i,N=g.flags;switch(g.tag){case 0:case 11:case 15:Ei(s,g,v,T,o),pa(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?Ei(s,g,v,T,o):ya(s,g):(V._visibility|=2,Ei(s,g,v,T,o)),o&&N&2048&&Wo(g.alternate,g);break;case 24:Ei(s,g,v,T,o),o&&N&2048&&Po(g.alternate,g);break;default:Ei(s,g,v,T,o)}t=t.sibling}}function ya(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,o=i.flags;switch(i.tag){case 22:ya(l,i),o&2048&&Wo(i.alternate,i);break;case 24:ya(l,i),o&2048&&Po(i.alternate,i);break;default:ya(l,i)}t=t.sibling}}var ba=8192;function ki(e,t,l){if(e.subtreeFlags&ba)for(e=e.child;e!==null;)Ad(e,t,l),e=e.sibling}function Ad(e,t,l){switch(e.tag){case 26:ki(e,t,l),e.flags&ba&&e.memoizedState!==null&&$1(l,yn,e.memoizedState,e.memoizedProps);break;case 5:ki(e,t,l);break;case 3:case 4:var i=yn;yn=Iu(e.stateNode.containerInfo),ki(e,t,l),yn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ba,ba=16777216,ki(e,t,l),ba=i):ki(e,t,l));break;default:ki(e,t,l)}}function Cd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function va(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];St=i,_d(i,e)}Cd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zd(e),e=e.sibling}function zd(e){switch(e.tag){case 0:case 11:case 15:va(e),e.flags&2048&&ul(9,e,e.return);break;case 3:va(e);break;case 12:va(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ju(e)):va(e);break;default:va(e)}}function ju(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];St=i,_d(i,e)}Cd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ul(8,t,t.return),ju(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ju(t));break;default:ju(t)}e=e.sibling}}function _d(e,t){for(;St!==null;){var l=St;switch(l.tag){case 0:case 11:case 15:ul(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:na(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,St=i;else e:for(l=e;St!==null;){i=St;var o=i.sibling,s=i.return;if(bd(i),i===l){St=null;break e}if(o!==null){o.return=s,St=o;break e}St=s}}}var h1={getCacheForType:function(e){var t=Ct(ft),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ct(ft).controller.signal}},d1=typeof WeakMap=="function"?WeakMap:Map,Xe=0,$e=null,Oe=null,Re=0,Ze=0,Ft=null,rl=!1,Ti=!1,es=!1,Qn=0,rt=0,ol=0,Yl=0,ts=0,$t=0,Ai=0,Sa=null,qt=null,ns=!1,Bu=0,wd=0,Lu=1/0,Uu=null,sl=null,gt=0,cl=null,Ci=null,Zn=0,ls=0,is=null,Dd=null,xa=0,as=null;function Wt(){return(Xe&2)!==0&&Re!==0?Re&-Re:R.T!==null?fs():Qc()}function Od(){if($t===0)if((Re&536870912)===0||Be){var e=Jl;Jl<<=1,(Jl&3932160)===0&&(Jl=262144),$t=e}else $t=536870912;return e=It.current,e!==null&&(e.flags|=32),$t}function Yt(e,t,l){(e===$e&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(zi(e,0),fl(e,Re,$t,!1)),at(e,l),((Xe&2)===0||e!==$e)&&(e===$e&&((Xe&2)===0&&(Yl|=l),rt===4&&fl(e,Re,$t,!1)),Cn(e))}function Md(e,t,l){if((Xe&6)!==0)throw Error(r(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||J(e,t),o=i?g1(e,t):rs(e,t,!0),s=i;do{if(o===0){Ti&&!i&&fl(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!m1(l)){o=rs(e,t,!1),s=!1;continue}if(o===2){if(s=t,e.errorRecoveryDisabledLanes&s)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var v=e;o=Sa;var T=v.current.memoizedState.isDehydrated;if(T&&(zi(v,g).flags|=256),g=rs(v,g,!1),g!==2){if(es&&!T){v.errorRecoveryDisabledLanes|=s,Yl|=s,o=4;break e}s=qt,qt=o,s!==null&&(qt===null?qt=s:qt.push.apply(qt,s))}o=g}if(s=!1,o!==2)continue}}if(o===1){zi(e,0),fl(e,t,0,!0);break}e:{switch(i=e,s=o,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:fl(i,t,$t,!rl);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Bu+300-Et(),10<o)){if(fl(i,t,$t,!rl),De(i,0,!0)!==0)break e;Zn=t,i.timeoutHandle=sm(Nd.bind(null,i,l,qt,Uu,ns,t,$t,Yl,Ai,rl,s,"Throttled",-0,0),o);break e}Nd(i,l,qt,Uu,ns,t,$t,Yl,Ai,rl,s,null,-0,0)}}break}while(!0);Cn(e)}function Nd(e,t,l,i,o,s,g,v,T,N,V,Z,j,U){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:On},Ad(t,s,Z);var re=(s&62914560)===s?Bu-Et():(s&4194048)===s?wd-Et():0;if(re=W1(Z,re),re!==null){Zn=s,e.cancelPendingCommit=re(Yd.bind(null,e,t,s,l,i,o,g,v,T,V,Z,null,j,U)),fl(e,s,g,!N);return}}Yd(e,t,s,l,i,o,g,v,T)}function m1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],s=o.getSnapshot;o=o.value;try{if(!Zt(s(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t,l,i){t&=~ts,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var s=31-Qe(o),g=1<<s;i[s]=-1,o&=~g}l!==0&&Ia(e,l,t)}function Hu(){return(Xe&6)===0?(Ea(0),!1):!0}function us(){if(Oe!==null){if(Ze===0)var e=Oe.return;else e=Oe,jn=Ml=null,Eo(e),yi=null,ia=0,e=Oe;for(;e!==null;)cd(e.alternate,e),e=e.return;Oe=null}}function zi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,R1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Zn=0,us(),$e=e,Oe=l=Nn(e.current,null),Re=t,Ze=0,Ft=null,rl=!1,Ti=J(e,t),es=!1,Ai=$t=ts=Yl=ol=rt=0,qt=Sa=null,ns=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Qe(i),s=1<<o;t|=e[o],i&=~s}return Qn=t,uu(),l}function Rd(e,t){Te=null,R.H=ha,t===gi||t===mu?(t=Ff(),Ze=3):t===so?(t=Ff(),Ze=4):Ze=t===Uo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,Oe===null&&(rt=1,_u(e,un(t,e.current)))}function jd(){var e=It.current;return e===null?!0:(Re&4194048)===Re?cn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===cn:!1}function Bd(){var e=R.H;return R.H=ha,e===null?ha:e}function Ld(){var e=R.A;return R.A=h1,e}function qu(){rt=4,rl||(Re&4194048)!==Re&&It.current!==null||(Ti=!0),(ol&134217727)===0&&(Yl&134217727)===0||$e===null||fl($e,Re,$t,!1)}function rs(e,t,l){var i=Xe;Xe|=2;var o=Bd(),s=Ld();($e!==e||Re!==t)&&(Uu=null,zi(e,t)),t=!1;var g=rt;e:do try{if(Ze!==0&&Oe!==null){var v=Oe,T=Ft;switch(Ze){case 8:us(),g=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var N=Ze;if(Ze=0,Ft=null,_i(e,v,T,N),l&&Ti){g=0;break e}break;default:N=Ze,Ze=0,Ft=null,_i(e,v,T,N)}}p1(),g=rt;break}catch(V){Rd(e,V)}while(!0);return t&&e.shellSuspendCounter++,jn=Ml=null,Xe=i,R.H=o,R.A=s,Oe===null&&($e=null,Re=0,uu()),g}function p1(){for(;Oe!==null;)Ud(Oe)}function g1(e,t){var l=Xe;Xe|=2;var i=Bd(),o=Ld();$e!==e||Re!==t?(Uu=null,Lu=Et()+500,zi(e,t)):Ti=J(e,t);e:do try{if(Ze!==0&&Oe!==null){t=Oe;var s=Ft;t:switch(Ze){case 1:Ze=0,Ft=null,_i(e,t,s,1);break;case 2:case 9:if(If(s)){Ze=0,Ft=null,Hd(t);break}t=function(){Ze!==2&&Ze!==9||$e!==e||(Ze=7),Cn(e)},s.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:If(s)?(Ze=0,Ft=null,Hd(t)):(Ze=0,Ft=null,_i(e,t,s,7));break;case 5:var g=null;switch(Oe.tag){case 26:g=Oe.memoizedState;case 5:case 27:var v=Oe;if(g?Tm(g):v.stateNode.complete){Ze=0,Ft=null;var T=v.sibling;if(T!==null)Oe=T;else{var N=v.return;N!==null?(Oe=N,Yu(N)):Oe=null}break t}}Ze=0,Ft=null,_i(e,t,s,5);break;case 6:Ze=0,Ft=null,_i(e,t,s,6);break;case 8:us(),rt=6;break e;default:throw Error(r(462))}}y1();break}catch(V){Rd(e,V)}while(!0);return jn=Ml=null,R.H=i,R.A=o,Xe=l,Oe!==null?0:($e=null,Re=0,uu(),rt)}function y1(){for(;Oe!==null&&!Yi();)Ud(Oe)}function Ud(e){var t=od(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?Yu(e):Oe=t}function Hd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=nd(l,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=nd(l,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Eo(t);default:cd(l,t),t=Oe=Lf(t,Qn),t=od(l,t,Qn)}e.memoizedProps=e.pendingProps,t===null?Yu(e):Oe=t}function _i(e,t,l,i){jn=Ml=null,Eo(t),yi=null,ia=0;var o=t.return;try{if(a1(e,o,t,l,Re)){rt=1,_u(e,un(l,e.current)),Oe=null;return}}catch(s){if(o!==null)throw Oe=o,s;rt=1,_u(e,un(l,e.current)),Oe=null;return}t.flags&32768?(Be||i===1?e=!0:Ti||(Re&536870912)!==0?e=!1:(rl=e=!0,(i===2||i===9||i===3||i===6)&&(i=It.current,i!==null&&i.tag===13&&(i.flags|=16384))),qd(t,e)):Yu(t)}function Yu(e){var t=e;do{if((t.flags&32768)!==0){qd(t,rl);return}e=t.return;var l=o1(t.alternate,t,Qn);if(l!==null){Oe=l;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);rt===0&&(rt=5)}function qd(e,t){do{var l=s1(e.alternate,e);if(l!==null){l.flags&=32767,Oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=l}while(e!==null);rt=6,Oe=null}function Yd(e,t,l,i,o,s,g,v,T){e.cancelPendingCommit=null;do Vu();while(gt!==0);if((Xe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=Ir,Tl(e,l,s,g,v,T),e===$e&&(Oe=$e=null,Re=0),Ci=t,cl=e,Zn=l,ls=s,is=o,Dd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,x1(pe,function(){return Zd(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,o=I.p,I.p=2,g=Xe,Xe|=4;try{c1(e,t,l)}finally{Xe=g,I.p=o,R.T=i}}gt=1,Vd(),Gd(),Xd()}}function Vd(){if(gt===1){gt=0;var e=cl,t=Ci,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var i=I.p;I.p=2;var o=Xe;Xe|=4;try{Ed(t,e);var s=vs,g=_f(e.containerInfo),v=s.focusedElem,T=s.selectionRange;if(g!==v&&v&&v.ownerDocument&&zf(v.ownerDocument.documentElement,v)){if(T!==null&&Gr(v)){var N=T.start,V=T.end;if(V===void 0&&(V=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(V,v.value.length);else{var Z=v.ownerDocument||document,j=Z&&Z.defaultView||window;if(j.getSelection){var U=j.getSelection(),re=v.textContent.length,be=Math.min(T.start,re),Fe=T.end===void 0?be:Math.min(T.end,re);!U.extend&&be>Fe&&(g=Fe,Fe=be,be=g);var w=Cf(v,be),C=Cf(v,Fe);if(w&&C&&(U.rangeCount!==1||U.anchorNode!==w.node||U.anchorOffset!==w.offset||U.focusNode!==C.node||U.focusOffset!==C.offset)){var M=Z.createRange();M.setStart(w.node,w.offset),U.removeAllRanges(),be>Fe?(U.addRange(M),U.extend(C.node,C.offset)):(M.setEnd(C.node,C.offset),U.addRange(M))}}}}for(Z=[],U=v;U=U.parentNode;)U.nodeType===1&&Z.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Z.length;v++){var X=Z[v];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}er=!!bs,vs=bs=null}finally{Xe=o,I.p=i,R.T=l}}e.current=t,gt=2}}function Gd(){if(gt===2){gt=0;var e=cl,t=Ci,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var i=I.p;I.p=2;var o=Xe;Xe|=4;try{yd(e,t.alternate,t)}finally{Xe=o,I.p=i,R.T=l}}gt=3}}function Xd(){if(gt===4||gt===3){gt=0,Kl();var e=cl,t=Ci,l=Zn,i=Dd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?gt=5:(gt=0,Ci=cl=null,Qd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(sl=null),Tr(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(kt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=R.T,o=I.p,I.p=2,R.T=null;try{for(var s=e.onRecoverableError,g=0;g<i.length;g++){var v=i[g];s(v.value,{componentStack:v.stack})}}finally{R.T=t,I.p=o}}(Zn&3)!==0&&Vu(),Cn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===as?xa++:(xa=0,as=e):xa=0,Ea(0)}}function Qd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,na(t)))}function Vu(){return Vd(),Gd(),Xd(),Zd()}function Zd(){if(gt!==5)return!1;var e=cl,t=ls;ls=0;var l=Tr(Zn),i=R.T,o=I.p;try{I.p=32>l?32:l,R.T=null,l=is,is=null;var s=cl,g=Zn;if(gt=0,Ci=cl=null,Zn=0,(Xe&6)!==0)throw Error(r(331));var v=Xe;if(Xe|=4,zd(s.current),Td(s,s.current,g,l),Xe=v,Ea(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(kt,s)}catch{}return!0}finally{I.p=o,R.T=i,Qd(e,t)}}function Kd(e,t,l){t=un(l,t),t=Lo(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(at(e,2),Cn(e))}function Ke(e,t,l){if(e.tag===3)Kd(e,e,l);else for(;t!==null;){if(t.tag===3){Kd(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(sl===null||!sl.has(i))){e=un(l,e),l=Ih(2),i=ll(t,l,2),i!==null&&(Jh(l,i,t,e),at(i,2),Cn(i));break}}t=t.return}}function os(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new d1;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(l)||(es=!0,o.add(l),e=b1.bind(null,e,t,l),t.then(e,e))}function b1(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,$e===e&&(Re&l)===l&&(rt===4||rt===3&&(Re&62914560)===Re&&300>Et()-Bu?(Xe&2)===0&&zi(e,0):ts|=l,Ai===Re&&(Ai=0)),Cn(e)}function Id(e,t){t===0&&(t=he()),e=wl(e,t),e!==null&&(at(e,t),Cn(e))}function v1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Id(e,l)}function S1(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Id(e,l)}function x1(e,t){return wn(e,t)}var Gu=null,wi=null,ss=!1,Xu=!1,cs=!1,hl=0;function Cn(e){e!==wi&&e.next===null&&(wi===null?Gu=wi=e:wi=wi.next=e),Xu=!0,ss||(ss=!0,k1())}function Ea(e,t){if(!cs&&Xu){cs=!0;do for(var l=!1,i=Gu;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var s=0;else{var g=i.suspendedLanes,v=i.pingedLanes;s=(1<<31-Qe(42|e)+1)-1,s&=o&~(g&~v),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,Wd(i,s))}else s=Re,s=De(i,i===$e?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(s&3)===0||J(i,s)||(l=!0,Wd(i,s));i=i.next}while(l);cs=!1}}function E1(){Jd()}function Jd(){Xu=ss=!1;var e=0;hl!==0&&N1()&&(e=hl);for(var t=Et(),l=null,i=Gu;i!==null;){var o=i.next,s=Fd(i,t);s===0?(i.next=null,l===null?Gu=o:l.next=o,o===null&&(wi=l)):(l=i,(e!==0||(s&3)!==0)&&(Xu=!0)),i=o}gt!==0&&gt!==5||Ea(e),hl!==0&&(hl=0)}function Fd(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var g=31-Qe(s),v=1<<g,T=o[g];T===-1?((v&l)===0||(v&i)!==0)&&(o[g]=le(v,t)):T<=t&&(e.expiredLanes|=v),s&=~v}if(t=$e,l=Re,l=De(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&El(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||J(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&El(i),Tr(l)){case 2:case 8:l=W;break;case 32:l=pe;break;case 268435456:l=Le;break;default:l=pe}return i=$d.bind(null,e),l=wn(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&El(i),e.callbackPriority=2,e.callbackNode=null,2}function $d(e,t){if(gt!==0&&gt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Vu()&&e.callbackNode!==l)return null;var i=Re;return i=De(e,e===$e?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Md(e,i,t),Fd(e,Et()),e.callbackNode!=null&&e.callbackNode===l?$d.bind(null,e):null)}function Wd(e,t){if(Vu())return null;Md(e,t,!0)}function k1(){j1(function(){(Xe&6)!==0?wn(Y,E1):Jd()})}function fs(){if(hl===0){var e=mi;e===0&&(e=Il,Il<<=1,(Il&261888)===0&&(Il=256)),hl=e}return hl}function Pd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wa(""+e)}function em(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function T1(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var s=Pd((o[jt]||null).action),g=i.submitter;g&&(t=(t=g[jt]||null)?Pd(t.formAction):g.getAttribute("formAction"),t!==null&&(s=t,g=null));var v=new nu("action","action",null,i,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(hl!==0){var T=g?em(o,g):new FormData(o);Oo(l,{pending:!0,data:T,method:o.method,action:s},null,T)}}else typeof s=="function"&&(v.preventDefault(),T=g?em(o,g):new FormData(o),Oo(l,{pending:!0,data:T,method:o.method,action:s},s,T))},currentTarget:o}]})}}for(var hs=0;hs<Kr.length;hs++){var ds=Kr[hs],A1=ds.toLowerCase(),C1=ds[0].toUpperCase()+ds.slice(1);gn(A1,"on"+C1)}gn(Of,"onAnimationEnd"),gn(Mf,"onAnimationIteration"),gn(Nf,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(Vy,"onTransitionRun"),gn(Gy,"onTransitionStart"),gn(Xy,"onTransitionCancel"),gn(Rf,"onTransitionEnd"),ei("onMouseEnter",["mouseout","mouseover"]),ei("onMouseLeave",["mouseout","mouseover"]),ei("onPointerEnter",["pointerout","pointerover"]),ei("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ka="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(" "),z1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ka));function tm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],o=i.event;i=i.listeners;e:{var s=void 0;if(t)for(var g=i.length-1;0<=g;g--){var v=i[g],T=v.instance,N=v.currentTarget;if(v=v.listener,T!==s&&o.isPropagationStopped())break e;s=v,o.currentTarget=N;try{s(o)}catch(V){au(V)}o.currentTarget=null,s=T}else for(g=0;g<i.length;g++){if(v=i[g],T=v.instance,N=v.currentTarget,v=v.listener,T!==s&&o.isPropagationStopped())break e;s=v,o.currentTarget=N;try{s(o)}catch(V){au(V)}o.currentTarget=null,s=T}}}}function Me(e,t){var l=t[Ar];l===void 0&&(l=t[Ar]=new Set);var i=e+"__bubble";l.has(i)||(nm(t,e,2,!1),l.add(i))}function ms(e,t,l){var i=0;t&&(i|=4),nm(l,e,i,t)}var Qu="_reactListening"+Math.random().toString(36).slice(2);function ps(e){if(!e[Qu]){e[Qu]=!0,Ic.forEach(function(l){l!=="selectionchange"&&(z1.has(l)||ms(l,!1,e),ms(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qu]||(t[Qu]=!0,ms("selectionchange",!1,t))}}function nm(e,t,l,i){switch(Om(t)){case 2:var o=t0;break;case 8:o=n0;break;default:o=Ds}l=o.bind(null,t,l,e),o=void 0,!Rr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function gs(e,t,l,i,o){var s=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var v=i.stateNode.containerInfo;if(v===o)break;if(g===4)for(g=i.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;v!==null;){if(g=$l(v),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){i=s=g;continue e}v=v.parentNode}}i=i.return}rf(function(){var N=s,V=Mr(l),Z=[];e:{var j=jf.get(e);if(j!==void 0){var U=nu,re=e;switch(e){case"keypress":if(eu(l)===0)break e;case"keydown":case"keyup":U=Sy;break;case"focusin":re="focus",U=Ur;break;case"focusout":re="blur",U=Ur;break;case"beforeblur":case"afterblur":U=Ur;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=ky;break;case Of:case Mf:case Nf:U=fy;break;case Rf:U=Ay;break;case"scroll":case"scrollend":U=uy;break;case"wheel":U=zy;break;case"copy":case"cut":case"paste":U=dy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=hf;break;case"toggle":case"beforetoggle":U=wy}var be=(t&4)!==0,Fe=!be&&(e==="scroll"||e==="scrollend"),w=be?j!==null?j+"Capture":null:j;be=[];for(var C=N,M;C!==null;){var X=C;if(M=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||M===null||w===null||(X=Qi(C,w),X!=null&&be.push(Ta(C,X,M))),Fe)break;C=C.return}0<be.length&&(j=new U(j,re,null,l,V),Z.push({event:j,listeners:be}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",j&&l!==Or&&(re=l.relatedTarget||l.fromElement)&&($l(re)||re[Fl]))break e;if((U||j)&&(j=V.window===V?V:(j=V.ownerDocument)?j.defaultView||j.parentWindow:window,U?(re=l.relatedTarget||l.toElement,U=N,re=re?$l(re):null,re!==null&&(Fe=h(re),be=re.tag,re!==Fe||be!==5&&be!==27&&be!==6)&&(re=null)):(U=null,re=N),U!==re)){if(be=cf,X="onMouseLeave",w="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(be=hf,X="onPointerLeave",w="onPointerEnter",C="pointer"),Fe=U==null?j:Xi(U),M=re==null?j:Xi(re),j=new be(X,C+"leave",U,l,V),j.target=Fe,j.relatedTarget=M,X=null,$l(V)===N&&(be=new be(w,C+"enter",re,l,V),be.target=M,be.relatedTarget=Fe,X=be),Fe=X,U&&re)t:{for(be=_1,w=U,C=re,M=0,X=w;X;X=be(X))M++;X=0;for(var de=C;de;de=be(de))X++;for(;0<M-X;)w=be(w),M--;for(;0<X-M;)C=be(C),X--;for(;M--;){if(w===C||C!==null&&w===C.alternate){be=w;break t}w=be(w),C=be(C)}be=null}else be=null;U!==null&&lm(Z,j,U,be,!1),re!==null&&Fe!==null&&lm(Z,Fe,re,be,!0)}}e:{if(j=N?Xi(N):window,U=j.nodeName&&j.nodeName.toLowerCase(),U==="select"||U==="input"&&j.type==="file")var Ye=Sf;else if(bf(j))if(xf)Ye=Hy;else{Ye=Ly;var se=By}else U=j.nodeName,!U||U.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?N&&Dr(N.elementType)&&(Ye=Sf):Ye=Uy;if(Ye&&(Ye=Ye(e,N))){vf(Z,Ye,l,V);break e}se&&se(e,j,N),e==="focusout"&&N&&j.type==="number"&&N.memoizedProps.value!=null&&wr(j,"number",j.value)}switch(se=N?Xi(N):window,e){case"focusin":(bf(se)||se.contentEditable==="true")&&(ui=se,Xr=N,Pi=null);break;case"focusout":Pi=Xr=ui=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":Qr=!1,wf(Z,l,V);break;case"selectionchange":if(Yy)break;case"keydown":case"keyup":wf(Z,l,V)}var Ae;if(qr)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else ai?gf(e,l)&&(je="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(je="onCompositionStart");je&&(df&&l.locale!=="ko"&&(ai||je!=="onCompositionStart"?je==="onCompositionEnd"&&ai&&(Ae=of()):(Fn=V,jr="value"in Fn?Fn.value:Fn.textContent,ai=!0)),se=Zu(N,je),0<se.length&&(je=new ff(je,e,null,l,V),Z.push({event:je,listeners:se}),Ae?je.data=Ae:(Ae=yf(l),Ae!==null&&(je.data=Ae)))),(Ae=Oy?My(e,l):Ny(e,l))&&(je=Zu(N,"onBeforeInput"),0<je.length&&(se=new ff("onBeforeInput","beforeinput",null,l,V),Z.push({event:se,listeners:je}),se.data=Ae)),T1(Z,e,N,l,V)}tm(Z,t)})}function Ta(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zu(e,t){for(var l=t+"Capture",i=[];e!==null;){var o=e,s=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||s===null||(o=Qi(e,l),o!=null&&i.unshift(Ta(e,o,s)),o=Qi(e,t),o!=null&&i.push(Ta(e,o,s))),e.tag===3)return i;e=e.return}return[]}function _1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lm(e,t,l,i,o){for(var s=t._reactName,g=[];l!==null&&l!==i;){var v=l,T=v.alternate,N=v.stateNode;if(v=v.tag,T!==null&&T===i)break;v!==5&&v!==26&&v!==27||N===null||(T=N,o?(N=Qi(l,s),N!=null&&g.unshift(Ta(l,N,T))):o||(N=Qi(l,s),N!=null&&g.push(Ta(l,N,T)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var w1=/\r\n?/g,D1=/\u0000|\uFFFD/g;function im(e){return(typeof e=="string"?e:""+e).replace(w1,`
49
+ `).replace(D1,"")}function am(e,t){return t=im(t),im(e)===t}function Je(e,t,l,i,o,s){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ni(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ni(e,""+i);break;case"className":Fa(e,"class",i);break;case"tabIndex":Fa(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Fa(e,l,i);break;case"style":af(e,i,s);break;case"data":if(t!=="object"){Fa(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Wa(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"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 s=="function"&&(l==="formAction"?(t!=="input"&&Je(e,t,"name",o.name,o,null),Je(e,t,"formEncType",o.formEncType,o,null),Je(e,t,"formMethod",o.formMethod,o,null),Je(e,t,"formTarget",o.formTarget,o,null)):(Je(e,t,"encType",o.encType,o,null),Je(e,t,"method",o.method,o,null),Je(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Wa(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=On);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Wa(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Ja(e,"popover",i);break;case"xlinkActuate":Dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Dn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Dn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Dn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Dn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ja(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=iy.get(l)||l,Ja(e,l,i))}}function ys(e,t,l,i,o,s){switch(l){case"style":af(e,i,s);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof i=="string"?ni(e,i):(typeof i=="number"||typeof i=="bigint")&&ni(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=On);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),s=e[jt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,o),typeof i=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,o);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Ja(e,l,i)}}}function _t(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,o=!1,s;for(s in l)if(l.hasOwnProperty(s)){var g=l[s];if(g!=null)switch(s){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Je(e,t,s,g,l,null)}}o&&Je(e,t,"srcSet",l.srcSet,l,null),i&&Je(e,t,"src",l.src,l,null);return;case"input":Me("invalid",e);var v=s=g=o=null,T=null,N=null;for(i in l)if(l.hasOwnProperty(i)){var V=l[i];if(V!=null)switch(i){case"name":o=V;break;case"type":g=V;break;case"checked":T=V;break;case"defaultChecked":N=V;break;case"value":s=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:Je(e,t,i,V,l,null)}}ef(e,s,v,T,N,g,o,!1);return;case"select":Me("invalid",e),i=g=s=null;for(o in l)if(l.hasOwnProperty(o)&&(v=l[o],v!=null))switch(o){case"value":s=v;break;case"defaultValue":g=v;break;case"multiple":i=v;default:Je(e,t,o,v,l,null)}t=s,l=g,e.multiple=!!i,t!=null?ti(e,!!i,t,!1):l!=null&&ti(e,!!i,l,!0);return;case"textarea":Me("invalid",e),s=o=i=null;for(g in l)if(l.hasOwnProperty(g)&&(v=l[g],v!=null))switch(g){case"value":i=v;break;case"defaultValue":o=v;break;case"children":s=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Je(e,t,g,v,l,null)}nf(e,i,o,s);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(i=l[T],i!=null))switch(T){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Je(e,t,T,i,l,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<ka.length;i++)Me(ka[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in l)if(l.hasOwnProperty(N)&&(i=l[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Je(e,t,N,i,l,null)}return;default:if(Dr(t)){for(V in l)l.hasOwnProperty(V)&&(i=l[V],i!==void 0&&ys(e,t,V,i,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(i=l[v],i!=null&&Je(e,t,v,i,l,null))}function O1(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,s=null,g=null,v=null,T=null,N=null,V=null;for(U in l){var Z=l[U];if(l.hasOwnProperty(U)&&Z!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":T=Z;default:i.hasOwnProperty(U)||Je(e,t,U,null,i,Z)}}for(var j in i){var U=i[j];if(Z=l[j],i.hasOwnProperty(j)&&(U!=null||Z!=null))switch(j){case"type":s=U;break;case"name":o=U;break;case"checked":N=U;break;case"defaultChecked":V=U;break;case"value":g=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Z&&Je(e,t,j,U,i,Z)}}_r(e,g,v,T,N,V,s,o);return;case"select":U=g=v=j=null;for(s in l)if(T=l[s],l.hasOwnProperty(s)&&T!=null)switch(s){case"value":break;case"multiple":U=T;default:i.hasOwnProperty(s)||Je(e,t,s,null,i,T)}for(o in i)if(s=i[o],T=l[o],i.hasOwnProperty(o)&&(s!=null||T!=null))switch(o){case"value":j=s;break;case"defaultValue":v=s;break;case"multiple":g=s;default:s!==T&&Je(e,t,o,s,i,T)}t=v,l=g,i=U,j!=null?ti(e,!!l,j,!1):!!i!=!!l&&(t!=null?ti(e,!!l,t,!0):ti(e,!!l,l?[]:"",!1));return;case"textarea":U=j=null;for(v in l)if(o=l[v],l.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Je(e,t,v,null,i,o)}for(g in i)if(o=i[g],s=l[g],i.hasOwnProperty(g)&&(o!=null||s!=null))switch(g){case"value":j=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==s&&Je(e,t,g,o,i,s)}tf(e,j,U);return;case"option":for(var re in l)if(j=l[re],l.hasOwnProperty(re)&&j!=null&&!i.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Je(e,t,re,null,i,j)}for(T in i)if(j=i[T],U=l[T],i.hasOwnProperty(T)&&j!==U&&(j!=null||U!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Je(e,t,T,j,i,U)}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 be in l)j=l[be],l.hasOwnProperty(be)&&j!=null&&!i.hasOwnProperty(be)&&Je(e,t,be,null,i,j);for(N in i)if(j=i[N],U=l[N],i.hasOwnProperty(N)&&j!==U&&(j!=null||U!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:Je(e,t,N,j,i,U)}return;default:if(Dr(t)){for(var Fe in l)j=l[Fe],l.hasOwnProperty(Fe)&&j!==void 0&&!i.hasOwnProperty(Fe)&&ys(e,t,Fe,void 0,i,j);for(V in i)j=i[V],U=l[V],!i.hasOwnProperty(V)||j===U||j===void 0&&U===void 0||ys(e,t,V,j,i,U);return}}for(var w in l)j=l[w],l.hasOwnProperty(w)&&j!=null&&!i.hasOwnProperty(w)&&Je(e,t,w,null,i,j);for(Z in i)j=i[Z],U=l[Z],!i.hasOwnProperty(Z)||j===U||j==null&&U==null||Je(e,t,Z,j,i,U)}function um(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function M1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],s=o.transferSize,g=o.initiatorType,v=o.duration;if(s&&v&&um(g)){for(g=0,v=o.responseEnd,i+=1;i<l.length;i++){var T=l[i],N=T.startTime;if(N>v)break;var V=T.transferSize,Z=T.initiatorType;V&&um(Z)&&(T=T.responseEnd,g+=V*(T<v?1:(v-N)/(T-N)))}if(--i,t+=8*(s+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var bs=null,vs=null;function Ku(e){return e.nodeType===9?e:e.ownerDocument}function rm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function om(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ss(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xs=null;function N1(){var e=window.event;return e&&e.type==="popstate"?e===xs?!1:(xs=e,!0):(xs=null,!1)}var sm=typeof setTimeout=="function"?setTimeout:void 0,R1=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,j1=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(B1)}:sm;function B1(e){setTimeout(function(){throw e})}function dl(e){return e==="head"}function fm(e,t){var l=t,i=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(o),Ni(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Aa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Aa(l);for(var s=l.firstChild;s;){var g=s.nextSibling,v=s.nodeName;s[Gi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=g}}else l==="body"&&Aa(e.ownerDocument.body);l=o}while(l);Ni(t)}function hm(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function Es(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Es(l),Cr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function L1(e,t,l,i){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Gi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function U1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=fn(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function ks(e){return e.data==="$?"||e.data==="$~"}function Ts(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function H1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var As=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return fn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function pm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function gm(e,t,l){switch(t=Ku(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Aa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cr(e)}var hn=new Map,ym=new Set;function Iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=I.d;I.d={f:q1,r:Y1,D:V1,C:G1,L:X1,m:Q1,X:K1,S:Z1,M:I1};function q1(){var e=Kn.f(),t=Hu();return e||t}function Y1(e){var t=Wl(e);t!==null&&t.tag===5&&t.type==="form"?Rh(t):Kn.r(e)}var Di=typeof document>"u"?null:document;function bm(e,t,l){var i=Di;if(i&&typeof t=="string"&&t){var o=ln(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),ym.has(o)||(ym.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),_t(t,"link",e),vt(t),i.head.appendChild(t)))}}function V1(e){Kn.D(e),bm("dns-prefetch",e,null)}function G1(e,t){Kn.C(e,t),bm("preconnect",e,t)}function X1(e,t,l){Kn.L(e,t,l);var i=Di;if(i&&e&&t){var o='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+ln(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+ln(l.imageSizes)+'"]')):o+='[href="'+ln(e)+'"]';var s=o;switch(t){case"style":s=Oi(e);break;case"script":s=Mi(e)}hn.has(s)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),hn.set(s,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Ca(s))||t==="script"&&i.querySelector(za(s))||(t=i.createElement("link"),_t(t,"link",e),vt(t),i.head.appendChild(t)))}}function Q1(e,t){Kn.m(e,t);var l=Di;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+ln(i)+'"][href="'+ln(e)+'"]',s=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Mi(e)}if(!hn.has(s)&&(e=y({rel:"modulepreload",href:e},t),hn.set(s,e),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(za(s)))return}i=l.createElement("link"),_t(i,"link",e),vt(i),l.head.appendChild(i)}}}function Z1(e,t,l){Kn.S(e,t,l);var i=Di;if(i&&e){var o=Pl(i).hoistableStyles,s=Oi(e);t=t||"default";var g=o.get(s);if(!g){var v={loading:0,preload:null};if(g=i.querySelector(Ca(s)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=hn.get(s))&&Cs(e,l);var T=g=i.createElement("link");vt(T),_t(T,"link",e),T._p=new Promise(function(N,V){T.onload=N,T.onerror=V}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ju(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(s,g)}}}function K1(e,t){Kn.X(e,t);var l=Di;if(l&&e){var i=Pl(l).hoistableScripts,o=Mi(e),s=i.get(o);s||(s=l.querySelector(za(o)),s||(e=y({src:e,async:!0},t),(t=hn.get(o))&&zs(e,t),s=l.createElement("script"),vt(s),_t(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(o,s))}}function I1(e,t){Kn.M(e,t);var l=Di;if(l&&e){var i=Pl(l).hoistableScripts,o=Mi(e),s=i.get(o);s||(s=l.querySelector(za(o)),s||(e=y({src:e,async:!0,type:"module"},t),(t=hn.get(o))&&zs(e,t),s=l.createElement("script"),vt(s),_t(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(o,s))}}function vm(e,t,l,i){var o=(o=fe.current)?Iu(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Oi(l.href),l=Pl(o).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Oi(l.href);var s=Pl(o).hoistableStyles,g=s.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,g),(s=o.querySelector(Ca(e)))&&!s._p&&(g.instance=s,g.state.loading=5),hn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},hn.set(e,l),s||J1(o,e,l,g.state))),t&&i===null)throw Error(r(528,""));return g}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Mi(l),l=Pl(o).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Oi(e){return'href="'+ln(e)+'"'}function Ca(e){return'link[rel="stylesheet"]['+e+"]"}function Sm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function J1(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),_t(t,"link",l),vt(t),e.head.appendChild(t))}function Mi(e){return'[src="'+ln(e)+'"]'}function za(e){return"script[async]"+e}function xm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+ln(l.href)+'"]');if(i)return t.instance=i,vt(i),i;var o=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),vt(i),_t(i,"style",o),Ju(i,l.precedence,e),t.instance=i;case"stylesheet":o=Oi(l.href);var s=e.querySelector(Ca(o));if(s)return t.state.loading|=4,t.instance=s,vt(s),s;i=Sm(l),(o=hn.get(o))&&Cs(i,o),s=(e.ownerDocument||e).createElement("link"),vt(s);var g=s;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),_t(s,"link",i),t.state.loading|=4,Ju(s,l.precedence,e),t.instance=s;case"script":return s=Mi(l.src),(o=e.querySelector(za(s)))?(t.instance=o,vt(o),o):(i=l,(o=hn.get(s))&&(i=y({},l),zs(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),vt(o),_t(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ju(i,l.precedence,e));return t.instance}function Ju(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,s=o,g=0;g<i.length;g++){var v=i[g];if(v.dataset.precedence===t)s=v;else if(s!==o)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Cs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fu=null;function Em(e,t,l){if(Fu===null){var i=new Map,o=Fu=new Map;o.set(l,i)}else o=Fu,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var s=l[o];if(!(s[Gi]||s[Tt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var g=s.getAttribute(t)||"";g=e+g;var v=i.get(g);v?v.push(s):i.set(g,[s])}}return i}function km(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function F1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $1(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=Oi(i.href),s=t.querySelector(Ca(o));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$u.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,vt(s);return}s=t.ownerDocument||t,i=Sm(i),(o=hn.get(o))&&Cs(i,o),s=s.createElement("link"),vt(s);var g=s;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),_t(s,"link",i),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=$u.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _s=0;function W1(e,t){return e.stylesheets&&e.count===0&&Pu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Pu(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&_s===0&&(_s=62500*M1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pu(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>_s?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function $u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wu=null;function Pu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wu=new Map,t.forEach(P1,e),Wu=null,$u.call(e))}function P1(e,t){if(!(t.state.loading&4)){var l=Wu.get(e);if(l)var i=l.get(null);else{l=new Map,Wu.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<o.length;s++){var g=o[s];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),i=g)}i&&l.set(null,i)}o=t.instance,g=o.getAttribute("data-precedence"),s=l.get(g)||i,s===i&&l.set(null,o),l.set(g,o),this.count++,i=$u.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),s?s.parentNode.insertBefore(o,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var _a={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function e0(e,t,l,i,o,s,g,v,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xe(0),this.hiddenUpdates=xe(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=s,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Am(e,t,l,i,o,s,g,v,T,N,V,Z){return e=new e0(e,t,l,g,T,N,V,Z,v),t=1,s===!0&&(t|=24),s=Kt(3,null,null,t),e.current=s,s.stateNode=e,t=uo(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:i,isDehydrated:l,cache:t},co(s),e}function Cm(e){return e?(e=si,e):si}function zm(e,t,l,i,o,s){o=Cm(o),i.context===null?i.context=o:i.pendingContext=o,i=nl(t),i.payload={element:l},s=s===void 0?null:s,s!==null&&(i.callback=s),l=ll(e,i,t),l!==null&&(Yt(l,e,t),ua(l,e,t))}function _m(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ws(e,t){_m(e,t),(e=e.alternate)&&_m(e,t)}function wm(e){if(e.tag===13||e.tag===31){var t=wl(e,67108864);t!==null&&Yt(t,e,67108864),ws(e,67108864)}}function Dm(e){if(e.tag===13||e.tag===31){var t=Wt();t=kr(t);var l=wl(e,t);l!==null&&Yt(l,e,t),ws(e,t)}}var er=!0;function t0(e,t,l,i){var o=R.T;R.T=null;var s=I.p;try{I.p=2,Ds(e,t,l,i)}finally{I.p=s,R.T=o}}function n0(e,t,l,i){var o=R.T;R.T=null;var s=I.p;try{I.p=8,Ds(e,t,l,i)}finally{I.p=s,R.T=o}}function Ds(e,t,l,i){if(er){var o=Os(i);if(o===null)gs(e,t,i,tr,l),Mm(e,i);else if(i0(o,e,t,l,i))i.stopPropagation();else if(Mm(e,i),t&4&&-1<l0.indexOf(e)){for(;o!==null;){var s=Wl(o);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var g=L(s.pendingLanes);if(g!==0){var v=s;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var T=1<<31-Qe(g);v.entanglements[1]|=T,g&=~T}Cn(s),(Xe&6)===0&&(Lu=Et()+500,Ea(0))}}break;case 31:case 13:v=wl(s,2),v!==null&&Yt(v,s,2),Hu(),ws(s,2)}if(s=Os(i),s===null&&gs(e,t,i,tr,l),s===o)break;o=s}o!==null&&i.stopPropagation()}else gs(e,t,i,null,l)}}function Os(e){return e=Mr(e),Ms(e)}var tr=null;function Ms(e){if(tr=null,e=$l(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=c(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return tr=e,null}function Om(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Vi()){case Y:return 2;case W:return 8;case pe:case ze:return 32;case Le:return 268435456;default:return 32}default:return 32}}var Ns=!1,ml=null,pl=null,gl=null,wa=new Map,Da=new Map,yl=[],l0="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 Mm(e,t){switch(e){case"focusin":case"focusout":ml=null;break;case"dragenter":case"dragleave":pl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":wa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Da.delete(t.pointerId)}}function Oa(e,t,l,i,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Wl(t),t!==null&&wm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function i0(e,t,l,i,o){switch(t){case"focusin":return ml=Oa(ml,e,t,l,i,o),!0;case"dragenter":return pl=Oa(pl,e,t,l,i,o),!0;case"mouseover":return gl=Oa(gl,e,t,l,i,o),!0;case"pointerover":var s=o.pointerId;return wa.set(s,Oa(wa.get(s)||null,e,t,l,i,o)),!0;case"gotpointercapture":return s=o.pointerId,Da.set(s,Oa(Da.get(s)||null,e,t,l,i,o)),!0}return!1}function Nm(e){var t=$l(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=c(l),t!==null){e.blockedOn=t,Zc(e.priority,function(){Dm(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Zc(e.priority,function(){Dm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Os(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Or=i,l.target.dispatchEvent(i),Or=null}else return t=Wl(l),t!==null&&wm(t),e.blockedOn=l,!1;t.shift()}return!0}function Rm(e,t,l){nr(e)&&l.delete(t)}function a0(){Ns=!1,ml!==null&&nr(ml)&&(ml=null),pl!==null&&nr(pl)&&(pl=null),gl!==null&&nr(gl)&&(gl=null),wa.forEach(Rm),Da.forEach(Rm)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ns||(Ns=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,a0)))}var ir=null;function jm(e){ir!==e&&(ir=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ir===e&&(ir=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Ms(i||l)===null)continue;break}var s=Wl(l);s!==null&&(e.splice(t,3),t-=3,Oo(s,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function Ni(e){function t(T){return lr(T,e)}ml!==null&&lr(ml,e),pl!==null&&lr(pl,e),gl!==null&&lr(gl,e),wa.forEach(t),Da.forEach(t);for(var l=0;l<yl.length;l++){var i=yl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<yl.length&&(l=yl[0],l.blockedOn===null);)Nm(l),l.blockedOn===null&&yl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],s=l[i+1],g=o[jt]||null;if(typeof s=="function")g||jm(l);else if(g){var v=null;if(s&&s.hasAttribute("formAction")){if(o=s,g=s[jt]||null)v=g.formAction;else if(Ms(o)!==null)continue}else v=g.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),jm(l)}}}function Bm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Rs(e){this._internalRoot=e}ar.prototype.render=Rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,i=Wt();zm(l,i,e,t,null,null)},ar.prototype.unmount=Rs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),Hu(),t[Fl]=null}};function ar(e){this._internalRoot=e}ar.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<yl.length&&t!==0&&t<yl[l].priority;l++);yl.splice(l,0,e),l===0&&Nm(e)}};var Lm=a.version;if(Lm!=="19.2.4")throw Error(r(527,Lm,"19.2.4"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=d(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var u0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ur.isDisabled&&ur.supportsFiber)try{kt=ur.inject(u0),it=ur}catch{}}return Na.createRoot=function(e,t){if(!f(e))throw Error(r(299));var l=!1,i="",o=Xh,s=Qh,g=Zh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Am(e,1,!1,null,null,l,i,null,o,s,g,Bm),e[Fl]=t.current,ps(e),new Rs(t)},Na.hydrateRoot=function(e,t,l){if(!f(e))throw Error(r(299));var i=!1,o="",s=Xh,g=Qh,v=Zh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=Am(e,1,!0,t,l??null,i,o,T,s,g,v,Bm),t.context=Cm(null),l=t.current,i=Wt(),i=kr(i),o=nl(i),o.callback=null,ll(l,o,i),l=i,t.current.lanes=l,at(t,l),Cn(t),e[Fl]=t.current,ps(e),new ar(t)},Na.version="19.2.4",Na}var Km;function g0(){if(Km)return Ls.exports;Km=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ls.exports=p0(),Ls.exports}var y0=g0();function b0(n,a){const u={};return(n[n.length-1]===""?[...n,""]:n).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}const v0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,S0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,x0={};function Im(n,a){return(x0.jsx?S0:v0).test(n)}const E0=/[ \t\n\f\r]/g;function k0(n){return typeof n=="object"?n.type==="text"?Jm(n.value):!1:Jm(n)}function Jm(n){return n.replace(E0,"")===""}class Xa{constructor(a,u,r){this.normal=u,this.property=a,r&&(this.space=r)}}Xa.prototype.normal={};Xa.prototype.property={};Xa.prototype.space=void 0;function qp(n,a){const u={},r={};for(const f of n)Object.assign(u,f.property),Object.assign(r,f.normal);return new Xa(u,r,a)}function cc(n){return n.toLowerCase()}class Gt{constructor(a,u){this.attribute=u,this.property=a}}Gt.prototype.attribute="";Gt.prototype.booleanish=!1;Gt.prototype.boolean=!1;Gt.prototype.commaOrSpaceSeparated=!1;Gt.prototype.commaSeparated=!1;Gt.prototype.defined=!1;Gt.prototype.mustUseProperty=!1;Gt.prototype.number=!1;Gt.prototype.overloadedBoolean=!1;Gt.prototype.property="";Gt.prototype.spaceSeparated=!1;Gt.prototype.space=void 0;let T0=0;const Ce=Ql(),pt=Ql(),fc=Ql(),$=Ql(),Pe=Ql(),Li=Ql(),en=Ql();function Ql(){return 2**++T0}const hc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:pt,commaOrSpaceSeparated:en,commaSeparated:Li,number:$,overloadedBoolean:fc,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),Ys=Object.keys(hc);class Ac extends Gt{constructor(a,u,r,f){let h=-1;if(super(a,u),Fm(this,"space",f),typeof r=="number")for(;++h<Ys.length;){const c=Ys[h];Fm(this,Ys[h],(r&hc[c])===hc[c])}}}Ac.prototype.defined=!0;function Fm(n,a,u){u&&(n[a]=u)}function Hi(n){const a={},u={};for(const[r,f]of Object.entries(n.properties)){const h=new Ac(r,n.transform(n.attributes||{},r),f,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(h.mustUseProperty=!0),a[r]=h,u[cc(r)]=r,u[cc(h.attribute)]=r}return new Xa(a,u,n.space)}const Yp=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:Pe,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:$,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:Pe,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:pt,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Vp(n,a){return a in n?n[a]:a}function Gp(n,a){return Vp(n,a.toLowerCase())}const A0=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Li,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:Pe,autoFocus:Ce,autoPlay:Ce,blocking:Pe,capture:null,charSet:null,checked:Ce,cite:null,className:Pe,cols:$,colSpan:null,content:null,contentEditable:pt,controls:Ce,controlsList:Pe,coords:$|Li,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:fc,draggable:pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:Pe,height:$,hidden:fc,high:$,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:Ce,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:$,pattern:null,ping:Pe,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:Pe,required:Ce,reversed:Ce,rows:$,rowSpan:$,sandbox:Pe,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:Ce,useMap:null,value:pt,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ce,disableRemotePlayback:Ce,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:Gp}),C0=Hi({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:en,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Pe,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:Ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:Li,g2:Li,glyphName:Li,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:en,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,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:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:en,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:en,rev:en,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:en,requiredFeatures:en,requiredFonts:en,requiredFormats:en,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:en,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:en,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:en,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vp}),Xp=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Qp=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gp}),Zp=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),z0={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"},_0=/[A-Z]/g,$m=/-[a-z]/g,w0=/^data[-\w.:]+$/i;function D0(n,a){const u=cc(a);let r=a,f=Gt;if(u in n.normal)return n.property[n.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&w0.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace($m,M0);r="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!$m.test(h)){let c=h.replace(_0,O0);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}f=Ac}return new f(r,a)}function O0(n){return"-"+n.toLowerCase()}function M0(n){return n.charAt(1).toUpperCase()}const N0=qp([Yp,A0,Xp,Qp,Zp],"html"),Cc=qp([Yp,C0,Xp,Qp,Zp],"svg");function R0(n){return n.join(" ").trim()}var Ri={},Vs,Wm;function j0(){if(Wm)return Vs;Wm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,u=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,m=/^\s+|\s+$/g,p=`
50
+ `,d="/",b="*",y="",x="comment",S="declaration";function _(G,O){if(typeof G!="string")throw new TypeError("First argument must be a string");if(!G)return[];O=O||{};var K=1,Q=1;function oe(ue){var P=ue.match(a);P&&(K+=P.length);var R=ue.lastIndexOf(p);Q=~R?ue.length-R:Q+ue.length}function F(){var ue={line:K,column:Q};return function(P){return P.position=new D(ue),ve(),P}}function D(ue){this.start=ue,this.end={line:K,column:Q},this.source=O.source}D.prototype.content=G;function te(ue){var P=new Error(O.source+":"+K+":"+Q+": "+ue);if(P.reason=ue,P.filename=O.source,P.line=K,P.column=Q,P.source=G,!O.silent)throw P}function me(ue){var P=ue.exec(G);if(P){var R=P[0];return oe(R),G=G.slice(R.length),P}}function ve(){me(u)}function B(ue){var P;for(ue=ue||[];P=ie();)P!==!1&&ue.push(P);return ue}function ie(){var ue=F();if(!(d!=G.charAt(0)||b!=G.charAt(1))){for(var P=2;y!=G.charAt(P)&&(b!=G.charAt(P)||d!=G.charAt(P+1));)++P;if(P+=2,y===G.charAt(P-1))return te("End of comment missing");var R=G.slice(2,P-2);return Q+=2,oe(R),G=G.slice(P),Q+=2,ue({type:x,comment:R})}}function ne(){var ue=F(),P=me(r);if(P){if(ie(),!me(f))return te("property missing ':'");var R=me(h),I=ue({type:S,property:H(P[0].replace(n,y)),value:R?H(R[0].replace(n,y)):y});return me(c),I}}function ke(){var ue=[];B(ue);for(var P;P=ne();)P!==!1&&(ue.push(P),B(ue));return ue}return ve(),ke()}function H(G){return G?G.replace(m,y):y}return Vs=_,Vs}var Pm;function B0(){if(Pm)return Ri;Pm=1;var n=Ri&&Ri.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=u;const a=n(j0());function u(r,f){let h=null;if(!r||typeof r!="string")return h;const c=(0,a.default)(r),m=typeof f=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:b}=p;m?f(d,b,p):b&&(h=h||{},h[d]=b)}),h}return Ri}var Ra={},ep;function L0(){if(ep)return Ra;ep=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,u=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,f=/^-(ms)-/,h=function(d){return!d||u.test(d)||n.test(d)},c=function(d,b){return b.toUpperCase()},m=function(d,b){return"".concat(b,"-")},p=function(d,b){return b===void 0&&(b={}),h(d)?d:(d=d.toLowerCase(),b.reactCompat?d=d.replace(f,m):d=d.replace(r,m),d.replace(a,c))};return Ra.camelCase=p,Ra}var ja,tp;function U0(){if(tp)return ja;tp=1;var n=ja&&ja.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},a=n(B0()),u=L0();function r(f,h){var c={};return!f||typeof f!="string"||(0,a.default)(f,function(m,p){m&&p&&(c[(0,u.camelCase)(m,h)]=p)}),c}return r.default=r,ja=r,ja}var H0=U0();const q0=Hp(H0),Kp=Ip("end"),zc=Ip("start");function Ip(n){return a;function a(u){const r=u&&u.position&&u.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Y0(n){const a=zc(n),u=Kp(n);if(a&&u)return{start:a,end:u}}function Ua(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?np(n.position):"start"in n||"end"in n?np(n):"line"in n||"column"in n?dc(n):""}function dc(n){return lp(n&&n.line)+":"+lp(n&&n.column)}function np(n){return dc(n&&n.start)+"-"+dc(n&&n.end)}function lp(n){return n&&typeof n=="number"?n:1}class Ot extends Error{constructor(a,u,r){super(),typeof u=="string"&&(r=u,u=void 0);let f="",h={},c=!1;if(u&&("line"in u&&"column"in u?h={place:u}:"start"in u&&"end"in u?h={place:u}:"type"in u?h={ancestors:[u],place:u.position}:h={...u}),typeof a=="string"?f=a:!h.cause&&a&&(c=!0,f=a.message,h.cause=a),!h.ruleId&&!h.source&&typeof r=="string"){const p=r.indexOf(":");p===-1?h.ruleId=r:(h.source=r.slice(0,p),h.ruleId=r.slice(p+1))}if(!h.place&&h.ancestors&&h.ancestors){const p=h.ancestors[h.ancestors.length-1];p&&(h.place=p.position)}const m=h.place&&"start"in h.place?h.place.start:h.place;this.ancestors=h.ancestors||void 0,this.cause=h.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=f,this.line=m?m.line:void 0,this.name=Ua(h.place)||"1:1",this.place=h.place||void 0,this.reason=this.message,this.ruleId=h.ruleId||void 0,this.source=h.source||void 0,this.stack=c&&h.cause&&typeof h.cause.stack=="string"?h.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ot.prototype.file="";Ot.prototype.name="";Ot.prototype.reason="";Ot.prototype.message="";Ot.prototype.stack="";Ot.prototype.column=void 0;Ot.prototype.line=void 0;Ot.prototype.ancestors=void 0;Ot.prototype.cause=void 0;Ot.prototype.fatal=void 0;Ot.prototype.place=void 0;Ot.prototype.ruleId=void 0;Ot.prototype.source=void 0;const _c={}.hasOwnProperty,V0=new Map,G0=/[A-Z]/g,X0=new Set(["table","tbody","thead","tfoot","tr"]),Q0=new Set(["td","th"]),Jp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Z0(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const u=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=eb(u,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=P0(u,a.jsx,a.jsxs)}const f={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:u,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Cc:N0,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=Fp(f,n,void 0);return h&&typeof h!="string"?h:f.create(n,f.Fragment,{children:h||void 0},void 0)}function Fp(n,a,u){if(a.type==="element")return K0(n,a,u);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return I0(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return F0(n,a,u);if(a.type==="mdxjsEsm")return J0(n,a);if(a.type==="root")return $0(n,a,u);if(a.type==="text")return W0(n,a)}function K0(n,a,u){const r=n.schema;let f=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(f=Cc,n.schema=f),n.ancestors.push(a);const h=Wp(n,a.tagName,!1),c=tb(n,a);let m=Dc(n,a);return X0.has(a.tagName)&&(m=m.filter(function(p){return typeof p=="string"?!k0(p):!0})),$p(n,c,h,a),wc(c,m),n.ancestors.pop(),n.schema=r,n.create(a,h,c,u)}function I0(n,a){if(a.data&&a.data.estree&&n.evaluater){const r=a.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}Va(n,a.position)}function J0(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Va(n,a.position)}function F0(n,a,u){const r=n.schema;let f=r;a.name==="svg"&&r.space==="html"&&(f=Cc,n.schema=f),n.ancestors.push(a);const h=a.name===null?n.Fragment:Wp(n,a.name,!0),c=nb(n,a),m=Dc(n,a);return $p(n,c,h,a),wc(c,m),n.ancestors.pop(),n.schema=r,n.create(a,h,c,u)}function $0(n,a,u){const r={};return wc(r,Dc(n,a)),n.create(a,n.Fragment,r,u)}function W0(n,a){return a.value}function $p(n,a,u,r){typeof u!="string"&&u!==n.Fragment&&n.passNode&&(a.node=r)}function wc(n,a){if(a.length>0){const u=a.length>1?a:a[0];u&&(n.children=u)}}function P0(n,a,u){return r;function r(f,h,c,m){const d=Array.isArray(c.children)?u:a;return m?d(h,c,m):d(h,c)}}function eb(n,a){return u;function u(r,f,h,c){const m=Array.isArray(h.children),p=zc(r);return a(f,h,c,m,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function tb(n,a){const u={};let r,f;for(f in a.properties)if(f!=="children"&&_c.call(a.properties,f)){const h=lb(n,f,a.properties[f]);if(h){const[c,m]=h;n.tableCellAlignToStyle&&c==="align"&&typeof m=="string"&&Q0.has(a.tagName)?r=m:u[c]=m}}if(r){const h=u.style||(u.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return u}function nb(n,a){const u={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const h=r.data.estree.body[0];h.type;const c=h.expression;c.type;const m=c.properties[0];m.type,Object.assign(u,n.evaluater.evaluateExpression(m.argument))}else Va(n,a.position);else{const f=r.name;let h;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const m=r.value.data.estree.body[0];m.type,h=n.evaluater.evaluateExpression(m.expression)}else Va(n,a.position);else h=r.value===null?!0:r.value;u[f]=h}return u}function Dc(n,a){const u=[];let r=-1;const f=n.passKeys?new Map:V0;for(;++r<a.children.length;){const h=a.children[r];let c;if(n.passKeys){const p=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(p){const d=f.get(p)||0;c=p+"-"+d,f.set(p,d+1)}}const m=Fp(n,h,c);m!==void 0&&u.push(m)}return u}function lb(n,a,u){const r=D0(n.schema,a);if(!(u==null||typeof u=="number"&&Number.isNaN(u))){if(Array.isArray(u)&&(u=r.commaSeparated?b0(u):R0(u)),r.property==="style"){let f=typeof u=="object"?u:ib(n,String(u));return n.stylePropertyNameCase==="css"&&(f=ab(f)),["style",f]}return[n.elementAttributeNameCase==="react"&&r.space?z0[r.property]||r.property:r.attribute,u]}}function ib(n,a){try{return q0(a,{reactCompat:!0})}catch(u){if(n.ignoreInvalidStyle)return{};const r=u,f=new Ot("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw f.file=n.filePath||void 0,f.url=Jp+"#cannot-parse-style-attribute",f}}function Wp(n,a,u){let r;if(!u)r={type:"Literal",value:a};else if(a.includes(".")){const f=a.split(".");let h=-1,c;for(;++h<f.length;){const m=Im(f[h])?{type:"Identifier",name:f[h]}:{type:"Literal",value:f[h]};c=c?{type:"MemberExpression",object:c,property:m,computed:!!(h&&m.type==="Literal"),optional:!1}:m}r=c}else r=Im(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const f=r.value;return _c.call(n.components,f)?n.components[f]:f}if(n.evaluater)return n.evaluater.evaluateExpression(r);Va(n)}function Va(n,a){const u=new Ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw u.file=n.filePath||void 0,u.url=Jp+"#cannot-handle-mdx-estrees-without-createevaluater",u}function ab(n){const a={};let u;for(u in n)_c.call(n,u)&&(a[ub(u)]=n[u]);return a}function ub(n){let a=n.replace(G0,rb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function rb(n){return"-"+n.toLowerCase()}const Gs={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"]},ob={};function Oc(n,a){const u=ob,r=typeof u.includeImageAlt=="boolean"?u.includeImageAlt:!0,f=typeof u.includeHtml=="boolean"?u.includeHtml:!0;return Pp(n,r,f)}function Pp(n,a,u){if(sb(n)){if("value"in n)return n.type==="html"&&!u?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return ip(n.children,a,u)}return Array.isArray(n)?ip(n,a,u):""}function ip(n,a,u){const r=[];let f=-1;for(;++f<n.length;)r[f]=Pp(n[f],a,u);return r.join("")}function sb(n){return!!(n&&typeof n=="object")}const ap=document.createElement("i");function Mc(n){const a="&"+n+";";ap.innerHTML=a;const u=ap.textContent;return u.charCodeAt(u.length-1)===59&&n!=="semi"||u===a?!1:u}function tn(n,a,u,r){const f=n.length;let h=0,c;if(a<0?a=-a>f?0:f+a:a=a>f?f:a,u=u>0?u:0,r.length<1e4)c=Array.from(r),c.unshift(a,u),n.splice(...c);else for(u&&n.splice(a,u);h<r.length;)c=r.slice(h,h+1e4),c.unshift(a,0),n.splice(...c),h+=1e4,a+=1e4}function dn(n,a){return n.length>0?(tn(n,n.length,0,a),n):a}const up={}.hasOwnProperty;function eg(n){const a={};let u=-1;for(;++u<n.length;)cb(a,n[u]);return a}function cb(n,a){let u;for(u in a){const f=(up.call(n,u)?n[u]:void 0)||(n[u]={}),h=a[u];let c;if(h)for(c in h){up.call(f,c)||(f[c]=[]);const m=h[c];fb(f[c],Array.isArray(m)?m:m?[m]:[])}}}function fb(n,a){let u=-1;const r=[];for(;++u<a.length;)(a[u].add==="after"?n:r).push(a[u]);tn(n,0,0,r)}function tg(n,a){const u=Number.parseInt(n,a);return u<9||u===11||u>13&&u<32||u>126&&u<160||u>55295&&u<57344||u>64975&&u<65008||(u&65535)===65535||(u&65535)===65534||u>1114111?"�":String.fromCodePoint(u)}function vn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rt=Sl(/[A-Za-z]/),Dt=Sl(/[\dA-Za-z]/),hb=Sl(/[#-'*+\--9=?A-Z^-~]/);function dr(n){return n!==null&&(n<32||n===127)}const mc=Sl(/\d/),db=Sl(/[\dA-Fa-f]/),mb=Sl(/[!-/:-@[-`{-~]/);function ye(n){return n!==null&&n<-2}function We(n){return n!==null&&(n<0||n===32)}function Ne(n){return n===-2||n===-1||n===32}const br=Sl(new RegExp("\\p{P}|\\p{S}","u")),Xl=Sl(/\s/);function Sl(n){return a;function a(u){return u!==null&&u>-1&&n.test(String.fromCharCode(u))}}function qi(n){const a=[];let u=-1,r=0,f=0;for(;++u<n.length;){const h=n.charCodeAt(u);let c="";if(h===37&&Dt(n.charCodeAt(u+1))&&Dt(n.charCodeAt(u+2)))f=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(c=String.fromCharCode(h));else if(h>55295&&h<57344){const m=n.charCodeAt(u+1);h<56320&&m>56319&&m<57344?(c=String.fromCharCode(h,m),f=1):c="�"}else c=String.fromCharCode(h);c&&(a.push(n.slice(r,u),encodeURIComponent(c)),r=u+f+1,c=""),f&&(u+=f,f=0)}return a.join("")+n.slice(r)}function Ue(n,a,u,r){const f=r?r-1:Number.POSITIVE_INFINITY;let h=0;return c;function c(p){return Ne(p)?(n.enter(u),m(p)):a(p)}function m(p){return Ne(p)&&h++<f?(n.consume(p),m):(n.exit(u),a(p))}}const pb={tokenize:gb};function gb(n){const a=n.attempt(this.parser.constructs.contentInitial,r,f);let u;return a;function r(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Ue(n,a,"linePrefix")}function f(m){return n.enter("paragraph"),h(m)}function h(m){const p=n.enter("chunkText",{contentType:"text",previous:u});return u&&(u.next=p),u=p,c(m)}function c(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return ye(m)?(n.consume(m),n.exit("chunkText"),h):(n.consume(m),c)}}const yb={tokenize:bb},rp={tokenize:vb};function bb(n){const a=this,u=[];let r=0,f,h,c;return m;function m(Q){if(r<u.length){const oe=u[r];return a.containerState=oe[1],n.attempt(oe[0].continuation,p,d)(Q)}return d(Q)}function p(Q){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,f&&K();const oe=a.events.length;let F=oe,D;for(;F--;)if(a.events[F][0]==="exit"&&a.events[F][1].type==="chunkFlow"){D=a.events[F][1].end;break}O(r);let te=oe;for(;te<a.events.length;)a.events[te][1].end={...D},te++;return tn(a.events,F+1,0,a.events.slice(oe)),a.events.length=te,d(Q)}return m(Q)}function d(Q){if(r===u.length){if(!f)return x(Q);if(f.currentConstruct&&f.currentConstruct.concrete)return _(Q);a.interrupt=!!(f.currentConstruct&&!f._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(rp,b,y)(Q)}function b(Q){return f&&K(),O(r),x(Q)}function y(Q){return a.parser.lazy[a.now().line]=r!==u.length,c=a.now().offset,_(Q)}function x(Q){return a.containerState={},n.attempt(rp,S,_)(Q)}function S(Q){return r++,u.push([a.currentConstruct,a.containerState]),x(Q)}function _(Q){if(Q===null){f&&K(),O(0),n.consume(Q);return}return f=f||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:f,contentType:"flow",previous:h}),H(Q)}function H(Q){if(Q===null){G(n.exit("chunkFlow"),!0),O(0),n.consume(Q);return}return ye(Q)?(n.consume(Q),G(n.exit("chunkFlow")),r=0,a.interrupt=void 0,m):(n.consume(Q),H)}function G(Q,oe){const F=a.sliceStream(Q);if(oe&&F.push(null),Q.previous=h,h&&(h.next=Q),h=Q,f.defineSkip(Q.start),f.write(F),a.parser.lazy[Q.start.line]){let D=f.events.length;for(;D--;)if(f.events[D][1].start.offset<c&&(!f.events[D][1].end||f.events[D][1].end.offset>c))return;const te=a.events.length;let me=te,ve,B;for(;me--;)if(a.events[me][0]==="exit"&&a.events[me][1].type==="chunkFlow"){if(ve){B=a.events[me][1].end;break}ve=!0}for(O(r),D=te;D<a.events.length;)a.events[D][1].end={...B},D++;tn(a.events,me+1,0,a.events.slice(te)),a.events.length=D}}function O(Q){let oe=u.length;for(;oe-- >Q;){const F=u[oe];a.containerState=F[1],F[0].exit.call(a,n)}u.length=Q}function K(){f.write([null]),h=void 0,f=void 0,a.containerState._closeFlow=void 0}}function vb(n,a,u){return Ue(n,n.attempt(this.parser.constructs.document,a,u),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ui(n){if(n===null||We(n)||Xl(n))return 1;if(br(n))return 2}function vr(n,a,u){const r=[];let f=-1;for(;++f<n.length;){const h=n[f].resolveAll;h&&!r.includes(h)&&(a=h(a,u),r.push(h))}return a}const pc={name:"attention",resolveAll:Sb,tokenize:xb};function Sb(n,a){let u=-1,r,f,h,c,m,p,d,b;for(;++u<n.length;)if(n[u][0]==="enter"&&n[u][1].type==="attentionSequence"&&n[u][1]._close){for(r=u;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&a.sliceSerialize(n[r][1]).charCodeAt(0)===a.sliceSerialize(n[u][1]).charCodeAt(0)){if((n[r][1]._close||n[u][1]._open)&&(n[u][1].end.offset-n[u][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[u][1].end.offset-n[u][1].start.offset)%3))continue;p=n[r][1].end.offset-n[r][1].start.offset>1&&n[u][1].end.offset-n[u][1].start.offset>1?2:1;const y={...n[r][1].end},x={...n[u][1].start};op(y,-p),op(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[r][1].end}},m={type:p>1?"strongSequence":"emphasisSequence",start:{...n[u][1].start},end:x},h={type:p>1?"strongText":"emphasisText",start:{...n[r][1].end},end:{...n[u][1].start}},f={type:p>1?"strong":"emphasis",start:{...c.start},end:{...m.end}},n[r][1].end={...c.start},n[u][1].start={...m.end},d=[],n[r][1].end.offset-n[r][1].start.offset&&(d=dn(d,[["enter",n[r][1],a],["exit",n[r][1],a]])),d=dn(d,[["enter",f,a],["enter",c,a],["exit",c,a],["enter",h,a]]),d=dn(d,vr(a.parser.constructs.insideSpan.null,n.slice(r+1,u),a)),d=dn(d,[["exit",h,a],["enter",m,a],["exit",m,a],["exit",f,a]]),n[u][1].end.offset-n[u][1].start.offset?(b=2,d=dn(d,[["enter",n[u][1],a],["exit",n[u][1],a]])):b=0,tn(n,r-1,u-r+3,d),u=r+d.length-b-2;break}}for(u=-1;++u<n.length;)n[u][1].type==="attentionSequence"&&(n[u][1].type="data");return n}function xb(n,a){const u=this.parser.constructs.attentionMarkers.null,r=this.previous,f=Ui(r);let h;return c;function c(p){return h=p,n.enter("attentionSequence"),m(p)}function m(p){if(p===h)return n.consume(p),m;const d=n.exit("attentionSequence"),b=Ui(p),y=!b||b===2&&f||u.includes(p),x=!f||f===2&&b||u.includes(r);return d._open=!!(h===42?y:y&&(f||!x)),d._close=!!(h===42?x:x&&(b||!y)),a(p)}}function op(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const Eb={name:"autolink",tokenize:kb};function kb(n,a,u){let r=0;return f;function f(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),h}function h(S){return Rt(S)?(n.consume(S),c):S===64?u(S):d(S)}function c(S){return S===43||S===45||S===46||Dt(S)?(r=1,m(S)):d(S)}function m(S){return S===58?(n.consume(S),r=0,p):(S===43||S===45||S===46||Dt(S))&&r++<32?(n.consume(S),m):(r=0,d(S))}function p(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):S===null||S===32||S===60||dr(S)?u(S):(n.consume(S),p)}function d(S){return S===64?(n.consume(S),b):hb(S)?(n.consume(S),d):u(S)}function b(S){return Dt(S)?y(S):u(S)}function y(S){return S===46?(n.consume(S),r=0,b):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):x(S)}function x(S){if((S===45||Dt(S))&&r++<63){const _=S===45?x:y;return n.consume(S),_}return u(S)}}const Qa={partial:!0,tokenize:Tb};function Tb(n,a,u){return r;function r(h){return Ne(h)?Ue(n,f,"linePrefix")(h):f(h)}function f(h){return h===null||ye(h)?a(h):u(h)}}const ng={continuation:{tokenize:Cb},exit:zb,name:"blockQuote",tokenize:Ab};function Ab(n,a,u){const r=this;return f;function f(c){if(c===62){const m=r.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),h}return u(c)}function h(c){return Ne(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(c))}}function Cb(n,a,u){const r=this;return f;function f(c){return Ne(c)?Ue(n,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):h(c)}function h(c){return n.attempt(ng,a,u)(c)}}function zb(n){n.exit("blockQuote")}const lg={name:"characterEscape",tokenize:_b};function _b(n,a,u){return r;function r(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),f}function f(h){return mb(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):u(h)}}const ig={name:"characterReference",tokenize:wb};function wb(n,a,u){const r=this;let f=0,h,c;return m;function m(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),d):(n.enter("characterReferenceValue"),h=31,c=Dt,b(y))}function d(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,c=db,b):(n.enter("characterReferenceValue"),h=7,c=mc,b(y))}function b(y){if(y===59&&f){const x=n.exit("characterReferenceValue");return c===Dt&&!Mc(r.sliceSerialize(x))?u(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return c(y)&&f++<h?(n.consume(y),b):u(y)}}const sp={partial:!0,tokenize:Ob},cp={concrete:!0,name:"codeFenced",tokenize:Db};function Db(n,a,u){const r=this,f={partial:!0,tokenize:F};let h=0,c=0,m;return p;function p(D){return d(D)}function d(D){const te=r.events[r.events.length-1];return h=te&&te[1].type==="linePrefix"?te[2].sliceSerialize(te[1],!0).length:0,m=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(D)}function b(D){return D===m?(c++,n.consume(D),b):c<3?u(D):(n.exit("codeFencedFenceSequence"),Ne(D)?Ue(n,y,"whitespace")(D):y(D))}function y(D){return D===null||ye(D)?(n.exit("codeFencedFence"),r.interrupt?a(D):n.check(sp,H,oe)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(D))}function x(D){return D===null||ye(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(D)):Ne(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ue(n,S,"whitespace")(D)):D===96&&D===m?u(D):(n.consume(D),x)}function S(D){return D===null||ye(D)?y(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),_(D))}function _(D){return D===null||ye(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(D)):D===96&&D===m?u(D):(n.consume(D),_)}function H(D){return n.attempt(f,oe,G)(D)}function G(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),O}function O(D){return h>0&&Ne(D)?Ue(n,K,"linePrefix",h+1)(D):K(D)}function K(D){return D===null||ye(D)?n.check(sp,H,oe)(D):(n.enter("codeFlowValue"),Q(D))}function Q(D){return D===null||ye(D)?(n.exit("codeFlowValue"),K(D)):(n.consume(D),Q)}function oe(D){return n.exit("codeFenced"),a(D)}function F(D,te,me){let ve=0;return B;function B(P){return D.enter("lineEnding"),D.consume(P),D.exit("lineEnding"),ie}function ie(P){return D.enter("codeFencedFence"),Ne(P)?Ue(D,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ne(P)}function ne(P){return P===m?(D.enter("codeFencedFenceSequence"),ke(P)):me(P)}function ke(P){return P===m?(ve++,D.consume(P),ke):ve>=c?(D.exit("codeFencedFenceSequence"),Ne(P)?Ue(D,ue,"whitespace")(P):ue(P)):me(P)}function ue(P){return P===null||ye(P)?(D.exit("codeFencedFence"),te(P)):me(P)}}}function Ob(n,a,u){const r=this;return f;function f(c){return c===null?u(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),h)}function h(c){return r.parser.lazy[r.now().line]?u(c):a(c)}}const Xs={name:"codeIndented",tokenize:Nb},Mb={partial:!0,tokenize:Rb};function Nb(n,a,u){const r=this;return f;function f(d){return n.enter("codeIndented"),Ue(n,h,"linePrefix",5)(d)}function h(d){const b=r.events[r.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(d):u(d)}function c(d){return d===null?p(d):ye(d)?n.attempt(Mb,c,p)(d):(n.enter("codeFlowValue"),m(d))}function m(d){return d===null||ye(d)?(n.exit("codeFlowValue"),c(d)):(n.consume(d),m)}function p(d){return n.exit("codeIndented"),a(d)}}function Rb(n,a,u){const r=this;return f;function f(c){return r.parser.lazy[r.now().line]?u(c):ye(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),f):Ue(n,h,"linePrefix",5)(c)}function h(c){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(c):ye(c)?f(c):u(c)}}const jb={name:"codeText",previous:Lb,resolve:Bb,tokenize:Ub};function Bb(n){let a=n.length-4,u=3,r,f;if((n[u][1].type==="lineEnding"||n[u][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(r=u;++r<a;)if(n[r][1].type==="codeTextData"){n[u][1].type="codeTextPadding",n[a][1].type="codeTextPadding",u+=2,a-=2;break}}for(r=u-1,a++;++r<=a;)f===void 0?r!==a&&n[r][1].type!=="lineEnding"&&(f=r):(r===a||n[r][1].type==="lineEnding")&&(n[f][1].type="codeTextData",r!==f+2&&(n[f][1].end=n[r-1][1].end,n.splice(f+2,r-f-2),a-=r-f-2,r=f+2),f=void 0);return n}function Lb(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ub(n,a,u){let r=0,f,h;return c;function c(y){return n.enter("codeText"),n.enter("codeTextSequence"),m(y)}function m(y){return y===96?(n.consume(y),r++,m):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?u(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(h=n.enter("codeTextSequence"),f=0,b(y)):ye(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||ye(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),d)}function b(y){return y===96?(n.consume(y),f++,b):f===r?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(h.type="codeTextData",d(y))}}class Hb{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,u){const r=u??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,u,r){const f=u||0;this.setCursor(Math.trunc(a));const h=this.right.splice(this.right.length-f,Number.POSITIVE_INFINITY);return r&&Ba(this.left,r),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Ba(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ba(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const u=this.left.splice(a,Number.POSITIVE_INFINITY);Ba(this.right,u.reverse())}else{const u=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ba(this.left,u.reverse())}}}function Ba(n,a){let u=0;if(a.length<1e4)n.push(...a);else for(;u<a.length;)n.push(...a.slice(u,u+1e4)),u+=1e4}function ag(n){const a={};let u=-1,r,f,h,c,m,p,d;const b=new Hb(n);for(;++u<b.length;){for(;u in a;)u=a[u];if(r=b.get(u),u&&r[1].type==="chunkFlow"&&b.get(u-1)[1].type==="listItemPrefix"&&(p=r[1]._tokenizer.events,h=0,h<p.length&&p[h][1].type==="lineEndingBlank"&&(h+=2),h<p.length&&p[h][1].type==="content"))for(;++h<p.length&&p[h][1].type!=="content";)p[h][1].type==="chunkText"&&(p[h][1]._isInFirstContentOfListItem=!0,h++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,qb(b,u)),u=a[u],d=!0);else if(r[1]._container){for(h=u,f=void 0;h--;)if(c=b.get(h),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(f&&(b.get(f)[1].type="lineEndingBlank"),c[1].type="lineEnding",f=h);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;f&&(r[1].end={...b.get(f)[1].start},m=b.slice(f,u),m.unshift(r),b.splice(f,u-f+1,m))}}return tn(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!d}function qb(n,a){const u=n.get(a)[1],r=n.get(a)[2];let f=a-1;const h=[];let c=u._tokenizer;c||(c=r.parser[u.contentType](u.start),u._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const m=c.events,p=[],d={};let b,y,x=-1,S=u,_=0,H=0;const G=[H];for(;S;){for(;n.get(++f)[1]!==S;);h.push(f),S._tokenizer||(b=r.sliceStream(S),S.next||b.push(null),y&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=u;++x<m.length;)m[x][0]==="exit"&&m[x-1][0]==="enter"&&m[x][1].type===m[x-1][1].type&&m[x][1].start.line!==m[x][1].end.line&&(H=x+1,G.push(H),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):G.pop(),x=G.length;x--;){const O=m.slice(G[x],G[x+1]),K=h.pop();p.push([K,K+O.length-1]),n.splice(K,2,O)}for(p.reverse(),x=-1;++x<p.length;)d[_+p[x][0]]=_+p[x][1],_+=p[x][1]-p[x][0]-1;return d}const Yb={resolve:Gb,tokenize:Xb},Vb={partial:!0,tokenize:Qb};function Gb(n){return ag(n),n}function Xb(n,a){let u;return r;function r(m){return n.enter("content"),u=n.enter("chunkContent",{contentType:"content"}),f(m)}function f(m){return m===null?h(m):ye(m)?n.check(Vb,c,h)(m):(n.consume(m),f)}function h(m){return n.exit("chunkContent"),n.exit("content"),a(m)}function c(m){return n.consume(m),n.exit("chunkContent"),u.next=n.enter("chunkContent",{contentType:"content",previous:u}),u=u.next,f}}function Qb(n,a,u){const r=this;return f;function f(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Ue(n,h,"linePrefix")}function h(c){if(c===null||ye(c))return u(c);const m=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(c):n.interrupt(r.parser.constructs.flow,u,a)(c)}}function ug(n,a,u,r,f,h,c,m,p){const d=p||Number.POSITIVE_INFINITY;let b=0;return y;function y(O){return O===60?(n.enter(r),n.enter(f),n.enter(h),n.consume(O),n.exit(h),x):O===null||O===32||O===41||dr(O)?u(O):(n.enter(r),n.enter(c),n.enter(m),n.enter("chunkString",{contentType:"string"}),H(O))}function x(O){return O===62?(n.enter(h),n.consume(O),n.exit(h),n.exit(f),n.exit(r),a):(n.enter(m),n.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===62?(n.exit("chunkString"),n.exit(m),x(O)):O===null||O===60||ye(O)?u(O):(n.consume(O),O===92?_:S)}function _(O){return O===60||O===62||O===92?(n.consume(O),S):S(O)}function H(O){return!b&&(O===null||O===41||We(O))?(n.exit("chunkString"),n.exit(m),n.exit(c),n.exit(r),a(O)):b<d&&O===40?(n.consume(O),b++,H):O===41?(n.consume(O),b--,H):O===null||O===32||O===40||dr(O)?u(O):(n.consume(O),O===92?G:H)}function G(O){return O===40||O===41||O===92?(n.consume(O),H):H(O)}}function rg(n,a,u,r,f,h){const c=this;let m=0,p;return d;function d(S){return n.enter(r),n.enter(f),n.consume(S),n.exit(f),n.enter(h),b}function b(S){return m>999||S===null||S===91||S===93&&!p||S===94&&!m&&"_hiddenFootnoteSupport"in c.parser.constructs?u(S):S===93?(n.exit(h),n.enter(f),n.consume(S),n.exit(f),n.exit(r),a):ye(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||ye(S)||m++>999?(n.exit("chunkString"),b(S)):(n.consume(S),p||(p=!Ne(S)),S===92?x:y)}function x(S){return S===91||S===92||S===93?(n.consume(S),m++,y):y(S)}}function og(n,a,u,r,f,h){let c;return m;function m(x){return x===34||x===39||x===40?(n.enter(r),n.enter(f),n.consume(x),n.exit(f),c=x===40?41:x,p):u(x)}function p(x){return x===c?(n.enter(f),n.consume(x),n.exit(f),n.exit(r),a):(n.enter(h),d(x))}function d(x){return x===c?(n.exit(h),p(c)):x===null?u(x):ye(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),Ue(n,d,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===c||x===null||ye(x)?(n.exit("chunkString"),d(x)):(n.consume(x),x===92?y:b)}function y(x){return x===c||x===92?(n.consume(x),b):b(x)}}function Ha(n,a){let u;return r;function r(f){return ye(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),u=!0,r):Ne(f)?Ue(n,r,u?"linePrefix":"lineSuffix")(f):a(f)}}const Zb={name:"definition",tokenize:Ib},Kb={partial:!0,tokenize:Jb};function Ib(n,a,u){const r=this;let f;return h;function h(S){return n.enter("definition"),c(S)}function c(S){return rg.call(r,n,m,u,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return f=vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),p):u(S)}function p(S){return We(S)?Ha(n,d)(S):d(S)}function d(S){return ug(n,b,u,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function b(S){return n.attempt(Kb,y,y)(S)}function y(S){return Ne(S)?Ue(n,x,"whitespace")(S):x(S)}function x(S){return S===null||ye(S)?(n.exit("definition"),r.parser.defined.push(f),a(S)):u(S)}}function Jb(n,a,u){return r;function r(m){return We(m)?Ha(n,f)(m):u(m)}function f(m){return og(n,h,u,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function h(m){return Ne(m)?Ue(n,c,"whitespace")(m):c(m)}function c(m){return m===null||ye(m)?a(m):u(m)}}const Fb={name:"hardBreakEscape",tokenize:$b};function $b(n,a,u){return r;function r(h){return n.enter("hardBreakEscape"),n.consume(h),f}function f(h){return ye(h)?(n.exit("hardBreakEscape"),a(h)):u(h)}}const Wb={name:"headingAtx",resolve:Pb,tokenize:ev};function Pb(n,a){let u=n.length-2,r=3,f,h;return n[r][1].type==="whitespace"&&(r+=2),u-2>r&&n[u][1].type==="whitespace"&&(u-=2),n[u][1].type==="atxHeadingSequence"&&(r===u-1||u-4>r&&n[u-2][1].type==="whitespace")&&(u-=r+1===u?2:4),u>r&&(f={type:"atxHeadingText",start:n[r][1].start,end:n[u][1].end},h={type:"chunkText",start:n[r][1].start,end:n[u][1].end,contentType:"text"},tn(n,r,u-r+1,[["enter",f,a],["enter",h,a],["exit",h,a],["exit",f,a]])),n}function ev(n,a,u){let r=0;return f;function f(b){return n.enter("atxHeading"),h(b)}function h(b){return n.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&r++<6?(n.consume(b),c):b===null||We(b)?(n.exit("atxHeadingSequence"),m(b)):u(b)}function m(b){return b===35?(n.enter("atxHeadingSequence"),p(b)):b===null||ye(b)?(n.exit("atxHeading"),a(b)):Ne(b)?Ue(n,m,"whitespace")(b):(n.enter("atxHeadingText"),d(b))}function p(b){return b===35?(n.consume(b),p):(n.exit("atxHeadingSequence"),m(b))}function d(b){return b===null||b===35||We(b)?(n.exit("atxHeadingText"),m(b)):(n.consume(b),d)}}const tv=["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"],fp=["pre","script","style","textarea"],nv={concrete:!0,name:"htmlFlow",resolveTo:av,tokenize:uv},lv={partial:!0,tokenize:ov},iv={partial:!0,tokenize:rv};function av(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function uv(n,a,u){const r=this;let f,h,c,m,p;return d;function d(E){return b(E)}function b(E){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(E),y}function y(E){return E===33?(n.consume(E),x):E===47?(n.consume(E),h=!0,H):E===63?(n.consume(E),f=3,r.interrupt?a:k):Rt(E)?(n.consume(E),c=String.fromCharCode(E),G):u(E)}function x(E){return E===45?(n.consume(E),f=2,S):E===91?(n.consume(E),f=5,m=0,_):Rt(E)?(n.consume(E),f=4,r.interrupt?a:k):u(E)}function S(E){return E===45?(n.consume(E),r.interrupt?a:k):u(E)}function _(E){const ee="CDATA[";return E===ee.charCodeAt(m++)?(n.consume(E),m===ee.length?r.interrupt?a:ne:_):u(E)}function H(E){return Rt(E)?(n.consume(E),c=String.fromCharCode(E),G):u(E)}function G(E){if(E===null||E===47||E===62||We(E)){const ee=E===47,ge=c.toLowerCase();return!ee&&!h&&fp.includes(ge)?(f=1,r.interrupt?a(E):ne(E)):tv.includes(c.toLowerCase())?(f=6,ee?(n.consume(E),O):r.interrupt?a(E):ne(E)):(f=7,r.interrupt&&!r.parser.lazy[r.now().line]?u(E):h?K(E):Q(E))}return E===45||Dt(E)?(n.consume(E),c+=String.fromCharCode(E),G):u(E)}function O(E){return E===62?(n.consume(E),r.interrupt?a:ne):u(E)}function K(E){return Ne(E)?(n.consume(E),K):B(E)}function Q(E){return E===47?(n.consume(E),B):E===58||E===95||Rt(E)?(n.consume(E),oe):Ne(E)?(n.consume(E),Q):B(E)}function oe(E){return E===45||E===46||E===58||E===95||Dt(E)?(n.consume(E),oe):F(E)}function F(E){return E===61?(n.consume(E),D):Ne(E)?(n.consume(E),F):Q(E)}function D(E){return E===null||E===60||E===61||E===62||E===96?u(E):E===34||E===39?(n.consume(E),p=E,te):Ne(E)?(n.consume(E),D):me(E)}function te(E){return E===p?(n.consume(E),p=null,ve):E===null||ye(E)?u(E):(n.consume(E),te)}function me(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||We(E)?F(E):(n.consume(E),me)}function ve(E){return E===47||E===62||Ne(E)?Q(E):u(E)}function B(E){return E===62?(n.consume(E),ie):u(E)}function ie(E){return E===null||ye(E)?ne(E):Ne(E)?(n.consume(E),ie):u(E)}function ne(E){return E===45&&f===2?(n.consume(E),R):E===60&&f===1?(n.consume(E),I):E===62&&f===4?(n.consume(E),A):E===63&&f===3?(n.consume(E),k):E===93&&f===5?(n.consume(E),Se):ye(E)&&(f===6||f===7)?(n.exit("htmlFlowData"),n.check(lv,q,ke)(E)):E===null||ye(E)?(n.exit("htmlFlowData"),ke(E)):(n.consume(E),ne)}function ke(E){return n.check(iv,ue,q)(E)}function ue(E){return n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),P}function P(E){return E===null||ye(E)?ke(E):(n.enter("htmlFlowData"),ne(E))}function R(E){return E===45?(n.consume(E),k):ne(E)}function I(E){return E===47?(n.consume(E),c="",ae):ne(E)}function ae(E){if(E===62){const ee=c.toLowerCase();return fp.includes(ee)?(n.consume(E),A):ne(E)}return Rt(E)&&c.length<8?(n.consume(E),c+=String.fromCharCode(E),ae):ne(E)}function Se(E){return E===93?(n.consume(E),k):ne(E)}function k(E){return E===62?(n.consume(E),A):E===45&&f===2?(n.consume(E),k):ne(E)}function A(E){return E===null||ye(E)?(n.exit("htmlFlowData"),q(E)):(n.consume(E),A)}function q(E){return n.exit("htmlFlow"),a(E)}}function rv(n,a,u){const r=this;return f;function f(c){return ye(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),h):u(c)}function h(c){return r.parser.lazy[r.now().line]?u(c):a(c)}}function ov(n,a,u){return r;function r(f){return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),n.attempt(Qa,a,u)}}const sv={name:"htmlText",tokenize:cv};function cv(n,a,u){const r=this;let f,h,c;return m;function m(k){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(k),p}function p(k){return k===33?(n.consume(k),d):k===47?(n.consume(k),F):k===63?(n.consume(k),Q):Rt(k)?(n.consume(k),me):u(k)}function d(k){return k===45?(n.consume(k),b):k===91?(n.consume(k),h=0,_):Rt(k)?(n.consume(k),K):u(k)}function b(k){return k===45?(n.consume(k),S):u(k)}function y(k){return k===null?u(k):k===45?(n.consume(k),x):ye(k)?(c=y,I(k)):(n.consume(k),y)}function x(k){return k===45?(n.consume(k),S):y(k)}function S(k){return k===62?R(k):k===45?x(k):y(k)}function _(k){const A="CDATA[";return k===A.charCodeAt(h++)?(n.consume(k),h===A.length?H:_):u(k)}function H(k){return k===null?u(k):k===93?(n.consume(k),G):ye(k)?(c=H,I(k)):(n.consume(k),H)}function G(k){return k===93?(n.consume(k),O):H(k)}function O(k){return k===62?R(k):k===93?(n.consume(k),O):H(k)}function K(k){return k===null||k===62?R(k):ye(k)?(c=K,I(k)):(n.consume(k),K)}function Q(k){return k===null?u(k):k===63?(n.consume(k),oe):ye(k)?(c=Q,I(k)):(n.consume(k),Q)}function oe(k){return k===62?R(k):Q(k)}function F(k){return Rt(k)?(n.consume(k),D):u(k)}function D(k){return k===45||Dt(k)?(n.consume(k),D):te(k)}function te(k){return ye(k)?(c=te,I(k)):Ne(k)?(n.consume(k),te):R(k)}function me(k){return k===45||Dt(k)?(n.consume(k),me):k===47||k===62||We(k)?ve(k):u(k)}function ve(k){return k===47?(n.consume(k),R):k===58||k===95||Rt(k)?(n.consume(k),B):ye(k)?(c=ve,I(k)):Ne(k)?(n.consume(k),ve):R(k)}function B(k){return k===45||k===46||k===58||k===95||Dt(k)?(n.consume(k),B):ie(k)}function ie(k){return k===61?(n.consume(k),ne):ye(k)?(c=ie,I(k)):Ne(k)?(n.consume(k),ie):ve(k)}function ne(k){return k===null||k===60||k===61||k===62||k===96?u(k):k===34||k===39?(n.consume(k),f=k,ke):ye(k)?(c=ne,I(k)):Ne(k)?(n.consume(k),ne):(n.consume(k),ue)}function ke(k){return k===f?(n.consume(k),f=void 0,P):k===null?u(k):ye(k)?(c=ke,I(k)):(n.consume(k),ke)}function ue(k){return k===null||k===34||k===39||k===60||k===61||k===96?u(k):k===47||k===62||We(k)?ve(k):(n.consume(k),ue)}function P(k){return k===47||k===62||We(k)?ve(k):u(k)}function R(k){return k===62?(n.consume(k),n.exit("htmlTextData"),n.exit("htmlText"),a):u(k)}function I(k){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),ae}function ae(k){return Ne(k)?Ue(n,Se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):Se(k)}function Se(k){return n.enter("htmlTextData"),c(k)}}const Nc={name:"labelEnd",resolveAll:mv,resolveTo:pv,tokenize:gv},fv={tokenize:yv},hv={tokenize:bv},dv={tokenize:vv};function mv(n){let a=-1;const u=[];for(;++a<n.length;){const r=n[a][1];if(u.push(n[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const f=r.type==="labelImage"?4:2;r.type="data",a+=f}}return n.length!==u.length&&tn(n,0,n.length,u),n}function pv(n,a){let u=n.length,r=0,f,h,c,m;for(;u--;)if(f=n[u][1],h){if(f.type==="link"||f.type==="labelLink"&&f._inactive)break;n[u][0]==="enter"&&f.type==="labelLink"&&(f._inactive=!0)}else if(c){if(n[u][0]==="enter"&&(f.type==="labelImage"||f.type==="labelLink")&&!f._balanced&&(h=u,f.type!=="labelLink")){r=2;break}}else f.type==="labelEnd"&&(c=u);const p={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},d={type:"label",start:{...n[h][1].start},end:{...n[c][1].end}},b={type:"labelText",start:{...n[h+r+2][1].end},end:{...n[c-2][1].start}};return m=[["enter",p,a],["enter",d,a]],m=dn(m,n.slice(h+1,h+r+3)),m=dn(m,[["enter",b,a]]),m=dn(m,vr(a.parser.constructs.insideSpan.null,n.slice(h+r+4,c-3),a)),m=dn(m,[["exit",b,a],n[c-2],n[c-1],["exit",d,a]]),m=dn(m,n.slice(c+1)),m=dn(m,[["exit",p,a]]),tn(n,h,n.length,m),n}function gv(n,a,u){const r=this;let f=r.events.length,h,c;for(;f--;)if((r.events[f][1].type==="labelImage"||r.events[f][1].type==="labelLink")&&!r.events[f][1]._balanced){h=r.events[f][1];break}return m;function m(x){return h?h._inactive?y(x):(c=r.parser.defined.includes(vn(r.sliceSerialize({start:h.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),p):u(x)}function p(x){return x===40?n.attempt(fv,b,c?b:y)(x):x===91?n.attempt(hv,b,c?d:y)(x):c?b(x):y(x)}function d(x){return n.attempt(dv,b,y)(x)}function b(x){return a(x)}function y(x){return h._balanced=!0,u(x)}}function yv(n,a,u){return r;function r(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),f}function f(y){return We(y)?Ha(n,h)(y):h(y)}function h(y){return y===41?b(y):ug(n,c,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return We(y)?Ha(n,p)(y):b(y)}function m(y){return u(y)}function p(y){return y===34||y===39||y===40?og(n,d,u,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):b(y)}function d(y){return We(y)?Ha(n,b)(y):b(y)}function b(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):u(y)}}function bv(n,a,u){const r=this;return f;function f(m){return rg.call(r,n,h,c,"reference","referenceMarker","referenceString")(m)}function h(m){return r.parser.defined.includes(vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(m):u(m)}function c(m){return u(m)}}function vv(n,a,u){return r;function r(h){return n.enter("reference"),n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),f}function f(h){return h===93?(n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),n.exit("reference"),a):u(h)}}const Sv={name:"labelStartImage",resolveAll:Nc.resolveAll,tokenize:xv};function xv(n,a,u){const r=this;return f;function f(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),h}function h(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),c):u(m)}function c(m){return m===94&&"_hiddenFootnoteSupport"in r.parser.constructs?u(m):a(m)}}const Ev={name:"labelStartLink",resolveAll:Nc.resolveAll,tokenize:kv};function kv(n,a,u){const r=this;return f;function f(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),h}function h(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?u(c):a(c)}}const Qs={name:"lineEnding",tokenize:Tv};function Tv(n,a){return u;function u(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),Ue(n,a,"linePrefix")}}const hr={name:"thematicBreak",tokenize:Av};function Av(n,a,u){let r=0,f;return h;function h(d){return n.enter("thematicBreak"),c(d)}function c(d){return f=d,m(d)}function m(d){return d===f?(n.enter("thematicBreakSequence"),p(d)):r>=3&&(d===null||ye(d))?(n.exit("thematicBreak"),a(d)):u(d)}function p(d){return d===f?(n.consume(d),r++,p):(n.exit("thematicBreakSequence"),Ne(d)?Ue(n,m,"whitespace")(d):m(d))}}const Vt={continuation:{tokenize:wv},exit:Ov,name:"list",tokenize:_v},Cv={partial:!0,tokenize:Mv},zv={partial:!0,tokenize:Dv};function _v(n,a,u){const r=this,f=r.events[r.events.length-1];let h=f&&f[1].type==="linePrefix"?f[2].sliceSerialize(f[1],!0).length:0,c=0;return m;function m(S){const _=r.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!r.containerState.marker||S===r.containerState.marker:mc(S)){if(r.containerState.type||(r.containerState.type=_,n.enter(_,{_container:!0})),_==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(hr,u,d)(S):d(S);if(!r.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(S)}return u(S)}function p(S){return mc(S)&&++c<10?(n.consume(S),p):(!r.interrupt||c<2)&&(r.containerState.marker?S===r.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),d(S)):u(S)}function d(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||S,n.check(Qa,r.interrupt?u:b,n.attempt(Cv,x,y))}function b(S){return r.containerState.initialBlankLine=!0,h++,x(S)}function y(S){return Ne(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),x):u(S)}function x(S){return r.containerState.size=h+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(S)}}function wv(n,a,u){const r=this;return r.containerState._closeFlow=void 0,n.check(Qa,f,h);function f(m){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ue(n,a,"listItemIndent",r.containerState.size+1)(m)}function h(m){return r.containerState.furtherBlankLines||!Ne(m)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(m)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(zv,a,c)(m))}function c(m){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ue(n,n.attempt(Vt,a,u),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Dv(n,a,u){const r=this;return Ue(n,f,"listItemIndent",r.containerState.size+1);function f(h){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?a(h):u(h)}}function Ov(n){n.exit(this.containerState.type)}function Mv(n,a,u){const r=this;return Ue(n,f,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function f(h){const c=r.events[r.events.length-1];return!Ne(h)&&c&&c[1].type==="listItemPrefixWhitespace"?a(h):u(h)}}const hp={name:"setextUnderline",resolveTo:Nv,tokenize:Rv};function Nv(n,a){let u=n.length,r,f,h;for(;u--;)if(n[u][0]==="enter"){if(n[u][1].type==="content"){r=u;break}n[u][1].type==="paragraph"&&(f=u)}else n[u][1].type==="content"&&n.splice(u,1),!h&&n[u][1].type==="definition"&&(h=u);const c={type:"setextHeading",start:{...n[r][1].start},end:{...n[n.length-1][1].end}};return n[f][1].type="setextHeadingText",h?(n.splice(f,0,["enter",c,a]),n.splice(h+1,0,["exit",n[r][1],a]),n[r][1].end={...n[h][1].end}):n[r][1]=c,n.push(["exit",c,a]),n}function Rv(n,a,u){const r=this;let f;return h;function h(d){let b=r.events.length,y;for(;b--;)if(r.events[b][1].type!=="lineEnding"&&r.events[b][1].type!=="linePrefix"&&r.events[b][1].type!=="content"){y=r.events[b][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(n.enter("setextHeadingLine"),f=d,c(d)):u(d)}function c(d){return n.enter("setextHeadingLineSequence"),m(d)}function m(d){return d===f?(n.consume(d),m):(n.exit("setextHeadingLineSequence"),Ne(d)?Ue(n,p,"lineSuffix")(d):p(d))}function p(d){return d===null||ye(d)?(n.exit("setextHeadingLine"),a(d)):u(d)}}const jv={tokenize:Bv};function Bv(n){const a=this,u=n.attempt(Qa,r,n.attempt(this.parser.constructs.flowInitial,f,Ue(n,n.attempt(this.parser.constructs.flow,f,n.attempt(Yb,f)),"linePrefix")));return u;function r(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),a.currentConstruct=void 0,u}function f(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),a.currentConstruct=void 0,u}}const Lv={resolveAll:cg()},Uv=sg("string"),Hv=sg("text");function sg(n){return{resolveAll:cg(n==="text"?qv:void 0),tokenize:a};function a(u){const r=this,f=this.parser.constructs[n],h=u.attempt(f,c,m);return c;function c(b){return d(b)?h(b):m(b)}function m(b){if(b===null){u.consume(b);return}return u.enter("data"),u.consume(b),p}function p(b){return d(b)?(u.exit("data"),h(b)):(u.consume(b),p)}function d(b){if(b===null)return!0;const y=f[b];let x=-1;if(y)for(;++x<y.length;){const S=y[x];if(!S.previous||S.previous.call(r,r.previous))return!0}return!1}}}function cg(n){return a;function a(u,r){let f=-1,h;for(;++f<=u.length;)h===void 0?u[f]&&u[f][1].type==="data"&&(h=f,f++):(!u[f]||u[f][1].type!=="data")&&(f!==h+2&&(u[h][1].end=u[f-1][1].end,u.splice(h+2,f-h-2),f=h+2),h=void 0);return n?n(u,r):u}}function qv(n,a){let u=0;for(;++u<=n.length;)if((u===n.length||n[u][1].type==="lineEnding")&&n[u-1][1].type==="data"){const r=n[u-1][1],f=a.sliceStream(r);let h=f.length,c=-1,m=0,p;for(;h--;){const d=f[h];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)m++,c--;if(c)break;c=-1}else if(d===-2)p=!0,m++;else if(d!==-1){h++;break}}if(a._contentTypeTextTrailing&&u===n.length&&(m=0),m){const d={type:u===n.length||p||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?c:r.start._bufferIndex+c,_index:r.start._index+h,line:r.end.line,column:r.end.column-m,offset:r.end.offset-m},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(n.splice(u,0,["enter",d,a],["exit",d,a]),u+=2)}u++}return n}const Yv={42:Vt,43:Vt,45:Vt,48:Vt,49:Vt,50:Vt,51:Vt,52:Vt,53:Vt,54:Vt,55:Vt,56:Vt,57:Vt,62:ng},Vv={91:Zb},Gv={[-2]:Xs,[-1]:Xs,32:Xs},Xv={35:Wb,42:hr,45:[hp,hr],60:nv,61:hp,95:hr,96:cp,126:cp},Qv={38:ig,92:lg},Zv={[-5]:Qs,[-4]:Qs,[-3]:Qs,33:Sv,38:ig,42:pc,60:[Eb,sv],91:Ev,92:[Fb,lg],93:Nc,95:pc,96:jb},Kv={null:[pc,Lv]},Iv={null:[42,95]},Jv={null:[]},Fv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Iv,contentInitial:Vv,disable:Jv,document:Yv,flow:Xv,flowInitial:Gv,insideSpan:Kv,string:Qv,text:Zv},Symbol.toStringTag,{value:"Module"}));function $v(n,a,u){let r={_bufferIndex:-1,_index:0,line:u&&u.line||1,column:u&&u.column||1,offset:u&&u.offset||0};const f={},h=[];let c=[],m=[];const p={attempt:te(F),check:te(D),consume:K,enter:Q,exit:oe,interrupt:te(D,{interrupt:!0})},d={code:null,containerState:{},defineSkip:H,events:[],now:_,parser:n,previous:null,sliceSerialize:x,sliceStream:S,write:y};let b=a.tokenize.call(d,p);return a.resolveAll&&h.push(a),d;function y(ie){return c=dn(c,ie),G(),c[c.length-1]!==null?[]:(me(a,0),d.events=vr(h,d.events,d),d.events)}function x(ie,ne){return Pv(S(ie),ne)}function S(ie){return Wv(c,ie)}function _(){const{_bufferIndex:ie,_index:ne,line:ke,column:ue,offset:P}=r;return{_bufferIndex:ie,_index:ne,line:ke,column:ue,offset:P}}function H(ie){f[ie.line]=ie.column,B()}function G(){let ie;for(;r._index<c.length;){const ne=c[r._index];if(typeof ne=="string")for(ie=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===ie&&r._bufferIndex<ne.length;)O(ne.charCodeAt(r._bufferIndex));else O(ne)}}function O(ie){b=b(ie)}function K(ie){ye(ie)?(r.line++,r.column=1,r.offset+=ie===-3?2:1,B()):ie!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=ie}function Q(ie,ne){const ke=ne||{};return ke.type=ie,ke.start=_(),d.events.push(["enter",ke,d]),m.push(ke),ke}function oe(ie){const ne=m.pop();return ne.end=_(),d.events.push(["exit",ne,d]),ne}function F(ie,ne){me(ie,ne.from)}function D(ie,ne){ne.restore()}function te(ie,ne){return ke;function ke(ue,P,R){let I,ae,Se,k;return Array.isArray(ue)?q(ue):"tokenize"in ue?q([ue]):A(ue);function A(fe){return we;function we(_e){const He=_e!==null&&fe[_e],ct=_e!==null&&fe.null,xt=[...Array.isArray(He)?He:He?[He]:[],...Array.isArray(ct)?ct:ct?[ct]:[]];return q(xt)(_e)}}function q(fe){return I=fe,ae=0,fe.length===0?R:E(fe[ae])}function E(fe){return we;function we(_e){return k=ve(),Se=fe,fe.partial||(d.currentConstruct=fe),fe.name&&d.parser.constructs.disable.null.includes(fe.name)?ge():fe.tokenize.call(ne?Object.assign(Object.create(d),ne):d,p,ee,ge)(_e)}}function ee(fe){return ie(Se,k),P}function ge(fe){return k.restore(),++ae<I.length?E(I[ae]):R}}}function me(ie,ne){ie.resolveAll&&!h.includes(ie)&&h.push(ie),ie.resolve&&tn(d.events,ne,d.events.length-ne,ie.resolve(d.events.slice(ne),d)),ie.resolveTo&&(d.events=ie.resolveTo(d.events,d))}function ve(){const ie=_(),ne=d.previous,ke=d.currentConstruct,ue=d.events.length,P=Array.from(m);return{from:ue,restore:R};function R(){r=ie,d.previous=ne,d.currentConstruct=ke,d.events.length=ue,m=P,B()}}function B(){r.line in f&&r.column<2&&(r.column=f[r.line],r.offset+=f[r.line]-1)}}function Wv(n,a){const u=a.start._index,r=a.start._bufferIndex,f=a.end._index,h=a.end._bufferIndex;let c;if(u===f)c=[n[u].slice(r,h)];else{if(c=n.slice(u,f),r>-1){const m=c[0];typeof m=="string"?c[0]=m.slice(r):c.shift()}h>0&&c.push(n[f].slice(0,h))}return c}function Pv(n,a){let u=-1;const r=[];let f;for(;++u<n.length;){const h=n[u];let c;if(typeof h=="string")c=h;else switch(h){case-5:{c="\r";break}case-4:{c=`
51
+ `;break}case-3:{c=`\r
52
+ `;break}case-2:{c=a?" ":" ";break}case-1:{if(!a&&f)continue;c=" ";break}default:c=String.fromCharCode(h)}f=h===-2,r.push(c)}return r.join("")}function eS(n){const r={constructs:eg([Fv,...(n||{}).extensions||[]]),content:f(pb),defined:[],document:f(yb),flow:f(jv),lazy:{},string:f(Uv),text:f(Hv)};return r;function f(h){return c;function c(m){return $v(r,h,m)}}}function tS(n){for(;!ag(n););return n}const dp=/[\0\t\n\r]/g;function nS(){let n=1,a="",u=!0,r;return f;function f(h,c,m){const p=[];let d,b,y,x,S;for(h=a+(typeof h=="string"?h.toString():new TextDecoder(c||void 0).decode(h)),y=0,a="",u&&(h.charCodeAt(0)===65279&&y++,u=void 0);y<h.length;){if(dp.lastIndex=y,d=dp.exec(h),x=d&&d.index!==void 0?d.index:h.length,S=h.charCodeAt(x),!d){a=h.slice(y);break}if(S===10&&y===x&&r)p.push(-3),r=void 0;else switch(r&&(p.push(-5),r=void 0),y<x&&(p.push(h.slice(y,x)),n+=x-y),S){case 0:{p.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,p.push(-2);n++<b;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:r=!0,n=1}y=x+1}return m&&(r&&p.push(-5),a&&p.push(a),p.push(null)),p}}const lS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iS(n){return n.replace(lS,aS)}function aS(n,a,u){if(a)return a;if(u.charCodeAt(0)===35){const f=u.charCodeAt(1),h=f===120||f===88;return tg(u.slice(h?2:1),h?16:10)}return Mc(u)||n}const fg={}.hasOwnProperty;function uS(n,a,u){return typeof a!="string"&&(u=a,a=void 0),rS(u)(tS(eS(u).document().write(nS()(n,a,!0))))}function rS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(xn),autolinkProtocol:ve,autolinkEmail:ve,atxHeading:h(Ge),blockQuote:h(ct),characterEscape:ve,characterReference:ve,codeFenced:h(xt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:h(xt,c),codeText:h(Xt,c),codeTextData:ve,data:ve,codeFlowValue:ve,definition:h(Sn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:h(mn),hardBreakEscape:h(qe),hardBreakTrailing:h(qe),htmlFlow:h(xl,c),htmlFlowData:ve,htmlText:h(xl,c),htmlTextData:ve,image:h(Zl),label:c,link:h(xn),listItem:h(El),listItemValue:x,listOrdered:h(wn,y),listUnordered:h(wn),paragraph:h(Yi),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:h(Ge),strong:h(Kl),thematicBreak:h(Vi)},exit:{atxHeading:p(),atxHeadingSequence:F,autolink:p(),autolinkEmail:He,autolinkProtocol:_e,blockQuote:p(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:fe,characterReference:we,codeFenced:p(G),codeFencedFence:H,codeFencedFenceInfo:S,codeFencedFenceMeta:_,codeFlowValue:B,codeIndented:p(O),codeText:p(P),codeTextData:B,data:B,definition:p(),definitionDestinationString:oe,definitionLabelString:K,definitionTitleString:Q,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(ke),htmlFlowData:B,htmlText:p(ue),htmlTextData:B,image:p(I),label:Se,labelText:ae,lineEnding:ie,link:p(R),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ee,resourceDestinationString:k,resourceTitleString:A,resource:q,setextHeading:p(me),setextHeadingLineSequence:te,setextHeadingText:D,strong:p(),thematicBreak:p()}};hg(a,(n||{}).mdastExtensions||[]);const u={};return r;function r(Y){let W={type:"root",children:[]};const pe={stack:[W],tokenStack:[],config:a,enter:m,exit:d,buffer:c,resume:b,data:u},ze=[];let Le=-1;for(;++Le<Y.length;)if(Y[Le][1].type==="listOrdered"||Y[Le][1].type==="listUnordered")if(Y[Le][0]==="enter")ze.push(Le);else{const Mt=ze.pop();Le=f(Y,Mt,Le)}for(Le=-1;++Le<Y.length;){const Mt=a[Y[Le][0]];fg.call(Mt,Y[Le][1].type)&&Mt[Y[Le][1].type].call(Object.assign({sliceSerialize:Y[Le][2].sliceSerialize},pe),Y[Le][1])}if(pe.tokenStack.length>0){const Mt=pe.tokenStack[pe.tokenStack.length-1];(Mt[1]||mp).call(pe,void 0,Mt[0])}for(W.position={start:vl(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:vl(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<a.transforms.length;)W=a.transforms[Le](W)||W;return W}function f(Y,W,pe){let ze=W-1,Le=-1,Mt=!1,pn,kt,it,bt;for(;++ze<=pe;){const Qe=Y[ze];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Le++:Le--,bt=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(pn&&!bt&&!Le&&!it&&(it=ze),bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:bt=void 0}if(!Le&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Le===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(pn){let En=ze;for(kt=void 0;En--;){const Qt=Y[En];if(Qt[1].type==="lineEnding"||Qt[1].type==="lineEndingBlank"){if(Qt[0]==="exit")continue;kt&&(Y[kt][1].type="lineEndingBlank",Mt=!0),Qt[1].type="lineEnding",kt=En}else if(!(Qt[1].type==="linePrefix"||Qt[1].type==="blockQuotePrefix"||Qt[1].type==="blockQuotePrefixWhitespace"||Qt[1].type==="blockQuoteMarker"||Qt[1].type==="listItemIndent"))break}it&&(!kt||it<kt)&&(pn._spread=!0),pn.end=Object.assign({},kt?Y[kt][1].start:Qe[1].end),Y.splice(kt||ze,0,["exit",pn,Qe[2]]),ze++,pe++}if(Qe[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};pn=En,Y.splice(ze,0,["enter",En,Qe[2]]),ze++,pe++,it=void 0,bt=!0}}}return Y[W][1]._spread=Mt,pe}function h(Y,W){return pe;function pe(ze){m.call(this,Y(ze),ze),W&&W.call(this,ze)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(Y,W,pe){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([W,pe||void 0]),Y.position={start:vl(W.start),end:void 0}}function p(Y){return W;function W(pe){Y&&Y.call(this,pe),d.call(this,pe)}}function d(Y,W){const pe=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==Y.type&&(W?W.call(this,Y,ze[0]):(ze[1]||mp).call(this,Y,ze[0]));else throw new Error("Cannot close `"+Y.type+"` ("+Ua({start:Y.start,end:Y.end})+"): it’s not open");pe.position.end=vl(Y.end)}function b(){return Oc(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x(Y){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.lang=Y}function _(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.meta=Y}function H(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function G(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y.replace(/(\r?\n|\r)$/g,"")}function K(Y){const W=this.resume(),pe=this.stack[this.stack.length-1];pe.label=W,pe.identifier=vn(this.sliceSerialize(Y)).toLowerCase()}function Q(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.title=Y}function oe(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.url=Y}function F(Y){const W=this.stack[this.stack.length-1];if(!W.depth){const pe=this.sliceSerialize(Y).length;W.depth=pe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function te(Y){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function me(){this.data.setextHeadingSlurpLineEnding=void 0}function ve(Y){const pe=this.stack[this.stack.length-1].children;let ze=pe[pe.length-1];(!ze||ze.type!=="text")&&(ze=Et(),ze.position={start:vl(Y.start),end:void 0},pe.push(ze)),this.stack.push(ze)}function B(Y){const W=this.stack.pop();W.value+=this.sliceSerialize(Y),W.position.end=vl(Y.end)}function ie(Y){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=W.children[W.children.length-1];pe.position.end=vl(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(W.type)&&(ve.call(this,Y),B.call(this,Y))}function ne(){this.data.atHardBreak=!0}function ke(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y}function ue(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y}function P(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.value=Y}function R(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=W,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function I(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=W,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function ae(Y){const W=this.sliceSerialize(Y),pe=this.stack[this.stack.length-2];pe.label=iS(W),pe.identifier=vn(W).toLowerCase()}function Se(){const Y=this.stack[this.stack.length-1],W=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const ze=Y.children;pe.children=ze}else pe.alt=W}function k(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.url=Y}function A(){const Y=this.resume(),W=this.stack[this.stack.length-1];W.title=Y}function q(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ee(Y){const W=this.resume(),pe=this.stack[this.stack.length-1];pe.label=W,pe.identifier=vn(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function ge(Y){this.data.characterReferenceType=Y.type}function fe(Y){const W=this.sliceSerialize(Y),pe=this.data.characterReferenceType;let ze;pe?(ze=tg(W,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Mc(W);const Le=this.stack[this.stack.length-1];Le.value+=ze}function we(Y){const W=this.stack.pop();W.position.end=vl(Y.end)}function _e(Y){B.call(this,Y);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(Y)}function He(Y){B.call(this,Y);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(Y)}function ct(){return{type:"blockquote",children:[]}}function xt(){return{type:"code",lang:null,meta:null,value:""}}function Xt(){return{type:"inlineCode",value:""}}function Sn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function mn(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function xl(){return{type:"html",value:""}}function Zl(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function wn(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function El(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Yi(){return{type:"paragraph",children:[]}}function Kl(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function Vi(){return{type:"thematicBreak"}}}function vl(n){return{line:n.line,column:n.column,offset:n.offset}}function hg(n,a){let u=-1;for(;++u<a.length;){const r=a[u];Array.isArray(r)?hg(n,r):oS(n,r)}}function oS(n,a){let u;for(u in a)if(fg.call(a,u))switch(u){case"canContainEols":{const r=a[u];r&&n[u].push(...r);break}case"transforms":{const r=a[u];r&&n[u].push(...r);break}case"enter":case"exit":{const r=a[u];r&&Object.assign(n[u],r);break}}}function mp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ua({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ua({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ua({start:a.start,end:a.end})+") is still open")}function sS(n){const a=this;a.parser=u;function u(r){return uS(r,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function cS(n,a){const u={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,u),n.applyData(a,u)}function fS(n,a){const u={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,u),[n.applyData(a,u),{type:"text",value:`
53
+ `}]}function hS(n,a){const u=a.value?a.value+`
54
+ `:"",r={},f=a.lang?a.lang.split(/\s+/):[];f.length>0&&(r.className=["language-"+f[0]]);let h={type:"element",tagName:"code",properties:r,children:[{type:"text",value:u}]};return a.meta&&(h.data={meta:a.meta}),n.patch(a,h),h=n.applyData(a,h),h={type:"element",tagName:"pre",properties:{},children:[h]},n.patch(a,h),h}function dS(n,a){const u={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function mS(n,a){const u={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function pS(n,a){const u=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),f=qi(r.toLowerCase()),h=n.footnoteOrder.indexOf(r);let c,m=n.footnoteCounts.get(r);m===void 0?(m=0,n.footnoteOrder.push(r),c=n.footnoteOrder.length):c=h+1,m+=1,n.footnoteCounts.set(r,m);const p={type:"element",tagName:"a",properties:{href:"#"+u+"fn-"+f,id:u+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};n.patch(a,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,d),n.applyData(a,d)}function gS(n,a){const u={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function yS(n,a){if(n.options.allowDangerousHtml){const u={type:"raw",value:a.value};return n.patch(a,u),n.applyData(a,u)}}function dg(n,a){const u=a.referenceType;let r="]";if(u==="collapsed"?r+="[]":u==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const f=n.all(a),h=f[0];h&&h.type==="text"?h.value="["+h.value:f.unshift({type:"text",value:"["});const c=f[f.length-1];return c&&c.type==="text"?c.value+=r:f.push({type:"text",value:r}),f}function bS(n,a){const u=String(a.identifier).toUpperCase(),r=n.definitionById.get(u);if(!r)return dg(n,a);const f={src:qi(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(f.title=r.title);const h={type:"element",tagName:"img",properties:f,children:[]};return n.patch(a,h),n.applyData(a,h)}function vS(n,a){const u={src:qi(a.url)};a.alt!==null&&a.alt!==void 0&&(u.alt=a.alt),a.title!==null&&a.title!==void 0&&(u.title=a.title);const r={type:"element",tagName:"img",properties:u,children:[]};return n.patch(a,r),n.applyData(a,r)}function SS(n,a){const u={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,u);const r={type:"element",tagName:"code",properties:{},children:[u]};return n.patch(a,r),n.applyData(a,r)}function xS(n,a){const u=String(a.identifier).toUpperCase(),r=n.definitionById.get(u);if(!r)return dg(n,a);const f={href:qi(r.url||"")};r.title!==null&&r.title!==void 0&&(f.title=r.title);const h={type:"element",tagName:"a",properties:f,children:n.all(a)};return n.patch(a,h),n.applyData(a,h)}function ES(n,a){const u={href:qi(a.url)};a.title!==null&&a.title!==void 0&&(u.title=a.title);const r={type:"element",tagName:"a",properties:u,children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function kS(n,a,u){const r=n.all(a),f=u?TS(u):mg(a),h={},c=[];if(typeof a.checked=="boolean"){const b=r[0];let y;b&&b.type==="element"&&b.tagName==="p"?y=b:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let m=-1;for(;++m<r.length;){const b=r[m];(f||m!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
55
+ `}),b.type==="element"&&b.tagName==="p"&&!f?c.push(...b.children):c.push(b)}const p=r[r.length-1];p&&(f||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
56
+ `});const d={type:"element",tagName:"li",properties:h,children:c};return n.patch(a,d),n.applyData(a,d)}function TS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const u=n.children;let r=-1;for(;!a&&++r<u.length;)a=mg(u[r])}return a}function mg(n){const a=n.spread;return a??n.children.length>1}function AS(n,a){const u={},r=n.all(a);let f=-1;for(typeof a.start=="number"&&a.start!==1&&(u.start=a.start);++f<r.length;){const c=r[f];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){u.className=["contains-task-list"];break}}const h={type:"element",tagName:a.ordered?"ol":"ul",properties:u,children:n.wrap(r,!0)};return n.patch(a,h),n.applyData(a,h)}function CS(n,a){const u={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function zS(n,a){const u={type:"root",children:n.wrap(n.all(a))};return n.patch(a,u),n.applyData(a,u)}function _S(n,a){const u={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function wS(n,a){const u=n.all(a),r=u.shift(),f=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([r],!0)};n.patch(a.children[0],c),f.push(c)}if(u.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(u,!0)},m=zc(a.children[1]),p=Kp(a.children[a.children.length-1]);m&&p&&(c.position={start:m,end:p}),f.push(c)}const h={type:"element",tagName:"table",properties:{},children:n.wrap(f,!0)};return n.patch(a,h),n.applyData(a,h)}function DS(n,a,u){const r=u?u.children:void 0,h=(r?r.indexOf(a):1)===0?"th":"td",c=u&&u.type==="table"?u.align:void 0,m=c?c.length:a.children.length;let p=-1;const d=[];for(;++p<m;){const y=a.children[p],x={},S=c?c[p]:void 0;S&&(x.align=S);let _={type:"element",tagName:h,properties:x,children:[]};y&&(_.children=n.all(y),n.patch(y,_),_=n.applyData(y,_)),d.push(_)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(a,b),n.applyData(a,b)}function OS(n,a){const u={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}const pp=9,gp=32;function MS(n){const a=String(n),u=/\r?\n|\r/g;let r=u.exec(a),f=0;const h=[];for(;r;)h.push(yp(a.slice(f,r.index),f>0,!0),r[0]),f=r.index+r[0].length,r=u.exec(a);return h.push(yp(a.slice(f),f>0,!1)),h.join("")}function yp(n,a,u){let r=0,f=n.length;if(a){let h=n.codePointAt(r);for(;h===pp||h===gp;)r++,h=n.codePointAt(r)}if(u){let h=n.codePointAt(f-1);for(;h===pp||h===gp;)f--,h=n.codePointAt(f-1)}return f>r?n.slice(r,f):""}function NS(n,a){const u={type:"text",value:MS(String(a.value))};return n.patch(a,u),n.applyData(a,u)}function RS(n,a){const u={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,u),n.applyData(a,u)}const jS={blockquote:cS,break:fS,code:hS,delete:dS,emphasis:mS,footnoteReference:pS,heading:gS,html:yS,imageReference:bS,image:vS,inlineCode:SS,linkReference:xS,link:ES,listItem:kS,list:AS,paragraph:CS,root:zS,strong:_S,table:wS,tableCell:OS,tableRow:DS,text:NS,thematicBreak:RS,toml:rr,yaml:rr,definition:rr,footnoteDefinition:rr};function rr(){}const pg=-1,Sr=0,qa=1,mr=2,Rc=3,jc=4,Bc=5,Lc=6,gg=7,yg=8,bp=typeof self=="object"?self:globalThis,BS=(n,a)=>{const u=(f,h)=>(n.set(h,f),f),r=f=>{if(n.has(f))return n.get(f);const[h,c]=a[f];switch(h){case Sr:case pg:return u(c,f);case qa:{const m=u([],f);for(const p of c)m.push(r(p));return m}case mr:{const m=u({},f);for(const[p,d]of c)m[r(p)]=r(d);return m}case Rc:return u(new Date(c),f);case jc:{const{source:m,flags:p}=c;return u(new RegExp(m,p),f)}case Bc:{const m=u(new Map,f);for(const[p,d]of c)m.set(r(p),r(d));return m}case Lc:{const m=u(new Set,f);for(const p of c)m.add(r(p));return m}case gg:{const{name:m,message:p}=c;return u(new bp[m](p),f)}case yg:return u(BigInt(c),f);case"BigInt":return u(Object(BigInt(c)),f);case"ArrayBuffer":return u(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:m}=new Uint8Array(c);return u(new DataView(m),c)}}return u(new bp[h](c),f)};return r},vp=n=>BS(new Map,n)(0),ji="",{toString:LS}={},{keys:US}=Object,La=n=>{const a=typeof n;if(a!=="object"||!n)return[Sr,a];const u=LS.call(n).slice(8,-1);switch(u){case"Array":return[qa,ji];case"Object":return[mr,ji];case"Date":return[Rc,ji];case"RegExp":return[jc,ji];case"Map":return[Bc,ji];case"Set":return[Lc,ji];case"DataView":return[qa,u]}return u.includes("Array")?[qa,u]:u.includes("Error")?[gg,u]:[mr,u]},or=([n,a])=>n===Sr&&(a==="function"||a==="symbol"),HS=(n,a,u,r)=>{const f=(c,m)=>{const p=r.push(c)-1;return u.set(m,p),p},h=c=>{if(u.has(c))return u.get(c);let[m,p]=La(c);switch(m){case Sr:{let b=c;switch(p){case"bigint":m=yg,b=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return f([pg],c)}return f([m,b],c)}case qa:{if(p){let x=c;return p==="DataView"?x=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(c)),f([p,[...x]],c)}const b=[],y=f([m,b],c);for(const x of c)b.push(h(x));return y}case mr:{if(p)switch(p){case"BigInt":return f([p,c.toString()],c);case"Boolean":case"Number":case"String":return f([p,c.valueOf()],c)}if(a&&"toJSON"in c)return h(c.toJSON());const b=[],y=f([m,b],c);for(const x of US(c))(n||!or(La(c[x])))&&b.push([h(x),h(c[x])]);return y}case Rc:return f([m,c.toISOString()],c);case jc:{const{source:b,flags:y}=c;return f([m,{source:b,flags:y}],c)}case Bc:{const b=[],y=f([m,b],c);for(const[x,S]of c)(n||!(or(La(x))||or(La(S))))&&b.push([h(x),h(S)]);return y}case Lc:{const b=[],y=f([m,b],c);for(const x of c)(n||!or(La(x)))&&b.push(h(x));return y}}const{message:d}=c;return f([m,{name:p,message:d}],c)};return h},Sp=(n,{json:a,lossy:u}={})=>{const r=[];return HS(!(a||u),!!a,new Map,r)(n),r},pr=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?vp(Sp(n,a)):structuredClone(n):(n,a)=>vp(Sp(n,a));function qS(n,a){const u=[{type:"text",value:"↩"}];return a>1&&u.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),u}function YS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function VS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=n.options.footnoteBackContent||qS,r=n.options.footnoteBackLabel||YS,f=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let p=-1;for(;++p<n.footnoteOrder.length;){const d=n.footnoteById.get(n.footnoteOrder[p]);if(!d)continue;const b=n.all(d),y=String(d.identifier).toUpperCase(),x=qi(y.toLowerCase());let S=0;const _=[],H=n.footnoteCounts.get(y);for(;H!==void 0&&++S<=H;){_.length>0&&_.push({type:"text",value:" "});let K=typeof u=="string"?u:u(p,S);typeof K=="string"&&(K={type:"text",value:K}),_.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+x+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(p,S),className:["data-footnote-backref"]},children:Array.isArray(K)?K:[K]})}const G=b[b.length-1];if(G&&G.type==="element"&&G.tagName==="p"){const K=G.children[G.children.length-1];K&&K.type==="text"?K.value+=" ":G.children.push({type:"text",value:" "}),G.children.push(..._)}else b.push(..._);const O={type:"element",tagName:"li",properties:{id:a+"fn-"+x},children:n.wrap(b,!0)};n.patch(d,O),m.push(O)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...pr(c),id:"footnote-label"},children:[{type:"text",value:f}]},{type:"text",value:`
57
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
58
+ `}]}}const xr=(function(n){if(n==null)return ZS;if(typeof n=="function")return Er(n);if(typeof n=="object")return Array.isArray(n)?GS(n):XS(n);if(typeof n=="string")return QS(n);throw new Error("Expected function, string, or object as test")});function GS(n){const a=[];let u=-1;for(;++u<n.length;)a[u]=xr(n[u]);return Er(r);function r(...f){let h=-1;for(;++h<a.length;)if(a[h].apply(this,f))return!0;return!1}}function XS(n){const a=n;return Er(u);function u(r){const f=r;let h;for(h in n)if(f[h]!==a[h])return!1;return!0}}function QS(n){return Er(a);function a(u){return u&&u.type===n}}function Er(n){return a;function a(u,r,f){return!!(KS(u)&&n.call(this,u,typeof r=="number"?r:void 0,f||void 0))}}function ZS(){return!0}function KS(n){return n!==null&&typeof n=="object"&&"type"in n}const bg=[],IS=!0,gc=!1,JS="skip";function vg(n,a,u,r){let f;typeof a=="function"&&typeof u!="function"?(r=u,u=a):f=a;const h=xr(f),c=r?-1:1;m(n,void 0,[])();function m(p,d,b){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(S?"<"+S+">":""))+")"})}return x;function x(){let S=bg,_,H,G;if((!a||h(p,d,b[b.length-1]||void 0))&&(S=FS(u(p,b)),S[0]===gc))return S;if("children"in p&&p.children){const O=p;if(O.children&&S[0]!==JS)for(H=(r?O.children.length:-1)+c,G=b.concat(O);H>-1&&H<O.children.length;){const K=O.children[H];if(_=m(K,H,G)(),_[0]===gc)return _;H=typeof _[1]=="number"?_[1]:H+c}}return S}}}function FS(n){return Array.isArray(n)?n:typeof n=="number"?[IS,n]:n==null?bg:[n]}function Uc(n,a,u,r){let f,h,c;typeof a=="function"&&typeof u!="function"?(h=void 0,c=a,f=u):(h=a,c=u,f=r),vg(n,h,m,f);function m(p,d){const b=d[d.length-1],y=b?b.children.indexOf(p):void 0;return c(p,y,b)}}const yc={}.hasOwnProperty,$S={};function WS(n,a){const u=a||$S,r=new Map,f=new Map,h=new Map,c={...jS,...u.handlers},m={all:d,applyData:ex,definitionById:r,footnoteById:f,footnoteCounts:h,footnoteOrder:[],handlers:c,one:p,options:u,patch:PS,wrap:nx};return Uc(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const y=b.type==="definition"?r:f,x=String(b.identifier).toUpperCase();y.has(x)||y.set(x,b)}}),m;function p(b,y){const x=b.type,S=m.handlers[x];if(yc.call(m.handlers,x)&&S)return S(m,b,y);if(m.options.passThrough&&m.options.passThrough.includes(x)){if("children"in b){const{children:H,...G}=b,O=pr(G);return O.children=m.all(b),O}return pr(b)}return(m.options.unknownHandler||tx)(m,b,y)}function d(b){const y=[];if("children"in b){const x=b.children;let S=-1;for(;++S<x.length;){const _=m.one(x[S],b);if(_){if(S&&x[S-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=xp(_.value)),!Array.isArray(_)&&_.type==="element")){const H=_.children[0];H&&H.type==="text"&&(H.value=xp(H.value))}Array.isArray(_)?y.push(..._):y.push(_)}}}return y}}function PS(n,a){n.position&&(a.position=Y0(n))}function ex(n,a){let u=a;if(n&&n.data){const r=n.data.hName,f=n.data.hChildren,h=n.data.hProperties;if(typeof r=="string")if(u.type==="element")u.tagName=r;else{const c="children"in u?u.children:[u];u={type:"element",tagName:r,properties:{},children:c}}u.type==="element"&&h&&Object.assign(u.properties,pr(h)),"children"in u&&u.children&&f!==null&&f!==void 0&&(u.children=f)}return u}function tx(n,a){const u=a.data||{},r="value"in a&&!(yc.call(u,"hProperties")||yc.call(u,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function nx(n,a){const u=[];let r=-1;for(a&&u.push({type:"text",value:`
59
+ `});++r<n.length;)r&&u.push({type:"text",value:`
60
+ `}),u.push(n[r]);return a&&n.length>0&&u.push({type:"text",value:`
61
+ `}),u}function xp(n){let a=0,u=n.charCodeAt(a);for(;u===9||u===32;)a++,u=n.charCodeAt(a);return n.slice(a)}function Ep(n,a){const u=WS(n,a),r=u.one(n,void 0),f=VS(u),h=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return f&&h.children.push({type:"text",value:`
62
+ `},f),h}function lx(n,a){return n&&"run"in n?async function(u,r){const f=Ep(u,{file:r,...a});await n.run(f,r)}:function(u,r){return Ep(u,{file:r,...n||a})}}function kp(n){if(n)throw n}var Zs,Tp;function ix(){if(Tp)return Zs;Tp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,u=Object.defineProperty,r=Object.getOwnPropertyDescriptor,f=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},h=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var b=n.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!b&&!y)return!1;var x;for(x in d);return typeof x>"u"||n.call(d,x)},c=function(d,b){u&&b.name==="__proto__"?u(d,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):d[b.name]=b.newValue},m=function(d,b){if(b==="__proto__")if(n.call(d,b)){if(r)return r(d,b).value}else return;return d[b]};return Zs=function p(){var d,b,y,x,S,_,H=arguments[0],G=1,O=arguments.length,K=!1;for(typeof H=="boolean"&&(K=H,H=arguments[1]||{},G=2),(H==null||typeof H!="object"&&typeof H!="function")&&(H={});G<O;++G)if(d=arguments[G],d!=null)for(b in d)y=m(H,b),x=m(d,b),H!==x&&(K&&x&&(h(x)||(S=f(x)))?(S?(S=!1,_=y&&f(y)?y:[]):_=y&&h(y)?y:{},c(H,{name:b,newValue:p(K,_,x)})):typeof x<"u"&&c(H,{name:b,newValue:x}));return H},Zs}var ax=ix();const Ks=Hp(ax);function bc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function ux(){const n=[],a={run:u,use:r};return a;function u(...f){let h=-1;const c=f.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);m(null,...f);function m(p,...d){const b=n[++h];let y=-1;if(p){c(p);return}for(;++y<f.length;)(d[y]===null||d[y]===void 0)&&(d[y]=f[y]);f=d,b?rx(b,m)(...d):c(null,...d)}}function r(f){if(typeof f!="function")throw new TypeError("Expected `middelware` to be a function, not "+f);return n.push(f),a}}function rx(n,a){let u;return r;function r(...c){const m=n.length>c.length;let p;m&&c.push(f);try{p=n.apply(this,c)}catch(d){const b=d;if(m&&u)throw b;return f(b)}m||(p&&p.then&&typeof p.then=="function"?p.then(h,f):p instanceof Error?f(p):h(p))}function f(c,...m){u||(u=!0,a(c,...m))}function h(c){f(null,c)}}const zn={basename:ox,dirname:sx,extname:cx,join:fx,sep:"/"};function ox(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Za(n);let u=0,r=-1,f=n.length,h;if(a===void 0||a.length===0||a.length>n.length){for(;f--;)if(n.codePointAt(f)===47){if(h){u=f+1;break}}else r<0&&(h=!0,r=f+1);return r<0?"":n.slice(u,r)}if(a===n)return"";let c=-1,m=a.length-1;for(;f--;)if(n.codePointAt(f)===47){if(h){u=f+1;break}}else c<0&&(h=!0,c=f+1),m>-1&&(n.codePointAt(f)===a.codePointAt(m--)?m<0&&(r=f):(m=-1,r=c));return u===r?r=c:r<0&&(r=n.length),n.slice(u,r)}function sx(n){if(Za(n),n.length===0)return".";let a=-1,u=n.length,r;for(;--u;)if(n.codePointAt(u)===47){if(r){a=u;break}}else r||(r=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function cx(n){Za(n);let a=n.length,u=-1,r=0,f=-1,h=0,c;for(;a--;){const m=n.codePointAt(a);if(m===47){if(c){r=a+1;break}continue}u<0&&(c=!0,u=a+1),m===46?f<0?f=a:h!==1&&(h=1):f>-1&&(h=-1)}return f<0||u<0||h===0||h===1&&f===u-1&&f===r+1?"":n.slice(f,u)}function fx(...n){let a=-1,u;for(;++a<n.length;)Za(n[a]),n[a]&&(u=u===void 0?n[a]:u+"/"+n[a]);return u===void 0?".":hx(u)}function hx(n){Za(n);const a=n.codePointAt(0)===47;let u=dx(n,!a);return u.length===0&&!a&&(u="."),u.length>0&&n.codePointAt(n.length-1)===47&&(u+="/"),a?"/"+u:u}function dx(n,a){let u="",r=0,f=-1,h=0,c=-1,m,p;for(;++c<=n.length;){if(c<n.length)m=n.codePointAt(c);else{if(m===47)break;m=47}if(m===47){if(!(f===c-1||h===1))if(f!==c-1&&h===2){if(u.length<2||r!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(p=u.lastIndexOf("/"),p!==u.length-1){p<0?(u="",r=0):(u=u.slice(0,p),r=u.length-1-u.lastIndexOf("/")),f=c,h=0;continue}}else if(u.length>0){u="",r=0,f=c,h=0;continue}}a&&(u=u.length>0?u+"/..":"..",r=2)}else u.length>0?u+="/"+n.slice(f+1,c):u=n.slice(f+1,c),r=c-f-1;f=c,h=0}else m===46&&h>-1?h++:h=-1}return u}function Za(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const mx={cwd:px};function px(){return"/"}function vc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function gx(n){if(typeof n=="string")n=new URL(n);else if(!vc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return yx(n)}function yx(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=n.pathname;let u=-1;for(;++u<a.length;)if(a.codePointAt(u)===37&&a.codePointAt(u+1)===50){const r=a.codePointAt(u+2);if(r===70||r===102){const f=new TypeError("File URL path must not include encoded / characters");throw f.code="ERR_INVALID_FILE_URL_PATH",f}}return decodeURIComponent(a)}const Is=["history","path","basename","stem","extname","dirname"];class Sg{constructor(a){let u;a?vc(a)?u={path:a}:typeof a=="string"||bx(a)?u={value:a}:u=a:u={},this.cwd="cwd"in u?"":mx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Is.length;){const h=Is[r];h in u&&u[h]!==void 0&&u[h]!==null&&(this[h]=h==="history"?[...u[h]]:u[h])}let f;for(f in u)Is.includes(f)||(this[f]=u[f])}get basename(){return typeof this.path=="string"?zn.basename(this.path):void 0}set basename(a){Fs(a,"basename"),Js(a,"basename"),this.path=zn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?zn.dirname(this.path):void 0}set dirname(a){Ap(this.basename,"dirname"),this.path=zn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?zn.extname(this.path):void 0}set extname(a){if(Js(a,"extname"),Ap(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){vc(a)&&(a=gx(a)),Fs(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?zn.basename(this.path,this.extname):void 0}set stem(a){Fs(a,"stem"),Js(a,"stem"),this.path=zn.join(this.dirname||"",a+(this.extname||""))}fail(a,u,r){const f=this.message(a,u,r);throw f.fatal=!0,f}info(a,u,r){const f=this.message(a,u,r);return f.fatal=void 0,f}message(a,u,r){const f=new Ot(a,u,r);return this.path&&(f.name=this.path+":"+f.name,f.file=this.path),f.fatal=!1,this.messages.push(f),f}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Js(n,a){if(n&&n.includes(zn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+zn.sep+"`")}function Fs(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Ap(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function bx(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const vx=(function(n){const r=this.constructor.prototype,f=r[n],h=function(){return f.apply(h,arguments)};return Object.setPrototypeOf(h,r),h}),Sx={}.hasOwnProperty;class Hc extends vx{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=ux()}copy(){const a=new Hc;let u=-1;for(;++u<this.attachers.length;){const r=this.attachers[u];a.use(...r)}return a.data(Ks(!0,{},this.namespace)),a}data(a,u){return typeof a=="string"?arguments.length===2?(Ps("data",this.frozen),this.namespace[a]=u,this):Sx.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Ps("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[u,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const f=u.call(a,...r);typeof f=="function"&&this.transformers.use(f)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const u=sr(a),r=this.parser||this.Parser;return $s("parse",r),r(String(u),u)}process(a,u){const r=this;return this.freeze(),$s("process",this.parser||this.Parser),Ws("process",this.compiler||this.Compiler),u?f(void 0,u):new Promise(f);function f(h,c){const m=sr(a),p=r.parse(m);r.run(p,m,function(b,y,x){if(b||!y||!x)return d(b);const S=y,_=r.stringify(S,x);kx(_)?x.value=_:x.result=_,d(b,x)});function d(b,y){b||!y?c(b):h?h(y):u(void 0,y)}}}processSync(a){let u=!1,r;return this.freeze(),$s("processSync",this.parser||this.Parser),Ws("processSync",this.compiler||this.Compiler),this.process(a,f),zp("processSync","process",u),r;function f(h,c){u=!0,kp(h),r=c}}run(a,u,r){Cp(a),this.freeze();const f=this.transformers;return!r&&typeof u=="function"&&(r=u,u=void 0),r?h(void 0,r):new Promise(h);function h(c,m){const p=sr(u);f.run(a,p,d);function d(b,y,x){const S=y||a;b?m(b):c?c(S):r(void 0,S,x)}}}runSync(a,u){let r=!1,f;return this.run(a,u,h),zp("runSync","run",r),f;function h(c,m){kp(c),f=m,r=!0}}stringify(a,u){this.freeze();const r=sr(u),f=this.compiler||this.Compiler;return Ws("stringify",f),Cp(a),f(a,r)}use(a,...u){const r=this.attachers,f=this.namespace;if(Ps("use",this.frozen),a!=null)if(typeof a=="function")p(a,u);else if(typeof a=="object")Array.isArray(a)?m(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function h(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[b,...y]=d;p(b,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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");m(d.plugins),d.settings&&(f.settings=Ks(!0,f.settings,d.settings))}function m(d){let b=-1;if(d!=null)if(Array.isArray(d))for(;++b<d.length;){const y=d[b];h(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,b){let y=-1,x=-1;for(;++y<r.length;)if(r[y][0]===d){x=y;break}if(x===-1)r.push([d,...b]);else if(b.length>0){let[S,..._]=b;const H=r[x][1];bc(H)&&bc(S)&&(S=Ks(!0,H,S)),r[x]=[d,S,..._]}}}}const xx=new Hc().freeze();function $s(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ws(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Ps(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cp(n){if(!bc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function zp(n,a,u){if(!u)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function sr(n){return Ex(n)?n:new Sg(n)}function Ex(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function kx(n){return typeof n=="string"||Tx(n)}function Tx(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Ax="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_p=[],wp={allowDangerousHtml:!0},Cx=/^(https?|ircs?|mailto|xmpp)$/i,zx=[{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 _x(n){const a=wx(n),u=Dx(n);return Ox(a.runSync(a.parse(u),u),n)}function wx(n){const a=n.rehypePlugins||_p,u=n.remarkPlugins||_p,r=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...wp}:wp;return xx().use(sS).use(u).use(lx,r).use(a)}function Dx(n){const a=n.children||"",u=new Sg;return typeof a=="string"&&(u.value=a),u}function Ox(n,a){const u=a.allowedElements,r=a.allowElement,f=a.components,h=a.disallowedElements,c=a.skipHtml,m=a.unwrapDisallowed,p=a.urlTransform||Mx;for(const b of zx)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Ax+b.id,void 0);return Uc(n,d),Z0(n,{Fragment:z.Fragment,components:f,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function d(b,y,x){if(b.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let S;for(S in Gs)if(Object.hasOwn(Gs,S)&&Object.hasOwn(b.properties,S)){const _=b.properties[S],H=Gs[S];(H===null||H.includes(b.tagName))&&(b.properties[S]=p(String(_||""),S,b))}}if(b.type==="element"){let S=u?!u.includes(b.tagName):h?h.includes(b.tagName):!1;if(!S&&r&&typeof y=="number"&&(S=!r(b,y,x)),S&&x&&typeof y=="number")return m&&b.children?x.children.splice(y,1,...b.children):x.children.splice(y,1),y}}}function Mx(n){const a=n.indexOf(":"),u=n.indexOf("?"),r=n.indexOf("#"),f=n.indexOf("/");return a===-1||f!==-1&&a>f||u!==-1&&a>u||r!==-1&&a>r||Cx.test(n.slice(0,a))?n:""}function Dp(n,a){const u=String(n);if(typeof a!="string")throw new TypeError("Expected character");let r=0,f=u.indexOf(a);for(;f!==-1;)r++,f=u.indexOf(a,f+a.length);return r}function Nx(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Rx(n,a,u){const f=xr((u||{}).ignore||[]),h=jx(a);let c=-1;for(;++c<h.length;)vg(n,"text",m);function m(d,b){let y=-1,x;for(;++y<b.length;){const S=b[y],_=x?x.children:void 0;if(f(S,_?_.indexOf(S):void 0,x))return;x=S}if(x)return p(d,b)}function p(d,b){const y=b[b.length-1],x=h[c][0],S=h[c][1];let _=0;const G=y.children.indexOf(d);let O=!1,K=[];x.lastIndex=0;let Q=x.exec(d.value);for(;Q;){const oe=Q.index,F={index:Q.index,input:Q.input,stack:[...b,d]};let D=S(...Q,F);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?x.lastIndex=oe+1:(_!==oe&&K.push({type:"text",value:d.value.slice(_,oe)}),Array.isArray(D)?K.push(...D):D&&K.push(D),_=oe+Q[0].length,O=!0),!x.global)break;Q=x.exec(d.value)}return O?(_<d.value.length&&K.push({type:"text",value:d.value.slice(_)}),y.children.splice(G,1,...K)):K=[d],G+K.length}}function jx(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const u=!n[0]||Array.isArray(n[0])?n:[n];let r=-1;for(;++r<u.length;){const f=u[r];a.push([Bx(f[0]),Lx(f[1])])}return a}function Bx(n){return typeof n=="string"?new RegExp(Nx(n),"g"):n}function Lx(n){return typeof n=="function"?n:function(){return n}}const ec="phrasing",tc=["autolink","link","image","label"];function Ux(){return{transforms:[Qx],enter:{literalAutolink:qx,literalAutolinkEmail:nc,literalAutolinkHttp:nc,literalAutolinkWww:nc},exit:{literalAutolink:Xx,literalAutolinkEmail:Gx,literalAutolinkHttp:Yx,literalAutolinkWww:Vx}}}function Hx(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ec,notInConstruct:tc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ec,notInConstruct:tc},{character:":",before:"[ps]",after:"\\/",inConstruct:ec,notInConstruct:tc}]}}function qx(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function nc(n){this.config.enter.autolinkProtocol.call(this,n)}function Yx(n){this.config.exit.autolinkProtocol.call(this,n)}function Vx(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function Gx(n){this.config.exit.autolinkEmail.call(this,n)}function Xx(n){this.exit(n)}function Qx(n){Rx(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zx],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Kx]],{ignore:["link","linkReference"]})}function Zx(n,a,u,r,f){let h="";if(!xg(f)||(/^w/i.test(a)&&(u=a+u,a="",h="http://"),!Ix(u)))return!1;const c=Jx(u+r);if(!c[0])return!1;const m={type:"link",title:null,url:h+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[m,{type:"text",value:c[1]}]:m}function Kx(n,a,u,r){return!xg(r,!0)||/[-\d_]$/.test(u)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+u,children:[{type:"text",value:a+"@"+u}]}}function Ix(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function Jx(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let u=a[0],r=u.indexOf(")");const f=Dp(n,"(");let h=Dp(n,")");for(;r!==-1&&f>h;)n+=u.slice(0,r+1),u=u.slice(r+1),r=u.indexOf(")"),h++;return[n,u]}function xg(n,a){const u=n.input.charCodeAt(n.index-1);return(n.index===0||Xl(u)||br(u))&&(!a||u!==47)}Eg.peek=iE;function Fx(){this.buffer()}function $x(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Wx(){this.buffer()}function Px(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function eE(n){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=vn(this.sliceSerialize(n)).toLowerCase(),u.label=a}function tE(n){this.exit(n)}function nE(n){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=vn(this.sliceSerialize(n)).toLowerCase(),u.label=a}function lE(n){this.exit(n)}function iE(){return"["}function Eg(n,a,u,r){const f=u.createTracker(r);let h=f.move("[^");const c=u.enter("footnoteReference"),m=u.enter("reference");return h+=f.move(u.safe(u.associationId(n),{after:"]",before:h})),m(),c(),h+=f.move("]"),h}function aE(){return{enter:{gfmFootnoteCallString:Fx,gfmFootnoteCall:$x,gfmFootnoteDefinitionLabelString:Wx,gfmFootnoteDefinition:Px},exit:{gfmFootnoteCallString:eE,gfmFootnoteCall:tE,gfmFootnoteDefinitionLabelString:nE,gfmFootnoteDefinition:lE}}}function uE(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:u,footnoteReference:Eg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function u(r,f,h,c){const m=h.createTracker(c);let p=m.move("[^");const d=h.enter("footnoteDefinition"),b=h.enter("label");return p+=m.move(h.safe(h.associationId(r),{before:p,after:"]"})),b(),p+=m.move("]:"),r.children&&r.children.length>0&&(m.shift(4),p+=m.move((a?`
63
+ `:" ")+h.indentLines(h.containerFlow(r,m.current()),a?kg:rE))),d(),p}}function rE(n,a,u){return a===0?n:kg(n,a,u)}function kg(n,a,u){return(u?"":" ")+n}const oE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Tg.peek=dE;function sE(){return{canContainEols:["delete"],enter:{strikethrough:fE},exit:{strikethrough:hE}}}function cE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oE}],handlers:{delete:Tg}}}function fE(n){this.enter({type:"delete",children:[]},n)}function hE(n){this.exit(n)}function Tg(n,a,u,r){const f=u.createTracker(r),h=u.enter("strikethrough");let c=f.move("~~");return c+=u.containerPhrasing(n,{...f.current(),before:c,after:"~"}),c+=f.move("~~"),h(),c}function dE(){return"~"}function mE(n){return n.length}function pE(n,a){const u=a||{},r=(u.align||[]).concat(),f=u.stringLength||mE,h=[],c=[],m=[],p=[];let d=0,b=-1;for(;++b<n.length;){const H=[],G=[];let O=-1;for(n[b].length>d&&(d=n[b].length);++O<n[b].length;){const K=gE(n[b][O]);if(u.alignDelimiters!==!1){const Q=f(K);G[O]=Q,(p[O]===void 0||Q>p[O])&&(p[O]=Q)}H.push(K)}c[b]=H,m[b]=G}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<d;)h[y]=Op(r[y]);else{const H=Op(r);for(;++y<d;)h[y]=H}y=-1;const x=[],S=[];for(;++y<d;){const H=h[y];let G="",O="";H===99?(G=":",O=":"):H===108?G=":":H===114&&(O=":");let K=u.alignDelimiters===!1?1:Math.max(1,p[y]-G.length-O.length);const Q=G+"-".repeat(K)+O;u.alignDelimiters!==!1&&(K=G.length+K+O.length,K>p[y]&&(p[y]=K),S[y]=K),x[y]=Q}c.splice(1,0,x),m.splice(1,0,S),b=-1;const _=[];for(;++b<c.length;){const H=c[b],G=m[b];y=-1;const O=[];for(;++y<d;){const K=H[y]||"";let Q="",oe="";if(u.alignDelimiters!==!1){const F=p[y]-(G[y]||0),D=h[y];D===114?Q=" ".repeat(F):D===99?F%2?(Q=" ".repeat(F/2+.5),oe=" ".repeat(F/2-.5)):(Q=" ".repeat(F/2),oe=Q):oe=" ".repeat(F)}u.delimiterStart!==!1&&!y&&O.push("|"),u.padding!==!1&&!(u.alignDelimiters===!1&&K==="")&&(u.delimiterStart!==!1||y)&&O.push(" "),u.alignDelimiters!==!1&&O.push(Q),O.push(K),u.alignDelimiters!==!1&&O.push(oe),u.padding!==!1&&O.push(" "),(u.delimiterEnd!==!1||y!==d-1)&&O.push("|")}_.push(u.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return _.join(`
64
+ `)}function gE(n){return n==null?"":String(n)}function Op(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function yE(n,a,u,r){const f=u.enter("blockquote"),h=u.createTracker(r);h.move("> "),h.shift(2);const c=u.indentLines(u.containerFlow(n,h.current()),bE);return f(),c}function bE(n,a,u){return">"+(u?"":" ")+n}function vE(n,a){return Mp(n,a.inConstruct,!0)&&!Mp(n,a.notInConstruct,!1)}function Mp(n,a,u){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return u;let r=-1;for(;++r<a.length;)if(n.includes(a[r]))return!0;return!1}function Np(n,a,u,r){let f=-1;for(;++f<u.unsafe.length;)if(u.unsafe[f].character===`
65
+ `&&vE(u.stack,u.unsafe[f]))return/[ \t]/.test(r.before)?"":" ";return`\\
66
+ `}function SE(n,a){const u=String(n);let r=u.indexOf(a),f=r,h=0,c=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===f?++h>c&&(c=h):h=1,f=r+a.length,r=u.indexOf(a,f);return c}function xE(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function EE(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function kE(n,a,u,r){const f=EE(u),h=n.value||"",c=f==="`"?"GraveAccent":"Tilde";if(xE(n,u)){const y=u.enter("codeIndented"),x=u.indentLines(h,TE);return y(),x}const m=u.createTracker(r),p=f.repeat(Math.max(SE(h,f)+1,3)),d=u.enter("codeFenced");let b=m.move(p);if(n.lang){const y=u.enter(`codeFencedLang${c}`);b+=m.move(u.safe(n.lang,{before:b,after:" ",encode:["`"],...m.current()})),y()}if(n.lang&&n.meta){const y=u.enter(`codeFencedMeta${c}`);b+=m.move(" "),b+=m.move(u.safe(n.meta,{before:b,after:`
67
+ `,encode:["`"],...m.current()})),y()}return b+=m.move(`
68
+ `),h&&(b+=m.move(h+`
69
+ `)),b+=m.move(p),d(),b}function TE(n,a,u){return(u?"":" ")+n}function qc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function AE(n,a,u,r){const f=qc(u),h=f==='"'?"Quote":"Apostrophe",c=u.enter("definition");let m=u.enter("label");const p=u.createTracker(r);let d=p.move("[");return d+=p.move(u.safe(u.associationId(n),{before:d,after:"]",...p.current()})),d+=p.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=u.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(u.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=u.enter("destinationRaw"),d+=p.move(u.safe(n.url,{before:d,after:n.title?" ":`
70
+ `,...p.current()}))),m(),n.title&&(m=u.enter(`title${h}`),d+=p.move(" "+f),d+=p.move(u.safe(n.title,{before:d,after:f,...p.current()})),d+=p.move(f),m()),c(),d}function CE(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Ga(n){return"&#x"+n.toString(16).toUpperCase()+";"}function gr(n,a,u){const r=Ui(n),f=Ui(a);return r===void 0?f===void 0?u==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:f===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?f===void 0?{inside:!1,outside:!1}:f===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:f===void 0?{inside:!1,outside:!1}:f===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ag.peek=zE;function Ag(n,a,u,r){const f=CE(u),h=u.enter("emphasis"),c=u.createTracker(r),m=c.move(f);let p=c.move(u.containerPhrasing(n,{after:f,before:m,...c.current()}));const d=p.charCodeAt(0),b=gr(r.before.charCodeAt(r.before.length-1),d,f);b.inside&&(p=Ga(d)+p.slice(1));const y=p.charCodeAt(p.length-1),x=gr(r.after.charCodeAt(0),y,f);x.inside&&(p=p.slice(0,-1)+Ga(y));const S=c.move(f);return h(),u.attentionEncodeSurroundingInfo={after:x.outside,before:b.outside},m+p+S}function zE(n,a,u){return u.options.emphasis||"*"}function _E(n,a){let u=!1;return Uc(n,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return u=!0,gc}),!!((!n.depth||n.depth<3)&&Oc(n)&&(a.options.setext||u))}function wE(n,a,u,r){const f=Math.max(Math.min(6,n.depth||1),1),h=u.createTracker(r);if(_E(n,u)){const b=u.enter("headingSetext"),y=u.enter("phrasing"),x=u.containerPhrasing(n,{...h.current(),before:`
71
+ `,after:`
72
+ `});return y(),b(),x+`
73
+ `+(f===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
74
+ `))+1))}const c="#".repeat(f),m=u.enter("headingAtx"),p=u.enter("phrasing");h.move(c+" ");let d=u.containerPhrasing(n,{before:"# ",after:`
75
+ `,...h.current()});return/^[\t ]/.test(d)&&(d=Ga(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,u.options.closeAtx&&(d+=" "+c),p(),m(),d}Cg.peek=DE;function Cg(n){return n.value||""}function DE(){return"<"}zg.peek=OE;function zg(n,a,u,r){const f=qc(u),h=f==='"'?"Quote":"Apostrophe",c=u.enter("image");let m=u.enter("label");const p=u.createTracker(r);let d=p.move("![");return d+=p.move(u.safe(n.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=u.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(u.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=u.enter("destinationRaw"),d+=p.move(u.safe(n.url,{before:d,after:n.title?" ":")",...p.current()}))),m(),n.title&&(m=u.enter(`title${h}`),d+=p.move(" "+f),d+=p.move(u.safe(n.title,{before:d,after:f,...p.current()})),d+=p.move(f),m()),d+=p.move(")"),c(),d}function OE(){return"!"}_g.peek=ME;function _g(n,a,u,r){const f=n.referenceType,h=u.enter("imageReference");let c=u.enter("label");const m=u.createTracker(r);let p=m.move("![");const d=u.safe(n.alt,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),c();const b=u.stack;u.stack=[],c=u.enter("reference");const y=u.safe(u.associationId(n),{before:p,after:"]",...m.current()});return c(),u.stack=b,h(),f==="full"||!d||d!==y?p+=m.move(y+"]"):f==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function ME(){return"!"}wg.peek=NE;function wg(n,a,u){let r=n.value||"",f="`",h=-1;for(;new RegExp("(^|[^`])"+f+"([^`]|$)").test(r);)f+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++h<u.unsafe.length;){const c=u.unsafe[h],m=u.compilePattern(c);let p;if(c.atBreak)for(;p=m.exec(r);){let d=p.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(p.index+1)}}return f+r+f}function NE(){return"`"}function Dg(n,a){const u=Oc(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(u===n.url||"mailto:"+u===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Og.peek=RE;function Og(n,a,u,r){const f=qc(u),h=f==='"'?"Quote":"Apostrophe",c=u.createTracker(r);let m,p;if(Dg(n,u)){const b=u.stack;u.stack=[],m=u.enter("autolink");let y=c.move("<");return y+=c.move(u.containerPhrasing(n,{before:y,after:">",...c.current()})),y+=c.move(">"),m(),u.stack=b,y}m=u.enter("link"),p=u.enter("label");let d=c.move("[");return d+=c.move(u.containerPhrasing(n,{before:d,after:"](",...c.current()})),d+=c.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=u.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(u.safe(n.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(p=u.enter("destinationRaw"),d+=c.move(u.safe(n.url,{before:d,after:n.title?" ":")",...c.current()}))),p(),n.title&&(p=u.enter(`title${h}`),d+=c.move(" "+f),d+=c.move(u.safe(n.title,{before:d,after:f,...c.current()})),d+=c.move(f),p()),d+=c.move(")"),m(),d}function RE(n,a,u){return Dg(n,u)?"<":"["}Mg.peek=jE;function Mg(n,a,u,r){const f=n.referenceType,h=u.enter("linkReference");let c=u.enter("label");const m=u.createTracker(r);let p=m.move("[");const d=u.containerPhrasing(n,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),c();const b=u.stack;u.stack=[],c=u.enter("reference");const y=u.safe(u.associationId(n),{before:p,after:"]",...m.current()});return c(),u.stack=b,h(),f==="full"||!d||d!==y?p+=m.move(y+"]"):f==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function jE(){return"["}function Yc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function BE(n){const a=Yc(n),u=n.options.bulletOther;if(!u)return a==="*"?"-":"*";if(u!=="*"&&u!=="+"&&u!=="-")throw new Error("Cannot serialize items with `"+u+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(u===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+u+"`) to be different");return u}function LE(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Ng(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function UE(n,a,u,r){const f=u.enter("list"),h=u.bulletCurrent;let c=n.ordered?LE(u):Yc(u);const m=n.ordered?c==="."?")":".":BE(u);let p=a&&u.bulletLastUsed?c===u.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&u.stack[u.stack.length-1]==="list"&&u.stack[u.stack.length-2]==="listItem"&&u.stack[u.stack.length-3]==="list"&&u.stack[u.stack.length-4]==="listItem"&&u.indexStack[u.indexStack.length-1]===0&&u.indexStack[u.indexStack.length-2]===0&&u.indexStack[u.indexStack.length-3]===0&&(p=!0),Ng(u)===c&&b){let y=-1;for(;++y<n.children.length;){const x=n.children[y];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=m),u.bulletCurrent=c;const d=u.containerFlow(n,r);return u.bulletLastUsed=c,u.bulletCurrent=h,f(),d}function HE(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function qE(n,a,u,r){const f=HE(u);let h=u.bulletCurrent||Yc(u);a&&a.type==="list"&&a.ordered&&(h=(typeof a.start=="number"&&a.start>-1?a.start:1)+(u.options.incrementListMarker===!1?0:a.children.indexOf(n))+h);let c=h.length+1;(f==="tab"||f==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(c=Math.ceil(c/4)*4);const m=u.createTracker(r);m.move(h+" ".repeat(c-h.length)),m.shift(c);const p=u.enter("listItem"),d=u.indentLines(u.containerFlow(n,m.current()),b);return p(),d;function b(y,x,S){return x?(S?"":" ".repeat(c))+y:(S?h:h+" ".repeat(c-h.length))+y}}function YE(n,a,u,r){const f=u.enter("paragraph"),h=u.enter("phrasing"),c=u.containerPhrasing(n,r);return h(),f(),c}const VE=xr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function GE(n,a,u,r){return(n.children.some(function(c){return VE(c)})?u.containerPhrasing:u.containerFlow).call(u,n,r)}function XE(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Rg.peek=QE;function Rg(n,a,u,r){const f=XE(u),h=u.enter("strong"),c=u.createTracker(r),m=c.move(f+f);let p=c.move(u.containerPhrasing(n,{after:f,before:m,...c.current()}));const d=p.charCodeAt(0),b=gr(r.before.charCodeAt(r.before.length-1),d,f);b.inside&&(p=Ga(d)+p.slice(1));const y=p.charCodeAt(p.length-1),x=gr(r.after.charCodeAt(0),y,f);x.inside&&(p=p.slice(0,-1)+Ga(y));const S=c.move(f+f);return h(),u.attentionEncodeSurroundingInfo={after:x.outside,before:b.outside},m+p+S}function QE(n,a,u){return u.options.strong||"*"}function ZE(n,a,u,r){return u.safe(n.value,r)}function KE(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function IE(n,a,u){const r=(Ng(u)+(u.options.ruleSpaces?" ":"")).repeat(KE(u));return u.options.ruleSpaces?r.slice(0,-1):r}const jg={blockquote:yE,break:Np,code:kE,definition:AE,emphasis:Ag,hardBreak:Np,heading:wE,html:Cg,image:zg,imageReference:_g,inlineCode:wg,link:Og,linkReference:Mg,list:UE,listItem:qE,paragraph:YE,root:GE,strong:Rg,text:ZE,thematicBreak:IE};function JE(){return{enter:{table:FE,tableData:Rp,tableHeader:Rp,tableRow:WE},exit:{codeText:PE,table:$E,tableData:lc,tableHeader:lc,tableRow:lc}}}function FE(n){const a=n._align;this.enter({type:"table",align:a.map(function(u){return u==="none"?null:u}),children:[]},n),this.data.inTable=!0}function $E(n){this.exit(n),this.data.inTable=void 0}function WE(n){this.enter({type:"tableRow",children:[]},n)}function lc(n){this.exit(n)}function Rp(n){this.enter({type:"tableCell",children:[]},n)}function PE(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,e2));const u=this.stack[this.stack.length-1];u.type,u.value=a,this.exit(n)}function e2(n,a){return a==="|"?a:n}function t2(n){const a=n||{},u=a.tableCellPadding,r=a.tablePipeAlign,f=a.stringLength,h=u?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
76
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:p,tableRow:m}};function c(S,_,H,G){return d(b(S,H,G),S.align)}function m(S,_,H,G){const O=y(S,H,G),K=d([O]);return K.slice(0,K.indexOf(`
77
+ `))}function p(S,_,H,G){const O=H.enter("tableCell"),K=H.enter("phrasing"),Q=H.containerPhrasing(S,{...G,before:h,after:h});return K(),O(),Q}function d(S,_){return pE(S,{align:_,alignDelimiters:r,padding:u,stringLength:f})}function b(S,_,H){const G=S.children;let O=-1;const K=[],Q=_.enter("table");for(;++O<G.length;)K[O]=y(G[O],_,H);return Q(),K}function y(S,_,H){const G=S.children;let O=-1;const K=[],Q=_.enter("tableRow");for(;++O<G.length;)K[O]=p(G[O],S,_,H);return Q(),K}function x(S,_,H){let G=jg.inlineCode(S,_,H);return H.stack.includes("tableCell")&&(G=G.replace(/\|/g,"\\$&")),G}}function n2(){return{exit:{taskListCheckValueChecked:jp,taskListCheckValueUnchecked:jp,paragraph:i2}}}function l2(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:a2}}}function jp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function i2(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const u=this.stack[this.stack.length-1];u.type;const r=u.children[0];if(r&&r.type==="text"){const f=a.children;let h=-1,c;for(;++h<f.length;){const m=f[h];if(m.type==="paragraph"){c=m;break}}c===u&&(r.value=r.value.slice(1),r.value.length===0?u.children.shift():u.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,u.position.start=Object.assign({},r.position.start)))}}this.exit(n)}function a2(n,a,u,r){const f=n.children[0],h=typeof n.checked=="boolean"&&f&&f.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",m=u.createTracker(r);h&&m.move(c);let p=jg.listItem(n,a,u,{...r,...m.current()});return h&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(b){return b+c}}function u2(){return[Ux(),aE(),sE(),JE(),n2()]}function r2(n){return{extensions:[Hx(),uE(n),cE(),t2(n),l2()]}}const o2={tokenize:m2,partial:!0},Bg={tokenize:p2,partial:!0},Lg={tokenize:g2,partial:!0},Ug={tokenize:y2,partial:!0},s2={tokenize:b2,partial:!0},Hg={name:"wwwAutolink",tokenize:h2,previous:Yg},qg={name:"protocolAutolink",tokenize:d2,previous:Vg},In={name:"emailAutolink",tokenize:f2,previous:Gg},_n={};function c2(){return{text:_n}}let Vl=48;for(;Vl<123;)_n[Vl]=In,Vl++,Vl===58?Vl=65:Vl===91&&(Vl=97);_n[43]=In;_n[45]=In;_n[46]=In;_n[95]=In;_n[72]=[In,qg];_n[104]=[In,qg];_n[87]=[In,Hg];_n[119]=[In,Hg];function f2(n,a,u){const r=this;let f,h;return c;function c(y){return!Sc(y)||!Gg.call(r,r.previous)||Vc(r.events)?u(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(y))}function m(y){return Sc(y)?(n.consume(y),m):y===64?(n.consume(y),p):u(y)}function p(y){return y===46?n.check(s2,b,d)(y):y===45||y===95||Dt(y)?(h=!0,n.consume(y),p):b(y)}function d(y){return n.consume(y),f=!0,p}function b(y){return h&&f&&Rt(r.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):u(y)}}function h2(n,a,u){const r=this;return f;function f(c){return c!==87&&c!==119||!Yg.call(r,r.previous)||Vc(r.events)?u(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(o2,n.attempt(Bg,n.attempt(Lg,h),u),u)(c))}function h(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(c)}}function d2(n,a,u){const r=this;let f="",h=!1;return c;function c(y){return(y===72||y===104)&&Vg.call(r,r.previous)&&!Vc(r.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),f+=String.fromCodePoint(y),n.consume(y),m):u(y)}function m(y){if(Rt(y)&&f.length<5)return f+=String.fromCodePoint(y),n.consume(y),m;if(y===58){const x=f.toLowerCase();if(x==="http"||x==="https")return n.consume(y),p}return u(y)}function p(y){return y===47?(n.consume(y),h?d:(h=!0,p)):u(y)}function d(y){return y===null||dr(y)||We(y)||Xl(y)||br(y)?u(y):n.attempt(Bg,n.attempt(Lg,b),u)(y)}function b(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function m2(n,a,u){let r=0;return f;function f(c){return(c===87||c===119)&&r<3?(r++,n.consume(c),f):c===46&&r===3?(n.consume(c),h):u(c)}function h(c){return c===null?u(c):a(c)}}function p2(n,a,u){let r,f,h;return c;function c(d){return d===46||d===95?n.check(Ug,p,m)(d):d===null||We(d)||Xl(d)||d!==45&&br(d)?p(d):(h=!0,n.consume(d),c)}function m(d){return d===95?r=!0:(f=r,r=void 0),n.consume(d),c}function p(d){return f||r||!h?u(d):a(d)}}function g2(n,a){let u=0,r=0;return f;function f(c){return c===40?(u++,n.consume(c),f):c===41&&r<u?h(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?n.check(Ug,a,h)(c):c===null||We(c)||Xl(c)?a(c):(n.consume(c),f)}function h(c){return c===41&&r++,n.consume(c),f}}function y2(n,a,u){return r;function r(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),r):m===38?(n.consume(m),h):m===93?(n.consume(m),f):m===60||m===null||We(m)||Xl(m)?a(m):u(m)}function f(m){return m===null||m===40||m===91||We(m)||Xl(m)?a(m):r(m)}function h(m){return Rt(m)?c(m):u(m)}function c(m){return m===59?(n.consume(m),r):Rt(m)?(n.consume(m),c):u(m)}}function b2(n,a,u){return r;function r(h){return n.consume(h),f}function f(h){return Dt(h)?u(h):a(h)}}function Yg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||We(n)}function Vg(n){return!Rt(n)}function Gg(n){return!(n===47||Sc(n))}function Sc(n){return n===43||n===45||n===46||n===95||Dt(n)}function Vc(n){let a=n.length,u=!1;for(;a--;){const r=n[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){u=!0;break}if(r._gfmAutolinkLiteralWalkedInto){u=!1;break}}return n.length>0&&!u&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),u}const v2={tokenize:z2,partial:!0};function S2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:T2,continuation:{tokenize:A2},exit:C2}},text:{91:{name:"gfmFootnoteCall",tokenize:k2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:x2,resolveTo:E2}}}}function x2(n,a,u){const r=this;let f=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;f--;){const p=r.events[f][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return m;function m(p){if(!c||!c._balanced)return u(p);const d=vn(r.sliceSerialize({start:c.end,end:r.now()}));return d.codePointAt(0)!==94||!h.includes(d.slice(1))?u(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function E2(n,a){let u=n.length;for(;u--;)if(n[u][1].type==="labelImage"&&n[u][0]==="enter"){n[u][1];break}n[u+1][1].type="data",n[u+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},n[u+3][1].start),end:Object.assign({},n[n.length-1][1].end)},f={type:"gfmFootnoteCallMarker",start:Object.assign({},n[u+3][1].end),end:Object.assign({},n[u+3][1].end)};f.end.column++,f.end.offset++,f.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},f.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},m=[n[u+1],n[u+2],["enter",r,a],n[u+3],n[u+4],["enter",f,a],["exit",f,a],["enter",h,a],["enter",c,a],["exit",c,a],["exit",h,a],n[n.length-2],n[n.length-1],["exit",r,a]];return n.splice(u,n.length-u+1,...m),n}function k2(n,a,u){const r=this,f=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,c;return m;function m(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?u(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",d)}function d(y){if(h>999||y===93&&!c||y===null||y===91||We(y))return u(y);if(y===93){n.exit("chunkString");const x=n.exit("gfmFootnoteCallString");return f.includes(vn(r.sliceSerialize(x)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):u(y)}return We(y)||(c=!0),h++,n.consume(y),y===92?b:d}function b(y){return y===91||y===92||y===93?(n.consume(y),h++,d):d(y)}}function T2(n,a,u){const r=this,f=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,c=0,m;return p;function p(_){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(_),n.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(_){return _===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(_),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):u(_)}function b(_){if(c>999||_===93&&!m||_===null||_===91||We(_))return u(_);if(_===93){n.exit("chunkString");const H=n.exit("gfmFootnoteDefinitionLabelString");return h=vn(r.sliceSerialize(H)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(_),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),x}return We(_)||(m=!0),c++,n.consume(_),_===92?y:b}function y(_){return _===91||_===92||_===93?(n.consume(_),c++,b):b(_)}function x(_){return _===58?(n.enter("definitionMarker"),n.consume(_),n.exit("definitionMarker"),f.includes(h)||f.push(h),Ue(n,S,"gfmFootnoteDefinitionWhitespace")):u(_)}function S(_){return a(_)}}function A2(n,a,u){return n.check(Qa,a,n.attempt(v2,a,u))}function C2(n){n.exit("gfmFootnoteDefinition")}function z2(n,a,u){const r=this;return Ue(n,f,"gfmFootnoteDefinitionIndent",5);function f(h){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?a(h):u(h)}}function _2(n){let u=(n||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:f};return u==null&&(u=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function f(c,m){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let d=p;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[p][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[p][1].end)},y={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[p][1].start)},x=[["enter",b,m],["enter",c[d][1],m],["exit",c[d][1],m],["enter",y,m]],S=m.parser.constructs.insideSpan.null;S&&tn(x,x.length,0,vr(S,c.slice(d+1,p),m)),tn(x,x.length,0,[["exit",y,m],["enter",c[p][1],m],["exit",c[p][1],m],["exit",b,m]]),tn(c,d-1,p-d+3,x),p=d+x.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function h(c,m,p){const d=this.previous,b=this.events;let y=0;return x;function x(_){return d===126&&b[b.length-1][1].type!=="characterEscape"?p(_):(c.enter("strikethroughSequenceTemporary"),S(_))}function S(_){const H=Ui(d);if(_===126)return y>1?p(_):(c.consume(_),y++,S);if(y<2&&!u)return p(_);const G=c.exit("strikethroughSequenceTemporary"),O=Ui(_);return G._open=!O||O===2&&!!H,G._close=!H||H===2&&!!O,m(_)}}}class w2{constructor(){this.map=[]}add(a,u,r){D2(this,a,u,r)}consume(a){if(this.map.sort(function(h,c){return h[0]-c[0]}),this.map.length===0)return;let u=this.map.length;const r=[];for(;u>0;)u-=1,r.push(a.slice(this.map[u][0]+this.map[u][1]),this.map[u][2]),a.length=this.map[u][0];r.push(a.slice()),a.length=0;let f=r.pop();for(;f;){for(const h of f)a.push(h);f=r.pop()}this.map.length=0}}function D2(n,a,u,r){let f=0;if(!(u===0&&r.length===0)){for(;f<n.map.length;){if(n.map[f][0]===a){n.map[f][1]+=u,n.map[f][2].push(...r);return}f+=1}n.map.push([a,u,r])}}function O2(n,a){let u=!1;const r=[];for(;a<n.length;){const f=n[a];if(u){if(f[0]==="enter")f[1].type==="tableContent"&&r.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(f[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(f[1].type==="tableDelimiterRow")break}else f[0]==="enter"&&f[1].type==="tableDelimiterRow"&&(u=!0);a+=1}return r}function M2(){return{flow:{null:{name:"table",tokenize:N2,resolveAll:R2}}}}function N2(n,a,u){const r=this;let f=0,h=0,c;return m;function m(B){let ie=r.events.length-1;for(;ie>-1;){const ue=r.events[ie][1].type;if(ue==="lineEnding"||ue==="linePrefix")ie--;else break}const ne=ie>-1?r.events[ie][1].type:null,ke=ne==="tableHead"||ne==="tableRow"?D:p;return ke===D&&r.parser.lazy[r.now().line]?u(B):ke(B)}function p(B){return n.enter("tableHead"),n.enter("tableRow"),d(B)}function d(B){return B===124||(c=!0,h+=1),b(B)}function b(B){return B===null?u(B):ye(B)?h>1?(h=0,r.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),S):u(B):Ne(B)?Ue(n,b,"whitespace")(B):(h+=1,c&&(c=!1,f+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),c=!0,b):(n.enter("data"),y(B)))}function y(B){return B===null||B===124||We(B)?(n.exit("data"),b(B)):(n.consume(B),B===92?x:y)}function x(B){return B===92||B===124?(n.consume(B),y):y(B)}function S(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?u(B):(n.enter("tableDelimiterRow"),c=!1,Ne(B)?Ue(n,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):_(B))}function _(B){return B===45||B===58?G(B):B===124?(c=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),H):F(B)}function H(B){return Ne(B)?Ue(n,G,"whitespace")(B):G(B)}function G(B){return B===58?(h+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),O):B===45?(h+=1,O(B)):B===null||ye(B)?oe(B):F(B)}function O(B){return B===45?(n.enter("tableDelimiterFiller"),K(B)):F(B)}function K(B){return B===45?(n.consume(B),K):B===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),Q):(n.exit("tableDelimiterFiller"),Q(B))}function Q(B){return Ne(B)?Ue(n,oe,"whitespace")(B):oe(B)}function oe(B){return B===124?_(B):B===null||ye(B)?!c||f!==h?F(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(B)):F(B)}function F(B){return u(B)}function D(B){return n.enter("tableRow"),te(B)}function te(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),te):B===null||ye(B)?(n.exit("tableRow"),a(B)):Ne(B)?Ue(n,te,"whitespace")(B):(n.enter("data"),me(B))}function me(B){return B===null||B===124||We(B)?(n.exit("data"),te(B)):(n.consume(B),B===92?ve:me)}function ve(B){return B===92||B===124?(n.consume(B),me):me(B)}}function R2(n,a){let u=-1,r=!0,f=0,h=[0,0,0,0],c=[0,0,0,0],m=!1,p=0,d,b,y;const x=new w2;for(;++u<n.length;){const S=n[u],_=S[1];S[0]==="enter"?_.type==="tableHead"?(m=!1,p!==0&&(Bp(x,a,p,d,b),b=void 0,p=0),d={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},x.add(u,0,[["enter",d,a]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(r=!0,y=void 0,h=[0,0,0,0],c=[0,u+1,0,0],m&&(m=!1,b={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},x.add(u,0,[["enter",b,a]])),f=_.type==="tableDelimiterRow"?2:b?3:1):f&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(h[1]!==0&&(c[0]=c[1],y=cr(x,a,h,f,void 0,y),h=[0,0,0,0]),c[2]=u)):_.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(c[0]=c[1],y=cr(x,a,h,f,void 0,y)),h=c,c=[h[1],u,0,0])):_.type==="tableHead"?(m=!0,p=u):_.type==="tableRow"||_.type==="tableDelimiterRow"?(p=u,h[1]!==0?(c[0]=c[1],y=cr(x,a,h,f,u,y)):c[1]!==0&&(y=cr(x,a,c,f,u,y)),f=0):f&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=u)}for(p!==0&&Bp(x,a,p,d,b),x.consume(a.events),u=-1;++u<a.events.length;){const S=a.events[u];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=O2(a.events,u))}return n}function cr(n,a,u,r,f,h){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",m="tableContent";u[0]!==0&&(h.end=Object.assign({},Bi(a.events,u[0])),n.add(u[0],0,[["exit",h,a]]));const p=Bi(a.events,u[1]);if(h={type:c,start:Object.assign({},p),end:Object.assign({},p)},n.add(u[1],0,[["enter",h,a]]),u[2]!==0){const d=Bi(a.events,u[2]),b=Bi(a.events,u[3]),y={type:m,start:Object.assign({},d),end:Object.assign({},b)};if(n.add(u[2],0,[["enter",y,a]]),r!==2){const x=a.events[u[2]],S=a.events[u[3]];if(x[1].end=Object.assign({},S[1].end),x[1].type="chunkText",x[1].contentType="text",u[3]>u[2]+1){const _=u[2]+1,H=u[3]-u[2]-1;n.add(_,H,[])}}n.add(u[3]+1,0,[["exit",y,a]])}return f!==void 0&&(h.end=Object.assign({},Bi(a.events,f)),n.add(f,0,[["exit",h,a]]),h=void 0),h}function Bp(n,a,u,r,f){const h=[],c=Bi(a.events,u);f&&(f.end=Object.assign({},c),h.push(["exit",f,a])),r.end=Object.assign({},c),h.push(["exit",r,a]),n.add(u+1,0,h)}function Bi(n,a){const u=n[a],r=u[0]==="enter"?"start":"end";return u[1][r]}const j2={name:"tasklistCheck",tokenize:L2};function B2(){return{text:{91:j2}}}function L2(n,a,u){const r=this;return f;function f(p){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?u(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),h)}function h(p){return We(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),c):u(p)}function c(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):u(p)}function m(p){return ye(p)?a(p):Ne(p)?n.check({tokenize:U2},a,u)(p):u(p)}}function U2(n,a,u){return Ue(n,r,"whitespace");function r(f){return f===null?u(f):a(f)}}function H2(n){return eg([c2(),S2(),_2(n),M2(),B2()])}const q2={};function Y2(n){const a=this,u=n||q2,r=a.data(),f=r.micromarkExtensions||(r.micromarkExtensions=[]),h=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);f.push(H2(u)),h.push(u2()),c.push(r2(u))}const ic=/```(?:\s*([a-zA-Z0-9_+-]+))?[ \t]*\n?([\s\S]*?)```/g;function V2(n){var f;if(!n.includes("```"))return[{type:"text",content:n}];const a=[];let u=0,r=null;for(ic.lastIndex=0;(r=ic.exec(n))!==null;){const h=r.index,c=ic.lastIndex,m=r[0],p=((f=r[1])==null?void 0:f.trim())||null,d=G2(r[2]??"",p,m);h>u&&a.push({type:"text",content:n.slice(u,h)}),a.push({type:"code",content:d,language:p}),u=c}return a.length===0?[{type:"text",content:n}]:(u<n.length&&a.push({type:"text",content:n.slice(u)}),a)}function G2(n,a,u){let r=n;return a&&(u.slice(0,u.indexOf(n)).includes(`
78
+ `)||(r=r.replace(/^[ \t]+/,""))),r.replace(/\n$/,"").replace(/[ \t]+$/,"")}const X2=["Summarize the latest project changes and open tasks.","Check the repo for security risks and suggest quick fixes.","Write a deployment checklist for today's release.","Draft a concise standup update from current progress."];function Q2({messages:n,onSendMessage:a,isStreaming:u,streamActivities:r,disabled:f,inputPlaceholder:h,readOnlyHint:c}){const[m,p]=ce.useState(""),[d,b]=ce.useState(null),y=ce.useRef(null),x=ce.useRef(null),S=ce.useRef(null),_=n.some(F=>F.id==="streaming"),H=r.slice(-4).reverse(),G=H[0];ce.useEffect(()=>()=>{S.current!==null&&window.clearTimeout(S.current)},[]),ce.useEffect(()=>{var F;(F=y.current)==null||F.scrollIntoView({behavior:"smooth"})},[n,u]);const O=F=>{F.preventDefault();const D=m.trim();!D||f||u||(a(D),p(""))},K=F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),O(F))},Q=F=>{var D;f||u||(p(F),(D=x.current)==null||D.focus())},oe=async(F,D)=>{await Z2(D)&&(b(F),S.current!==null&&window.clearTimeout(S.current),S.current=window.setTimeout(()=>{b(null),S.current=null},1500))};return z.jsxs("div",{className:"chat-view",children:[c&&z.jsx("div",{className:"chat-readonly-banner",children:c}),z.jsxs("div",{className:"messages-container",children:[n.length===0?z.jsxs("div",{className:"empty-state animate-slide-in",children:[z.jsx("p",{className:"empty-kicker",children:"Ready"}),z.jsx("h2",{children:"Talk to your AI workspace"}),z.jsx("p",{className:"empty-copy",children:"Use natural language to run tools, inspect files, and coordinate work in one place."}),z.jsx("div",{className:"starter-grid",children:X2.map(F=>z.jsx("button",{type:"button",className:"starter-chip",onClick:()=>Q(F),disabled:f||u,children:F},F))})]}):z.jsxs(z.Fragment,{children:[n.map(F=>z.jsxs("div",{className:`message ${F.role} animate-slide-in`,children:[z.jsx("div",{className:"message-avatar","aria-hidden":"true",children:F.role==="user"?"U":"K"}),z.jsxs("div",{className:"message-content",children:[z.jsxs("div",{className:"message-header",children:[z.jsx("span",{className:"message-role",children:F.role==="user"?"You":"Keygate"}),z.jsx("span",{className:"message-time",children:F.timestamp.toLocaleTimeString()})]}),z.jsxs("div",{className:"message-bubble",children:[z.jsx("div",{className:"message-rendered",children:V2(F.content).map((D,te)=>{const me=`${F.id}:${te}`;if(D.type==="text")return D.content.length===0?null:z.jsx("div",{className:"message-text",children:z.jsx(_x,{remarkPlugins:[Y2],components:{a:({node:B,...ie})=>z.jsx("a",{...ie,target:"_blank",rel:"noreferrer noopener"})},children:D.content})},me);const ve=`${F.id}:code:${te}`;return z.jsxs("div",{className:"code-block",children:[z.jsxs("div",{className:"code-block-header",children:[z.jsx("span",{className:"code-block-language",children:D.language??"text"}),z.jsx("button",{type:"button",className:"code-copy-btn",onClick:()=>oe(ve,D.content),children:d===ve?"Copied":"Copy code"})]}),z.jsx("pre",{children:z.jsx("code",{children:D.content})})]},me)})}),F.id==="streaming"&&z.jsx("span",{className:"cursor-blink",children:"|"})]})]})]},F.id)),u&&!_&&z.jsxs("div",{className:"message assistant animate-slide-in thinking-message",children:[z.jsx("div",{className:"message-avatar","aria-hidden":"true",children:"K"}),z.jsxs("div",{className:"message-content",children:[z.jsxs("div",{className:"message-header",children:[z.jsx("span",{className:"message-role",children:"Keygate"}),z.jsx("span",{className:"thinking-badge",children:G?"Live":"Thinking"})]}),z.jsxs("div",{className:"message-bubble thinking-bubble",children:[z.jsxs("div",{className:"thinking-status",children:[(G==null?void 0:G.status)??"Working on your request",!G&&z.jsxs("span",{className:"thinking-dots","aria-hidden":"true",children:[z.jsx("span",{children:"."}),z.jsx("span",{children:"."}),z.jsx("span",{children:"."})]})]}),(G==null?void 0:G.detail)&&z.jsx("div",{className:"thinking-detail",children:G.detail}),H.length>1&&z.jsx("div",{className:"thinking-activity-list",children:H.slice(1).map(F=>z.jsxs("div",{className:"thinking-activity-item",children:[z.jsx("span",{className:"thinking-activity-time",children:F.timestamp.toLocaleTimeString()}),z.jsx("span",{children:F.status})]},F.id))})]})]})]})]}),z.jsx("div",{ref:y})]}),z.jsxs("form",{className:"input-container",onSubmit:O,children:[z.jsxs("div",{className:"composer-field",children:[z.jsx("textarea",{ref:x,value:m,onChange:F=>p(F.target.value),onKeyDown:K,placeholder:h,disabled:f||u,rows:1}),z.jsx("p",{className:"composer-tip",children:"Press Enter to send, Shift+Enter for a new line."})]}),z.jsx("button",{type:"submit",disabled:!m.trim()||f||u,className:"send-btn",children:u?z.jsx("span",{className:"spinner"}):z.jsx("span",{children:"Send"})})]})]})}async function Z2(n){var r;if(typeof navigator<"u"&&((r=navigator.clipboard)!=null&&r.writeText))try{return await navigator.clipboard.writeText(n),!0}catch{}if(typeof document>"u")return!1;const a=document.createElement("textarea");a.value=n,a.setAttribute("readonly",""),a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select();let u=!1;try{u=document.execCommand("copy")}catch{u=!1}finally{document.body.removeChild(a)}return u}const ac=24;function Lp(n,a){return n.length<=a?n:`${n.slice(0,a)}...`}function K2({events:n}){const[a,u]=ce.useState(!1),[r,f]=ce.useState(!1),h=n.slice().reverse(),c=n.filter(x=>x.type==="provider").length,m=n.filter(x=>x.type==="provider"&&!x.important).length,p=a?h:h.filter(x=>x.type!=="provider"||x.important),d=p.length>ac,b=Math.max(0,p.length-ac),y=r?p:p.slice(0,ac);return z.jsxs("aside",{className:"live-activity",children:[z.jsxs("div",{className:"activity-header",children:[z.jsx("h3",{children:"Activity Feed"}),z.jsx("span",{className:"event-count",children:n.length})]}),z.jsxs("div",{className:"activity-controls",children:[z.jsx("button",{type:"button",className:`activity-toggle ${a?"active":""}`,onClick:()=>u(x=>!x),children:a?"Provider events: on":"Provider events: off"}),!a&&m>0&&z.jsxs("span",{className:"provider-summary",children:[m," low-level provider notifications hidden"]})]}),z.jsxs("div",{className:"events-list",children:[y.length===0?z.jsx("div",{className:"empty-events",children:z.jsx("p",{children:n.length===0?"Tool and provider updates appear here in real time.":c>0?"No critical events yet. Enable provider events to inspect low-level notifications.":"No tool updates yet."})}):y.map(x=>{var O,K;const S=x.type==="start"?">":x.type==="provider"?"~":(O=x.result)!=null&&O.success?"+":"!",_=x.args?Lp(JSON.stringify(x.args,null,2),220):void 0,H=x.type==="end"&&x.result?Lp(x.result.success?x.result.output:x.result.error??"Request failed",140):void 0,G=((K=x.result)==null?void 0:K.success)??!1;return z.jsxs("div",{className:`event-item ${x.type} animate-slide-in`,children:[z.jsx("div",{className:"event-icon",children:S}),z.jsxs("div",{className:"event-content",children:[z.jsx("div",{className:"event-tool",children:x.tool}),z.jsx("div",{className:"event-time",children:x.timestamp.toLocaleTimeString()}),x.detail&&z.jsx("div",{className:"event-detail",children:x.detail}),_&&z.jsx("pre",{className:"event-args",children:_}),H&&z.jsx("div",{className:`event-result ${G?"success":"error"}`,children:H})]})]},x.id)}),d&&z.jsx("button",{type:"button",className:"activity-more-btn",onClick:()=>f(x=>!x),children:r?"Show fewer events":`Show ${b} more`})]})]})}function I2({mode:n,spicyEnabled:a,onModeChange:u}){const r=()=>{u(n==="safe"?"spicy":"safe")};return n==="spicy"?z.jsxs("button",{className:"security-badge spicy",onClick:r,children:[z.jsx("span",{className:"badge-icon","aria-hidden":"true"}),z.jsx("span",{className:"badge-text",children:"Spicy mode active"}),z.jsx("span",{className:"badge-toggle",children:"Return to safe"})]}):z.jsxs("button",{className:"security-badge safe",onClick:r,disabled:!a,title:a?"Click to enable Spicy Mode":"Spicy mode not enabled during installation",children:[z.jsx("span",{className:"badge-icon","aria-hidden":"true"}),z.jsx("span",{className:"badge-text",children:"Safe Mode"}),a&&z.jsx("span",{className:"badge-toggle",children:"Switch"})]})}function J2(n){if(!n||Object.keys(n).length===0)return null;try{return JSON.stringify(n,null,2)}catch{return null}}function F2({prompt:n,details:a,onAllowOnce:u,onAllowAlways:r,onCancel:f}){const h=J2(a==null?void 0:a.args);return z.jsx("div",{className:"modal-overlay",onClick:f,children:z.jsxs("div",{className:"modal-content animate-slide-in",onClick:c=>c.stopPropagation(),children:[z.jsxs("div",{className:"modal-header",children:[z.jsx("span",{className:"modal-kicker",children:"Approval"}),z.jsx("h2",{children:"Confirmation Required"})]}),z.jsxs("div",{className:"modal-body",children:[z.jsx("pre",{className:"modal-prompt",children:n}),a&&z.jsxs("div",{className:"modal-details",children:[z.jsxs("div",{className:"modal-grid",children:[z.jsxs("div",{children:[z.jsx("span",{className:"modal-label",children:"Tool"}),z.jsx("code",{children:a.tool})]}),z.jsxs("div",{children:[z.jsx("span",{className:"modal-label",children:"Action"}),z.jsx("code",{children:a.action})]}),a.command&&z.jsxs("div",{className:"modal-span",children:[z.jsx("span",{className:"modal-label",children:"Command"}),z.jsx("code",{children:a.command})]}),a.cwd&&z.jsxs("div",{className:"modal-span",children:[z.jsx("span",{className:"modal-label",children:"Directory"}),z.jsx("code",{children:a.cwd})]}),a.path&&z.jsxs("div",{className:"modal-span",children:[z.jsx("span",{className:"modal-label",children:"Path"}),z.jsx("code",{children:a.path})]})]}),h&&z.jsxs("div",{className:"modal-args",children:[z.jsx("span",{className:"modal-label",children:"Arguments"}),z.jsx("pre",{children:h})]})]})]}),z.jsxs("div",{className:"modal-footer",children:[z.jsx("button",{className:"btn-cancel",onClick:f,children:"Cancel"}),z.jsx("button",{className:"btn-confirm-secondary",onClick:u,children:"Allow Once"}),z.jsx("button",{className:"btn-confirm",onClick:r,children:"Allow Always"})]})]})})}function $2(n,a){const[u,r]=ce.useState(!1),[f,h]=ce.useState(!0),c=ce.useRef(null),m=ce.useRef(void 0),p=ce.useRef(void 0),d=ce.useRef(!1),b=ce.useRef(a);b.current=a;const y=ce.useCallback(()=>{if(!d.current)return;h(!0);const S=new WebSocket(n);c.current=S,S.onopen=()=>{if(!d.current){S.close();return}console.log("WebSocket connected"),r(!0),h(!1)},S.onmessage=_=>{try{const H=JSON.parse(_.data);b.current(H)}catch(H){console.error("Failed to parse WebSocket message:",H)}},S.onclose=()=>{c.current===S&&(c.current=null),d.current&&(console.log("WebSocket disconnected"),r(!1),h(!1),m.current=window.setTimeout(()=>{d.current&&(console.log("Attempting to reconnect..."),y())},3e3))},S.onerror=_=>{d.current&&console.error("WebSocket error:",_)}},[n]);return ce.useEffect(()=>(d.current=!0,p.current=window.setTimeout(y,0),()=>{if(d.current=!1,p.current!==void 0&&clearTimeout(p.current),m.current!==void 0&&clearTimeout(m.current),c.current){const S=c.current;if(c.current=null,S.readyState===WebSocket.CONNECTING){S.onopen=()=>S.close(),S.onmessage=null,S.onerror=null,S.onclose=null;return}S.onopen=null,S.onmessage=null,S.onerror=null,S.onclose=null,S.readyState===WebSocket.OPEN&&S.close()}}),[y]),{send:ce.useCallback(S=>{var _;((_=c.current)==null?void 0:_.readyState)===WebSocket.OPEN?c.current.send(JSON.stringify(S)):console.warn("WebSocket not connected, message not sent")},[]),connected:u,connecting:f}}function W2(n){return{type:"set_spicy_obedience",enabled:n}}function P2(n){return{type:"enable_spicy_mode",riskAck:n}}const ek={messagesBySession:{},metaBySession:{},streamingBySession:{},streamBuffersBySession:{}};function uc(n){return n.startsWith("discord:")?"discord":"web"}function rc(n,a,u,r){return`${n}:${a}:${u.getTime()}:${r}`}function Pt(n,a){var u,r,f,h;switch(a.type){case"session_snapshot":{const c={...n.messagesBySession},m={...n.metaBySession},p={...n.streamingBySession},d={...n.streamBuffersBySession};for(const b of a.sessions)m[b.sessionId]={channelType:b.channelType,updatedAt:new Date(b.updatedAt)},n.streamingBySession[b.sessionId]!==!0&&(c[b.sessionId]=b.messages.map((y,x)=>({id:`snapshot:${b.sessionId}:${x}`,role:y.role,content:y.content,timestamp:new Date(b.updatedAt)})),p[b.sessionId]=!1,d[b.sessionId]="");return{messagesBySession:c,metaBySession:m,streamingBySession:p,streamBuffersBySession:d}}case"session_stream_start":{const c=n.messagesBySession[a.sessionId]??[],m=c[c.length-1],p=(m==null?void 0:m.id)==="streaming"&&m.role==="assistant"?c.slice(0,-1):c;return{messagesBySession:{...n.messagesBySession,[a.sessionId]:p},metaBySession:{...n.metaBySession,[a.sessionId]:{channelType:a.channelType,updatedAt:new Date(a.timestamp)}},streamingBySession:{...n.streamingBySession,[a.sessionId]:!0},streamBuffersBySession:{...n.streamBuffersBySession,[a.sessionId]:""}}}case"session_touch":return{...n,metaBySession:{...n.metaBySession,[a.sessionId]:{channelType:a.channelType,updatedAt:new Date(a.updatedAt)}}};case"session_clear":{const c=((u=n.metaBySession[a.sessionId])==null?void 0:u.channelType)??uc(a.sessionId);return{messagesBySession:{...n.messagesBySession,[a.sessionId]:[]},metaBySession:{...n.metaBySession,[a.sessionId]:{channelType:c,updatedAt:new Date(a.updatedAt)}},streamingBySession:{...n.streamingBySession,[a.sessionId]:!1},streamBuffersBySession:{...n.streamBuffersBySession,[a.sessionId]:""}}}case"session_user_message":{const c=n.messagesBySession[a.sessionId]??[],m={id:rc(a.sessionId,"user",a.timestamp,c.length),role:"user",content:a.content,timestamp:new Date(a.timestamp)};return{messagesBySession:{...n.messagesBySession,[a.sessionId]:[...c,m]},metaBySession:{...n.metaBySession,[a.sessionId]:{channelType:a.channelType,updatedAt:new Date(a.timestamp)}},streamingBySession:n.streamingBySession,streamBuffersBySession:n.streamBuffersBySession}}case"session_chunk":{const c=((r=n.metaBySession[a.sessionId])==null?void 0:r.channelType)??uc(a.sessionId),p=(n.streamBuffersBySession[a.sessionId]??"")+a.content,d=n.messagesBySession[a.sessionId]??[],b=d[d.length-1],y=(b==null?void 0:b.id)==="streaming"&&b.role==="assistant"?[...d.slice(0,-1),{...b,content:p,timestamp:new Date(a.timestamp)}]:[...d,{id:"streaming",role:"assistant",content:p,timestamp:new Date(a.timestamp)}];return{messagesBySession:{...n.messagesBySession,[a.sessionId]:y},metaBySession:{...n.metaBySession,[a.sessionId]:{channelType:c,updatedAt:new Date(a.timestamp)}},streamingBySession:{...n.streamingBySession,[a.sessionId]:!0},streamBuffersBySession:{...n.streamBuffersBySession,[a.sessionId]:p}}}case"session_message_end":{const c=((f=n.metaBySession[a.sessionId])==null?void 0:f.channelType)??uc(a.sessionId),m=n.messagesBySession[a.sessionId]??[],p=m[m.length-1],d=((h=n.streamBuffersBySession[a.sessionId])==null?void 0:h.trim())??"",b=a.content.trim().length>0?a.content:d.length>0?d:"(No response)",y=(p==null?void 0:p.id)==="streaming"&&p.role==="assistant"?[...m.slice(0,-1),{id:rc(a.sessionId,"assistant",a.timestamp,m.length),role:"assistant",content:b,timestamp:new Date(a.timestamp)}]:[...m,{id:rc(a.sessionId,"assistant",a.timestamp,m.length),role:"assistant",content:b,timestamp:new Date(a.timestamp)}];return{messagesBySession:{...n.messagesBySession,[a.sessionId]:y},metaBySession:{...n.metaBySession,[a.sessionId]:{channelType:c,updatedAt:new Date(a.timestamp)}},streamingBySession:{...n.streamingBySession,[a.sessionId]:!1},streamBuffersBySession:{...n.streamBuffersBySession,[a.sessionId]:""}}}default:return n}}function tk(n,a){const u=n&&a[n]?[{sessionId:n,label:"main:agent",channelType:a[n].channelType,updatedAt:a[n].updatedAt,readOnly:!1}]:[],f=Object.entries(a).filter(([h,c])=>c.channelType==="discord"&&h!==n).sort((h,c)=>{const m=c[1].updatedAt.getTime()-h[1].updatedAt.getTime();return m!==0?m:h[0].localeCompare(c[0])}).map(([h,c],m)=>({sessionId:h,label:`discord:agent-${m+1}`,channelType:c.channelType,updatedAt:c.updatedAt,readOnly:!0}));return[...u,...f]}function Xg(n,a){return!n||!a?!1:n!==a}function nk(n,a,u,r){return!u||!r?!0:!n||a||Xg(u,r)}function lk(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}const ik=[{value:"openai",label:"OpenAI API"},{value:"openai-codex",label:"OpenAI Codex (ChatGPT OAuth)"},{value:"gemini",label:"Google Gemini"},{value:"ollama",label:"Ollama (Local)"}],Qg=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"},{value:"xhigh",label:"Extra High"}],Ya="!keygate ",ak=[/ratelimits/i,/tokenusage/i,/token_count/i,/reasoning_content_delta/i,/summarytextdelta/i,/agent_reasoning_delta/i];function xc(n){if(typeof n!="string")return;const a=n.trim().toLowerCase();switch(a){case"low":case"medium":case"high":case"xhigh":return a;case"extra-high":case"extra_high":case"extra high":return"xhigh";default:return}}function Zg(n){const a=Array.isArray(n==null?void 0:n.reasoningEffort)?n.reasoningEffort.map(r=>xc(r)).filter(r=>r!==void 0):[],u=Array.from(new Set(a));return u.length>0?u:Qg.map(r=>r.value)}function oc(n,a){const u=Zg(n),r=xc(a);if(r&&u.includes(r))return r;const f=xc(n==null?void 0:n.defaultReasoningEffort);return f&&u.includes(f)?f:u[0]??"medium"}function yt(n){if(!(typeof n!="object"||n===null||Array.isArray(n)))return n}function yr(n){return n.replace(/\s+/g," ").trim()}function Gl(n,a){return n.length<=a?n:`${n.slice(0,a)}...`}function lt(...n){for(const a of n){if(typeof a!="string")continue;const u=yr(a);if(u.length>0)return u}}function Ec(...n){for(const a of n)if(typeof a=="string")return a}function uk(...n){for(const a of n)if(typeof a=="string"&&a.trim().length>0)return a}function Up(n){const a=yt(n);if(!a)return;const u=a.configured===!0,r=typeof a.prefix=="string"?a.prefix:Ya;return{configured:u,prefix:Kg(r,!0)}}function Kg(n,a=!1){const u=rk(n);return u.length===0?a?Ya:"":u.length===1&&!n.includes(",")?u[0]:u.join(", ")}function rk(n){return n.includes(",")?n.split(",").map(a=>a.trim()).filter(a=>a.length>0):n.trim().length>0?[n]:[]}function kc(n){if(typeof n=="string")return yr(n);if(!Array.isArray(n))return;const a=n.filter(u=>typeof u=="string").map(u=>yr(u)).filter(u=>u.length>0);if(a.length!==0)return a.join(" ")}function ok(n){return n.replace(/^codex\/event\//i,"").replace(/[/_]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,a=>a.toUpperCase())}function Ig(n){const a=yt(n==null?void 0:n.msg),u=a==null?void 0:a.type;return typeof u=="string"?u:void 0}function sk(n){const a=yt(n==null?void 0:n.msg);return kc(a==null?void 0:a.command)??kc(n==null?void 0:n.command)}function ck(n){const a=yt(n==null?void 0:n.msg),u=yt(n==null?void 0:n.delta),r=yt(a==null?void 0:a.delta);return lt(n==null?void 0:n.text,a==null?void 0:a.text,n==null?void 0:n.delta,u==null?void 0:u.text,a==null?void 0:a.delta,r==null?void 0:r.text)}function Jg(n){const a=yt(n==null?void 0:n.msg),u=yt(n==null?void 0:n.item)??yt(a==null?void 0:a.item),r=u==null?void 0:u.type;return typeof r=="string"?r:void 0}function Fg(n){const a=yt(n==null?void 0:n.msg),u=yt(n==null?void 0:n.turn)??yt(a==null?void 0:a.turn),r=u==null?void 0:u.status;return typeof r=="string"?r:void 0}function fk(n){if(!n)return;const a=kc(n.command);if(a)return Gl(a,180);const u=lt(n.path,n.file,n.target,n.cwd);if(u)return Gl(u,180);const r=JSON.stringify(n);if(!(!r||r==="{}"))return Gl(r,180)}function hk(n){if(!n)return;if(n.success){const u=yr(n.output);return u.length>0?Gl(u,180):"Completed successfully"}const a=lt(n.error,n.output)??"Request failed";return Gl(a,180)}function dk(n,a){const u=n.toLowerCase(),r=Ig(a),f=r==null?void 0:r.toLowerCase();if(ak.some(c=>c.test(u)||!!(f&&c.test(f))))return null;if(u.includes("exec_approval_request")||f!=null&&f.includes("exec_approval_request")){const c=sk(a);return{source:"provider",status:"Waiting for approval",detail:c?`Command: ${Gl(c,180)}`:"Tool execution requires confirmation."}}if(u.includes("agent_reasoning")||f!=null&&f.includes("agent_reasoning")){const c=ck(a);return{source:"provider",status:"Analyzing request",detail:c?Gl(c,180):"Planning the next step."}}if(u.includes("item/completed")||f!=null&&f.includes("item_completed")){const c=Jg(a);return{source:"provider",status:"Step completed",detail:c?`Item: ${c}`:void 0}}if(u.includes("turn/completed")||f!=null&&f.includes("turn_completed")){const c=Fg(a);return{source:"provider",status:c==="failed"?"Turn failed":"Turn completed",detail:c?`Status: ${c}`:void 0}}return{source:"provider",status:ok(n)}}function mk(n,a){var c,m,p;const u=n.toLowerCase(),r=(c=Ig(a))==null?void 0:c.toLowerCase(),f=(m=Jg(a))==null?void 0:m.toLowerCase(),h=(p=Fg(a))==null?void 0:p.toLowerCase();return u.includes("approval")||r!=null&&r.includes("approval")||u.includes("exec")||u.includes("apply_patch")||u.includes("patch")||r!=null&&r.includes("exec")||r!=null&&r.includes("apply_patch")||r!=null&&r.includes("patch")?!0:u.includes("item/completed")||r!=null&&r.includes("item_completed")?!!(f&&/(tool|exec|command|patch|shell|function)/.test(f)):!!(u.includes("turn/completed")||r!=null&&r.includes("turn_completed")||u.includes("error")||u.includes("failed")||r!=null&&r.includes("error")||r!=null&&r.includes("failed")||h==="failed")}function sc(n){return n.startsWith("discord:")?"discord":"web"}function fr(n){return n.startsWith("web:")?n:`web:${n}`}function pk(n){return Array.isArray(n)?n.flatMap(a=>{const u=yt(a);if(!u)return[];const r=lt(u.sessionId),f=lt(u.channelType),h=lt(u.updatedAt),c=u.messages;if(!r||f!=="web"&&f!=="discord")return[];const m=h?new Date(h):new Date,p=Array.isArray(c)?c.flatMap(d=>{const b=yt(d);if(!b)return[];const y=lt(b.role),x=Ec(b.content)??"";return y!=="user"&&y!=="assistant"?[]:[{role:y,content:x}]}):[];return[{sessionId:r,channelType:f,updatedAt:m,messages:p}]}):[]}function gk(){var kl;const[n,a]=ce.useState(ek),[u,r]=ce.useState({}),[f,h]=ce.useState({}),[c,m]=ce.useState(null),[p,d]=ce.useState(null),[b,y]=ce.useState("safe"),[x,S]=ce.useState(!1),[_,H]=ce.useState(!1),[G,O]=ce.useState(""),[K,Q]=ce.useState(!1),[oe,F]=ce.useState(null),[D,te]=ce.useState({provider:"openai",model:"gpt-4o",reasoningEffort:"medium"}),[me,ve]=ce.useState({configured:!1,prefix:Ya}),[B,ie]=ce.useState(Ya),[ne,ke]=ce.useState(""),[ue,P]=ce.useState(!1),[R,I]=ce.useState(!1),[ae,Se]=ce.useState(null),[k,A]=ce.useState({}),[q,E]=ce.useState(!1),ee=p??c,ge=ee?n.messagesBySession[ee]??[]:[],fe=ee?u[ee]??[]:[],we=ee?f[ee]??[]:[],_e=ee?n.streamingBySession[ee]===!0:!1,He=Xg(ee,c),ct=ce.useMemo(()=>tk(c,n.metaBySession),[c,n.metaBySession]);ce.useEffect(()=>{if(!(p&&ct.some(L=>L.sessionId===p))){if(c){d(c);return}ct.length>0&&d(ct[0].sessionId)}},[c,p,ct]);const xt=ce.useCallback((L,De)=>{r(J=>({...J,[L]:[...J[L]??[],{id:crypto.randomUUID(),timestamp:new Date,...De}]}))},[]),Xt=ce.useCallback((L,De)=>{h(J=>{const le=J[L]??[],he={id:crypto.randomUUID(),timestamp:new Date,...De},xe=le[le.length-1],at=xe&&xe.source===he.source&&xe.status===he.status&&xe.detail===he.detail?[...le.slice(0,-1),{...xe,timestamp:he.timestamp}]:[...le,he];return{...J,[L]:at.slice(-8)}})},[]),Sn=ce.useCallback(L=>{h(De=>({...De,[L]:[]}))},[]),mn=ce.useCallback(L=>{switch(L.type){case"connected":{y(L.mode),S(L.spicyEnabled),H(L.spicyObedienceEnabled===!0);const J=L.llm;J!=null&&J.provider&&(J!=null&&J.model)&&te(J);const le=Up(L.discord);le&&(ve(le),ie(le.prefix),ke(""),P(!1),I(!1));const he=lt(L.sessionId);if(he){const xe=fr(he);m(xe),d(at=>at??xe),a(at=>Pt(at,{type:"session_touch",sessionId:xe,channelType:"web",updatedAt:new Date}))}break}case"session_snapshot":{const J=pk(L.sessions);a(le=>Pt(le,{type:"session_snapshot",sessions:J}));break}case"session_user_message":{const J=lt(L.sessionId),le=lt(L.channelType),he=uk(L.content);if(!J||!he||le!=="web"&&le!=="discord")break;const xe=new Date;a(at=>Pt(at,{type:"session_user_message",sessionId:J,channelType:le,content:he,timestamp:xe}));break}case"session_chunk":{const J=lt(L.sessionId),le=Ec(L.content)??"";if(!J)break;a(he=>Pt(he,{type:"session_chunk",sessionId:J,content:le,timestamp:new Date})),Xt(J,{source:"system",status:"Writing response"});break}case"session_message_end":{const J=lt(L.sessionId),le=Ec(L.content)??"";if(!J)break;a(he=>Pt(he,{type:"session_message_end",sessionId:J,content:le,timestamp:new Date})),Sn(J);break}case"message_received":{const J=lt(L.sessionId),le=J?fr(J):c??p;if(!le)break;const he=new Date;a(xe=>Pt(xe,{type:"session_stream_start",sessionId:le,channelType:"web",timestamp:he})),Sn(le),Xt(le,{source:"system",status:"Starting model turn",detail:"Waiting for live updates from the provider."});break}case"models":{E(!1);const J=L.provider,le=Array.isArray(L.models)?L.models:[],he=typeof L.error=="string"?L.error:"";if(A(xe=>({...xe,[J]:le})),he){Se(null);const xe=c??p;xe&&a(at=>Pt(at,{type:"session_message_end",sessionId:xe,content:`Error: ${he}`,timestamp:new Date}))}else le.length===0&&ae===J&&Se(null);break}case"model_changed":{const J=L.llm;J!=null&&J.provider&&(J!=null&&J.model)&&(te(J),Se(null));break}case"codex_install_required":{const J=String(L.message??"Codex CLI is required for openai-codex."),le=c??p;le&&a(he=>Pt(he,{type:"session_message_end",sessionId:le,content:`Error: ${J}`,timestamp:new Date})),Se(null),E(!1);break}case"tool_start":{const J=L.tool,le=yt(L.args),he=lt(L.sessionId)??c;if(!he)break;xt(he,{type:"start",tool:J,args:le}),Xt(he,{source:"tool",status:`Running ${J}`,detail:fk(le)}),a(xe=>Pt(xe,{type:"session_touch",sessionId:he,channelType:sc(he),updatedAt:new Date}));break}case"tool_end":{const J=L.tool,le=L.result,he=lt(L.sessionId)??c;if(!he)break;xt(he,{type:"end",tool:J,result:le}),Xt(he,{source:"tool",status:(le==null?void 0:le.success)===!1?`Failed ${J}`:`Finished ${J}`,detail:hk(le)}),a(xe=>Pt(xe,{type:"session_touch",sessionId:he,channelType:sc(he),updatedAt:new Date}));break}case"provider_event":{const J=yt(L.event),le=J==null?void 0:J.method,he=yt(J==null?void 0:J.params),xe=typeof le=="string"?dk(le,he):null,at=typeof le=="string"?mk(le,he):!1,Tl=lt(L.sessionId)??c;if(!Tl)break;xt(Tl,{type:"provider",tool:typeof le=="string"?le:"provider/notification",args:he,detail:(xe==null?void 0:xe.detail)??(at?"Important provider event":"Codex app-server notification"),important:at}),xe&&Xt(Tl,xe),a(Ia=>Pt(Ia,{type:"session_touch",sessionId:Tl,channelType:sc(Tl),updatedAt:new Date}));break}case"confirm_request":{const J=yt(L.details),le=J&&typeof J.tool=="string"?{tool:J.tool,action:typeof J.action=="string"?J.action:"tool execution",summary:typeof J.summary=="string"?J.summary:"",command:lt(J.command),cwd:lt(J.cwd),path:lt(J.path),args:yt(J.args)}:void 0,he=lt(L.sessionId),xe=he?fr(he):c??p;if(!xe)break;xt(xe,{type:"start",tool:(le==null?void 0:le.tool)??"confirmation",args:le==null?void 0:le.args,detail:lt(le==null?void 0:le.summary,L.prompt)??"Waiting for confirmation"}),F({id:crypto.randomUUID(),prompt:L.prompt,details:le,sessionId:xe}),Xt(xe,{source:"system",status:"Waiting for your confirmation",detail:lt(le==null?void 0:le.summary,L.prompt)});break}case"mode_changed":y(L.mode);break;case"spicy_obedience_changed":H(L.enabled===!0);break;case"spicy_enabled_changed":S(L.enabled===!0),L.enabled===!0&&O("");break;case"discord_config_updated":{const J=Up(L.discord);J&&(ve(J),ie(J.prefix)),ke(""),P(!1),I(!1);break}case"session_cleared":{const J=lt(L.sessionId),le=J?fr(J):c??p;if(!le)break;a(he=>Pt(he,{type:"session_clear",sessionId:le,updatedAt:new Date})),r(he=>({...he,[le]:[]})),Sn(le);break}case"error":{I(!1);const J=c??p;if(!J)break;const le=L.error,he=typeof le=="string"&&le.trim()?`Error: ${le}`:"Error: Request failed";a(xe=>Pt(xe,{type:"session_message_end",sessionId:J,content:he,timestamp:new Date})),Sn(J);break}}},[Xt,xt,Sn,c,ae,p]),{send:Ge,connected:qe,connecting:xl}=$2(lk(),mn);ce.useEffect(()=>{if(!qe)return;const L=()=>{Ge({type:"get_session_snapshot"})};L();const De=window.setInterval(L,2500);return()=>{window.clearInterval(De)}},[qe,Ge]),ce.useEffect(()=>{if(!K)return;const L=De=>{De.key==="Escape"&&Q(!1)};return window.addEventListener("keydown",L),()=>{window.removeEventListener("keydown",L)}},[K]),ce.useEffect(()=>{var xe;if(!qe)return;const L=ae??D.provider,De=k[L];if(!ae||!De||De.length===0)return;const J=((xe=De.find(at=>at.isDefault))==null?void 0:xe.id)??De[0].id,le=De.find(at=>at.id===J),he=L==="openai-codex"?oc(le,D.reasoningEffort):void 0;Ge({type:"set_model",provider:L,model:J,reasoningEffort:he})},[qe,D.reasoningEffort,D.provider,k,ae,Ge]);const Zl=ce.useCallback(L=>{!L.trim()||!qe||!c||p!==c||Ge({type:"message",content:L})},[qe,c,p,Ge]),xn=ce.useCallback(L=>{var le,he;const De=oe;if(Ge({type:"confirm_response",decision:L}),F(null),!De)return;const J=L!=="cancel";xt(De.sessionId,{type:"end",tool:((le=De.details)==null?void 0:le.tool)??"confirmation",detail:lt((he=De.details)==null?void 0:he.summary,De.prompt),result:{success:J,output:J?L==="allow_always"?"Approved for this session":"Approved once":"Cancelled by user",error:J?void 0:"Cancelled by user"}})},[xt,oe,Ge]),wn=ce.useCallback(L=>{if(L==="spicy"&&!x){alert("Spicy mode is not enabled. Re-run the installer and accept the risk.");return}Ge({type:"set_mode",mode:L})},[Ge,x]),El=ce.useCallback(L=>{Ge(W2(L))},[Ge]),Yi=ce.useCallback(()=>{Ge(P2(G))},[Ge,G]),Kl=ce.useCallback(()=>{!qe||!c||p!==c||(Ge({type:"clear_session"}),Q(!1))},[qe,c,p,Ge]),Et=ce.useCallback(L=>{Se(L),E(!0),Ge({type:"get_models",provider:L})},[Ge]),Vi=ce.useCallback(L=>{const De=ae??D.provider,le=(k[De]??[]).find(xe=>xe.id===L),he=De==="openai-codex"?oc(le,D.reasoningEffort):void 0;Ge({type:"set_model",provider:De,model:L,reasoningEffort:he})},[D.provider,D.reasoningEffort,k,ae,Ge]),Y=ae??D.provider,W=k[Y]??[],pe=W.some(L=>L.id===D.model)?D.model:((kl=W[0])==null?void 0:kl.id)??D.model,ze=W.find(L=>L.id===pe),Le=b==="spicy",Mt=x||Le,pn=G.trim()==="I ACCEPT THE RISK",kt=Y==="openai-codex"?Zg(ze):[],it=Y==="openai-codex"?oc(ze,D.reasoningEffort):void 0,bt=Qg.filter(L=>kt.includes(L.value)),Qe=ce.useCallback(L=>{const De=ae??D.provider;De==="openai-codex"&&Ge({type:"set_model",provider:De,model:pe,reasoningEffort:L})},[D.provider,ae,pe,Ge]),En=ce.useCallback(()=>{const L=Kg(B);if(L.length===0){alert("Discord prefix list cannot be empty.");return}I(!0),Ge({type:"set_discord_config",prefix:L,token:ne.trim().length>0?ne.trim():void 0,clearToken:ue})},[ue,B,ne,Ge]),Qt=B!==me.prefix||ne.trim().length>0||ue,Ka=qe&&!!c&&p===c&&!_e,Il=nk(qe,_e,ee,c),Jl=qe?He?"Read-only here. Reply in Discord.":"Ask Keygate anything...":"Connecting...";return z.jsxs("div",{className:"app",children:[z.jsxs("header",{className:"app-header",children:[z.jsxs("div",{className:"header-left",children:[z.jsxs("div",{className:"brand-block",children:[z.jsx("span",{className:"brand-mark","aria-hidden":"true"}),z.jsxs("div",{className:"brand-copy",children:[z.jsx("h1",{className:"logo",children:"Keygate"}),z.jsx("p",{className:"brand-subtitle",children:"AI Gateway Workspace"})]})]}),z.jsx(I2,{mode:b,spicyEnabled:x,onModeChange:wn})]}),z.jsxs("div",{className:"header-right",children:[z.jsxs("div",{className:`connection-status ${qe?"connected":xl?"connecting":"disconnected"}`,children:[z.jsx("span",{className:"status-dot"}),qe?"Connected":xl?"Connecting...":"Disconnected"]}),z.jsx("button",{className:"btn-secondary",onClick:()=>Q(L=>!L),"aria-expanded":K,"aria-controls":"config-drawer",children:"Config"}),z.jsx("button",{className:"btn-secondary",onClick:Kl,disabled:!Ka,children:"Clear main session"})]})]}),z.jsxs("main",{className:"app-main",children:[z.jsxs("section",{className:"chat-shell",children:[z.jsxs("div",{className:"chat-toolbar",children:[z.jsxs("label",{className:"llm-control chat-session-control",children:[z.jsx("span",{children:"Chat View"}),z.jsx("select",{value:ee??"",onChange:L=>d(L.target.value),disabled:!qe||ct.length===0,children:ct.length===0?z.jsx("option",{value:"",children:"No sessions yet"}):ct.map(L=>z.jsx("option",{value:L.sessionId,children:L.label},L.sessionId))})]}),He&&z.jsx("span",{className:"session-readonly-chip",children:"Read-only (Discord)"})]}),z.jsx(Q2,{messages:ge,onSendMessage:Zl,isStreaming:_e,streamActivities:we,disabled:Il,inputPlaceholder:Jl,readOnlyHint:He?"Read-only here. Reply in Discord.":void 0})]}),z.jsx(K2,{events:fe})]}),K&&z.jsx("div",{className:"config-drawer-backdrop",onClick:()=>Q(!1),role:"presentation",children:z.jsxs("aside",{id:"config-drawer",className:"config-drawer",onClick:L=>L.stopPropagation(),"aria-label":"Configuration",children:[z.jsxs("div",{className:"config-drawer-header",children:[z.jsx("h2",{children:"Configuration"}),z.jsx("button",{className:"config-close-btn",onClick:()=>Q(!1),"aria-label":"Close configuration",children:"Close"})]}),z.jsxs("section",{className:"config-section",children:[z.jsx("h3",{children:"Security"}),z.jsxs("label",{className:"config-switch-row",children:[z.jsxs("span",{className:"config-switch-copy",children:[z.jsx("strong",{children:"Spicy Mode"}),z.jsx("small",{children:"Enable autonomous full-host execution."})]}),z.jsx("input",{type:"checkbox",checked:Le,onChange:L=>wn(L.target.checked?"spicy":"safe"),disabled:!qe||_e||!Mt})]}),!x&&z.jsxs("div",{className:"config-risk-block",children:[z.jsxs("p",{className:"config-hint",children:["Spicy mode is currently locked. To unlock it, type ",z.jsx("code",{children:"I ACCEPT THE RISK"}),"."]}),z.jsx("input",{className:"config-risk-input",type:"text",value:G,onChange:L=>O(L.target.value),placeholder:"I ACCEPT THE RISK",spellCheck:!1,autoComplete:"off",disabled:!qe||_e}),z.jsx("button",{className:"btn-secondary",onClick:Yi,disabled:!qe||_e||!pn,children:"Enable Spicy Mode"})]}),z.jsxs("label",{className:"config-switch-row",children:[z.jsxs("span",{className:"config-switch-copy",children:[z.jsx("strong",{children:"Spicy Max Obedience"}),z.jsx("small",{children:"Best-effort reduction of avoidable refusals in spicy mode."})]}),z.jsx("input",{type:"checkbox",checked:_,onChange:L=>El(L.target.checked),disabled:!qe||_e||!x||!Le})]})]}),z.jsxs("section",{className:"config-section",children:[z.jsx("h3",{children:"Model"}),z.jsxs("label",{className:"llm-control config-control",children:[z.jsx("span",{children:"Provider"}),z.jsx("select",{value:Y,onChange:L=>Et(L.target.value),disabled:!qe||_e,children:ik.map(L=>z.jsx("option",{value:L.value,children:L.label},L.value))})]}),z.jsxs("label",{className:"llm-control config-control",children:[z.jsx("span",{children:"Model"}),z.jsx("select",{value:pe,onChange:L=>Vi(L.target.value),disabled:!qe||_e||W.length===0||q,children:W.length===0?z.jsx("option",{value:D.model,children:q?"Loading models...":D.model}):W.map(L=>z.jsx("option",{value:L.id,children:L.displayName},L.id))})]}),Y==="openai-codex"&&z.jsxs("label",{className:"llm-control config-control",children:[z.jsx("span",{children:"Reasoning"}),z.jsx("select",{value:it??"medium",onChange:L=>Qe(L.target.value),disabled:!qe||_e||W.length===0||q||bt.length===0,children:bt.length===0?z.jsx("option",{value:it??"medium",children:"Medium"}):bt.map(L=>z.jsx("option",{value:L.value,children:L.label},L.value))})]}),q&&z.jsx("span",{className:"models-loading",children:"Refreshing model catalog..."})]}),z.jsxs("section",{className:"config-section",children:[z.jsx("h3",{children:"Discord Bot"}),z.jsxs("p",{className:"config-note",children:["Status: ",me.configured?"Token configured":"Token not configured"]}),z.jsxs("label",{className:"llm-control config-control",children:[z.jsx("span",{children:"Command Prefixes"}),z.jsx("input",{className:"config-text-input",type:"text",value:B,onChange:L=>ie(L.target.value),placeholder:`${Ya}, ?keygate , 1`,spellCheck:!1,autoComplete:"off",disabled:!qe||_e||R})]}),z.jsx("small",{className:"config-note",children:"Use commas to separate multiple prefixes."}),z.jsxs("label",{className:"llm-control config-control",children:[z.jsx("span",{children:"Bot Token"}),z.jsx("input",{className:"config-text-input",type:"password",value:ne,onChange:L=>{ke(L.target.value),L.target.value.trim().length>0&&P(!1)},placeholder:me.configured?"Leave blank to keep current token":"Paste Discord bot token",autoComplete:"off",disabled:!qe||_e||R})]}),z.jsxs("label",{className:"config-switch-row",children:[z.jsxs("span",{className:"config-switch-copy",children:[z.jsx("strong",{children:"Clear saved token"}),z.jsx("small",{children:"Remove token from local config on save."})]}),z.jsx("input",{type:"checkbox",checked:ue,onChange:L=>{const De=L.target.checked;P(De),De&&ke("")},disabled:!qe||_e||R||!me.configured})]}),z.jsx("button",{className:"btn-secondary",onClick:En,disabled:!qe||_e||R||!Qt,children:R?"Saving...":"Save Discord Config"}),z.jsx("small",{className:"config-note",children:"Restart the Discord bot process to apply updated settings."})]}),z.jsxs("section",{className:"config-section",children:[z.jsx("h3",{children:"Session"}),z.jsx("button",{className:"btn-secondary",onClick:Kl,disabled:!Ka,children:"Clear main session"})]})]})}),oe&&z.jsx(F2,{prompt:oe.prompt,details:oe.details,onAllowOnce:()=>xn("allow_once"),onAllowAlways:()=>xn("allow_always"),onCancel:()=>xn("cancel")})]})}y0.createRoot(document.getElementById("root")).render(z.jsx(ce.StrictMode,{children:z.jsx(gk,{})}));