agent-muster 0.1.2 → 0.1.4

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,84 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const h of s)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function u(s){const h={};return s.integrity&&(h.integrity=s.integrity),s.referrerPolicy&&(h.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?h.credentials="include":s.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(s){if(s.ep)return;s.ep=!0;const h=u(s);fetch(s.href,h)}})();function cy(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ms={exports:{}},eu={};/**
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 ag;function sb(){if(ag)return eu;ag=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(o,s,h){var f=null;if(h!==void 0&&(f=""+h),s.key!==void 0&&(f=""+s.key),"key"in s){h={};for(var m in s)m!=="key"&&(h[m]=s[m])}else h=s;return s=h.ref,{$$typeof:l,type:o,key:f,ref:s!==void 0?s:null,props:h}}return eu.Fragment=a,eu.jsx=u,eu.jsxs=u,eu}var ug;function fb(){return ug||(ug=1,Ms.exports=sb()),Ms.exports}var E=fb(),js={exports:{}},Ct={};/**
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 rg;function hb(){if(rg)return Ct;rg=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.for("react.view_transition"),b=Symbol.iterator;function N(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,w={};function I(C,U,K){this.props=C,this.context=U,this.refs=w,this.updater=K||q}I.prototype.isReactComponent={},I.prototype.setState=function(C,U){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,U,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function X(){}X.prototype=I.prototype;function ot(C,U,K){this.props=C,this.context=U,this.refs=w,this.updater=K||q}var F=ot.prototype=new X;F.constructor=ot,H(F,I.prototype),F.isPureReactComponent=!0;var j=Array.isArray;function $(){}var et={H:null,A:null,T:null,S:null},pt=Object.prototype.hasOwnProperty;function R(C,U,K){var lt=K.ref;return{$$typeof:l,type:C,key:U,ref:lt!==void 0?lt:null,props:K}}function V(C,U){return R(C.type,U,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===l}function mt(C){var U={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(K){return U[K]})}var at=/\/+/g;function W(C,U){return typeof C=="object"&&C!==null&&C.key!=null?mt(""+C.key):U.toString(36)}function P(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then($,$):(C.status="pending",C.then(function(U){C.status==="pending"&&(C.status="fulfilled",C.value=U)},function(U){C.status==="pending"&&(C.status="rejected",C.reason=U)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ut(C,U,K,lt,yt){var xt=typeof C;(xt==="undefined"||xt==="boolean")&&(C=null);var Et=!1;if(C===null)Et=!0;else switch(xt){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(C.$$typeof){case l:case a:Et=!0;break;case v:return Et=C._init,ut(Et(C._payload),U,K,lt,yt)}}if(Et)return yt=yt(C),Et=lt===""?"."+W(C,0):lt,j(yt)?(K="",Et!=null&&(K=Et.replace(at,"$&/")+"/"),ut(yt,U,K,"",function(Ae){return Ae})):yt!=null&&(J(yt)&&(yt=V(yt,K+(yt.key==null||C&&C.key===yt.key?"":(""+yt.key).replace(at,"$&/")+"/")+Et)),U.push(yt)),1;Et=0;var rt=lt===""?".":lt+":";if(j(C))for(var vt=0;vt<C.length;vt++)lt=C[vt],xt=rt+W(lt,vt),Et+=ut(lt,U,K,xt,yt);else if(vt=N(C),typeof vt=="function")for(C=vt.call(C),vt=0;!(lt=C.next()).done;)lt=lt.value,xt=rt+W(lt,vt++),Et+=ut(lt,U,K,xt,yt);else if(xt==="object"){if(typeof C.then=="function")return ut(P(C),U,K,lt,yt);throw U=String(C),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Et}function ht(C,U,K){if(C==null)return C;var lt=[],yt=0;return ut(C,lt,"","",function(xt){return U.call(K,xt,yt++)}),lt}function Nt(C){if(C._status===-1){var U=C._result,K=U();K.then(function(lt){(C._status===0||C._status===-1)&&(C._status=1,C._result=lt,K.status===void 0&&(K.status="fulfilled",K.value=lt))},function(lt){(C._status===0||C._status===-1)&&(C._status=2,C._result=lt,K.status===void 0&&(K.status="rejected",K.reason=lt))}),C._status===-1&&(C._status=0,C._result=K)}if(C._status===1)return C._result.default;throw C._result}var z=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function qt(C){var U=et.T,K={};K.types=U!==null?U.types:null,et.T=K;try{var lt=C(),yt=et.S;yt!==null&&yt(K,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then($,z)}catch(xt){z(xt)}finally{U!==null&&K.types!==null&&(U.types=K.types),et.T=U}}function te(C){var U=et.T;if(U!==null){var K=U.types;K===null?U.types=[C]:K.indexOf(C)===-1&&K.push(C)}else qt(te.bind(null,C))}var T={map:ht,forEach:function(C,U,K){ht(C,function(){U.apply(this,arguments)},K)},count:function(C){var U=0;return ht(C,function(){U++}),U},toArray:function(C){return ht(C,function(U){return U})||[]},only:function(C){if(!J(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Ct.Activity=p,Ct.Children=T,Ct.Component=I,Ct.Fragment=u,Ct.Profiler=s,Ct.PureComponent=ot,Ct.StrictMode=o,Ct.Suspense=g,Ct.ViewTransition=S,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(C){return et.H.useMemoCache(C)}},Ct.addTransitionType=te,Ct.cache=function(C){return function(){return C.apply(null,arguments)}},Ct.cacheSignal=function(){return null},Ct.cloneElement=function(C,U,K){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var lt=H({},C.props),yt=C.key;if(U!=null)for(xt in U.key!==void 0&&(yt=""+U.key),U)!pt.call(U,xt)||xt==="key"||xt==="__self"||xt==="__source"||xt==="ref"&&U.ref===void 0||(lt[xt]=U[xt]);var xt=arguments.length-2;if(xt===1)lt.children=K;else if(1<xt){for(var Et=Array(xt),rt=0;rt<xt;rt++)Et[rt]=arguments[rt+2];lt.children=Et}return R(C.type,yt,lt)},Ct.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:h,_context:C},C},Ct.createElement=function(C,U,K){var lt,yt={},xt=null;if(U!=null)for(lt in U.key!==void 0&&(xt=""+U.key),U)pt.call(U,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(yt[lt]=U[lt]);var Et=arguments.length-2;if(Et===1)yt.children=K;else if(1<Et){for(var rt=Array(Et),vt=0;vt<Et;vt++)rt[vt]=arguments[vt+2];yt.children=rt}if(C&&C.defaultProps)for(lt in Et=C.defaultProps,Et)yt[lt]===void 0&&(yt[lt]=Et[lt]);return R(C,xt,yt)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(C){return{$$typeof:m,render:C}},Ct.isValidElement=J,Ct.lazy=function(C){return{$$typeof:v,_payload:{_status:-1,_result:C},_init:Nt}},Ct.memo=function(C,U){return{$$typeof:y,type:C,compare:U===void 0?null:U}},Ct.startTransition=qt,Ct.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},Ct.use=function(C){return et.H.use(C)},Ct.useActionState=function(C,U,K){return et.H.useActionState(C,U,K)},Ct.useCallback=function(C,U){return et.H.useCallback(C,U)},Ct.useContext=function(C){return et.H.useContext(C)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(C,U){return et.H.useDeferredValue(C,U)},Ct.useEffect=function(C,U){return et.H.useEffect(C,U)},Ct.useEffectEvent=function(C){return et.H.useEffectEvent(C)},Ct.useId=function(){return et.H.useId()},Ct.useImperativeHandle=function(C,U,K){return et.H.useImperativeHandle(C,U,K)},Ct.useInsertionEffect=function(C,U){return et.H.useInsertionEffect(C,U)},Ct.useLayoutEffect=function(C,U){return et.H.useLayoutEffect(C,U)},Ct.useMemo=function(C,U){return et.H.useMemo(C,U)},Ct.useOptimistic=function(C,U){return et.H.useOptimistic(C,U)},Ct.useReducer=function(C,U,K){return et.H.useReducer(C,U,K)},Ct.useRef=function(C){return et.H.useRef(C)},Ct.useState=function(C){return et.H.useState(C)},Ct.useSyncExternalStore=function(C,U,K){return et.H.useSyncExternalStore(C,U,K)},Ct.useTransition=function(){return et.H.useTransition()},Ct.version="19.3.0",Ct}var og;function pf(){return og||(og=1,js.exports=hb()),js.exports}var st=pf(),Rs={exports:{}},Ce={};/**
18
+ * @license React
19
+ * react-dom.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 cg;function db(){if(cg)return Ce;cg=1;var l=pf();function a(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={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},s=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function m(v,p,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:b===f?f:""+b,children:v,containerInfo:p,implementation:S}}var g=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ce.browser=function(v){return{$$typeof:h,_reason:v}},Ce.createPortal=function(v,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return m(v,p,null,S)},Ce.flushSync=function(v){var p=g.T,S=o.p;try{if(g.T=null,o.p=2,v)return v()}finally{g.T=p,o.p=S,o.d.f()}},Ce.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(v,p))},Ce.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},Ce.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var S=p.as,b=y(S,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?o.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:N,fetchPriority:q}):S==="script"&&o.d.X(v,{crossOrigin:b,integrity:N,fetchPriority:q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ce.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=y(p.as,p.crossOrigin);o.d.M(v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&o.d.M(v)},Ce.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,b=y(S,p.crossOrigin);o.d.L(v,S,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ce.preloadModule=function(v,p){if(typeof v=="string")if(p){var S=y(p.as,p.crossOrigin);o.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else o.d.m(v)},Ce.requestFormReset=function(v){o.d.r(v)},Ce.unstable_batchedUpdates=function(v,p){return v(p)},Ce.useFormState=function(v,p,S){return g.H.useFormState(v,p,S)},Ce.useFormStatus=function(){return g.H.useHostTransitionStatus()},Ce.version="19.3.0",Ce}var sg;function sy(){if(sg)return Rs.exports;sg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Rs.exports=db(),Rs.exports}var mb=sy();function aa({value:l,onChange:a,children:u,triggerLabel:o,disabled:s,"aria-label":h}){var ot;const f=st.Children.toArray(u).filter(st.isValidElement).map(F=>({value:String(F.props.value),label:F.props.children,disabled:!!F.props.disabled})),m=f.findIndex(F=>F.value===l),[g,y]=st.useState(!1),[v,p]=st.useState(-1),[S,b]=st.useState({left:0,top:0,width:0}),N=st.useRef(null),q=st.useRef(null),H=st.useId(),w=g&&!s;function I(){p(m>=0&&!f[m].disabled?m:f.findIndex(F=>!F.disabled)),y(!0)}function X(F){var $;const j=f[F];!j||j.disabled||(a(j.value),y(!1),($=N.current)==null||$.focus())}return st.useLayoutEffect(()=>{if(!w||!N.current||!q.current)return;const F=N.current.getBoundingClientRect(),j=Math.min(Math.max(F.width,160),window.innerWidth-16),$=q.current.offsetHeight;b({left:Math.max(8,Math.min(F.left,window.innerWidth-j-8)),top:F.bottom+$+6<=window.innerHeight-8?F.bottom+6:Math.max(8,F.top-$-6),width:j})},[w,S.width]),st.useEffect(()=>{if(!w)return;function F($){var et,pt;$.target instanceof Node&&!((et=N.current)!=null&&et.contains($.target))&&!((pt=q.current)!=null&&pt.contains($.target))&&y(!1)}function j($){var et;$.target instanceof Node&&((et=q.current)!=null&&et.contains($.target))||y(!1)}return document.addEventListener("pointerdown",F),window.addEventListener("resize",j),window.addEventListener("scroll",j,!0),()=>{document.removeEventListener("pointerdown",F),window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0)}},[w]),st.useEffect(()=>{var F,j;w&&((j=(F=q.current)==null?void 0:F.querySelector(`[id="${H}-${v}"]`))==null||j.scrollIntoView({block:"nearest"}))},[v,w,H]),E.jsxs("span",{className:"select-control",children:[E.jsxs("button",{ref:N,type:"button",className:"select-input",disabled:s,role:"combobox","aria-label":h,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":w?H:void 0,"aria-activedescendant":w&&v>=0?`${H}-${v}`:void 0,onClick:()=>w?y(!1):I(),onBlur:()=>y(!1),onKeyDown:F=>{if(F.key==="Escape"||F.key==="Tab"){y(!1);return}if(F.key==="ArrowDown"||F.key==="ArrowUp"||F.key==="Home"||F.key==="End"){if(F.preventDefault(),!w){I();return}const j=f.flatMap((pt,R)=>pt.disabled?[]:[R]),$=j.indexOf(v),et=F.key==="Home"?0:F.key==="End"?j.length-1:($+(F.key==="ArrowDown"?1:-1)+j.length)%j.length;j.length&&p(j[et])}else w&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),X(v))},children:[E.jsx("span",{className:"select-value",children:o??((ot=f[m])==null?void 0:ot.label)}),E.jsx("svg",{className:"select-chevron",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:E.jsx("path",{d:"m6 9 6 6 6-6"})})]}),w&&mb.createPortal(E.jsx("div",{ref:q,id:H,className:"select-menu",role:"listbox","aria-label":h,style:S,onMouseDown:F=>F.preventDefault(),children:f.map((F,j)=>E.jsxs("button",{id:`${H}-${j}`,type:"button",role:"option",tabIndex:-1,"aria-selected":F.value===l,disabled:F.disabled,className:`select-option${v===j?" active":""}`,onPointerMove:()=>!F.disabled&&p(j),onClick:()=>X(j),children:[E.jsx("span",{children:F.label}),F.value===l&&E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:E.jsx("path",{d:"m5 12 4 4L19 6"})})]},F.value))}),document.body)]})}var Ls={exports:{}},nu={},Us={exports:{}},Bs={};/**
26
+ * @license React
27
+ * scheduler.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 fg;function pb(){return fg||(fg=1,(function(l){function a(P,ut){var ht=P.length;P.push(ut);t:for(;0<ht;){var Nt=ht-1>>>1,z=P[Nt];if(0<s(z,ut))P[Nt]=ut,P[ht]=z,ht=Nt;else break t}}function u(P){return P.length===0?null:P[0]}function o(P){if(P.length===0)return null;var ut=P[0],ht=P.pop();if(ht!==ut){P[0]=ht;t:for(var Nt=0,z=P.length,qt=z>>>1;Nt<qt;){var te=2*(Nt+1)-1,T=P[te],C=te+1,U=P[C];if(0>s(T,ht))C<z&&0>s(U,T)?(P[Nt]=U,P[C]=ht,Nt=C):(P[Nt]=T,P[te]=ht,Nt=te);else if(C<z&&0>s(U,ht))P[Nt]=U,P[C]=ht,Nt=C;else break t}}return ut}function s(P,ut){var ht=P.sortIndex-ut.sortIndex;return ht!==0?ht:P.id-ut.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var f=Date,m=f.now();l.unstable_now=function(){return f.now()-m}}var g=[],y=[],v=1,p=null,S=3,b=!1,N=!1,q=!1,H=!1,w=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ot(P){for(var ut=u(y);ut!==null;){if(ut.callback===null)o(y);else if(ut.startTime<=P)o(y),ut.sortIndex=ut.expirationTime,a(g,ut);else break;ut=u(y)}}function F(P){if(q=!1,ot(P),!N)if(u(g)!==null)N=!0,j||(j=!0,J());else{var ut=u(y);ut!==null&&W(F,ut.startTime-P)}}var j=!1,$=-1,et=5,pt=-1;function R(){return H?!0:!(l.unstable_now()-pt<et)}function V(){if(H=!1,j){var P=l.unstable_now();pt=P;var ut=!0;try{t:{N=!1,q&&(q=!1,I($),$=-1),b=!0;var ht=S;try{e:{for(ot(P),p=u(g);p!==null&&!(p.expirationTime>P&&R());){var Nt=p.callback;if(typeof Nt=="function"){p.callback=null,S=p.priorityLevel;var z=Nt(p.expirationTime<=P);if(P=l.unstable_now(),typeof z=="function"){p.callback=z,ot(P),ut=!0;break e}p===u(g)&&o(g),ot(P)}else o(g);p=u(g)}if(p!==null)ut=!0;else{var qt=u(y);qt!==null&&W(F,qt.startTime-P),ut=!1}}break t}finally{p=null,S=ht,b=!1}ut=void 0}}finally{ut?J():j=!1}}}var J;if(typeof X=="function")J=function(){X(V)};else if(typeof MessageChannel<"u"){var mt=new MessageChannel,at=mt.port2;mt.port1.onmessage=V,J=function(){at.postMessage(null)}}else J=function(){w(V,0)};function W(P,ut){$=w(function(){P(l.unstable_now())},ut)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(P){P.callback=null},l.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):et=0<P?Math.floor(1e3/P):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(P){switch(S){case 1:case 2:case 3:var ut=3;break;default:ut=S}var ht=S;S=ut;try{return P()}finally{S=ht}},l.unstable_requestPaint=function(){H=!0},l.unstable_runWithPriority=function(P,ut){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ht=S;S=P;try{return ut()}finally{S=ht}},l.unstable_scheduleCallback=function(P,ut,ht){var Nt=l.unstable_now();switch(typeof ht=="object"&&ht!==null?(ht=ht.delay,ht=typeof ht=="number"&&0<ht?Nt+ht:Nt):ht=Nt,P){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=ht+z,P={id:v++,callback:ut,priorityLevel:P,startTime:ht,expirationTime:z,sortIndex:-1},ht>Nt?(P.sortIndex=ht,a(y,P),u(g)===null&&P===u(y)&&(q?(I($),$=-1):q=!0,W(F,ht-Nt))):(P.sortIndex=z,a(g,P),N||b||(N=!0,j||(j=!0,J()))),P},l.unstable_shouldYield=R,l.unstable_wrapCallback=function(P){var ut=S;return function(){var ht=S;S=ut;try{return P.apply(this,arguments)}finally{S=ht}}}})(Bs)),Bs}var hg;function gb(){return hg||(hg=1,Us.exports=pb()),Us.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 dg;function yb(){if(dg)return nu;dg=1;var l=gb(),a=pf(),u=sy();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(h(t)!==t)throw Error(o(188))}function y(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(r===null)break;var c=r.alternate;if(c===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===n)return g(r),t;if(c===i)return g(r),e;c=c.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=c;else{for(var d=!1,x=r.child;x;){if(x===n){d=!0,n=r,i=c;break}if(x===i){d=!0,i=r,n=c;break}x=x.sibling}if(!d){for(x=c.child;x;){if(x===n){d=!0,n=c,i=r;break}if(x===i){d=!0,i=c,n=r;break}x=x.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}function p(t,e,n,i,r,c){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,i,r,c)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&p(t.child,e,n,i,r,c))return!0;t=t.sibling}return!1}function S(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function b(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function N(t){var e=[null,null],n=S(t);return n===null||q(e,t,n.child,{foundSelf:!1}),e}function q(t,e,n,i){for(;n!==null;){if(n===e)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&q(t,e,n.child,i))return!0;n=n.sibling}return!1}function H(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(o(559))}}var w=null,I=null;function X(t,e,n){return t===n?!0:t===e?(w=t,!0):!1}function ot(t,e,n){return t===n?(I=t,!1):t===e?(I!==null&&(w=t),!0):!1}function F(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function j(t,e,n){for(var i=0,r=t;r;r=n(r))i++;r=0;for(var c=e;c;c=n(c))r++;for(;0<i-r;)t=n(t),i--;for(;0<r-i;)e=n(e),r--;for(;i--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var $=Object.assign,et=Symbol.for("react.element"),pt=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),mt=Symbol.for("react.profiler"),at=Symbol.for("react.consumer"),W=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),ut=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),Nt=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),qt=Symbol.for("react.activity"),te=Symbol.for("react.legacy_hidden"),T=Symbol.for("react.memo_cache_sentinel"),C=Symbol.for("react.view_transition"),U=Symbol.for("react.recoverable"),K=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=K&&t[K]||t["@@iterator"],typeof t=="function"?t:null)}var yt=Symbol.for("react.client.reference");function xt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===yt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case V:return"Fragment";case mt:return"Profiler";case J:return"StrictMode";case ut:return"Suspense";case ht:return"SuspenseList";case qt:return"Activity";case C:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case W:return t.displayName||"Context";case at:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Nt:return e=t.displayName||null,e!==null?e:xt(t.type)||"Memo";case z:e=t._payload,t=t._init;try{return xt(t(e))}catch{}}return null}var Et=Array.isArray,rt=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vt=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae={pending:!1,data:null,method:null,action:null},xn=[],rn=-1;function ze(t){return{current:t}}function Y(t){0>rn||(t.current=xn[rn],xn[rn]=null,rn--)}function ft(t,e){rn++,xn[rn]=t.current,t.current=e}var jt=ze(null),Oe=ze(null),on=ze(null),ee=ze(null);function ne(t,e){switch(ft(on,e),ft(Oe,t),ft(jt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?mp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=mp(e),t=pp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(jt),ft(jt,t)}function Ie(){Y(jt),Y(Oe),Y(on)}function Be(t){var e=t.memoizedState;e!==null&&(ta._currentValue=e.memoizedState,ft(ee,t)),e=jt.current;var n=pp(e,t.type);e!==n&&(ft(Oe,t),ft(jt,n))}function G(t){Oe.current===t&&(Y(jt),Y(Oe)),ee.current===t&&(Y(ee),ta._currentValue=Ae)}var nt,Tt;function zt(t){if(nt===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);nt=e&&e[1]||"",Tt=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+nt+t+Tt}var Yt=!1;function De(t,e){if(!t||Yt)return"";Yt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){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(it){var _=it}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(it){_=it}Z=!1;try{var L=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Z=!0,new t}finally{Z&&(L!==void 0?Object.defineProperty(t.prototype,"props",L):delete t.prototype.props)}}}else{try{throw Error()}catch(it){_=it}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(it){if(it&&_&&typeof it.stack=="string")return[it.stack,_.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),d=c[0],x=c[1];if(d&&x){var A=d.split(`
44
+ `),D=x.split(`
45
+ `);for(r=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(i===A.length||r===D.length)for(i=A.length-1,r=D.length-1;1<=i&&0<=r&&A[i]!==D[r];)r--;for(;1<=i&&0<=r;i--,r--)if(A[i]!==D[r]){if(i!==1||r!==1)do if(i--,r--,0>r||A[i]!==D[r]){var B=`
46
+ `+A[i].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=i&&0<=r);break}}}finally{Yt=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?zt(n):""}function Gn(t,e){switch(t.tag){case 26:case 27:case 5:return zt(t.type);case 16:return zt("Lazy");case 13:return t.child!==e&&e!==null?zt("Suspense Fallback"):zt("Suspense");case 19:return zt("SuspenseList");case 0:case 15:return De(t.type,!1);case 11:return De(t.type.render,!1);case 1:return De(t.type,!0);case 31:return zt("Activity");case 30:return zt("ViewTransition");default:return""}}function cn(t){try{var e="",n=null;do e+=Gn(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Xn=Object.prototype.hasOwnProperty,Qn=l.unstable_scheduleCallback,ye=l.unstable_cancelCallback,ol=l.unstable_shouldYield,Sn=l.unstable_requestPaint,Ke=l.unstable_now,y1=l.unstable_getCurrentPriorityLevel,Uf=l.unstable_ImmediatePriority,Bf=l.unstable_UserBlockingPriority,gu=l.unstable_NormalPriority,v1=l.unstable_LowPriority,Hf=l.unstable_IdlePriority,b1=l.log,x1=l.unstable_setDisableYieldValue,oa=null,Fe=null;function cl(t){if(typeof b1=="function"&&x1(t),Fe&&typeof Fe.setStrictMode=="function")try{Fe.setStrictMode(oa,t)}catch{}}var Je=Math.clz32?Math.clz32:T1,S1=Math.log,E1=Math.LN2;function T1(t){return t>>>=0,t===0?32:31-(S1(t)/E1|0)|0}var yu=256,vu=262144,bu=4194304;function Bl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function xu(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var r=0,c=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var x=i&134217727;return x!==0?(i=x&~c,i!==0?r=Bl(i):(d&=x,d!==0?r=Bl(d):n||(n=x&~t,n!==0&&(r=Bl(n))))):(x=i&~c,x!==0?r=Bl(x):d!==0?r=Bl(d):n||(n=i&~t,n!==0&&(r=Bl(n)))),r===0?0:e!==0&&e!==r&&(e&c)===0&&(c=r&-r,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:r}function ca(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qf(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-Je(n),r=1<<i;e|=t[i],n&=~r}return e}function C1(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Yf(){var t=bu;return bu<<=1,(bu&62914560)===0&&(bu=4194304),t}function ao(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function sa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function A1(t,e,n,i,r,c){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var x=t.entanglements,A=t.expirationTimes,D=t.hiddenUpdates;for(n=d&~n;0<n;){var B=31-Je(n),Z=1<<B;x[B]=0,A[B]=-1;var _=D[B];if(_!==null)for(D[B]=null,B=0;B<_.length;B++){var L=_[B];L!==null&&(L.lane&=-536870913)}n&=~Z}i!==0&&Vf(t,i,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(d&~e))}function Vf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Je(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Gf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Je(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}function Xf(t,e){var n=e&-e;return n=(n&42)!==0?1:uo(n),(n&(t.suspendedLanes|e))!==0?0:n}function uo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ro(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Qf(){var t=vt.p;return t!==0?t:(t=window.event,t===void 0?32:Pp(t.type))}function Zf(t,e){var n=vt.p;try{return vt.p=t,e()}finally{vt.p=n}}var Zn=Math.random().toString(36).slice(2),ve="__reactFiber$"+Zn,He="__reactProps$"+Zn,mi="__reactContainer$"+Zn,If="__reactEvents$"+Zn,z1="__reactListeners$"+Zn,w1="__reactHandles$"+Zn,Kf="__reactResources$"+Zn,fa="__reactMarker$"+Zn,Su="__reactLoad$"+Zn;function Eu(t){delete t[ve],delete t[He],delete t[z1],delete t[w1]}function Hl(t){var e;if(e=t[ve])return e;for(var n=t.parentNode;n;){if(e=n[mi]||n[ve]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Dp(t);t!==null;){if(n=t[ve])return n;t=Dp(t)}return e}t=n,n=t.parentNode}return null}function pi(t){if(t=t[ve]||t[mi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ha(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function gi(t){var e=t[Kf];return e||(e=t[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function de(t){t[fa]=!0}function Ff(t){t[Su]=void 0}var Jf=new Set,$f={};function ql(t,e){yi(t,e),yi(t+"Capture",e)}function yi(t,e){for($f[t]=e,t=0;t<e.length;t++)Jf.add(e[t])}var k1=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]*$"),Pf={},Wf={};function N1(t){return Xn.call(Wf,t)?!0:Xn.call(Pf,t)?!1:k1.test(t)?Wf[t]=!0:(Pf[t]=!0,!1)}var Bt=!1;function th(){var t=Bt;return Bt=!1,t}function Tu(t,e,n){if(N1(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Cu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,n)}}function In(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,i)}}function $e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function eh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _1(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,c=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,c.call(this,d)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function oo(t){if(!t._valueTracker){var e=eh(t)?"checked":"value";t._valueTracker=_1(t,e,""+t[e])}}function nh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=eh(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}var O1=/[\n"\\]/g;function sn(t){return t.replace(O1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function co(t,e,n,i,r,c,d,x){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+$e(e)):t.value!==""+$e(e)&&(t.value=""+$e(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?d==="number"&&t.value==e?so(t,$e(t.value)):so(t,$e(e)):n!=null?so(t,$e(n)):i!=null&&t.removeAttribute("value"),r==null&&c!=null&&(t.defaultChecked=!!c),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+$e(x):t.removeAttribute("name")}function lh(t,e,n,i,r,c,d,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){oo(t);return}n=n!=null?""+$e(n):"",e=e!=null?""+$e(e):n,x||e===t.value||(t.value=e),t.defaultValue=e}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=x?t.checked:!!i,t.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),oo(t)}function so(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function vi(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+$e(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,i&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function ih(t,e,n){if(e!=null&&(e=""+$e(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+$e(n):""}function ah(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(o(92));if(Et(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=$e(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),oo(t)}function bi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var D1=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 uh(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||D1.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function rh(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="",Bt=!0);for(var r in e)i=e[r],e.hasOwnProperty(r)&&n[r]!==i&&(uh(t,r,i),Bt=!0)}else for(var c in e)e.hasOwnProperty(c)&&uh(t,c,e[c])}function fo(t){if(t.indexOf("-")===-1)return!1;switch(t){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 M1=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"],["maskType","mask-type"],["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"]]),j1=/^[\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 Au(t){return j1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function _n(){}var ho=null;function mo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xi=null,Si=null;function oh(t){var e=pi(t);if(e&&(t=e.stateNode)){var n=t[He]||null;t:switch(t=e.stateNode,e.type){case"input":if(co(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+sn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=i[He]||null;if(!r)throw Error(o(90));co(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&nh(i)}break t;case"textarea":ih(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&vi(t,!!n.multiple,e,!1)}}}var po=!1;function ch(t,e,n){if(po)return t(e,n);po=!0;try{var i=t(e);return i}finally{if(po=!1,(xi!==null||Si!==null)&&(Ar(),xi&&(e=xi,t=Si,Si=xi=null,oh(e),t)))for(e=0;e<t.length;e++)oh(t[e])}}function da(t,e){var n=t.stateNode;if(n===null)return null;var i=n[He]||null;if(i===null)return null;n=i[e];t:switch(e){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)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=!1;if(Kn)try{var ma={};Object.defineProperty(ma,"passive",{get:function(){go=!0}}),window.addEventListener("test",ma,ma),window.removeEventListener("test",ma,ma)}catch{go=!1}var sl=null,yo=null,zu=null;function sh(){if(zu)return zu;var t,e=yo,n=e.length,i,r="value"in sl?sl.value:sl.textContent,c=r.length;for(t=0;t<n&&e[t]===r[t];t++);var d=n-t;for(i=1;i<=d&&e[n-i]===r[c-i];i++);return zu=r.slice(t,1<i?1-i:void 0)}function wu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ku(){return!0}function fh(){return!1}function Me(t){function e(n,i,r,c,d){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(n=t[x],this[x]=n?n(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ku:fh,this.isPropagationStopped=fh,this}return $(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ku)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ku)},persist:function(){},isPersistent:ku}),e}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=Me(fl),pa=$({},fl,{view:0,detail:0}),R1=Me(pa),vo,bo,ga,_u=$({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:So,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ga&&(ga&&t.type==="mousemove"?(vo=t.screenX-ga.screenX,bo=t.screenY-ga.screenY):bo=vo=0,ga=t),vo)},movementY:function(t){return"movementY"in t?t.movementY:bo}}),hh=Me(_u),L1=$({},_u,{dataTransfer:0}),U1=Me(L1),B1=$({},pa,{relatedTarget:0}),xo=Me(B1),H1=$({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),q1=Me(H1),Y1=$({},fl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),V1=Me(Y1),G1=$({},fl,{data:0}),dh=Me(G1),X1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q1={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"},Z1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Z1[t])?!!e[t]:!1}function So(){return I1}var K1=$({},pa,{key:function(t){if(t.key){var e=X1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=wu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Q1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:So,charCode:function(t){return t.type==="keypress"?wu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?wu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),F1=Me(K1),J1=$({},_u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mh=Me(J1),$1=$({},fl,{submitter:0}),P1=Me($1),W1=$({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:So}),t0=Me(W1),e0=$({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=Me(e0),l0=$({},_u,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),i0=Me(l0),a0=$({},fl,{newState:0,oldState:0,source:0}),u0=Me(a0),r0=[9,13,27,32],Eo=Kn&&"CompositionEvent"in window,ya=null;Kn&&"documentMode"in document&&(ya=document.documentMode);var o0=Kn&&"TextEvent"in window&&!ya,ph=Kn&&(!Eo||ya&&8<ya&&11>=ya),gh=" ",yh=!1;function vh(t,e){switch(t){case"keyup":return r0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function c0(t,e){switch(t){case"compositionend":return bh(e);case"keypress":return e.which!==32?null:(yh=!0,gh);case"textInput":return t=e.data,t===gh&&yh?null:t;default:return null}}function s0(t,e){if(Ei)return t==="compositionend"||!Eo&&vh(t,e)?(t=sh(),zu=yo=sl=null,Ei=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ph&&e.locale!=="ko"?null:e.data;default:return null}}var f0={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 xh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!f0[t.type]:e==="textarea"}function Sh(t,e,n,i){xi?Si?Si.push(i):Si=[i]:xi=i,e=Or(e,"onChange"),0<e.length&&(n=new Nu("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var va=null,ba=null;function h0(t){op(t,0)}function Ou(t){var e=ha(t);if(nh(e))return t}function Eh(t,e){if(t==="change")return e}var Th=!1;if(Kn){var To;if(Kn){var Co="oninput"in document;if(!Co){var Ch=document.createElement("div");Ch.setAttribute("oninput","return;"),Co=typeof Ch.oninput=="function"}To=Co}else To=!1;Th=To&&(!document.documentMode||9<document.documentMode)}function Ah(){va&&(va.detachEvent("onpropertychange",zh),ba=va=null)}function zh(t){if(t.propertyName==="value"&&Ou(ba)){var e=[];Sh(e,ba,t,mo(t)),ch(h0,e)}}function d0(t,e,n){t==="focusin"?(Ah(),va=e,ba=n,va.attachEvent("onpropertychange",zh)):t==="focusout"&&Ah()}function m0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ou(ba)}function p0(t,e){if(t==="click")return Ou(e)}function g0(t,e){if(t==="input"||t==="change")return Ou(e)}function y0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Pe=typeof Object.is=="function"?Object.is:y0;function xa(t,e){if(Pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!Xn.call(e,r)||!Pe(t[r],e[r]))return!1}return!0}function Ao(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function wh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kh(t,e){var n=wh(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=wh(n)}}function Nh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function _h(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ao(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ao(t.document)}return e}function zo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var v0=Kn&&"documentMode"in document&&11>=document.documentMode,Ti=null,wo=null,Sa=null,ko=!1;function Oh(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ko||Ti==null||Ti!==Ao(i)||(i=Ti,"selectionStart"in i&&zo(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}),Sa&&xa(Sa,i)||(Sa=i,i=Or(wo,"onSelect"),0<i.length&&(e=new Nu("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ti)))}function Yl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ci={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},No={},Dh={};Kn&&(Dh=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function Vl(t){if(No[t])return No[t];if(!Ci[t])return t;var e=Ci[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Dh)return No[t]=e[n];return t}var Mh=Vl("animationend"),jh=Vl("animationiteration"),Rh=Vl("animationstart"),b0=Vl("transitionrun"),x0=Vl("transitionstart"),S0=Vl("transitioncancel"),Lh=Vl("transitionend"),Uh=new Map,_o="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");_o.push("scrollEnd");function En(t,e){Uh.set(t,e),ql(e,[t])}var E0=0;function Fn(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=zn.identifierPrefix;var n=E0++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function Bh(t){if(t==null||typeof t=="string")return t;var e=null,n=Xi;if(n!==null)for(var i=0;i<n.length;i++){var r=t[n[i]];if(r!=null){if(r==="none")return"none";e=e==null?r:e+(" "+r)}}return e??t.default}function Jn(t,e){return t=Bh(t),e=Bh(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Du=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fn=[],Ai=0,Oo=0;function Mu(){for(var t=Ai,e=Oo=Ai=0;e<t;){var n=fn[e];fn[e++]=null;var i=fn[e];fn[e++]=null;var r=fn[e];fn[e++]=null;var c=fn[e];if(fn[e++]=null,i!==null&&r!==null){var d=i.pending;d===null?r.next=r:(r.next=d.next,d.next=r),i.pending=r}c!==0&&Hh(n,r,c)}}function ju(t,e,n,i){fn[Ai++]=t,fn[Ai++]=e,fn[Ai++]=n,fn[Ai++]=i,Oo|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Do(t,e,n,i){return ju(t,e,n,i),Ru(t)}function Gl(t,e){return ju(t,null,null,e),Ru(t)}function Hh(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var r=!1,c=t.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(r=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,r&&e!==null&&(r=31-Je(n),t=c.hiddenUpdates,i=t[r],i===null?t[r]=[e]:i.push(e),e.lane=n|536870912),c):null}function Ru(t){if(50<Ga)throw Ga=0,Cr=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var zi={};function T0(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 qe(t,e,n,i){return new T0(t,e,n,i)}function Mo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $n(t,e){var n=t.alternate;return n===null?(n=qe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&1206910976,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function qh(t,e){t.flags&=1206910978;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Lu(t,e,n,i,r,c){var d=0;if(i=t,typeof i=="function")Mo(i)&&(d=1);else if(typeof i=="string")d=$v(t,n,jt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(i){case qt:return t=qe(31,n,e,r),t.elementType=qt,t.lanes=c,t;case V:return Xl(n.children,r,c,e);case J:d=8,r|=24;break;case mt:return t=qe(12,n,e,r|2),t.elementType=mt,t.lanes=c,t;case ut:return t=qe(13,n,e,r),t.elementType=ut,t.lanes=c,t;case ht:return t=qe(19,n,e,r),t.elementType=ht,t.lanes=c,t;case te:case C:return t=r|32,t=qe(30,n,e,t),t.elementType=C,t.lanes=c,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case W:d=10;break t;case at:d=9;break t;case P:d=11;break t;case Nt:d=14;break t;case z:d=16,i=null;break t}d=29,n=Error(o(130,t===null?"null":typeof t,"")),i=null}return e=qe(d,n,e,r),e.elementType=t,e.type=i,e.lanes=c,e}function Xl(t,e,n,i){return t=qe(7,t,i,e),t.lanes=n,t}function jo(t,e,n){return t=qe(6,t,null,e),t.lanes=n,t}function Yh(t){var e=qe(18,null,null,0);return e.stateNode=t,e}function Ro(t,e,n){return e=qe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Vh=new WeakMap;function hn(t,e){if(typeof t=="object"&&t!==null){var n=Vh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:cn(e)},Vh.set(t,e),e)}return{value:t,source:e,stack:cn(e)}}var wi=[],ki=0,Uu=null,Ea=0,dn=[],mn=0,hl=null,On=1,Dn="";function Pn(t,e){wi[ki++]=Ea,wi[ki++]=Uu,Uu=t,Ea=e}function Gh(t,e,n){dn[mn++]=On,dn[mn++]=Dn,dn[mn++]=hl,hl=t;var i=On;t=Dn;var r=32-Je(i)-1;i&=~(1<<r),n+=1;var c=32-Je(e)+r;if(30<c){var d=r-r%5;c=(i&(1<<d)-1).toString(32),i>>=d,r-=d,On=1<<32-Je(e)+r|n<<r|i,Dn=c+t}else On=1<<c|n<<r|i,Dn=t}function Bu(t){t.return!==null&&(Pn(t,1),Gh(t,1,0))}function Lo(t){for(;t===Uu;)Uu=wi[--ki],wi[ki]=null,Ea=wi[--ki],wi[ki]=null;for(;t===hl;)hl=dn[--mn],dn[mn]=null,Dn=dn[--mn],dn[mn]=null,On=dn[--mn],dn[mn]=null}function Xh(t,e){dn[mn++]=On,dn[mn++]=Dn,dn[mn++]=hl,On=e.id,Dn=e.overflow,hl=t}var me=null,$t=null,_t=!1,dl=null,pn=!1,Uo=Error(o(519));function ml(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ta(hn(e,t)),Uo}function Qh(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[ve]=t,e[He]=i,n){case"dialog":Mt("cancel",e),Mt("close",e);break;case"iframe":case"object":case"embed":Mt("load",e);break;case"video":case"audio":for(n=0;n<Qa.length;n++)Mt(Qa[n],e);break;case"source":Mt("error",e);break;case"img":case"image":case"link":Mt("error",e),Mt("load",e);break;case"details":Mt("toggle",e);break;case"input":Mt("invalid",e),lh(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Mt("invalid",e);break;case"textarea":Mt("invalid",e),ah(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||hp(e.textContent,n)?(i.popover!=null&&(Mt("beforetoggle",e),Mt("toggle",e)),i.onScroll!=null&&Mt("scroll",e),i.onScrollEnd!=null&&Mt("scrollend",e),i.onClick!=null&&(e.onclick=_n),e=!0):e=!1,e||ml(t,!0)}function Hu(t){for(me=t.return;me;)switch(me.tag){case 5:case 31:case 13:pn=!1;return;case 27:case 3:pn=!0;return;default:me=me.return}}function Ni(t){if(t!==me)return!1;if(!_t)return Hu(t),_t=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ds(t.type,t.memoizedProps)),n=!n),n&&$t&&ml(t),Hu(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));$t=Op(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));$t=Op(t)}else e===27?(e=$t,_l(t.type)?(t=Es,Es=null,$t=t):$t=e):$t=me?yn(t.stateNode.nextSibling):null;return!0}function Ql(){$t=me=null,_t=!1}function Bo(){var t=dl;return t!==null&&(Ge===null?Ge=t:Ge.push.apply(Ge,t),dl=null),t}function Ta(t){dl===null?dl=[t]:dl.push(t)}var Ho=ze(null),Zl=null,Wn=null;function pl(t,e,n){ft(Ho,e._currentValue),e._currentValue=n}function tl(t){t._currentValue=Ho.current,Y(Ho)}function qu(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function qo(t,e,n,i){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var d=r.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=r;for(var A=0;A<e.length;A++)if(x.context===e[A]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),qu(c.return,n,t),i||(d=null);break t}c=x.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(o(341));d.lanes|=n,c=d.alternate,c!==null&&(c.lanes|=n),qu(d,n,t),d=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=n,d=r.alternate,d!==null&&(d.lanes|=n),qu(r.return,n,t),d=r.child,d=d!==null?d.sibling:null):d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===t){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Il(t,e,n,i){t=null;for(var r=e,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var x=r.type;Pe(r.pendingProps.value,d.value)||(t!==null?t.push(x):t=[x])}}else if(r===ee.current){if(d=r.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(ta):t=[ta])}r=r.return}return t!==null&&qo(e,t,n,i),e.flags|=262144,t!==null}function Yu(t){for(t=t.firstContext;t!==null;){if(!Pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Kl(t){Zl=t,Wn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function be(t){return Zh(Zl,t)}function Vu(t,e){return Zl===null&&Kl(t),Zh(t,e)}function Zh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Wn===null){if(t===null)throw Error(o(308));Wn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Wn=Wn.next=e;return n}var C0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},A0=l.unstable_scheduleCallback,z0=l.unstable_NormalPriority,re={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yo(){return{controller:new C0,data:new Map,refCount:0}}function Ca(t){t.refCount--,t.refCount===0&&A0(z0,function(){t.controller.abort()})}function Ih(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;for(n===null&&(n=t.transitionTypes=[]),t=0;t<e.length;t++){var i=e[t];n.indexOf(i)===-1&&n.push(i)}}}var Aa=null;function w0(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var za=null,Vo=0,Fl=0,_i=null;function k0(t,e){if(za===null){var n=za=[];Vo=0,Fl=is(),_i={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Vo++,e.then(Kh,Kh),e}function Kh(){if(--Vo===0&&(Aa=null,za!==null)){_i!==null&&(_i.status="fulfilled");var t=za;za=null,Fl=0,_i=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function N0(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var Fh=rt.S;rt.S=function(t,e){if(Ym=Ke(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&k0(t,e),Aa!==null)for(var n=Ki;n!==null;)Ih(n,Aa),n=n.next;if(n=t.types,n!==null){for(var i=Ki;i!==null;)Ih(i,n),i=i.next;if(Fl!==0){i=Aa,i===null&&(i=Aa=[]);for(var r=0;r<n.length;r++){var c=n[r];i.indexOf(c)===-1&&i.push(c)}}}Fh!==null&&Fh(t,e)};var Jl=ze(null);function Go(){var t=Jl.current;return t!==null?t:Kt.pooledCache}function Gu(t,e){e===null?ft(Jl,Jl.current):ft(Jl,e.pool)}function Jh(){var t=Go();return t===null?null:{parent:re._currentValue,pool:t}}var Oi=Error(o(460)),Xo=Error(o(474)),Xu=Error(o(542)),Qu={then:function(){}};function $h(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ph(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(_n,_n),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,td(t),t===void 0&&!("reason"in e)?Error(o(600)):t;default:if(typeof e.status=="string")e.then(_n,_n);else{if(t=Kt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=i}},function(i){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,td(t),t}throw Pl=e,Oi}}function $l(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pl=n,Oi):n}}var Pl=null;function Wh(){if(Pl===null)throw Error(o(459));var t=Pl;return Pl=null,t}function td(t){if(t===Oi||t===Xu)throw Error(o(483))}var Di=null,wa=0;function Zu(t){var e=wa;return wa+=1,Di===null&&(Di=[]),Ph(Di,t,e)}function gl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Iu(t,e){throw e.$$typeof===et?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ed(t){function e(O,k){if(t){var M=O.deletions;M===null?(O.deletions=[k],O.flags|=16):M.push(k)}}function n(O,k){if(!t)return null;for(;k!==null;)e(O,k),k=k.sibling;return null}function i(O){for(var k=new Map;O!==null;)O.key===null?k.set(O.index,O):k.set(O.key,O),O=O.sibling;return k}function r(O,k){return O=$n(O,k),O.index=0,O.sibling=null,O}function c(O,k,M){return O.index=M,t?(M=O.alternate,M!==null?(M=M.index,M<k?(O.flags|=2,k):M):(O.flags|=134217730,k)):(O.flags|=1048576,k)}function d(O){return t&&O.alternate===null&&(O.flags|=134217730),O}function x(O,k,M,Q){return k===null||k.tag!==6?(k=jo(M,O.mode,Q),k.return=O,k):(k=r(k,M),k.return=O,k)}function A(O,k,M,Q){var ct=M.type;return ct===V?(O=B(O,k,M.props.children,Q,M.key),gl(O,M),O):k!==null&&(k.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===z&&$l(ct)===k.type)?(k=r(k,M.props),gl(k,M),k.return=O,k):(k=Lu(M.type,M.key,M.props,null,O.mode,Q),gl(k,M),k.return=O,k)}function D(O,k,M,Q){return k===null||k.tag!==4||k.stateNode.containerInfo!==M.containerInfo||k.stateNode.implementation!==M.implementation?(k=Ro(M,O.mode,Q),k.return=O,k):(k=r(k,M.children||[]),k.return=O,k)}function B(O,k,M,Q,ct){return k===null||k.tag!==7?(k=Xl(M,O.mode,Q,ct),k.return=O,k):(k=r(k,M),k.return=O,k)}function Z(O,k,M){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=jo(""+k,O.mode,M),k.return=O,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case pt:return M=Lu(k.type,k.key,k.props,null,O.mode,M),gl(M,k),M.return=O,M;case R:return k=Ro(k,O.mode,M),k.return=O,k;case z:return k=$l(k),Z(O,k,M)}if(Et(k)||lt(k))return k=Xl(k,O.mode,M,null),k.return=O,k;if(typeof k.then=="function")return Z(O,Zu(k),M);if(k.$$typeof===W)return Z(O,Vu(O,k),M);Iu(O,k)}return null}function _(O,k,M,Q){var ct=k!==null?k.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ct!==null?null:x(O,k,""+M,Q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case pt:return M.key===ct?A(O,k,M,Q):null;case R:return M.key===ct?D(O,k,M,Q):null;case z:return M=$l(M),_(O,k,M,Q)}if(Et(M)||lt(M))return ct!==null?null:B(O,k,M,Q,null);if(typeof M.then=="function")return _(O,k,Zu(M),Q);if(M.$$typeof===W)return _(O,k,Vu(O,M),Q);Iu(O,M)}return null}function L(O,k,M,Q,ct){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return O=O.get(M)||null,x(k,O,""+Q,ct);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case pt:return O=O.get(Q.key===null?M:Q.key)||null,A(k,O,Q,ct);case R:return O=O.get(Q.key===null?M:Q.key)||null,D(k,O,Q,ct);case z:return Q=$l(Q),L(O,k,M,Q,ct)}if(Et(Q)||lt(Q))return O=O.get(M)||null,B(k,O,Q,ct,null);if(typeof Q.then=="function")return L(O,k,M,Zu(Q),ct);if(Q.$$typeof===W)return L(O,k,M,Vu(k,Q),ct);Iu(k,Q)}return null}function it(O,k,M,Q){for(var ct=null,Lt=null,gt=k,St=k=0,se=null;gt!==null&&St<M.length;St++){gt.index>St?(se=gt,gt=null):se=gt.sibling;var Ut=_(O,gt,M[St],Q);if(Ut===null){gt===null&&(gt=se);break}t&&gt&&Ut.alternate===null&&e(O,gt),k=c(Ut,k,St),Lt===null?ct=Ut:Lt.sibling=Ut,Lt=Ut,gt=se}if(St===M.length)return n(O,gt),_t&&Pn(O,St),ct;if(gt===null){for(;St<M.length;St++)gt=Z(O,M[St],Q),gt!==null&&(k=c(gt,k,St),Lt===null?ct=gt:Lt.sibling=gt,Lt=gt);return _t&&Pn(O,St),ct}for(gt=i(gt);St<M.length;St++)se=L(gt,O,St,M[St],Q),se!==null&&(t&&(Ut=se.alternate,Ut!==null&&gt.delete(Ut.key===null?St:Ut.key)),k=c(se,k,St),Lt===null?ct=se:Lt.sibling=se,Lt=se);return t&&gt.forEach(function(Rl){return e(O,Rl)}),_t&&Pn(O,St),ct}function dt(O,k,M,Q){if(M==null)throw Error(o(151));for(var ct=null,Lt=null,gt=k,St=k=0,se=null,Ut=M.next();gt!==null&&!Ut.done;St++,Ut=M.next()){gt.index>St?(se=gt,gt=null):se=gt.sibling;var Rl=_(O,gt,Ut.value,Q);if(Rl===null){gt===null&&(gt=se);break}t&&gt&&Rl.alternate===null&&e(O,gt),k=c(Rl,k,St),Lt===null?ct=Rl:Lt.sibling=Rl,Lt=Rl,gt=se}if(Ut.done)return n(O,gt),_t&&Pn(O,St),ct;if(gt===null){for(;!Ut.done;St++,Ut=M.next())Ut=Z(O,Ut.value,Q),Ut!==null&&(k=c(Ut,k,St),Lt===null?ct=Ut:Lt.sibling=Ut,Lt=Ut);return _t&&Pn(O,St),ct}for(gt=i(gt);!Ut.done;St++,Ut=M.next())Ut=L(gt,O,St,Ut.value,Q),Ut!==null&&(t&&(se=Ut.alternate,se!==null&&gt.delete(se.key===null?St:se.key)),k=c(Ut,k,St),Lt===null?ct=Ut:Lt.sibling=Ut,Lt=Ut);return t&&gt.forEach(function(cb){return e(O,cb)}),_t&&Pn(O,St),ct}function kt(O,k,M,Q){if(typeof M=="object"&&M!==null&&M.type===V&&M.key===null&&M.props.ref===void 0&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case pt:t:{for(var ct=M.key;k!==null;){if(k.key===ct){if(ct=M.type,ct===V){if(k.tag===7){n(O,k.sibling),Q=r(k,M.props.children),gl(Q,M),Q.return=O,O=Q;break t}}else if(k.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===z&&$l(ct)===k.type){n(O,k.sibling),Q=r(k,M.props),gl(Q,M),Q.return=O,O=Q;break t}n(O,k);break}else e(O,k);k=k.sibling}M.type===V?(Q=Xl(M.props.children,O.mode,Q,M.key),gl(Q,M),Q.return=O,O=Q):(Q=Lu(M.type,M.key,M.props,null,O.mode,Q),gl(Q,M),Q.return=O,O=Q)}return d(O);case R:t:{for(ct=M.key;k!==null;){if(k.key===ct)if(k.tag===4&&k.stateNode.containerInfo===M.containerInfo&&k.stateNode.implementation===M.implementation){n(O,k.sibling),Q=r(k,M.children||[]),Q.return=O,O=Q;break t}else{n(O,k);break}else e(O,k);k=k.sibling}Q=Ro(M,O.mode,Q),Q.return=O,O=Q}return d(O);case z:return M=$l(M),kt(O,k,M,Q)}if(Et(M))return it(O,k,M,Q);if(lt(M)){if(ct=lt(M),typeof ct!="function")throw Error(o(150));return M=ct.call(M),dt(O,k,M,Q)}if(typeof M.then=="function")return kt(O,k,Zu(M),Q);if(M.$$typeof===W)return kt(O,k,Vu(O,M),Q);Iu(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,k!==null&&k.tag===6?(n(O,k.sibling),Q=r(k,M),Q.return=O,O=Q):(n(O,k),Q=jo(M,O.mode,Q),Q.return=O,O=Q),d(O)):n(O,k)}return function(O,k,M,Q){try{wa=0;var ct=kt(O,k,M,Q);return Di=null,ct}catch(gt){if(gt===Oi||gt===Xu)throw gt;var Lt=qe(29,gt,null,O.mode);return Lt.lanes=Q,Lt.return=O,Lt}finally{}}}var Wl=ed(!0),nd=ed(!1),yl=!1;function Qo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function vl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bl(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Vt&2)!==0){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,e=Ru(t),Hh(t,null,n),e}return ju(t,i,e,n),Ru(t)}function ka(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Gf(t,n)}}function Io(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?r=c=d:c=c.next=d,n=n.next}while(n!==null);c===null?r=c=e:c=c.next=e}else r=c=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ko=!1;function Na(){if(Ko){var t=_i;if(t!==null)throw t}}function _a(t,e,n,i){Ko=!1;var r=t.updateQueue;yl=!1;var c=r.firstBaseUpdate,d=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var A=x,D=A.next;A.next=null,d===null?c=D:d.next=D,d=A;var B=t.alternate;B!==null&&(B=B.updateQueue,x=B.lastBaseUpdate,x!==d&&(x===null?B.firstBaseUpdate=D:x.next=D,B.lastBaseUpdate=A))}if(c!==null){var Z=r.baseState;d=0,B=D=A=null,x=c;do{var _=x.lane&-536870913,L=_!==x.lane;if(L?(Rt&_)===_:(i&_)===_){_!==0&&_===Fl&&(Ko=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var it=t,dt=x;_=e;var kt=n;switch(dt.tag){case 1:if(it=dt.payload,typeof it=="function"){Z=it.call(kt,Z,_);break t}Z=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=dt.payload,_=typeof it=="function"?it.call(kt,Z,_):it,_==null)break t;Z=$({},Z,_);break t;case 2:yl=!0}}_=x.callback,_!==null&&(t.flags|=64,L&&(t.flags|=8192),L=r.callbacks,L===null?r.callbacks=[_]:L.push(_))}else L={lane:_,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(D=B=L,A=Z):B=B.next=L,d|=_;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;L=x,x=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);B===null&&(A=Z),r.baseState=A,r.firstBaseUpdate=D,r.lastBaseUpdate=B,c===null&&(r.shared.lanes=0),zl|=d,t.lanes=d,t.memoizedState=Z}}function ld(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function id(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)ld(n[t],e)}var xl=ze(null),Ku=ze(0);function ad(t,e){t=al,ft(Ku,t),ft(xl,e),al=t|e.baseLanes}function Fo(){ft(Ku,al),ft(xl,xl.current)}function Jo(){al=Ku.current,Y(xl),Y(Ku)}var xe=ze(null),we=null;function Sl(t){var e=t.alternate;ft(Se,Se.current&1),ft(xe,t),we===null&&(e===null||xl.current!==null||e.memoizedState!==null)&&(we=t)}function $o(t){ft(Se,Se.current),ft(xe,t),we===null&&(we=t)}function ud(t){t.tag===22?(ft(Se,Se.current),ft(xe,t),we===null&&(we=t)):El()}function El(){ft(Se,Se.current),ft(xe,xe.current)}function We(t){Y(xe),we===t&&(we=null),Y(Se)}var Se=ze(0);function Oa(t,e){ft(xe,xe.current),ft(Se,e)}function Po(t){Y(Se),Y(xe),we===t&&(we=null)}function Fu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xs(n)||Ss(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var el=0,wt=null,It=null,oe=null,Ju=!1,Mi=!1,ti=!1,$u=0,Da=0,ji=null,_0=0;function ie(){throw Error(o(321))}function Wo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Pe(t[n],e[n]))return!1;return!0}function tc(t,e,n,i,r,c){return el=c,wt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,rt.H=t===null||t.memoizedState===null?Gd:Xd,ti=!1,c=n(i,r),ti=!1,Mi&&(c=od(e,n,i,r)),rd(t),c}function rd(t){rt.H=ir;var e=It!==null&&It.next!==null;if(el=0,oe=It=wt=null,Ju=!1,Da=0,ji=null,e)throw Error(o(300));t===null||ce||(t=t.dependencies,t!==null&&Yu(t)&&(ce=!0))}function od(t,e,n,i){wt=t;var r=0;do{if(Mi&&(ji=null),Da=0,Mi=!1,25<=r)throw Error(o(301));if(r+=1,oe=It=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}rt.H=B0,c=e(n,i)}while(Mi);return c}function O0(){var t=rt.H,e=t.useState()[0];return e=typeof e.then=="function"?Ma(e):e,t=t.useState()[0],(It!==null?It.memoizedState:null)!==t&&(wt.flags|=1024),e}function ec(){var t=$u!==0;return $u=0,t}function nc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function lc(t){if(Ju){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ju=!1}el=0,oe=It=wt=null,Mi=!1,Da=$u=0,ji=null}function je(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?wt.memoizedState=oe=t:oe=oe.next=t,oe}function ue(){if(It===null){var t=wt.alternate;t=t!==null?t.memoizedState:null}else t=It.next;var e=oe===null?wt.memoizedState:oe.next;if(e!==null)oe=e,It=t;else{if(t===null)throw wt.alternate===null?Error(o(467)):Error(o(310));It=t,t={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},oe===null?wt.memoizedState=oe=t:oe=oe.next=t}return oe}function Pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ma(t){var e=Da;return Da+=1,ji===null&&(ji=[]),t=Ph(ji,t,e),e=wt,(oe===null?e.memoizedState:oe.next)===null&&(e=e.alternate,rt.H=e===null||e.memoizedState===null?Gd:Xd),t}function Wu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ma(t);if(t.$$typeof===U)return;if(t.$$typeof===W)return be(t)}throw Error(o(438,String(t)))}function ic(t){var e=null,n=wt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=wt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Pu(),wt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=T;return e.index++,n}function nl(t,e){return typeof e=="function"?e(t):e}function tr(t){var e=ue();return ac(e,It,t)}function ac(t,e,n){var i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var r=t.baseQueue,c=i.pending;if(c!==null){if(r!==null){var d=r.next;r.next=c.next,c.next=d}e.baseQueue=r=c,i.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var x=d=null,A=null,D=e,B=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Rt&Z)===Z:(el&Z)===Z){var _=D.revertLane;if(_===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===Fl&&(B=!0);else if((el&_)===_){D=D.next,_===Fl&&(B=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(x=A=Z,d=c):A=A.next=Z,wt.lanes|=_,zl|=_;Z=D.action,ti&&n(c,Z),c=D.hasEagerState?D.eagerState:n(c,Z)}else _={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(x=A=_,d=c):A=A.next=_,wt.lanes|=Z,zl|=Z;D=D.next}while(D!==null&&D!==e);if(A===null?d=c:A.next=x,!Pe(c,t.memoizedState)&&(ce=!0,B&&(n=_i,n!==null)))throw n;t.memoizedState=c,t.baseState=d,t.baseQueue=A,i.lastRenderedState=c}return r===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function uc(t){var e=ue(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,c=e.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do c=t(c,d.action),d=d.next;while(d!==r);Pe(c,e.memoizedState)||(ce=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,i]}function cd(t,e,n){var i=wt,r=ue(),c=_t;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var d=!Pe((It||r).memoizedState,n);if(d&&(r.memoizedState=n,ce=!0),r=r.queue,cc(hd.bind(null,i,r,t),[t]),t=r.getSnapshot!==e||d||oe!==null&&(oe.memoizedState.tag&1)!==0,Ri(t?9:8,{destroy:void 0},fd.bind(null,i,r,n,e),null),t){if(i.flags|=2048,Kt===null)throw Error(o(349));c||(el&127)!==0||sd(i,e,n)}return n}function sd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=wt.updateQueue,e===null?(e=Pu(),wt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function fd(t,e,n,i){e.value=n,e.getSnapshot=i,dd(e)&&md(t)}function hd(t,e,n){return n(function(){dd(e)&&md(t)})}function dd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Pe(t,n)}catch{return!0}}function md(t){var e=Gl(t,2);e!==null&&Xe(e,t,2)}function rc(t){var e=je();if(typeof t=="function"){var n=t;if(t=n(),ti){cl(!0);try{n()}finally{cl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:t},e}function pd(t,e,n,i){return t.baseState=n,ac(t,It,typeof i=="function"?i:nl)}function D0(t,e,n,i,r){if(lr(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};rt.T!==null?n(!0):c.isTransition=!1,i(c),n=e.pending,n===null?(c.next=e.pending=c,gd(e,c)):(c.next=n.next,e.pending=n.next=c)}}function gd(t,e){var n=e.action,i=e.payload,r=t.state;if(e.isTransition){var c=rt.T,d={};d.types=c!==null?c.types:null,rt.T=d;try{var x=n(r,i),A=rt.S;A!==null&&A(d,x),yd(t,e,x)}catch(D){oc(t,e,D)}finally{c!==null&&d.types!==null&&(c.types=d.types),rt.T=c}}else try{c=n(r,i),yd(t,e,c)}catch(D){oc(t,e,D)}}function yd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){vd(t,e,i)},function(i){return oc(t,e,i)}):vd(t,e,n)}function vd(t,e,n){e.status="fulfilled",e.value=n,bd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,gd(t,n)))}function oc(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,bd(e),e=e.next;while(e!==i)}t.action=null}function bd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function xd(t,e){return e}function Sd(t,e){if(_t){var n=Kt.formState;if(n!==null){t:{var i=wt;if(_t){if($t){e:{for(var r=$t,c=pn;r.nodeType!==8;){if(!c){r=null;break e}if(r=yn(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){$t=yn(r.nextSibling),i=r.data==="F!";break t}}ml(i)}i=!1}i&&(e=n[0])}}return n=je(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xd,lastRenderedState:e},n.queue=i,n=qd.bind(null,wt,i),i.dispatch=n,i=rc(!1),c=mc.bind(null,wt,!1,i.queue),i=je(),r={state:e,dispatch:null,action:t,pending:null},i.queue=r,n=D0.bind(null,wt,r,c,n),r.dispatch=n,i.memoizedState=t,[e,n,!1]}function Ed(t){var e=ue();return Td(e,It,t)}function Td(t,e,n){if(e=ac(t,e,xd)[0],t=tr(nl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Ma(e)}catch(d){throw d===Oi?Xu:d}else i=e;e=ue();var r=e.queue,c=r.dispatch;return n!==e.memoizedState&&(wt.flags|=2048,Ri(9,{destroy:void 0},M0.bind(null,r,n),null)),[i,c,t]}function M0(t,e){t.action=e}function Cd(t){var e=ue(),n=It;if(n!==null)return Td(e,n,t);ue(),e=e.memoizedState,n=ue();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Ri(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=wt.updateQueue,e===null&&(e=Pu(),wt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Ad(){return ue().memoizedState}function er(t,e,n,i){var r=je();wt.flags|=t,r.memoizedState=Ri(1|e,{destroy:void 0},n,i===void 0?null:i)}function nr(t,e,n,i){var r=ue();i=i===void 0?null:i;var c=r.memoizedState.inst;It!==null&&i!==null&&Wo(i,It.memoizedState.deps)?r.memoizedState=Ri(e,c,n,i):(wt.flags|=t,r.memoizedState=Ri(1|e,c,n,i))}function zd(t,e){er(8390656,8,t,e)}function cc(t,e){nr(2048,8,t,e)}function j0(t){wt.flags|=4;var e=wt.updateQueue;if(e===null)e=Pu(),wt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function wd(t){var e=ue().memoizedState;return j0({ref:e,nextImpl:t}),function(){if((Vt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function kd(t,e){return nr(4,2,t,e)}function Nd(t,e){return nr(4,4,t,e)}function _d(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Od(t,e,n){n=n!=null?n.concat([t]):null,nr(4,4,_d.bind(null,e,t),n)}function sc(){}function Dd(t,e){var n=ue();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Wo(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Md(t,e){var n=ue();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Wo(e,i[1]))return i[0];if(i=t(),ti){cl(!0);try{t()}finally{cl(!1)}}return n.memoizedState=[i,e],i}function fc(t,e,n){return n===void 0||(el&1073741824)!==0&&(Rt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Gm(),wt.lanes|=t,zl|=t,n)}function jd(t,e,n,i){return Pe(n,e)?n:xl.current!==null?(t=fc(t,n,i),Pe(t,e)||(ce=!0),t):(el&106)===0||(el&1073741824)!==0&&(Rt&261930)===0?(ce=!0,t.memoizedState=n):(t=Gm(),wt.lanes|=t,zl|=t,e)}function Rd(t,e,n,i,r){var c=vt.p;vt.p=c!==0&&8>c?c:8;var d=rt.T,x={};x.types=d!==null?d.types:null,rt.T=x,mc(t,!1,e,n);try{var A=r(),D=rt.S;if(D!==null&&D(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var B=N0(A,i);ja(t,e,B,ln(t))}else ja(t,e,i,ln(t))}catch(Z){ja(t,e,{then:function(){},status:"rejected",reason:Z},ln())}finally{vt.p=c,d!==null&&x.types!==null&&(d.types=x.types),rt.T=d}}function R0(){}function hc(t,e,n,i){if(t.tag!==5)throw Error(o(476));var r=Ld(t).queue;Rd(t,r,e,Ae,n===null?R0:function(){return Ud(t),n(i)})}function Ld(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Ae,baseState:Ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:Ae},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ud(t){var e=Ld(t);e.next===null&&(e=t.alternate.memoizedState),ja(t,e.next.queue,{},ln())}function dc(){return be(ta)}function Bd(){return ue().memoizedState}function Hd(){return ue().memoizedState}function L0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ln();t=vl(n);var i=bl(e,t,n);i!==null&&(Xe(i,e,n),ka(i,e,n)),e={cache:Yo()},t.payload=e;return}e=e.return}}function U0(t,e,n){var i=ln();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lr(t)?Yd(e,n):(n=Do(t,e,n,i),n!==null&&(Xe(n,t,i),Vd(n,e,i)))}function qd(t,e,n){var i=ln();ja(t,e,n,i)}function ja(t,e,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lr(t))Yd(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var d=e.lastRenderedState,x=c(d,n);if(r.hasEagerState=!0,r.eagerState=x,Pe(x,d))return ju(t,e,r,0),Kt===null&&Mu(),!1}catch{}finally{}if(n=Do(t,e,r,i),n!==null)return Xe(n,t,i),Vd(n,e,i),!0}return!1}function mc(t,e,n,i){if(i={lane:2,revertLane:is(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},lr(t)){if(e)throw Error(o(479))}else e=Do(t,n,i,2),e!==null&&Xe(e,t,2)}function lr(t){var e=t.alternate;return t===wt||e!==null&&e===wt}function Yd(t,e){Mi=Ju=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vd(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Gf(t,n)}}var ir={readContext:be,use:Wu,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useLayoutEffect:ie,useInsertionEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useSyncExternalStore:ie,useId:ie,useHostTransitionStatus:ie,useFormState:ie,useActionState:ie,useOptimistic:ie,useMemoCache:ie,useCacheRefresh:ie,useEffectEvent:ie},Gd={readContext:be,use:Wu,useCallback:function(t,e){return je().memoizedState=[t,e===void 0?null:e],t},useContext:be,useEffect:zd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,er(4194308,4,_d.bind(null,e,t),n)},useLayoutEffect:function(t,e){return er(4194308,4,t,e)},useInsertionEffect:function(t,e){er(4,2,t,e)},useMemo:function(t,e){var n=je();e=e===void 0?null:e;var i=t();if(ti){cl(!0);try{t()}finally{cl(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=je();if(n!==void 0){var r=n(e);if(ti){cl(!0);try{n(e)}finally{cl(!1)}}}else r=e;return i.memoizedState=i.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},i.queue=t,t=t.dispatch=U0.bind(null,wt,t),[i.memoizedState,t]},useRef:function(t){var e=je();return t={current:t},e.memoizedState=t},useState:function(t){t=rc(t);var e=t.queue,n=qd.bind(null,wt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:sc,useDeferredValue:function(t,e){var n=je();return fc(n,t,e)},useTransition:function(){var t=rc(!1);return t=Rd.bind(null,wt,t.queue,!0,!1),je().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=wt,r=je();if(_t){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Kt===null)throw Error(o(349));(Rt&127)!==0||sd(i,e,n)}r.memoizedState=n;var c={value:n,getSnapshot:e};return r.queue=c,zd(hd.bind(null,i,c,t),[t]),i.flags|=2048,Ri(9,{destroy:void 0},fd.bind(null,i,c,n,e),null),n},useId:function(){var t=je(),e=Kt.identifierPrefix;if(_t){var n=Dn,i=On;n=(i&~(1<<32-Je(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=$u++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=_0++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:dc,useFormState:Sd,useActionState:Sd,useOptimistic:function(t){var e=je();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=mc.bind(null,wt,!0,n),n.dispatch=e,[t,e]},useMemoCache:ic,useCacheRefresh:function(){return je().memoizedState=L0.bind(null,wt)},useEffectEvent:function(t){var e=je(),n={impl:t};return e.memoizedState=n,function(){if((Vt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Xd={readContext:be,use:Wu,useCallback:Dd,useContext:be,useEffect:cc,useImperativeHandle:Od,useInsertionEffect:kd,useLayoutEffect:Nd,useMemo:Md,useReducer:tr,useRef:Ad,useState:function(){return tr(nl)},useDebugValue:sc,useDeferredValue:function(t,e){var n=ue();return jd(n,It.memoizedState,t,e)},useTransition:function(){var t=tr(nl)[0],e=ue().memoizedState;return[typeof t=="boolean"?t:Ma(t),e]},useSyncExternalStore:cd,useId:Bd,useHostTransitionStatus:dc,useFormState:Ed,useActionState:Ed,useOptimistic:function(t,e){var n=ue();return pd(n,It,t,e)},useMemoCache:ic,useCacheRefresh:Hd,useEffectEvent:wd},B0={readContext:be,use:Wu,useCallback:Dd,useContext:be,useEffect:cc,useImperativeHandle:Od,useInsertionEffect:kd,useLayoutEffect:Nd,useMemo:Md,useReducer:uc,useRef:Ad,useState:function(){return uc(nl)},useDebugValue:sc,useDeferredValue:function(t,e){var n=ue();return It===null?fc(n,t,e):jd(n,It.memoizedState,t,e)},useTransition:function(){var t=uc(nl)[0],e=ue().memoizedState;return[typeof t=="boolean"?t:Ma(t),e]},useSyncExternalStore:cd,useId:Bd,useHostTransitionStatus:dc,useFormState:Cd,useActionState:Cd,useOptimistic:function(t,e){var n=ue();return It!==null?pd(n,It,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ic,useCacheRefresh:Hd,useEffectEvent:wd};function pc(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:$({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var gc={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=ln(),r=vl(i);r.payload=e,n!=null&&(r.callback=n),e=bl(t,r,i),e!==null&&(Xe(e,t,i),ka(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=ln(),r=vl(i);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=bl(t,r,i),e!==null&&(Xe(e,t,i),ka(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ln(),i=vl(n);i.tag=2,e!=null&&(i.callback=e),e=bl(t,i,n),e!==null&&(Xe(e,t,n),ka(e,t,n))}};function Qd(t,e,n,i,r,c,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,c,d):e.prototype&&e.prototype.isPureReactComponent?!xa(n,i)||!xa(r,c):!0}function Zd(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&gc.enqueueReplaceState(e,e.state,null)}function ei(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=$({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Id(t){Du(t)}function Kd(t){console.error(t)}function Fd(t){Du(t)}function ar(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Jd(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function yc(t,e,n){return n=vl(n),n.tag=3,n.payload={element:null},n.callback=function(){ar(t,e)},n}function $d(t){return t=vl(t),t.tag=3,t}function Pd(t,e,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var c=i.value;t.payload=function(){return r(c)},t.callback=function(){Jd(e,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Jd(e,n,i),typeof r!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var x=i.stack;this.componentDidCatch(i.value,{componentStack:x!==null?x:""})})}function H0(t,e,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Il(e,n,r,!0),n=xe.current,n!==null){switch(n.tag){case 31:case 13:case 19:return we===null?zr():n.alternate===null&&ae===0&&(ae=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Qu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),es(t,i,r)),!1;case 22:return n.flags|=65536,i===Qu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),es(t,i,r)),!1}throw Error(o(435,n.tag))}return es(t,i,r),zr(),!1}if(_t)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,i!==Uo&&(t=Error(o(422),{cause:i}),Ta(hn(t,n)))):(i!==Uo&&(e=Error(o(423),{cause:i}),Ta(hn(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,i=hn(i,n),r=yc(t.stateNode,i,r),Io(t,r),ae!==4&&(ae=2)),!1;var c=Error(o(520),{cause:i});if(c=hn(c,n),Va===null?Va=[c]:Va.push(c),ae!==4&&(ae=2),e===null)return!0;i=hn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=yc(n.stateNode,i,t),Io(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(wl===null||!wl.has(c))))return n.flags|=65536,r&=-r,n.lanes|=r,r=$d(r),Pd(r,t,n,i),Io(n,r),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var vc=Error(o(461)),ce=!1;function he(t,e,n,i){e.child=t===null?nd(e,null,n,i):Wl(e,t.child,n,i)}function Wd(t,e,n,i,r){n=n.render;var c=e.ref;if("ref"in i){var d={};for(var x in i)x!=="ref"&&(d[x]=i[x])}else d=i;return Kl(e),i=tc(t,e,n,d,c,r),x=ec(),t!==null&&!ce?(nc(t,e,r),ll(t,e,r)):(_t&&x&&Bu(e),e.flags|=1,he(t,e,i,r),e.child)}function tm(t,e,n,i,r){if(t===null){var c=n.type;return typeof c=="function"&&!Mo(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,em(t,e,c,i,r)):(t=Lu(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!zc(t,r)){var d=c.memoizedProps;if(n=n.compare,n=n!==null?n:xa,n(d,i)&&t.ref===e.ref)return ll(t,e,r)}return e.flags|=1,t=$n(c,i),t.ref=e.ref,t.return=e,e.child=t}function em(t,e,n,i,r){if(t!==null){var c=t.memoizedProps;if(xa(c,i)&&t.ref===e.ref)if(ce=!1,e.pendingProps=i=c,zc(t,r))(t.flags&131072)!==0&&(ce=!0);else return e.lanes=t.lanes,ll(t,e,r)}return bc(t,e,n,i,r)}function nm(t,e,n,i){var r=i.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(i=e.child=t.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~c}else i=0,e.child=null;return lm(t,e,c,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Gu(e,c!==null?c.cachePool:null),c!==null?ad(e,c):Fo(),ud(e);else return i=e.lanes=536870912,lm(t,e,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(Gu(e,c.cachePool),ad(e,c),El(),e.memoizedState=null):(t!==null&&Gu(e,null),Fo(),El());return he(t,e,r,n),e.child}function Ra(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function lm(t,e,n,i,r){var c=Go();return c=c===null?null:{parent:re._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Gu(e,null),Fo(),ud(e),t!==null&&Il(t,e,i,!0),e.childLanes=r,null}function ur(t,e){return e=rr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function im(t,e,n){return Wl(e,t.child,null,n),t=ur(e,e.pendingProps),t.flags|=2,We(e),e.memoizedState=null,t}function q0(t,e,n){var i=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_t){if(i.mode==="hidden")return t=ur(e,i),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Ra(null,t);if($o(e),(t=$t)?(t=_p(t,pn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:hl!==null?{id:On,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},n=Yh(t),n.return=e,e.child=n,me=e,$t=null)):t=null,t===null)throw ml(e);return e.lanes=536870912,null}return ur(e,i)}var c=t.memoizedState;if(c!==null){var d=c.dehydrated;if($o(e),r)if(e.flags&256)e.flags&=-257,e=im(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(ce||Il(t,e,n,!1),r=(n&t.childLanes)!==0,ce||r){if(xl.current===null){if(i=Kt,i!==null&&(d=Xf(i,n),d!==0&&d!==c.retryLane))throw c.retryLane=d,Gl(t,d),Xe(i,t,d),vc;zr()}e=im(t,e,n)}else t=c.treeContext,$t=yn(d.nextSibling),me=e,_t=!0,dl=null,pn=!1,t!==null&&Xh(e,t),e=ur(e,i),e.flags|=134221824;return e}return t=$n(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Li(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function bc(t,e,n,i,r){return Kl(e),n=tc(t,e,n,i,void 0,r),i=ec(),t!==null&&!ce?(nc(t,e,r),ll(t,e,r)):(_t&&i&&Bu(e),e.flags|=1,he(t,e,n,r),e.child)}function am(t,e,n,i,r,c){return Kl(e),e.updateQueue=null,n=od(e,i,n,r),rd(t),i=ec(),t!==null&&!ce?(nc(t,e,c),ll(t,e,c)):(_t&&i&&Bu(e),e.flags|=1,he(t,e,n,c),e.child)}function um(t,e,n,i,r){if(Kl(e),e.stateNode===null){var c=zi,d=n.contextType;typeof d=="object"&&d!==null&&(c=be(d)),c=new n(i,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=gc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=i,c.state=e.memoizedState,c.refs={},Qo(e),d=n.contextType,c.context=typeof d=="object"&&d!==null?be(d):zi,c.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(pc(e,n,d,i),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&gc.enqueueReplaceState(c,c.state,null),_a(e,i,c,r),Na(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,A=ei(n,x);c.props=A;var D=c.context,B=n.contextType;d=zi,typeof B=="object"&&B!==null&&(d=be(B));var Z=n.getDerivedStateFromProps;B=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||D!==d)&&Zd(e,c,i,d),yl=!1;var _=e.memoizedState;c.state=_,_a(e,i,c,r),Na(),D=e.memoizedState,x||_!==D||yl?(typeof Z=="function"&&(pc(e,n,Z,i),D=e.memoizedState),(A=yl||Qd(e,n,A,i,_,D,d))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=D),c.props=i,c.state=D,c.context=d,i=A):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{c=e.stateNode,Zo(t,e),d=e.memoizedProps,B=ei(n,d),c.props=B,Z=e.pendingProps,_=c.context,D=n.contextType,A=zi,typeof D=="object"&&D!==null&&(A=be(D)),x=n.getDerivedStateFromProps,(D=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Z||_!==A)&&Zd(e,c,i,A),yl=!1,_=e.memoizedState,c.state=_,_a(e,i,c,r),Na();var L=e.memoizedState;d!==Z||_!==L||yl||t!==null&&t.dependencies!==null&&Yu(t.dependencies)?(typeof x=="function"&&(pc(e,n,x,i),L=e.memoizedState),(B=yl||Qd(e,n,B,i,_,L,A)||t!==null&&t.dependencies!==null&&Yu(t.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,L,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,L,A)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=L),c.props=i,c.state=L,c.context=A,i=B):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),i=!1)}return c=i,Li(t,e),i=(e.flags&128)!==0,c||i?(c=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&i?(e.child=Wl(e,t.child,null,r),e.child=Wl(e,null,n,r)):he(t,e,n,r),e.memoizedState=c.state,t=e.child):t=ll(t,e,r),t}function rm(t,e,n,i){return Ql(),e.flags|=256,he(t,e,n,i),e.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(t){return{baseLanes:t,cachePool:Jh()}}function Ec(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=nn),t}function om(t,e,n){var i=e.pendingProps,r=!1,c=(e.flags&128)!==0,d;if((d=c)||(d=t!==null&&t.memoizedState===null?!1:(Se.current&2)!==0),d&&(r=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(_t){if(r?Sl(e):El(),(t=$t)?(t=_p(t,pn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:hl!==null?{id:On,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},n=Yh(t),n.return=e,e.child=n,me=e,$t=null)):t=null,t===null)throw ml(e);return Ss(t)?e.lanes=32:e.lanes=536870912,null}return c=i.children,i=i.fallback,r?(El(),r=e.mode,c=rr({mode:"hidden",children:c},r),i=Xl(i,r,n,null),c.return=e,i.return=e,c.sibling=i,e.child=c,i=e.child,i.memoizedState=Sc(n),i.childLanes=Ec(t,d,n),e.memoizedState=xc,Ra(null,i)):(Sl(e),Tc(e,c))}var x=t.memoizedState;if(x!==null){var A=x.dehydrated;if(A!==null)return Y0(t,e,c,d,i,A,x,n)}return r?(El(),r=i.fallback,c=e.mode,x=t.child,A=x.sibling,i=$n(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&1206910976,A!==null?r=$n(A,r):(r=Xl(r,c,n,null),r.flags|=2),r.return=e,i.return=e,i.sibling=r,e.child=i,Ra(null,i),i=e.child,r=t.child.memoizedState,r===null?r=Sc(n):(c=r.cachePool,c!==null?(x=re._currentValue,c=c.parent!==x?{parent:x,pool:x}:c):c=Jh(),r={baseLanes:r.baseLanes|n,cachePool:c}),i.memoizedState=r,i.childLanes=Ec(t,d,n),e.memoizedState=xc,Ra(t.child,i)):(Sl(e),n=t.child,t=n.sibling,n=$n(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function Tc(t,e){return e=rr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function rr(t,e){return t=qe(22,t,null,e),t.lanes=0,t}function or(t,e,n){return Wl(e,t.child,null,n),t=Tc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Y0(t,e,n,i,r,c,d,x){if(n)return e.flags&256?(Sl(e),e.flags&=-257,or(t,e,x)):e.memoizedState!==null?(El(),e.child=t.child,e.flags|=128,null):(El(),c=r.fallback,d=e.mode,r=rr({mode:"visible",children:r.children},d),c=Xl(c,d,x,null),c.flags|=2,r.return=e,c.return=e,r.sibling=c,e.child=r,Wl(e,t.child,null,x),r=e.child,r.memoizedState=Sc(x),r.childLanes=Ec(t,i,x),e.memoizedState=xc,Ra(null,r));if(Sl(e),Ss(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var A=i.dgst;return i=A,i!==""&&(r=Error(o(419)),r.stack="",r.digest=i,Ta({value:r,source:null,stack:null})),or(t,e,x)}if(ce||Il(t,e,x,!1),i=(x&t.childLanes)!==0,ce||i){if(xl.current!==null)return or(t,e,x);if(i=Kt,i!==null&&(r=Xf(i,x),r!==0&&r!==d.retryLane))throw d.retryLane=r,Gl(t,r),Xe(i,t,r),vc;return xs(c)||zr(),or(t,e,x)}return xs(c)?(e.flags|=192,e.child=t.child,null):(t=d.treeContext,$t=yn(c.nextSibling),me=e,_t=!0,dl=null,pn=!1,t!==null&&Xh(e,t),e=Tc(e,r.children),e.flags|=134221824,e)}function cm(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),qu(t.return,e,n)}function sm(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&Fu(n)===null&&(e=t),t=t.sibling}return e}function cr(t,e,n,i,r,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:c}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=r,d.treeForkCount=c)}function Cc(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function Ac(t,e,n){var i=e.pendingProps,r=i.revealOrder,c=i.tail;i=i.children;var d=Se.current;if(e.flags&128)return Oa(e,d),null;var x=(d&2)!==0;if(x?(d=d&1|2,e.flags|=128):d&=1,Oa(e,d),r==="backwards"&&t!==null?(Cc(t),he(t,e,i,n),Cc(t)):he(t,e,i,n),i=_t?Ea:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&cm(t,n,e);else if(t.tag===19)cm(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"backwards":n=sm(e.child),n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null,Cc(e)),cr(e,!0,r,null,c,i);break;case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Fu(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}cr(e,!0,n,null,c,i);break;case"together":cr(e,!1,null,null,void 0,i);break;case"independent":e.memoizedState=null;break;default:n=sm(e.child),n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),cr(e,!1,r,n,c,i)}return e.child}function fm(t,e,n){var i=e.pendingProps;return pl(e,e.type,i.value),he(t,e,i.children,n),e.child}function ll(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),zl|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Il(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=$n(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=$n(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Yu(t)))}function V0(t,e,n){switch(e.tag){case 3:ne(e,e.stateNode.containerInfo),pl(e,re,t.memoizedState.cache),Ql();break;case 27:case 5:Be(e);break;case 4:ne(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,$o(e),null;break;case 13:var i=e.memoizedState;if(i!==null){if(i.dehydrated!==null)return Sl(e),e.flags|=128,null;i=Il(t,e,n,!1);var r=e.child.childLanes;return i||(n&r)!==0?om(t,e,n):(Sl(e),t=ll(t,e,n),t!==null?t.sibling:null)}Sl(e);break;case 19:if(e.flags&128)return Ac(t,e,n);if(r=(t.flags&128)!==0,i=(n&e.childLanes)!==0,i||(Il(t,e,n,!1),i=(n&e.childLanes)!==0),r){if(i)return Ac(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Oa(e,Se.current),i)break;return null;case 22:return e.lanes=0,nm(t,e,n,e.pendingProps);case 24:pl(e,re,t.memoizedState.cache)}return ll(t,e,n)}function hm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ce=!0;else{if(!zc(t,n)&&(e.flags&128)===0)return ce=!1,V0(t,e,n);ce=(t.flags&131072)!==0}else ce=!1,_t&&(e.flags&1048576)!==0&&Gh(e,Ea,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=$l(e.elementType),e.type=t,typeof t=="function")Mo(t)?(i=ei(t,i),e.tag=1,e=um(null,e,t,i,n)):(e.tag=0,e=bc(null,e,t,i,n));else{if(t!=null){var r=t.$$typeof;if(r===P){e.tag=11,e=Wd(null,e,t,i,n);break t}else if(r===Nt){e.tag=14,e=tm(null,e,t,i,n);break t}else if(r===W){e.tag=10,e.type=t,e=fm(null,e,n);break t}}throw e=xt(t)||t,Error(o(306,e,""))}}return e;case 0:return bc(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,r=ei(i,e.pendingProps),um(t,e,i,r,n);case 3:t:{if(ne(e,e.stateNode.containerInfo),t===null)throw Error(o(387));i=e.pendingProps;var c=e.memoizedState;r=c.element,Zo(t,e),_a(e,i,null,n);var d=e.memoizedState;if(i=d.cache,pl(e,re,i),i!==c.cache&&qo(e,[re],n,!0),Na(),i=d.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=rm(t,e,i,n);break t}else if(i!==r){r=hn(Error(o(424)),e),Ta(r),e=rm(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for($t=yn(t.firstChild),me=e,_t=!0,dl=null,pn=!0,n=nd(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ql(),i===r){e=ll(t,e,n);break t}he(t,e,i,n)}e=e.child}return e;case 26:return Li(t,e),t===null?(n=Up(e.type,null,e.pendingProps,null))?e.memoizedState=n:_t||(e.stateNode=gp(e.type,e.pendingProps,on.current,e)):e.memoizedState=Up(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Be(e),t===null&&_t&&(i=e.stateNode=Mp(e.type,e.pendingProps,on.current),me=e,pn=!0,r=$t,_l(e.type)?(Es=r,$t=yn(i.firstChild)):$t=r),he(t,e,e.pendingProps.children,n),Li(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_t&&((r=i=$t)&&(i=Lv(i,e.type,e.pendingProps,pn),i!==null?(e.stateNode=i,me=e,$t=yn(i.firstChild),pn=!1,r=!0):r=!1),r||ml(e)),Be(e),r=e.type,c=e.pendingProps,d=t!==null?t.memoizedProps:null,i=c.children,ds(r,c)?i=null:d!==null&&ds(r,d)&&(e.flags|=32),e.memoizedState!==null&&(r=tc(t,e,O0,null,null,n),ta._currentValue=r),Li(t,e),he(t,e,i,n),e.child;case 6:return t===null&&_t&&((t=n=$t)&&(n=Uv(n,e.pendingProps,pn),n!==null?(e.stateNode=n,me=e,$t=null,t=!0):t=!1),t||ml(e)),null;case 13:return om(t,e,n);case 4:return ne(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Wl(e,null,i,n):he(t,e,i,n),e.child;case 11:return Wd(t,e,e.type,e.pendingProps,n);case 7:return i=e.pendingProps,Li(t,e),he(t,e,i,n),e.child;case 8:return he(t,e,e.pendingProps.children,n),e.child;case 12:return he(t,e,e.pendingProps.children,n),e.child;case 10:return fm(t,e,n);case 9:return r=e.type._context,i=e.pendingProps.children,Kl(e),r=be(r),i=i(r),e.flags|=1,he(t,e,i,n),e.child;case 14:return tm(t,e,e.type,e.pendingProps,n);case 15:return em(t,e,e.type,e.pendingProps,n);case 19:return Ac(t,e,n);case 31:return q0(t,e,n);case 22:return nm(t,e,n,e.pendingProps);case 24:return Kl(e),i=be(re),t===null?(r=Go(),r===null&&(r=Kt,c=Yo(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=n),r=c),e.memoizedState={parent:i,cache:r},Qo(e),pl(e,re,r)):((t.lanes&n)!==0&&(Zo(t,e),_a(e,null,null,n),Na()),r=t.memoizedState,c=e.memoizedState,r.parent!==i?(r={parent:i,cache:i},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),pl(e,re,i)):(i=c.cache,pl(e,re,i),i!==r.cache&&qo(e,[re],n,!0))),he(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=e.pendingProps,i.name!=null&&i.name!=="auto"?e.flags|=t===null?18882560:18874368:_t&&Bu(e),t!==null&&t.memoizedProps.name!==i.name?e.flags|=4194816:Li(t,e),he(t,e,i.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function il(t){t.flags|=4}function wc(t,e,n,i,r){var c;if((c=(t.mode&32)!==0)&&(c=n===null?Yp(e,i):Yp(e,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),c){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Im())t.flags|=8192;else throw Pl=Qu,Xo}else t.flags&=-16777217}function dm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Vp(e))if(Im())t.flags|=8192;else throw Pl=Qu,Xo}function sr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Yf():536870912,t.lanes|=e,Yi|=e)}function La(t,e){if(!_t)switch(t.tailMode){case"visible":break;case"collapsed":for(var n=t.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;break;default:for(e=t.tail,n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function Pt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&1206910976,i|=r.flags&1206910976,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function G0(t,e,n){var i=e.pendingProps;switch(Lo(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(e),null;case 1:return Pt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),tl(re),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ni(e)?il(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Bo())),Pt(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(il(e),c!==null?(Pt(e),dm(e,c)):(Pt(e),wc(e,r,null,i,n))):c?c!==t.memoizedState?(il(e),Pt(e),dm(e,c)):(Pt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&il(e),Pt(e),wc(e,r,t,i,n)),null;case 27:if(G(e),n=on.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&il(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return Pt(e),e.subtreeFlags&=-33554433,null}t=jt.current,Ni(e)?Qh(e):(t=Mp(r,i,n),e.stateNode=t,il(e))}return Pt(e),e.subtreeFlags&=-33554433,null;case 5:if(G(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&il(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return Pt(e),e.subtreeFlags&=-33554433,null}if(c=jt.current,Ni(e))Qh(e);else{var d=Ia(on.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?d.createElement(r,{is:i.is}):d.createElement(r)}}c[ve]=e,c[He]=i;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=c;t:switch(Te(c,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&il(e)}}return Pt(e),e.subtreeFlags&=-33554433,wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&il(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(o(166));if(t=on.current,Ni(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,r=me,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}t[ve]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||hp(t.nodeValue,n)),t||ml(e,!0)}else t=Ia(t).createTextNode(i),t[ve]=e,e.stateNode=t}return Pt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Ni(e),n!==null){if(t===null){if(!i)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ve]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Pt(e),t=!1}else n=Bo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(We(e),e):(We(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Pt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Ni(e),i!==null&&i.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[ve]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Pt(e),r=!1}else r=Bo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(We(e),e):(We(e),null)}return We(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==r&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),sr(e,e.updateQueue),Pt(e),null);case 4:return Ie(),t===null&&os(e.stateNode.containerInfo),e.flags|=67108864,Pt(e),null;case 10:return tl(e.type),Pt(e),null;case 19:if(Po(e),i=e.memoizedState,i===null)return Pt(e),null;if(r=(e.flags&128)!==0,c=i.rendering,c===null)if(r)La(i,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Fu(t),c!==null){for(e.flags|=128,La(i,!1),t=c.updateQueue,e.updateQueue=t,sr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)qh(n,t),n=n.sibling;return Oa(e,Se.current&1|2),_t&&Pn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ke()>Er&&(e.flags|=128,r=!0,La(i,!1),e.lanes=4194304)}else{if(!r)if(t=Fu(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,sr(e,t),La(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!c.alternate&&!_t)return Pt(e),null}else 2*Ke()-i.renderingStartTime>Er&&n!==536870912&&(e.flags|=128,r=!0,La(i,!1),e.lanes=4194304);i.isBackwards?(c.sibling=e.child,e.child=c):(t=i.last,t!==null?t.sibling=c:e.child=c,i.last=c)}if(i.tail!==null){t=i.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,c=Se.current,c=r?c&1|2:c&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||_t?Oa(e,c):(n=c,ft(xe,e),ft(Se,n),we===null&&(we=e)),_t&&Pn(e,i.treeForkCount),t}return Pt(e),null;case 22:case 23:return We(e),Jo(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Pt(e),e.subtreeFlags&6&&(e.flags|=8192)):Pt(e),n=e.updateQueue,n!==null&&sr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&Y(Jl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),tl(re),Pt(e),null;case 25:return null;case 30:return e.flags|=33554432,Pt(e),null}throw Error(o(156,e.tag))}function X0(t,e){switch(Lo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return tl(re),Ie(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return G(e),null;case 31:if(e.memoizedState!==null){if(We(e),e.alternate===null)throw Error(o(340));Ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(We(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Po(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Ie(),null;case 10:return tl(e.type),null;case 22:case 23:return We(e),Jo(),t!==null&&Y(Jl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return tl(re),null;case 25:return null;default:return null}}function mm(t,e){switch(Lo(e),e.tag){case 3:tl(re),Ie();break;case 26:case 27:case 5:G(e);break;case 4:Ie();break;case 31:e.memoizedState!==null&&We(e);break;case 13:We(e);break;case 19:Po(e);break;case 10:tl(e.type);break;case 22:case 23:We(e),Jo(),t!==null&&Y(Jl);break;case 24:tl(re)}}function Ua(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&t)===t){i=void 0;var c=n.create,d=n.inst;i=c(),d.destroy=i}n=n.next}while(n!==r)}}catch(x){Qt(e,e.return,x)}}function Tl(t,e,n){try{var i=e.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var c=r.next;i=c;do{if((i.tag&t)===t){var d=i.inst,x=d.destroy;if(x!==void 0){d.destroy=void 0,r=e;var A=n,D=x;try{D()}catch(B){Qt(r,A,B)}}}i=i.next}while(i!==c)}}catch(B){Qt(e,e.return,B)}}function pm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{id(e,n)}catch(i){Qt(t,t.return,i)}}}function gm(t,e,n){n.props=ei(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Qt(t,e,i)}}function Mn(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:var r=t.stateNode,c=Fn(t.memoizedProps,r);(r.ref===null||r.ref.name!==c)&&(r.ref=Tp(c)),i=r.ref;break;case 7:if(t.stateNode===null){var d=new an(t);p(t.child,!1,jv,d,void 0,void 0),t.stateNode=d}i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(x){Qt(t,e,x)}}function Ee(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Qt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Qt(t,e,r)}else n.current=null}function fr(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)Np(t.stateNode,e[n])}function ym(t){for(var e=t.return;e!==null&&(Nc(e)&&Np(t.stateNode,e.stateNode),!kc(e));)e=e.return}function Ba(t){for(var e=t.return;e!==null&&(Nc(e)&&Rv(t.stateNode,e.stateNode),!kc(e));)e=e.return}function kc(t){return t.tag===5||t.tag===3||t.tag===27}function Nc(t){return t&&t.tag===7&&t.stateNode!==null}function _c(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){Qt(t,t.return,r)}}function Oc(t,e,n){try{var i=t.stateNode;gv(i,t.type,n,e),i[He]=e}catch(r){Qt(t,t.return,r)}}function vm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_l(t.type)||t.tag===4}function Dc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||vm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&_l(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Mc(t,e,n,i){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(r,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(r),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=_n)),fr(t,i),Bt=!0;else if(r!==4&&(r===27&&(fr(t,i),i=null,_l(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(Mc(t,e,n,i),t=t.sibling;t!==null;)Mc(t,e,n,i),t=t.sibling}function hr(t,e,n,i){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?n.insertBefore(r,e):n.appendChild(r),fr(t,i),Bt=!0;else if(r!==4&&(r===27&&(fr(t,i),i=null,_l(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(hr(t,e,n,i),t=t.sibling;t!==null;)hr(t,e,n,i),t=t.sibling}function bm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);Te(e,i,n),e[ve]=t,e[He]=n}catch(c){Qt(t,t.return,c)}}var dr=!1,tn=null;function xm(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(dr=!0)}var jn=null;function Sm(){var t=jn;return jn=null,t}var Ye=0;function Ui(t,e,n,i,r){return Ye=0,Em(t.child,e,n,i,r)}function Em(t,e,n,i,r){for(var c=!1;t!==null;){if(t.tag===5){var d=t.stateNode;if(i!==null){var x=gs(d);i.push(x),x.view&&(c=!0)}else c||gs(d).view&&(c=!0);dr=!0,Sp(d,Ye===0?e:e+"_"+Ye,n),Ye++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&r||Em(t.child,e,n,i,r)&&(c=!0));t=t.sibling}return c}function Rn(t,e){for(;t!==null;)t.tag===5?Ep(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Rn(t.child,e)),t=t.sibling}function mr(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(mr(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(o(544));var n=e.name;e=Jn(e.default,e.share),e!=="none"&&(Ui(t,n,e,null,!1)||Rn(t.child,!1))}t=t.sibling}}function jc(t,e){if(t.tag===30){var n=t.stateNode,i=t.memoizedProps,r=Fn(i,n),c=Jn(i.default,n.paired?i.share:i.enter);c!=="none"?Ui(t,r,c,null,!1)?(mr(t),n.paired||e||Qi(t,i.onEnter)):Rn(t.child,!1):mr(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)jc(t,e),t=t.sibling;else mr(t)}function Rc(t){if(tn!==null&&tn.size!==0){var e=tn;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var r=e.get(i);if(r!==void 0){var c=Jn(n.default,n.share);if(c!=="none"&&(Ui(t,i,c,null,!1)?(c=t.stateNode,r.paired=c,c.paired=r,Qi(t,n.onShare)):Rn(t.child,!1)),e.delete(i),e.size===0)break}}}Rc(t)}t=t.sibling}}}function Lc(t){if(t.tag===30){var e=t.memoizedProps,n=Fn(e,t.stateNode),i=tn!==null?tn.get(n):void 0,r=Jn(e.default,i!==void 0?e.share:e.exit);r!=="none"&&(Ui(t,n,r,null,!1)?i!==void 0?(r=t.stateNode,i.paired=r,r.paired=i,tn.delete(n),Qi(t,e.onShare)):Qi(t,e.onExit):Rn(t.child,!1)),tn!==null&&Rc(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Lc(t),t=t.sibling;else tn!==null&&Rc(t)}function Tm(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=Fn(e,t.stateNode);e=Jn(e.default,e.update),t.flags&=-5,e!=="none"&&Ui(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&Tm(t);t=t.sibling}}function Uc(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Rn(t.child,!1))}Uc(t)}t=t.sibling}}function pr(t){if(t.tag===30)t.stateNode.paired=null,Rn(t.child,!1),Uc(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)pr(t),t=t.sibling;else Uc(t)}function Cm(t){for(t=t.child;t!==null;)t.tag===30?Rn(t.child,!1):(t.subtreeFlags&33554432)!==0&&Cm(t),t=t.sibling}function Bc(t,e,n,i,r,c,d){for(var x=!1;e!==null;){if(e.tag===5){var A=e.stateNode;if(c!==null&&Ye<c.length){var D=c[Ye],B=gs(A);(D.view||B.view)&&(x=!0);var Z;if(Z=(t.flags&4)===0)if(B.clip)Z=!0;else{Z=D.rect;var _=B.rect;Z=Z.y!==_.y||Z.x!==_.x||Z.height!==_.height||Z.width!==_.width}Z&&(t.flags|=4),B.abs?B=!D.abs:(D=D.rect,B=B.rect,B=D.height!==B.height||D.width!==B.width),B&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&Sp(A,Ye===0?n:n+"_"+Ye,r),x&&(t.flags&4)!==0||(jn===null&&(jn=[]),jn.push(A,Ye===0?i:i+"_"+Ye,e.memoizedProps)),Ye++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&d?t.flags|=e.flags&32:Bc(t,e.child,n,i,r,c,d)&&(x=!0));e=e.sibling}return x}function Am(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,i=t.stateNode,r=Fn(n,i),c=Jn(n.default,n.update),d;d=t.memoizedState,t.memoizedState=null,i=t;var x=t.child;Ye=0,r=Bc(i,x,r,r,c,d,!1),(t.flags&4)!==0&&r&&Qi(t,n.onUpdate)}else(t.subtreeFlags&33554432)!==0&&Am(t);t=t.sibling}}var pe=!1,Gt=!1,Ln=!1,Hc=!1,zm=typeof WeakSet=="function"?WeakSet:Set,ge=null,Un=!1,Ha=!1,gr=!1,qc=!1;function Q0(t,e,n){if(t=t.containerInfo,fs=ea,t=_h(t),zo(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var c=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break t}var x=0,A=-1,D=-1,B=0,Z=0,_=t,L=null;e:for(;;){for(var it;_!==i||c!==0&&_.nodeType!==3||(A=x+c),_!==d||r!==0&&_.nodeType!==3||(D=x+r),_.nodeType===3&&(x+=_.nodeValue.length),(it=_.firstChild)!==null;)L=_,_=it;for(;;){if(_===t)break e;if(L===i&&++B===c&&(A=x),L===d&&++Z===r&&(D=x),(it=_.nextSibling)!==null)break;_=L,L=_.parentNode}_=it}i=A===-1||D===-1?null:{start:A,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(hs={focusedElem:t,selectionRange:i},ea=!1,n=(n&335544064)===n,ge=e,e=n?9270:1024;ge!==null;){if(t=ge,n&&(i=t.deletions,i!==null))for(c=0;c<i.length;c++)n&&Lc(i[c]);if(t.alternate===null&&(t.flags&2)!==0)n&&xm(t),yr(n);else{if(t.tag===22){if(i=t.alternate,t.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&Lc(i),yr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&xm(t),yr(n);continue}}i=t.child,(t.subtreeFlags&e)!==0&&i!==null?(i.return=t,ge=i):(n&&Tm(t),yr(n))}}tn=null}function yr(t){for(;ge!==null;){var e=ge,n=t,i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&i!==null){n=void 0,r=i.memoizedProps,i=i.memoizedState;var c=e.stateNode;try{var d=ei(e.type,r);n=c.getSnapshotBeforeUpdate(d,i),c.__reactInternalSnapshotBeforeUpdate=n}catch(x){Qt(e,e.return,x)}}break;case 3:if((r&1024)!==0){if(i=e.stateNode.containerInfo,n=i.nodeType,n===9)bs(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":bs(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=Fn(i.memoizedProps,i.stateNode),r=e.memoizedProps,r=Jn(r.default,r.update),r!=="none"&&Ui(i,n,r,i.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(o(163))}if(i=e.sibling,i!==null){i.return=e.return,ge=i;break}ge=e.return}}function wm(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(t,n),i&4&&Ua(5,n);break;case 1:if(Bn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){Qt(n,n.return,d)}else{var r=ei(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Qt(n,n.return,d)}}i&64&&pm(n),i&512&&Mn(n,n.return);break;case 3:if(Bn(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{id(t,e)}catch(d){Qt(n,n.return,d)}}break;case 27:e===null&&i&4&&bm(n);case 26:case 5:Bn(t,n),e===null&&i&4&&_c(n),i&512&&Mn(n,n.return);break;case 12:Bn(t,n);break;case 31:Bn(t,n),i&4&&Om(t,n);break;case 13:Bn(t,n),i&4&&Dm(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=lv.bind(null,n),Bv(t,n))));break;case 22:if(i=n.memoizedState!==null||pe,!i){var c=e!==null&&e.memoizedState!==null||Gt;e=pe,r=Gt,pe=i,(Gt=c)&&!r?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),An(t,n,i)):Bn(t,n),pe=e,Gt=r}break;case 30:Bn(t,n),i&512&&Mn(n,n.return);break;case 7:i&512&&Mn(n,n.return);default:Bn(t,n)}}function Yc(t,e){for(t=t.child;t!==null;)km(t,e),t=t.sibling}function km(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var r=t.stateNode,c=t.memoizedProps.style,d=c!=null&&c.hasOwnProperty("display")?c.display:null;r.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(A){Qt(t,t.return,A)}Vc(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,Bt=!0}catch(A){Qt(t,t.return,A)}break;case 18:try{var x=t.stateNode;e?xp(x,!0):xp(t.stateNode,!1)}catch(A){Qt(t,t.return,A)}break;case 22:case 23:t.memoizedState===null&&Yc(t,e);break;default:Yc(t,e)}}function Vc(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,i=e;switch(n.tag){case 4:km(n,i);break t;case 22:n.memoizedState===null&&Vc(n,i);break t;default:Vc(n,i)}}t=t.sibling}}function Nm(t){var e=t.alternate;e!==null&&(t.alternate=null,Nm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Eu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Wt=null,Ve=!1;function Tn(t,e,n){for(n=n.child;n!==null;)_m(t,e,n),n=n.sibling}function _m(t,e,n){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(oa,n)}catch{}switch(n.tag){case 26:Gt||Ee(n,e),Tn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Gt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Gt||Ee(n,e),Ba(n);var i=Wt,r=Ve;_l(n.type)&&(Wt=n.stateNode,Ve=!1),Tn(t,e,n),jp(n.stateNode,n.type,n.memoizedProps),Wt=i,Ve=r;break;case 5:Gt||Ee(n,e),Ba(n);case 6:if(n.tag===6&&Ba(n),i=Wt,r=Ve,Wt=null,Tn(t,e,n),Wt=i,Ve=r,Wt!==null)if(Ve)try{(Wt.nodeType===9?Wt.body:Wt.nodeName==="HTML"?Wt.ownerDocument.body:Wt).removeChild(n.stateNode),Bt=!0}catch(c){Qt(n,e,c)}else try{Wt.removeChild(n.stateNode),Bt=!0}catch(c){Qt(n,e,c)}break;case 18:Wt!==null&&(Ve?(t=Wt,bp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),na(t)):bp(Wt,n.stateNode));break;case 4:i=Wt,r=Ve,Wt=n.stateNode.containerInfo,Ve=!0,Tn(t,e,n),Wt=i,Ve=r;break;case 0:case 11:case 14:case 15:Tl(2,n,e),Gt||Tl(4,n,e),Tn(t,e,n);break;case 1:Gt||(Ee(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&gm(n,e,i)),Tn(t,e,n);break;case 21:Tn(t,e,n);break;case 22:Gt=(i=Gt)||n.memoizedState!==null,Tn(t,e,n),Gt=i;break;case 30:Ee(n,e),Tn(t,e,n);break;case 7:Gt||Ee(n,e),Tn(t,e,n);break;default:Tn(t,e,n)}}function Om(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{na(t)}catch(n){Qt(e,e.return,n)}}}function Dm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{na(t)}catch(n){Qt(e,e.return,n)}}function Z0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zm),e;default:throw Error(o(435,t.tag))}}function vr(t,e){var n=Z0(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var r=iv.bind(null,t,i);i.then(r,r)}})}function Re(t,e,n){var i=e.deletions;if(i!==null)for(var r=0;r<i.length;r++){var c=i[r],d=t,x=e,A=x;t:for(;A!==null;){switch(A.tag){case 27:if(_l(A.type)){Wt=A.stateNode,Ve=!1;break t}break;case 5:Wt=A.stateNode,Ve=!1;break t;case 3:case 4:Wt=A.stateNode.containerInfo,Ve=!0;break t}A=A.return}if(Wt===null)throw Error(o(160));_m(d,x,c),Wt=null,Ve=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Mm(e,t,n),e=e.sibling}var Cn=null;function Mm(t,e,n){var i=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(r&4&&(i=t.updateQueue,i=i!==null?i.events:null,i!==null))for(var c=0;c<i.length;c++){var d=i[c];d.ref.impl=d.nextImpl}Re(e,t,n),Le(t),r&4&&(Tl(3,t,t.return),Ua(3,t),Tl(5,t,t.return));break;case 1:Re(e,t,n),Le(t),r&512&&(Gt||i===null||Ee(i,i.return)),r&64&&pe&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(c=Cn,Re(e,t,n),Le(t),r&512&&(Gt||i===null||Ee(i,i.return)),r&4)if(r=i!==null?i.memoizedState:null,n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null)if(pe)t.stateNode=gp(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,r=c.ownerDocument||c;e:switch(e){case"title":i=r.getElementsByTagName("title")[0],(!i||i[fa]||i[ve]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=r.createElement(e),r.head.insertBefore(i,r.querySelector("head > title"))),Te(i,e,n),i[ve]=t,de(i),e=i;break t;case"link":if(c=qp("link","href",r).get(e+(n.href||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){c.splice(d,1);break e}}i=r.createElement(e),Te(i,e,n),r.head.appendChild(i);break;case"meta":if(c=qp("meta","content",r).get(e+(n.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){c.splice(d,1);break e}}i=r.createElement(e),Te(i,e,n),r.head.appendChild(i);break;default:throw Error(o(468,e))}i[ve]=t,de(i),e=i}t.stateNode=e}else pe||zs(c,t.type,t.stateNode);else t.stateNode=Hp(c,n,t.memoizedProps);else r!==n?(r===null?(e=i.stateNode,e===null||Gt||e.parentNode.removeChild(e)):r.count--,n===null?pe||zs(c,t.type,t.stateNode):Hp(c,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Oc(t,t.memoizedProps,i.memoizedProps);break;case 27:Re(e,t,n),Le(t),r&512&&(Gt||i===null||Ee(i,i.return)),i!==null&&r&4&&Oc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(c=Ln,Ln=!1,Re(e,t,n),Ln=c,Le(t),r&512&&(Gt||i===null||Ee(i,i.return)),t.flags&32){e=t.stateNode;try{bi(e,""),Bt=!0}catch(B){Qt(t,t.return,B)}}r&4&&t.stateNode!=null&&(e=t.memoizedProps,Oc(t,e,i!==null?i.memoizedProps:e)),r&1024&&(Hc=!0);break;case 6:if(Re(e,t,n),Le(t),r&4){if(t.stateNode===null)throw Error(o(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,Bt=!0}catch(B){Qt(t,t.return,B)}}break;case 3:if(Bt=!1,Mr=null,c=Cn,Cn=Ka(e.containerInfo),Re(e,t,n),Cn=c,Le(t),r&4&&i!==null&&i.memoizedState.isDehydrated)try{na(e.containerInfo)}catch(B){Qt(t,t.return,B)}Hc&&(Hc=!1,jm(t)),Bt=!1;break;case 4:r=Ln,Ln=pe,i=th(),c=Cn,Cn=Ka(t.stateNode.containerInfo),Re(e,t,n),Le(t),Cn=c,Bt&&Ha&&(gr=!0),Bt=i,Ln=r;break;case 12:Re(e,t,n),Le(t);break;case 31:Re(e,t,n),Le(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,vr(t,e)));break;case 13:Re(e,t,n),Le(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Sr=Ke()),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,vr(t,e)));break;case 22:c=t.memoizedState!==null,d=i!==null&&i.memoizedState!==null;var x=pe,A=Gt,D=Ln;pe=x||c,Ln=D||c,Gt=A||d,Re(e,t,n),Gt=A,Ln=D,pe=x,Le(t),r&8192&&(e=t.stateNode,e._visibility=c?e._visibility&-2:e._visibility|1,!c||i===null||d||pe||Gt||(e=d||Gt,n=pe,i=Gt,pe=c||pe,Gt=e,Cl(t,2),pe=n,Gt=i),!c&&Ln||Yc(t,c)),r&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,vr(t,n))));break;case 19:Re(e,t,n),Le(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,vr(t,e)));break;case 30:r&512&&(Gt||i===null||Ee(i,i.return)),r=th(),c=Ha,d=(n&335544064)===n,x=t.memoizedProps,Ha=d&&Jn(x.default,x.update)!=="none",Re(e,t,n),Le(t),d&&i!==null&&Bt&&(t.flags|=4),Ha=c,Bt=r;break;case 21:break;case 7:r&512&&(Gt||i===null||Ee(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=t);default:Re(e,t,n),Le(t)}}function Le(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(vm(i)){n=i;break}i=i.return}i=null;for(var r=t.return;r!==null;){if(Nc(r)){var c=r.stateNode;i===null?i=[c]:i.push(c)}if(kc(r))break;r=r.return}var d=i;if(n==null)throw Error(o(160));switch(n.tag){case 27:var x=n.stateNode,A=Dc(t);hr(t,A,x,d);break;case 5:var D=n.stateNode;n.flags&32&&(bi(D,""),n.flags&=-33);var B=Dc(t);hr(t,B,D,d);break;case 3:case 4:var Z=n.stateNode.containerInfo,_=Dc(t);Mc(t,_,Z,d);break;default:throw Error(o(161))}}catch(L){Qt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function jm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;jm(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,ea=!0,e.reset(),ea=!1),t=t.sibling}}function Bi(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)Rm(e,t),e=e.sibling;else Am(e)}function Rm(t,e){var n=t.alternate;if(n===null)jc(t,!1);else switch(t.tag){case 3:if(qc=Un=!1,Sm(),Bi(e,t),!Un&&!gr){if(t=jn,t!==null)for(var i=0;i<t.length;i+=3){n=t[i];var r=t[i+1];Ep(n,t[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),qc=!0}jn=null;break;case 5:Bi(e,t);break;case 4:i=Un,Un=!1,Bi(e,t),Un&&(gr=!0),Un=i;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?jc(t,!1):Bi(e,t));break;case 30:i=Un,r=Sm(),Un=!1,Bi(e,t),Un&&(t.flags|=4);var c=t.memoizedProps,d=t.stateNode;e=Fn(c,d),d=Fn(n.memoizedProps,d);var x=Jn(c.default,c.update);x==="none"?e=!1:(c=n.memoizedState,n.memoizedState=null,n=t.child,Ye=0,e=Bc(t,n,e,d,x,c,!0),Ye!==(c===null?0:c.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(Qi(t,t.memoizedProps.onUpdate),jn=r):r!==null&&(r.push.apply(r,jn),jn=r),Un=(t.flags&32)!==0?!0:i;break;default:Bi(e,t)}}function Bn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)wm(t,e.alternate,e),e=e.sibling}function Cl(t,e){for(t=t.child;t!==null;){var n=t,i=e;switch(n.tag){case 0:case 11:case 14:case 15:Tl(4,n,n.return),Cl(n,i);break;case 1:Ee(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&gm(n,n.return,r),Cl(n,i);break;case 27:(i&2)!==0&&jp(n.stateNode,n.type,n.memoizedProps);case 5:Ee(n,n.return),n.tag!==5&&n.tag!==27||Ba(n),Cl(n,i);break;case 6:Ba(n);break;case 26:Ee(n,n.return),r=n.stateNode,n.memoizedState!==null||r===null||Gt||r.parentNode.removeChild(r),Cl(n,i);break;case 22:n.memoizedState===null&&Cl(n,i);break;case 30:Ee(n,n.return),Cl(n,i);break;case 7:Ee(n,n.return);default:Cl(n,i)}t=t.sibling}}function An(t,e,n){for(n=(e.subtreeFlags&8772)!==0?n:n&-2,e=e.child;e!==null;){var i=e.alternate,r=t,c=e,d=c.flags,x=(n&1)!==0;switch(c.tag){case 0:case 11:case 15:An(r,c,n),Ua(4,c);break;case 1:if(An(r,c,n),i=c,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(B){Qt(i,i.return,B)}if(i=c,r=i.updateQueue,r!==null){var A=i.stateNode;try{var D=r.shared.hiddenCallbacks;if(D!==null)for(r.shared.hiddenCallbacks=null,r=0;r<D.length;r++)ld(D[r],A)}catch(B){Qt(i,i.return,B)}}x&&d&64&&pm(c),Mn(c,c.return);break;case 27:(n&2)!==0&&bm(c);case 5:c.tag!==5&&c.tag!==27||ym(c),An(r,c,n),x&&i===null&&d&4&&_c(c),Mn(c,c.return);break;case 6:ym(c);break;case 26:A=c.stateNode,c.memoizedState!==null||A===null||pe||zs(Ka(A.ownerDocument),c.type,A),An(r,c,n),x&&i===null&&d&4&&_c(c),Mn(c,c.return);break;case 12:An(r,c,n);break;case 31:An(r,c,n),x&&d&4&&Om(r,c);break;case 13:An(r,c,n),x&&d&4&&Dm(r,c);break;case 22:c.memoizedState===null&&An(r,c,n),Mn(c,c.return);break;case 30:An(r,c,n),Mn(c,c.return);break;case 7:Mn(c,c.return);default:An(r,c,n)}e=e.sibling}}function Gc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Ca(n))}function Xc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ca(t))}function gn(t,e,n,i){var r=(n&335544064)===n;if(e.subtreeFlags&(r?10262:10256))for(e=e.child;e!==null;)Lm(t,e,n,i),e=e.sibling;else r&&Cm(e)}function Lm(t,e,n,i){var r=(n&335544064)===n;r&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&pr(e);var c=e.flags;switch(e.tag){case 0:case 11:case 15:gn(t,e,n,i),c&2048&&Ua(9,e);break;case 1:gn(t,e,n,i);break;case 3:gn(t,e,n,i),r&&qc&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),c&2048&&(c=null,e.alternate!==null&&(c=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==c&&(e.refCount++,c!=null&&Ca(c)));break;case 12:if(c&2048){gn(t,e,n,i),c=e.stateNode;try{var d=e.memoizedProps,x=d.id,A=d.onPostCommit;typeof A=="function"&&A(x,e.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(D){Qt(e,e.return,D)}}else gn(t,e,n,i);break;case 31:gn(t,e,n,i);break;case 13:gn(t,e,n,i);break;case 23:break;case 22:d=e.stateNode,x=e.alternate,e.memoizedState!==null?(r&&x!==null&&x.memoizedState===null&&pr(x),d._visibility&2?gn(t,e,n,i):qa(t,e)):(r&&x!==null&&x.memoizedState!==null&&pr(e),d._visibility&2?gn(t,e,n,i):(d._visibility|=2,Hi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1))),c&2048&&Gc(x,e);break;case 24:gn(t,e,n,i),c&2048&&Xc(e.alternate,e);break;case 30:r&&(c=e.alternate,c!==null&&(Rn(c.child,!0),Rn(e.child,!0))),gn(t,e,n,i);break;default:gn(t,e,n,i)}}function Hi(t,e,n,i,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,d=e,x=n,A=i,D=d.flags;switch(d.tag){case 0:case 11:case 15:Hi(c,d,x,A,r),Ua(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?Hi(c,d,x,A,r):qa(c,d):(B._visibility|=2,Hi(c,d,x,A,r)),r&&D&2048&&Gc(d.alternate,d);break;case 24:Hi(c,d,x,A,r),r&&D&2048&&Xc(d.alternate,d);break;default:Hi(c,d,x,A,r)}e=e.sibling}}function qa(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,r=i.flags;switch(i.tag){case 22:qa(n,i),r&2048&&Gc(i.alternate,i);break;case 24:qa(n,i),r&2048&&Xc(i.alternate,i);break;default:qa(n,i)}e=e.sibling}}var ni=8192;function li(t,e,n){if(t.subtreeFlags&ni)for(t=t.child;t!==null;)Um(t,e,n),t=t.sibling}function Um(t,e,n){switch(t.tag){case 26:li(t,e,n),t.flags&ni&&(t.memoizedState!==null?Pv(n,Cn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&Xp(n,t)));break;case 5:li(t,e,n),t.flags&ni&&(t=t.stateNode,(e&335544128)===e&&Xp(n,t));break;case 3:case 4:var i=Cn;Cn=Ka(t.stateNode.containerInfo),li(t,e,n),Cn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=ni,ni=16777216,li(t,e,n),ni=i):li(t,e,n));break;case 30:if((t.flags&ni)!==0&&(i=t.memoizedProps.name,i!=null&&i!=="auto")){var r=t.stateNode;r.paired=null,tn===null&&(tn=new Map),tn.set(i,r)}li(t,e,n);break;default:li(t,e,n)}}function Bm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ya(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ge=i,qm(i,t)}Bm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hm(t),t=t.sibling}function Hm(t){switch(t.tag){case 0:case 11:case 15:Ya(t),t.flags&2048&&Tl(9,t,t.return);break;case 3:Ya(t);break;case 12:Ya(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,br(t)):Ya(t);break;default:Ya(t)}}function br(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ge=i,qm(i,t)}Bm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Tl(8,e,e.return),br(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,br(e));break;default:br(e)}t=t.sibling}}function qm(t,e){for(;ge!==null;){var n=ge;switch(n.tag){case 0:case 11:case 15:Tl(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ca(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ge=i;else t:for(n=t;ge!==null;){i=ge;var r=i.sibling,c=i.return;if(Nm(i),i===n){ge=null;break t}if(r!==null){r.return=c,ge=r;break t}ge=c}}}var I0={getCacheForType:function(t){var e=be(re),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return be(re).controller.signal}},K0=typeof WeakMap=="function"?WeakMap:Map,Vt=0,Kt=null,Dt=null,Rt=0,Xt=0,en=null,Al=!1,qi=!1,Qc=!1,al=0,ae=0,zl=0,ii=0,xr=0,nn=0,Yi=0,Va=null,Ge=null,Zc=!1,Sr=0,Ym=0,Er=1/0,Tr=null,wl=null,le=0,zn=null,ai=null,Hn=0,Ic=0,Kc=null,Vm=null,Vi=null,Gi=null,Xi=null,Ga=0,Cr=null;function ln(){return(Vt&2)!==0&&Rt!==0?Rt&-Rt:rt.T!==null?is():Qf()}function Gm(){if(nn===0)if((Rt&536870912)===0||_t){var t=vu;vu<<=1,(vu&3932160)===0&&(vu=262144),nn=t}else nn=536870912;return t=xe.current,t!==null&&(t.flags|=32),nn}function Qi(t,e){if(e!=null){var n=t.stateNode,i=n.ref;i===null&&(i=n.ref=Tp(Fn(t.memoizedProps,n))),Gi===null&&(Gi=[]),Gi.push(e.bind(null,i))}}function Xe(t,e,n){(t===Kt&&(Xt===2||Xt===9)||t.cancelPendingCommit!==null)&&(Zi(t,0),kl(t,Rt,nn,!1)),sa(t,n),((Vt&2)===0||t!==Kt)&&(t===Kt&&((Vt&2)===0&&(ii|=n),ae===4&&kl(t,Rt,nn,!1)),qn(t))}function Xm(t,e,n){if((Vt&6)!==0)throw Error(o(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ca(t,e),r=i?$0(t,e):Jc(t,e,!0),c=i;do{if(r===0){qi&&!i&&kl(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!F0(n)){r=Jc(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var x=t;r=Va;var A=x.current.memoizedState.isDehydrated;if(A&&(Zi(x,d).flags|=256),d=Jc(x,d,!1),d!==2&&d!==6){if(Qc&&!A){x.errorRecoveryDisabledLanes|=c,ii|=c,r=4;break t}c=Ge,Ge=r,c!==null&&(Ge===null?Ge=c:Ge.push.apply(Ge,c))}r=d}if(c=!1,r!==2)continue}}if(r===1){Zi(t,0),kl(t,e,0,!0);break}t:{switch(i=t,c=r,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:kl(i,e,nn,!Al);break t;case 2:Ge=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=Sr+300-Ke(),10<r)){if(kl(i,e,nn,!Al),xu(i,0,!0)!==0)break t;Hn=e,i.timeoutHandle=ps(Qm.bind(null,i,n,Ge,Tr,Zc,e,nn,ii,Yi,Al,c,"Throttled",-0,0),r);break t}Qm(i,n,Ge,Tr,Zc,e,nn,ii,Yi,Al,c,null,-0,0)}}break}while(!0);qn(t)}function Qm(t,e,n,i,r,c,d,x,A,D,B,Z,_,L){t.timeoutHandle=-1;var it=e.subtreeFlags,dt=(c&335544064)===c;if(Z=null,(dt||it&8192||(it&16785408)===16785408)&&(Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},tn=null,Um(e,c,Z),dt&&(it=Z,dt=t.containerInfo,dt=(dt.nodeType===9?dt:dt.ownerDocument).__reactViewTransition,dt!=null&&(it.count++,it.waitingForViewTransition=!0,it=$a.bind(it),dt.finished.then(it,it))),it=(c&62914560)===c?Sr-Ke():(c&4194048)===c?Ym-Ke():0,it=Wv(Z,it),it!==null)){Hn=c,t.cancelPendingCommit=it(Wm.bind(null,t,e,c,n,i,r,d,x,A,D,B,Z,null,_,L)),kl(t,c,d,!D);return}Wm(t,e,c,n,i,r,d,x,A,D,B,Z)}function F0(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],c=r.getSnapshot;r=r.value;try{if(!Pe(c(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function kl(t,e,n,i){e=qf(t,e),e&=~xr,e&=~ii,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var r=e;0<r;){var c=31-Je(r),d=1<<c;i[c]=-1,r&=~d}n!==0&&Vf(t,n,e)}function Ar(){return(Vt&6)===0?(Xa(0),!1):!0}function Fc(){if(Dt!==null){if(Xt===0)var t=Dt.return;else t=Dt,Wn=Zl=null,lc(t),Di=null,wa=0,t=Dt;for(;t!==null;)mm(t.alternate,t),t=t.return;Dt=null}}function Zi(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,bv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Hn=0,Fc(),Kt=t,Dt=n=$n(t.current,null),Rt=e,Xt=0,en=null,Al=!1,qi=ca(t,e),Qc=!1,Yi=nn=xr=ii=zl=ae=0,Ge=Va=null,Zc=!1,al=qf(t,e),Mu(),n}function Zm(t,e){wt=null,rt.H=ir,e===Oi||e===Xu?(e=Wh(),Xt=3):e===Xo?(e=Wh(),Xt=4):Xt=e===vc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,en=e,Dt===null&&(ae=1,ar(t,hn(e,t.current)))}function Im(){var t=xe.current;return t===null?!0:(Rt&4194048)===Rt?we===null:(Rt&62914560)===Rt||(Rt&536870912)!==0?t===we:!1}function Km(){var t=rt.H;return rt.H=ir,t===null?ir:t}function Fm(){var t=rt.A;return rt.A=I0,t}function zr(){ae=4,Al||(Rt&4194048)!==Rt&&xe.current!==null||(qi=!0),(zl&134217727)===0&&(ii&134217727)===0||Kt===null||kl(Kt,Rt,nn,!1)}function Jc(t,e,n){var i=Vt;Vt|=2;var r=Km(),c=Fm();(Kt!==t||Rt!==e)&&(Tr=null,Zi(t,e)),e=!1;var d=ae;t:do try{if(Xt!==0&&Dt!==null){var x=Dt,A=en;switch(Xt){case 8:Fc(),d=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var D=Xt;if(Xt=0,en=null,Ii(t,x,A,D),n&&qi){d=0;break t}break;default:D=Xt,Xt=0,en=null,Ii(t,x,A,D)}}J0(),d=ae;break}catch(B){Zm(t,B)}while(!0);return e&&t.shellSuspendCounter++,Wn=Zl=null,Vt=i,rt.H=r,rt.A=c,Dt===null&&(Kt=null,Rt=0,Mu()),d}function J0(){for(;Dt!==null;)Jm(Dt)}function $0(t,e){var n=Vt;Vt|=2;var i=Km(),r=Fm();Kt!==t||Rt!==e?(Tr=null,Er=Ke()+500,Zi(t,e)):qi=ca(t,e);t:do try{if(Xt!==0&&Dt!==null){e=Dt;var c=en;e:switch(Xt){case 1:Xt=0,en=null,Ii(t,e,c,1);break;case 2:case 9:if($h(c)){Xt=0,en=null,$m(e);break}e=function(){Xt!==2&&Xt!==9||Kt!==t||(Xt=7),qn(t)},c.then(e,e);break t;case 3:Xt=7;break t;case 4:Xt=5;break t;case 7:$h(c)?(Xt=0,en=null,$m(e)):(Xt=0,en=null,Ii(t,e,c,7));break;case 5:var d=null;switch(Dt.tag){case 26:d=Dt.memoizedState;case 5:case 27:var x=Dt;if(d?Vp(d):x.stateNode.complete){Xt=0,en=null;var A=x.sibling;if(A!==null)Dt=A;else{var D=x.return;D!==null?(Dt=D,wr(D)):Dt=null}break e}}Xt=0,en=null,Ii(t,e,c,5);break;case 6:Xt=0,en=null,Ii(t,e,c,6);break;case 8:Fc(),ae=6;break t;default:throw Error(o(462))}}P0();break}catch(B){Zm(t,B)}while(!0);return Wn=Zl=null,rt.H=i,rt.A=r,Vt=n,Dt!==null?0:(Kt=null,Rt=0,Mu(),ae)}function P0(){for(;Dt!==null&&!ol();)Jm(Dt)}function Jm(t){var e=hm(t.alternate,t,al);t.memoizedProps=t.pendingProps,e===null?wr(t):Dt=e}function $m(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=am(n,e,e.pendingProps,e.type,void 0,Rt);break;case 11:e=am(n,e,e.pendingProps,e.type.render,e.ref,Rt);break;case 5:lc(e);var i=e;i===me&&(_t?(Hu(i),i.tag===5&&i.stateNode!=null&&($t=i.stateNode)):(Hu(i),_t=!0));default:mm(n,e),e=Dt=qh(e,al),e=hm(n,e,al)}t.memoizedProps=t.pendingProps,e===null?wr(t):Dt=e}function Ii(t,e,n,i){Wn=Zl=null,lc(e),Di=null,wa=0;var r=e.return;try{if(H0(t,r,e,n,Rt)){ae=1,ar(t,hn(n,t.current)),Dt=null;return}}catch(c){if(r!==null)throw Dt=r,c;ae=1,ar(t,hn(n,t.current)),Dt=null;return}e.flags&32768?(_t||i===1?t=!0:qi||(Rt&536870912)!==0?t=!1:(Al=t=!0,(i===2||i===9||i===3||i===6)&&(i=xe.current,i!==null&&i.tag===13&&(i.flags|=16384))),Pm(e,t)):wr(e)}function wr(t){var e=t;do{if((e.flags&32768)!==0){Pm(e,Al);return}t=e.return;var n=G0(e.alternate,e,al);if(n!==null){Dt=n;return}if(e=e.sibling,e!==null){Dt=e;return}Dt=e=t}while(e!==null);ae===0&&(ae=5)}function Pm(t,e){do{var n=X0(t.alternate,t);if(n!==null){n.flags&=32767,Dt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Dt=t;return}Dt=t=n}while(t!==null);ae=6,Dt=null}function Wm(t,e,n,i,r,c,d,x,A,D,B,Z){t.cancelPendingCommit=null;do kr();while(le!==0);if((Vt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));t===Kt&&(Dt=Kt=null,Rt=0),ai=e,zn=t,Hn=n,Kc=r,Vm=i,W0(t,e,n,d,x,A,Z)}}function W0(t,e,n,i,r,c,d){var x=e.lanes|e.childLanes;if(Ic=x,x|=Oo,A1(t,n,x,i,r,c),Gi=null,(n&335544064)===n?(Xi=w0(t),i=10262):(Xi=null,i=10256),(e.subtreeFlags&i)!==0||(e.flags&i)!==0?(t.callbackNode=null,t.callbackPriority=0,av(gu,function(){return ts(),null})):(t.callbackNode=null,t.callbackPriority=0),dr=!1,i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=rt.T,rt.T=null,r=vt.p,vt.p=2,c=Vt,Vt|=4;try{Q0(t,e,n)}finally{Vt=c,vt.p=r,rt.T=i}}le=1,dr?Vi=Av(d,t.containerInfo,Xi,$c,Pc,ev,Wc,ts,tv):($c(),Pc(),Wc())}function tv(t){if(le!==0){var e=zn.onRecoverableError;e(t,{componentStack:null})}}function ev(){le===3&&(le=0,Rm(ai,zn),le=4)}function $c(){if(le===1){le=0;var t=zn,e=ai,n=Hn,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=rt.T,rt.T=null;var r=vt.p;vt.p=2;var c=Vt;Vt|=4;try{Ha=gr=!1,Mm(e,t,n),n=hs;var d=_h(t.containerInfo),x=n.focusedElem,A=n.selectionRange;if(d!==x&&x&&x.ownerDocument&&Nh(x.ownerDocument.documentElement,x)){if(A!==null&&zo(x)){var D=A.start,B=A.end;if(B===void 0&&(B=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(B,x.value.length);else{var Z=x.ownerDocument||document,_=Z&&Z.defaultView||window;if(_.getSelection){var L=_.getSelection(),it=x.textContent.length,dt=Math.min(A.start,it),kt=A.end===void 0?dt:Math.min(A.end,it);!L.extend&&dt>kt&&(d=kt,kt=dt,dt=d);var O=kh(x,dt),k=kh(x,kt);if(O&&k&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==k.node||L.focusOffset!==k.offset)){var M=Z.createRange();M.setStart(O.node,O.offset),L.removeAllRanges(),dt>kt?(L.addRange(M),L.extend(k.node,k.offset)):(M.setEnd(k.node,k.offset),L.addRange(M))}}}}for(Z=[],L=x;L=L.parentNode;)L.nodeType===1&&Z.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Z.length;x++){var Q=Z[x];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}ea=!!fs,hs=fs=null}finally{Vt=c,vt.p=r,rt.T=i}}t.current=e,le=2}}function Pc(){if(le===2){le=0;var t=zn,e=ai,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=rt.T,rt.T=null;var i=vt.p;vt.p=2;var r=Vt;Vt|=4;try{wm(t,e.alternate,e)}finally{Vt=r,vt.p=i,rt.T=n}}le=3}}function Wc(){if(le===4||le===3){le=0;var t=Vi;Vi=null,Sn();var e=zn,n=ai,i=Hn,r=Vm,c=(i&335544064)===i?10262:10256;if((n.subtreeFlags&c)!==0||(n.flags&c)!==0?le=5:(le=0,ai=zn=null,tp(e,e.pendingLanes)),c=e.pendingLanes,c===0&&(wl=null),ro(i),n=n.stateNode,Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(oa,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=rt.T,c=vt.p,vt.p=2,rt.T=null;try{for(var d=e.onRecoverableError,x=0;x<r.length;x++){var A=r[x];d(A.value,{componentStack:A.stack})}}finally{rt.T=n,vt.p=c}}if(r=Gi,d=Xi,Xi=null,r!==null&&(Gi=null,d===null&&(d=[]),t!==null))for(A=0;A<r.length;A++)n=(0,r[A])(d),n!==void 0&&t.finished.finally(n);(Hn&3)!==0&&kr(),qn(e),c=e.pendingLanes,(i&261930)!==0&&(c&42)!==0?e===Cr?Ga++:(Ga=0,Cr=e):(Ga=0,Cr=null),Xa(0)}}function tp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ca(e)))}function kr(){return Vi!==null&&(Vi.skipTransition(),Vi=null),$c(),Pc(),Wc(),ts()}function ts(){if(le!==5)return!1;var t=zn,e=Ic;Ic=0;var n=ro(Hn),i=rt.T,r=vt.p;try{vt.p=32>n?32:n,rt.T=null,n=Kc,Kc=null;var c=zn,d=Hn;if(le=0,ai=zn=null,Hn=0,(Vt&6)!==0)throw Error(o(331));var x=Vt;if(Vt|=4,Hm(c.current),Lm(c,c.current,d,n),Vt=x,Xa(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(oa,c)}catch{}return!0}finally{vt.p=r,rt.T=i,tp(t,e)}}function ep(t,e,n){e=hn(n,e),e=yc(t.stateNode,e,2),t=bl(t,e,2),t!==null&&(sa(t,2),qn(t))}function Qt(t,e,n){if(t.tag===3)ep(t,t,n);else for(;e!==null;){if(e.tag===3){ep(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(wl===null||!wl.has(i))){t=hn(n,t),n=$d(2),i=bl(e,n,2),i!==null&&(Pd(n,i,e,t),sa(i,2),qn(i));break}}e=e.return}}function es(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new K0;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(Qc=!0,r.add(n),t=nv.bind(null,t,e,n),e.then(t,t))}function nv(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Kt===t&&(Rt&n)===n&&((ae===4||ae===3&&(Rt&62914560)===Rt&&300>Ke()-Sr)&&(Vt&2)===0?Zi(t,0):xr|=n,Yi===Rt&&(Yi=0)),qn(t)}function np(t,e){e===0&&(e=Yf()),t=Gl(t,e),t!==null&&(sa(t,e),qn(t))}function lv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),np(t,n)}function iv(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(e),np(t,n)}function av(t,e){return Qn(t,e)}var Ki=null,Fi=null,ns=!1,Nr=!1,ls=!1,Nl=0;function qn(t){t!==Fi&&t.next===null&&(Fi===null?Ki=Fi=t:Fi=Fi.next=t),Nr=!0,ns||(ns=!0,rv())}function Xa(t,e){if(!ls&&Nr){ls=!0;do for(var n=!1,i=Ki;i!==null;){if(t!==0){var r=i.pendingLanes;if(r===0)var c=0;else{var d=i.suspendedLanes,x=i.pingedLanes;c=(1<<31-Je(42|t)+1)-1,c&=r&~(d&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,up(i,c))}else c=Rt,c=xu(i,i===Kt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ca(i,c)||(n=!0,up(i,c));i=i.next}while(n);ls=!1}}function uv(){lp()}function lp(){Nr=ns=!1;var t=0;Nl!==0&&vv()&&(t=Nl);for(var e=Ke(),n=null,i=Ki;i!==null;){var r=i.next,c=ip(i,e);c===0?(i.next=null,n===null?Ki=r:n.next=r,r===null&&(Fi=n)):(n=i,(t!==0||(c&3)!==0)&&(Nr=!0)),i=r}le!==0&&le!==5||Xa(t),Nl!==0&&(Nl=0)}function ip(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var d=31-Je(c),x=1<<d,A=r[d];A===-1?((x&n)===0||(x&i)!==0)&&(r[d]=C1(x,e)):A<=e&&(t.expiredLanes|=x),c&=~x}if(e=Kt,n=Rt,n=xu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Xt===2||Xt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&ye(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ca(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&ye(i),ro(n)){case 2:case 8:n=Bf;break;case 32:n=gu;break;case 268435456:n=Hf;break;default:n=gu}return i=ap.bind(null,t),n=Qn(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&ye(i),t.callbackPriority=2,t.callbackNode=null,2}function ap(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(kr()&&t.callbackNode!==n)return null;var i=Rt;return i=xu(t,t===Kt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Xm(t,i,e),ip(t,Ke()),t.callbackNode!=null&&t.callbackNode===n?ap.bind(null,t):null)}function up(t,e){if(kr())return null;Xm(t,e,!0)}function rv(){xv(function(){(Vt&6)!==0?Qn(Uf,uv):lp()})}function is(){if(Nl===0){var t=Fl;t===0&&(t=yu,yu<<=1,(yu&261888)===0&&(yu=256)),Nl=t}return Nl}function rp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Au(t)}function ov(t,e,n,i,r){if(e==="submit"&&n&&n.stateNode===r){var c=rp((r[He]||null).action),d=i.submitter;d&&(e=(e=d[He]||null)?rp(e.formAction):d.getAttribute("formAction"),e!==null&&(c=e,d=null));var x=new Nu("action","action",null,i,r);t.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Nl!==0){var A=new FormData(r,d);hc(n,{pending:!0,data:A,method:r.method,action:c},null,A)}}else typeof c=="function"&&(x.preventDefault(),A=new FormData(r,d),hc(n,{pending:!0,data:A,method:r.method,action:c},c,A))},currentTarget:r}]})}}for(var as=0;as<_o.length;as++){var us=_o[as],cv=us.toLowerCase(),sv=us[0].toUpperCase()+us.slice(1);En(cv,"on"+sv)}En(Mh,"onAnimationEnd"),En(jh,"onAnimationIteration"),En(Rh,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(b0,"onTransitionRun"),En(x0,"onTransitionStart"),En(S0,"onTransitionCancel"),En(Lh,"onTransitionEnd"),yi("onMouseEnter",["mouseout","mouseover"]),yi("onMouseLeave",["mouseout","mouseover"]),yi("onPointerEnter",["pointerout","pointerover"]),yi("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),fv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qa));function op(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;t:{var c=void 0;if(e)for(var d=i.length-1;0<=d;d--){var x=i[d],A=x.instance,D=x.currentTarget;if(x=x.listener,A!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=D;try{c(r)}catch(B){Du(B)}r.currentTarget=null,c=A}else for(d=0;d<i.length;d++){if(x=i[d],A=x.instance,D=x.currentTarget,x=x.listener,A!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=D;try{c(r)}catch(B){Du(B)}r.currentTarget=null,c=A}}}}function Mt(t,e){var n=e[If];n===void 0&&(n=e[If]=new Set);var i=t+"__bubble";n.has(i)||(cp(e,t,2,!1),n.add(i))}function rs(t,e,n){var i=0;e&&(i|=4),cp(n,t,i,e)}var _r="_reactListening"+Math.random().toString(36).slice(2);function os(t){if(!t[_r]){t[_r]=!0,Jf.forEach(function(n){n!=="selectionchange"&&(fv.has(n)||rs(n,!1,t),rs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[_r]||(e[_r]=!0,rs("selectionchange",!1,e))}}function cp(t,e,n,i){switch(Pp(e)){case 2:var r=lb;break;case 8:r=ib;break;default:r=ks}n=r.bind(null,e,n,t),r=void 0,!go||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),i?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function cs(t,e,n,i,r){var c=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var x=i.stateNode.containerInfo;if(x===r)break;if(d===4)for(d=i.return;d!==null;){var A=d.tag;if((A===3||A===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;x!==null;){if(d=Hl(x),d===null)return;if(A=d.tag,A===5||A===6||A===26||A===27){i=c=d;continue t}x=x.parentNode}}i=i.return}ch(function(){var D=c,B=mo(n),Z=[];t:{var _=Uh.get(t);if(_!==void 0){var L=Nu,it=t;switch(t){case"keypress":if(wu(n)===0)break t;case"keydown":case"keyup":L=F1;break;case"focusin":it="focus",L=xo;break;case"focusout":it="blur",L=xo;break;case"beforeblur":case"afterblur":L=xo;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=U1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=t0;break;case Mh:case jh:case Rh:L=q1;break;case Lh:L=n0;break;case"scroll":case"scrollend":L=R1;break;case"wheel":L=i0;break;case"copy":case"cut":case"paste":L=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=mh;break;case"submit":L=P1;break;case"toggle":case"beforetoggle":L=u0}var dt=(e&4)!==0,kt=!dt&&(t==="scroll"||t==="scrollend"),O=dt?_!==null?_+"Capture":null:_;dt=[];for(var k=D,M;k!==null;){var Q=k;if(M=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||M===null||O===null||(Q=da(k,O),Q!=null&&dt.push(Za(k,Q,M))),kt)break;k=k.return}0<dt.length&&(_=new L(_,it,null,n,B),Z.push({event:_,listeners:dt}))}}if((e&7)===0){t:{if(L=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",L&&n!==ho&&(it=n.relatedTarget||n.fromElement)&&(Hl(it)||it[mi]))break t;(_||L)&&(it=B.window===B?B:(L=B.ownerDocument)?L.defaultView||L.parentWindow:window,_?(L=n.relatedTarget||n.toElement,_=D,L=L?Hl(L):null,L!==null&&(kt=h(L),dt=L.tag,L!==kt||dt!==5&&dt!==27&&dt!==6)&&(L=null)):(_=null,L=D),_!==L&&(dt=hh,Q="onMouseLeave",O="onMouseEnter",k="mouse",(t==="pointerout"||t==="pointerover")&&(dt=mh,Q="onPointerLeave",O="onPointerEnter",k="pointer"),kt=_==null?it:ha(_),M=L==null?it:ha(L),it=new dt(Q,k+"leave",_,n,B),it.target=kt,it.relatedTarget=M,Q=null,Hl(B)===D&&(dt=new dt(O,k+"enter",L,n,B),dt.target=M,dt.relatedTarget=kt,Q=dt),kt=Q,dt=_&&L?j(_,L,hv):null,_!==null&&sp(Z,it,_,dt,!1),L!==null&&kt!==null&&sp(Z,kt,L,dt,!0)))}t:{if(_=D?ha(D):window,L=_.nodeName&&_.nodeName.toLowerCase(),L==="select"||L==="input"&&_.type==="file")var ct=Eh;else if(xh(_))if(Th)ct=g0;else{ct=m0;var Lt=d0}else L=_.nodeName,!L||L.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?D&&fo(D.elementType)&&(ct=Eh):ct=p0;if(ct&&(ct=ct(t,D))){Sh(Z,ct,n,B);break t}Lt&&Lt(t,_,D)}switch(Lt=D?ha(D):window,t){case"focusin":(xh(Lt)||Lt.contentEditable==="true")&&(Ti=Lt,wo=D,Sa=null);break;case"focusout":Sa=wo=Ti=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,Oh(Z,n,B);break;case"selectionchange":if(v0)break;case"keydown":case"keyup":Oh(Z,n,B)}var gt;if(Eo)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else Ei?vh(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(ph&&n.locale!=="ko"&&(Ei||St!=="onCompositionStart"?St==="onCompositionEnd"&&Ei&&(gt=sh()):(sl=B,yo="value"in sl?sl.value:sl.textContent,Ei=!0)),Lt=Or(D,St),0<Lt.length&&(St=new dh(St,t,null,n,B),Z.push({event:St,listeners:Lt}),gt?St.data=gt:(gt=bh(n),gt!==null&&(St.data=gt)))),(gt=o0?c0(t,n):s0(t,n))&&(St=Or(D,"onBeforeInput"),0<St.length&&(Lt=new dh("onBeforeInput","beforeinput",null,n,B),Z.push({event:Lt,listeners:St}),Lt.data=gt)),ov(Z,t,D,n,B)}op(Z,e)})}function Za(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Or(t,e){for(var n=e+"Capture",i=[];t!==null;){var r=t,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=da(t,n),r!=null&&i.unshift(Za(t,r,c)),r=da(t,e),r!=null&&i.push(Za(t,r,c))),t.tag===3)return i;t=t.return}return[]}function hv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function sp(t,e,n,i,r){for(var c=e._reactName,d=[];n!==null&&n!==i;){var x=n,A=x.alternate,D=x.stateNode;if(x=x.tag,A!==null&&A===i)break;x!==5&&x!==26&&x!==27||D===null||(A=D,r?(D=da(n,c),D!=null&&d.unshift(Za(n,D,A))):r||(D=da(n,c),D!=null&&d.push(Za(n,D,A)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var dv=/\r\n?/g,mv=/\u0000|\uFFFD/g;function fp(t){return(typeof t=="string"?t:""+t).replace(dv,`
49
+ `).replace(mv,"")}function hp(t,e){return e=fp(e),fp(t)===e}function Zt(t,e,n,i,r,c){switch(n){case"children":if(typeof i=="string")e==="body"||e==="textarea"&&i===""||bi(t,i);else if(typeof i=="number"||typeof i=="bigint")e!=="body"&&bi(t,""+i);else return;break;case"className":Cu(t,"class",i);break;case"tabIndex":Cu(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(t,n,i);break;case"style":rh(t,i,c);return;case"data":if(e!=="object"){Cu(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Au(i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Zt(t,e,"name",r.name,r,null),Zt(t,e,"formEncType",r.formEncType,r,null),Zt(t,e,"formMethod",r.formMethod,r,null),Zt(t,e,"formTarget",r.formTarget,r,null)):(Zt(t,e,"encType",r.encType,r,null),Zt(t,e,"method",r.method,r,null),Zt(t,e,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Au(i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=_n);return;case"onScroll":i!=null&&Mt("scroll",t);return;case"onScrollEnd":i!=null&&Mt("scrollend",t);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));(c!=null?c.__html:void 0)!==n&&(t.innerHTML=n)}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}n=Au(i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":Mt("beforetoggle",t),Mt("toggle",t),Tu(t,"popover",i);break;case"xlinkActuate":In(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":In(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":In(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":In(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":In(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":In(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":In(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":In(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":In(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Tu(t,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=M1.get(n)||n,Tu(t,n,i);else return}Bt=!0}function ss(t,e,n,i,r,c){switch(n){case"style":rh(t,i,c);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));(c!=null?c.__html:void 0)!==n&&(t.innerHTML=n)}}break;case"children":if(typeof i=="string")bi(t,i);else if(typeof i=="number"||typeof i=="bigint")bi(t,""+i);else return;break;case"onScroll":i!=null&&Mt("scroll",t);return;case"onScrollEnd":i!=null&&Mt("scrollend",t);return;case"onClick":i!=null&&(t.onclick=_n);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!$f.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),c=n.slice(2,r?n.length-7:void 0),e=t[He]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(c,e,r),typeof i=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(c,i,r);break t}Bt=!0,n in t?t[n]=i:i===!0?t.setAttribute(n,""):Tu(t,n,i)}return}Bt=!0}function Te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Mt("error",t),Mt("load",t);var i=!1,r=!1,c;for(c in n)if(n.hasOwnProperty(c)){var d=n[c];if(d!=null)switch(c){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Zt(t,e,c,d,n,null)}}r&&Zt(t,e,"srcSet",n.srcSet,n,null),i&&Zt(t,e,"src",n.src,n,null);return;case"input":Mt("invalid",t);var x=c=d=r=null,A=null,D=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":r=B;break;case"type":d=B;break;case"checked":A=B;break;case"defaultChecked":D=B;break;case"value":c=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:Zt(t,e,i,B,n,null)}}lh(t,c,x,A,D,d,r,!1);return;case"select":Mt("invalid",t),i=d=c=null;for(r in n)if(n.hasOwnProperty(r)&&(x=n[r],x!=null))switch(r){case"value":c=x;break;case"defaultValue":d=x;break;case"multiple":i=x;default:Zt(t,e,r,x,n,null)}e=c,n=d,t.multiple=!!i,e!=null?vi(t,!!i,e,!1):n!=null&&vi(t,!!i,n,!0);return;case"textarea":Mt("invalid",t),c=r=i=null;for(d in n)if(n.hasOwnProperty(d)&&(x=n[d],x!=null))switch(d){case"value":i=x;break;case"defaultValue":r=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Zt(t,e,d,x,n,null)}ah(t,i,r,c);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(i=n[A],i!=null))switch(A){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Zt(t,e,A,i,n,null)}return;case"dialog":Mt("beforetoggle",t),Mt("toggle",t),Mt("cancel",t),Mt("close",t);break;case"iframe":case"object":Mt("load",t);break;case"video":case"audio":for(i=0;i<Qa.length;i++)Mt(Qa[i],t);break;case"image":Mt("error",t),Mt("load",t);break;case"details":Mt("toggle",t);break;case"embed":case"source":case"link":Mt("error",t),Mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(i=n[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Zt(t,e,D,i,n,null)}return;default:if(fo(e)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&ss(t,e,B,i,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(i=n[x],i!=null&&Zt(t,e,x,i,n,null))}var pv={};function gv(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,d=null,x=null,A=null,D=null,B=null;for(L in n){var Z=n[L];if(n.hasOwnProperty(L)&&Z!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":A=Z;default:i.hasOwnProperty(L)||Zt(t,e,L,null,i,Z)}}for(var _ in i){var L=i[_];if(Z=n[_],i.hasOwnProperty(_)&&(L!=null||Z!=null))switch(_){case"type":L!==Z&&(Bt=!0),c=L;break;case"name":L!==Z&&(Bt=!0),r=L;break;case"checked":L!==Z&&(Bt=!0),D=L;break;case"defaultChecked":L!==Z&&(Bt=!0),B=L;break;case"value":L!==Z&&(Bt=!0),d=L;break;case"defaultValue":L!==Z&&(Bt=!0),x=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,e));break;default:L!==Z&&Zt(t,e,_,L,i,Z)}}co(t,d,x,A,D,B,c,r);return;case"select":L=d=x=_=null;for(c in n)if(A=n[c],n.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":L=A;default:i.hasOwnProperty(c)||Zt(t,e,c,null,i,A)}for(r in i)if(c=i[r],A=n[r],i.hasOwnProperty(r)&&(c!=null||A!=null))switch(r){case"value":c!==A&&(Bt=!0),_=c;break;case"defaultValue":c!==A&&(Bt=!0),x=c;break;case"multiple":c!==A&&(Bt=!0),d=c;default:c!==A&&Zt(t,e,r,c,i,A)}e=x,n=d,i=L,_!=null?vi(t,!!n,_,!1):!!i!=!!n&&(e!=null?vi(t,!!n,e,!0):vi(t,!!n,n?[]:"",!1));return;case"textarea":L=_=null;for(x in n)if(r=n[x],n.hasOwnProperty(x)&&r!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Zt(t,e,x,null,i,r)}for(d in i)if(r=i[d],c=n[d],i.hasOwnProperty(d)&&(r!=null||c!=null))switch(d){case"value":r!==c&&(Bt=!0),_=r;break;case"defaultValue":r!==c&&(Bt=!0),L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==c&&Zt(t,e,d,r,i,c)}ih(t,_,L);return;case"option":for(var it in n)if(_=n[it],n.hasOwnProperty(it)&&_!=null&&!i.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:Zt(t,e,it,null,i,_)}for(A in i)if(_=i[A],L=n[A],i.hasOwnProperty(A)&&_!==L&&(_!=null||L!=null))switch(A){case"selected":_!==L&&(Bt=!0),t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Zt(t,e,A,_,i,L)}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 dt in n)_=n[dt],n.hasOwnProperty(dt)&&_!=null&&!i.hasOwnProperty(dt)&&Zt(t,e,dt,null,i,_);for(D in i)if(_=i[D],L=n[D],i.hasOwnProperty(D)&&_!==L&&(_!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:Zt(t,e,D,_,i,L)}return;default:if(fo(e)){for(var kt in n)_=n[kt],n.hasOwnProperty(kt)&&_!==void 0&&!i.hasOwnProperty(kt)&&ss(t,e,kt,void 0,i,_);for(B in i)_=i[B],L=n[B],!i.hasOwnProperty(B)||_===L||_===void 0&&L===void 0||ss(t,e,B,_,i,L);return}}for(var O in n)_=n[O],n.hasOwnProperty(O)&&_!=null&&!i.hasOwnProperty(O)&&Zt(t,e,O,null,i,_);for(Z in i)_=i[Z],L=n[Z],!i.hasOwnProperty(Z)||_===L||_==null&&L==null||Zt(t,e,Z,_,i,L)}function dp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],c=r.transferSize,d=r.initiatorType,x=r.duration;if(c&&x&&dp(d)){for(d=0,x=r.responseEnd,i+=1;i<n.length;i++){var A=n[i],D=A.startTime;if(D>x)break;var B=A.transferSize,Z=A.initiatorType;B&&dp(Z)&&(A=A.responseEnd,d+=B*(A<x?1:(x-D)/(A-D)))}if(--i,e+=8*(c+d)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var fs=null,hs=null;function Ia(t){return t.nodeType===9?t:t.ownerDocument}function mp(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function gp(t,e,n,i){return n=Ia(n).createElement(t),n[ve]=i,n[He]=e,Te(n,t,e),de(n),n}function ds(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ms=null;function vv(){var t=window.event;return t&&t.type==="popstate"?t===ms?!1:(ms=t,!0):(ms=null,!1)}var ps=typeof setTimeout=="function"?setTimeout:void 0,bv=typeof clearTimeout=="function"?clearTimeout:void 0,yp=typeof Promise=="function"?Promise:void 0,vp=typeof requestAnimationFrame=="function"?requestAnimationFrame:ps,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof yp<"u"?function(t){return yp.resolve(null).then(t).catch(Sv)}:ps;function Sv(t){setTimeout(function(){throw t})}function _l(t){return t==="head"}function bp(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(r),na(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ts(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var d=c.nextSibling,x=c.nodeName;c[fa]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=d}}else n==="body"&&Ts(t.ownerDocument.body);n=r}while(n);na(e)}function xp(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function Sp(t,e,n){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display==="inline"){if(e=t.getClientRects(),e.length===1)var i=1;else for(var r=i=0;r<e.length;r++){var c=e[r];0<c.width&&0<c.height&&i++}i===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function Ep(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(n=e.display,t.display=n==null||typeof n=="boolean"?"":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=n==null||typeof n=="boolean"?"":n,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function Ev(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function gs(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return Ev(e,n,t)}function Tv(t){return t.documentElement.clientHeight}function Cv(t){this.addEventListener("load",t),this.addEventListener("error",t)}function Av(t,e,n,i,r,c,d,x,A){var D=e.nodeType===9?e:e.ownerDocument;try{var B=D.startViewTransition({update:function(){var _=D.defaultView,L=_.navigation&&_.navigation.transition,it=D.fonts.status;i();var dt=[];if(it==="loaded"&&(Tv(D),D.fonts.status==="loading"&&dt.push(D.fonts.ready)),it=dt.length,t!==null)for(var kt=t.suspenseyImages,O=0,k=0;k<kt.length;k++){var M=kt[k];if(!M.complete){var Q=M.getBoundingClientRect();if(0<Q.bottom&&0<Q.right&&Q.top<_.innerHeight&&Q.left<_.innerWidth){if(O+=Gp(M),O>jr){dt.length=it;break}M=new Promise(Cv.bind(M)),dt.push(M)}}}if(0<dt.length)return _=Promise.race([Promise.all(dt),new Promise(function(ct){return setTimeout(ct,500)})]).then(r,r),(L?Promise.allSettled([L.finished,_]):_).then(c,c);if(r(),L)return L.finished.then(c,c);c()},types:n});D.__reactViewTransition=B;var Z=[];return B.ready.then(function(){for(var _=D.documentElement.getAnimations({subtree:!0}),L=0;L<_.length;L++){var it=_[L],dt=it.effect,kt=dt.pseudoElement;if(kt!=null&&kt.startsWith("::view-transition")){Z.push(it),it=dt.getKeyframes();for(var O=kt=void 0,k=!0,M=0;M<it.length;M++){var Q=it[M],ct=Q.width;if(kt===void 0)kt=ct;else if(kt!==ct){k=!1;break}if(ct=Q.height,O===void 0)O=ct;else if(O!==ct){k=!1;break}delete Q.width,delete Q.height,Q.transform==="none"&&delete Q.transform}k&&kt!==void 0&&O!==void 0&&(dt.setKeyframes(it),k=getComputedStyle(dt.target,dt.pseudoElement),k.width!==kt||k.height!==O)&&(k=it[0],k.width=kt,k.height=O,k=it[it.length-1],k.width=kt,k.height=O,dt.setKeyframes(it))}}d()},function(_){D.__reactViewTransition===B&&(D.__reactViewTransition=null);try{if(typeof _=="object"&&_!==null)switch(_.name){case"InvalidStateError":(_.message==="View transition was skipped because document visibility state is hidden."||_.message==="Skipping view transition because document visibility state has become hidden."||_.message==="Skipping view transition because viewport size changed."||_.message==="Transition was aborted because of invalid state")&&(_=null)}_!==null&&A(_)}finally{i(),r(),d()}}),B.finished.finally(function(){for(var _=0;_<Z.length;_++)Z[_].cancel();D.__reactViewTransition===B&&(D.__reactViewTransition=null),x()}),B}catch{return i(),r(),d(),null}}function ui(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}ui.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:$({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)},ui.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),i=[],r=0;r<n.length;r++){var c=n[r].effect;c!==null&&c.target===t&&c.pseudoElement===e&&i.push(n[r])}return i},ui.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Tp(t){return{name:t,group:new ui("group",t),imagePair:new ui("image-pair",t),old:new ui("old",t),new:new ui("new",t)}}function an(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}an.prototype.addEventListener=function(t,e,n){var i=null,r=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var c=this._eventListeners;if(Ap(c,t,e,n)===-1){var d=this,x=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(x=function(A){d.removeEventListener(t,e,n),typeof e=="function"?e.call(this,A):e.handleEvent(A)}),i!==null&&(r=d.removeEventListener.bind(d,t,e,n),i.addEventListener("abort",r,{once:!0}),r=i.removeEventListener.bind(i,"abort",r)),i=Ji(n),c.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:x,cleanup:r}),p(this._fragmentFiber.child,!1,zv,t,x,i)}this._eventListeners=c}};function zv(t,e,n,i){return H(t).addEventListener(e,n,i),!1}an.prototype.removeEventListener=function(t,e,n){var i=this._eventListeners;if(i!==null&&(e=Ap(i,t,e,n),e!==-1)){var r=i[e];n=r.attachedListener;var c=r.cleanup;r=Ji(r.optionsOrUseCapture),p(this._fragmentFiber.child,!1,wv,t,n,r),i.splice(e,1),c!==null&&c()}};function wv(t,e,n,i){return H(t).removeEventListener(e,n,i),!1}function Ji(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function Cp(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function Ap(t,e,n,i){if(t.length===0)return-1;i=Cp(i);for(var r=0;r<t.length;r++){var c=t[r];if(c.type===e&&c.listener===n&&Cp(c.optionsOrUseCapture)===i)return r}return-1}an.prototype.dispatchEvent=function(t){var e=S(this._fragmentFiber);if(e===null)return!0;e=H(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var i=e.nodeType===9?e.createComment(""):document.createTextNode("");if(n)for(var r=0;r<n.length;r++){var c=n[r];i.addEventListener(c.type,c.attachedListener,Ji(c.optionsOrUseCapture))}if(e.appendChild(i),t=i.dispatchEvent(t),n)for(r=0;r<n.length;r++)c=n[r],i.removeEventListener(c.type,c.attachedListener,Ji(c.optionsOrUseCapture));return e.removeChild(i),t}return e.dispatchEvent(t)},an.prototype.focus=function(t){p(this._fragmentFiber.child,!0,zp,t,void 0,void 0)};function zp(t,e){return t.tag===6?!1:(t=H(t),Hv(t,e))}an.prototype.focusLast=function(t){var e=[];p(this._fragmentFiber.child,!0,ys,e,void 0,void 0);for(var n=e.length-1;0<=n&&!zp(e[n],t);n--);};function ys(t,e){return e.push(t),!1}an.prototype.blur=function(){var t=S(this._fragmentFiber);t!==null&&(t=H(t),t=Ia(t).activeElement,t!==null&&p(this._fragmentFiber.child,!1,kv,t,void 0,void 0))};function kv(t,e){return t.tag===6?!1:(t=H(t),t===e||t.contains(e)?(e.blur(),!0):!1)}an.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),p(this._fragmentFiber.child,!1,Nv,t,void 0,void 0)};function Nv(t,e){return t.tag===6||(t=H(t),e.observe(t)),!1}an.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),p(this._fragmentFiber.child,!1,_v,t,void 0,void 0);for(var n=e=0;n<wn.length;n++){var i=wn[n];i.fragmentInstance===this&&i.observer===t?t.unobserve(i.instance):wn[e++]=i}wn.length=e}};function _v(t,e){return t.tag===6||(t=H(t),e.unobserve(t)),!1}var wn=[],vs=!1;function Ov(t,e,n){wn.push({fragmentInstance:t,observer:e,instance:n}),vs||(vs=!0,qv(function(){vs=!1;var i=wn;wn=[];for(var r=0;r<i.length;r++){var c=i[r];c.observer.unobserve(c.instance)}}))}an.prototype.getClientRects=function(){var t=[];return p(this._fragmentFiber.child,!1,Dv,t,void 0,void 0),t};function Dv(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=H(t),e.push.apply(e,t.getClientRects());return!1}an.prototype.getRootNode=function(t){var e=S(this._fragmentFiber);return e===null?this:H(e).getRootNode(t)},an.prototype.compareDocumentPosition=function(t){var e=S(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,ys,n,void 0,void 0);var i=H(e);if(n.length===0){if(n=i,b(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var r=i=n.compareDocumentPosition(t);return n===t?r=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=N(e)[1],n===null?r=Node.DOCUMENT_POSITION_PRECEDING:(t=H(n).compareDocumentPosition(t),r=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=H(n[0]),r=H(n[n.length-1]);var c=b(this._fragmentFiber)?e.parentElement:i;if(c==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=c.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,c=c.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var d=e.compareDocumentPosition(t),x=r.compareDocumentPosition(t),A=d&Node.DOCUMENT_POSITION_CONTAINED_BY||x&Node.DOCUMENT_POSITION_CONTAINED_BY;return x=i&&c&&d&Node.DOCUMENT_POSITION_FOLLOWING&&x&Node.DOCUMENT_POSITION_PRECEDING,e=i&&e===t||c&&r===t||A||x?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&e===t||!c&&r===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:d,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Mv(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Mv(t,e,n,i,r){var c=Hl(r);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!c)t:{for(;c!==null;){if(c.tag===7&&(c===e||c.alternate===e)){n=!0;break t}c=c.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(c===null)return c=r.ownerDocument,r===c||r===c.documentElement||r===c.body;t:{for(c=e,e=S(e);c!==null;){if(!(c.tag!==5&&c.tag!==3&&c.tag!==27||c!==e&&c.alternate!==e)){c=!0;break t}c=c.return}c=!1}return c}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!c)&&!(e=c===n)&&(e=j(n,c,F),e===null?e=!1:(p(e,!0,X,c,n),c=w,w=null,e=c!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!c)&&!(e=c===i)&&(e=j(i,c,F),e===null?e=!1:(p(e,!0,ot,c,i),c=w,I=w=null,e=c!==null)),e):!1}function wp(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}an.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(o(566));var e=[];p(this._fragmentFiber.child,!1,ys,e,void 0,void 0);var n=t!==!1;if(e.length===0){var i=N(this._fragmentFiber);if(i=n?i[1]||i[0]||S(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){t=H(i),wp(t,n);return}if(i=H(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(t);return}i.scrollIntoView(t)}}for(i=n?e.length-1:0;i!==(n?-1:e.length);){var r=e[i];r.tag===6?(r=H(r),wp(r,n)):H(r).scrollIntoView(t),i+=n?-1:1}};function jv(t,e){return t=H(t),kp(t,e),!1}function kp(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function Np(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];t.addEventListener(r.type,r.attachedListener,Ji(r.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(c){for(var d=0,x=0;x<wn.length;x++){var A=wn[x];(A.fragmentInstance!==e||A.observer!==c||A.instance!==t)&&(wn[d++]=A)}wn.length=d,c.observe(t)}),kp(t,e))}function Rv(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];t.removeEventListener(r.type,r.attachedListener,Ji(r.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(c){typeof c.rootMargin=="string"?Ov(e,c,t):c.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function bs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bs(n),Eu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Lv(t,e,n,i){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[fa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=yn(t.nextSibling),t===null)break}return null}function Uv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=yn(t.nextSibling),t===null))return null;return t}function _p(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=yn(t.nextSibling),t===null))return null;return t}function xs(t){return t.data==="$?"||t.data==="$~"}function Ss(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Bv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function yn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Es=null;function Op(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return yn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Dp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Hv(t,e){function n(){i=!0}if(t.ownerDocument.activeElement===t)return!0;var i=!1;try{t.ownerDocument.addEventListener("focus",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",n,!0)}return i}function qv(t){vp(function(){vp(function(e){return t(e)})})}function Mp(t,e,n){switch(e=Ia(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function jp(t,e,n){for(var i in n){var r=n[i];n.hasOwnProperty(i)&&r!=null&&Zt(t,e,i,null,pv,r)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===_n&&(t.onclick=null),Eu(t)}function Ts(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Eu(t)}var vn=new Map,Rp=new Set;function Ka(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var ul=vt.d;vt.d={f:Yv,r:Vv,D:Gv,C:Xv,L:Qv,m:Zv,X:Kv,S:Iv,M:Fv};function Yv(){var t=ul.f(),e=Ar();return t||e}function Vv(t){var e=pi(t);e!==null&&e.tag===5&&e.type==="form"?Ud(e):ul.r(t)}var $i=typeof document>"u"?null:document;function Lp(t,e,n){var i=$i;if(i&&typeof e=="string"&&e){var r=sn(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Rp.has(r)||(Rp.add(r),t={rel:t,crossOrigin:n,href:e},i.querySelector(r)===null&&(e=i.createElement("link"),Te(e,"link",t),de(e),i.head.appendChild(e)))}}function Gv(t){ul.D(t),Lp("dns-prefetch",t,null)}function Xv(t,e){ul.C(t,e),Lp("preconnect",t,e)}function Qv(t,e,n){ul.L(t,e,n);var i=$i;if(i&&t&&e){var r='link[rel="preload"][as="'+sn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+sn(n.imageSizes)+'"]')):r+='[href="'+sn(t)+'"]';var c=r;switch(e){case"style":c=Pi(t);break;case"script":c=Wi(t)}if(!(vn.has(c)||(t=$({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),vn.set(c,t),i.querySelector(r)!==null||e==="style"&&i.querySelector(Fa(c))||e==="script"&&i.querySelector(Ja(c))))){var d=i.createElement("link");Te(d,"link",t),e==="style"&&(d[Su]=!0,d.onload=d.onerror=function(){Ff(d)}),de(d),i.head.appendChild(d)}}}function Zv(t,e){ul.m(t,e);var n=$i;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+sn(i)+'"][href="'+sn(t)+'"]',c=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Wi(t)}if(!vn.has(c)&&(t=$({rel:"modulepreload",href:t},e),vn.set(c,t),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ja(c)))return}i=n.createElement("link"),Te(i,"link",t),de(i),n.head.appendChild(i)}}}function Iv(t,e,n){ul.S(t,e,n);var i=$i;if(i&&t){var r=gi(i).hoistableStyles,c=Pi(t);e=e||"default";var d=r.get(c);if(!d){var x={loading:0,preload:null};if(d=i.querySelector(Fa(c)))x.loading=5;else{t=$({rel:"stylesheet",href:t,"data-precedence":e},n),(n=vn.get(c))&&Cs(t,n);var A=d=i.createElement("link");de(A),Te(A,"link",t),A._p=new Promise(function(D,B){A.onload=D,A.onerror=B}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Dr(d,e,i)}d={type:"stylesheet",instance:d,count:1,state:x},r.set(c,d)}}}function Kv(t,e){ul.X(t,e);var n=$i;if(n&&t){var i=gi(n).hoistableScripts,r=Wi(t),c=i.get(r);c||(c=n.querySelector(Ja(r)),c||(t=$({src:t,async:!0},e),(e=vn.get(r))&&As(t,e),c=n.createElement("script"),de(c),Te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(r,c))}}function Fv(t,e){ul.M(t,e);var n=$i;if(n&&t){var i=gi(n).hoistableScripts,r=Wi(t),c=i.get(r);c||(c=n.querySelector(Ja(r)),c||(t=$({src:t,async:!0,type:"module"},e),(e=vn.get(r))&&As(t,e),c=n.createElement("script"),de(c),Te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(r,c))}}function Up(t,e,n,i){var r=(r=on.current)?Ka(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Pi(n.href),e=gi(r).hoistableStyles,i=e.get(n),i||(i={type:"style",instance:null,count:0,state:null},e.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Pi(n.href);var c=gi(r).hoistableStyles,d=c.get(t);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,d),(c=r.querySelector(Fa(t)))?c._p||(d.instance=c,d.state.loading=5):(c=vn.get(t),c||(c={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vn.set(t,c)),Jv(r,t,c,d.state))),e&&i===null)throw Error(o(528,""));return d}if(e&&i!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(n=Wi(n),e=gi(r).hoistableScripts,i=e.get(n),i||(i={type:"script",instance:null,count:0,state:null},e.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Pi(t){return'href="'+sn(t)+'"'}function Fa(t){return'link[rel="stylesheet"]['+t+"]"}function Bp(t){return $({},t,{"data-precedence":t.precedence,precedence:null})}function Jv(t,e,n,i){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Su]!==!0){i.loading=1;return}}else e=t.createElement("link"),e[Su]=!0,e.onload=e.onerror=Ff.bind(null,e),Te(e,"link",n),de(e),t.head.appendChild(e);i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2})}function Wi(t){return'[src="'+sn(t)+'"]'}function Ja(t){return"script[async]"+t}function Hp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+sn(n.href)+'"]');if(i)return e.instance=i,de(i),i;var r=$({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),de(i),Te(i,"style",r),Dr(i,n.precedence,t),e.instance=i;case"stylesheet":r=Pi(n.href);var c=t.querySelector(Fa(r));if(c)return e.state.loading|=4,e.instance=c,de(c),c;i=Bp(n),(r=vn.get(r))&&Cs(i,r),c=(t.ownerDocument||t).createElement("link"),de(c);var d=c;return d._p=new Promise(function(x,A){d.onload=x,d.onerror=A}),Te(c,"link",i),e.state.loading|=4,Dr(c,n.precedence,t),e.instance=c;case"script":return c=Wi(n.src),(r=t.querySelector(Ja(c)))?(e.instance=r,de(r),r):(i=n,(r=vn.get(c))&&(i=$({},n),As(i,r)),t=t.ownerDocument||t,r=t.createElement("script"),de(r),Te(r,"link",i),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Dr(i,n.precedence,t));return e.instance}function Dr(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,c=r,d=0;d<i.length;d++){var x=i[d];if(x.dataset.precedence===e)c=x;else if(c!==r)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Cs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function As(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Mr=null;function qp(t,e,n){if(Mr===null){var i=new Map,r=Mr=new Map;r.set(n,i)}else r=Mr,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var c=n[r];if(!(c[fa]||c[ve]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(e)||"";d=t+d;var x=i.get(d);x?x.push(c):i.set(d,[c])}}return i}function zs(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function $v(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Yp(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Vp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Gp(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Xp(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Gp(e),t.suspenseyImages.push(e)),t=tb.bind(t),e.decode().then(t,t))}function Pv(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Pi(i.href),c=e.querySelector(Fa(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=$a.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,de(c);return}c=e.ownerDocument||e,i=Bp(i),(r=vn.get(r))&&Cs(i,r),c=c.createElement("link"),de(c);var d=c;d._p=new Promise(function(x,A){d.onload=x,d.onerror=A}),Te(c,"link",i),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=$a.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var jr=0;function Wv(t,e){return t.stylesheets&&t.count===0&&Lr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&jr===0&&(jr=62500*yv());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>jr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Qp(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Lr(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function $a(){this.count--,Qp(this)}function tb(){this.imgCount--,Qp(this)}var Rr=null;function Lr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Rr=new Map,e.forEach(eb,t),Rr=null,$a.call(t))}function eb(t,e){if(!(e.state.loading&4)){var n=Rr.get(t);if(n)var i=n.get(null);else{n=new Map,Rr.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var d=r[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}r=e.instance,d=r.getAttribute("data-precedence"),c=n.get(d)||i,c===i&&n.set(null,r),n.set(d,r),this.count++,i=$a.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),c?c.parentNode.insertBefore(r,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var ta={$$typeof:W,Provider:null,Consumer:null,_currentValue:Ae,_currentValue2:Ae,_threadCount:0};function nb(t,e,n,i,r,c,d,x,A){this.tag=1,this.containerInfo=t,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=ao(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.hiddenUpdates=ao(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.transitionTypes=null,this.incompleteTransitions=new Map}function Zp(t,e,n,i,r,c,d,x,A,D,B,Z){return t=new nb(t,e,n,d,A,D,B,Z,x),e=1,c===!0&&(e|=24),c=qe(3,null,null,e),t.current=c,c.stateNode=t,e=Yo(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:e},Qo(c),t}function Ip(t){return t?(t=zi,t):zi}function Kp(t,e,n,i,r,c){r=Ip(r),i.context===null?i.context=r:i.pendingContext=r,i=vl(e),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=bl(t,i,e),n!==null&&(Xe(n,t,e),ka(n,t,e))}function Fp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function ws(t,e){Fp(t,e),(t=t.alternate)&&Fp(t,e)}function Jp(t){if(t.tag===13||t.tag===31){var e=Gl(t,67108864);e!==null&&Xe(e,t,67108864),ws(t,67108864)}}function $p(t){if(t.tag===13||t.tag===31){var e=ln();e=uo(e);var n=Gl(t,e);n!==null&&Xe(n,t,e),ws(t,e)}}var ea=!0;function lb(t,e,n,i){var r=rt.T;rt.T=null;var c=vt.p;try{vt.p=2,ks(t,e,n,i)}finally{vt.p=c,rt.T=r}}function ib(t,e,n,i){var r=rt.T;rt.T=null;var c=vt.p;try{vt.p=8,ks(t,e,n,i)}finally{vt.p=c,rt.T=r}}function ks(t,e,n,i){if(ea){var r=Ns(i);if(r===null)cs(t,e,i,Ur,n),Wp(t,i);else if(ub(r,t,e,n,i))i.stopPropagation();else if(Wp(t,i),e&4&&-1<ab.indexOf(t)){for(;r!==null;){var c=pi(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=Bl(c.pendingLanes);if(d!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;d;){var A=1<<31-Je(d);x.entanglements[1]|=A,d&=~A}qn(c),(Vt&6)===0&&(Er=Ke()+500,Xa(0))}}break;case 31:case 13:x=Gl(c,2),x!==null&&Xe(x,c,2),Ar(),ws(c,2)}if(c=Ns(i),c===null&&cs(t,e,i,Ur,n),c===r)break;r=c}r!==null&&i.stopPropagation()}else cs(t,e,i,null,n)}}function Ns(t){return t=mo(t),_s(t)}var Ur=null;function _s(t){if(Ur=null,t=Hl(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ur=t,null}function Pp(t){switch(t){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(y1()){case Uf:return 2;case Bf:return 8;case gu:case v1:return 32;case Hf:return 268435456;default:return 32}default:return 32}}var Os=!1,Ol=null,Dl=null,Ml=null,Pa=new Map,Wa=new Map,jl=[],ab="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 Wp(t,e){switch(t){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":Pa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wa.delete(e.pointerId)}}function tu(t,e,n,i,r,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[r]},e!==null&&(e=pi(e),e!==null&&Jp(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function ub(t,e,n,i,r){switch(e){case"focusin":return Ol=tu(Ol,t,e,n,i,r),!0;case"dragenter":return Dl=tu(Dl,t,e,n,i,r),!0;case"mouseover":return Ml=tu(Ml,t,e,n,i,r),!0;case"pointerover":var c=r.pointerId;return Pa.set(c,tu(Pa.get(c)||null,t,e,n,i,r)),!0;case"gotpointercapture":return c=r.pointerId,Wa.set(c,tu(Wa.get(c)||null,t,e,n,i,r)),!0}return!1}function tg(t){var e=Hl(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Zf(t.priority,function(){$p(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Zf(t.priority,function(){$p(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Br(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ns(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);ho=i,n.target.dispatchEvent(i),ho=null}else return e=pi(n),e!==null&&Jp(e),t.blockedOn=n,!1;e.shift()}return!0}function eg(t,e,n){Br(t)&&n.delete(e)}function rb(){Os=!1,Ol!==null&&Br(Ol)&&(Ol=null),Dl!==null&&Br(Dl)&&(Dl=null),Ml!==null&&Br(Ml)&&(Ml=null),Pa.forEach(eg),Wa.forEach(eg)}function Hr(t,e){t.blockedOn===e&&(t.blockedOn=null,Os||(Os=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,rb)))}var qr=null;function ng(t){qr!==t&&(qr=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){qr===t&&(qr=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],r=t[e+2];if(typeof i!="function"){if(_s(i||n)===null)continue;break}var c=pi(n);c!==null&&(t.splice(e,3),e-=3,hc(c,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function na(t){function e(A){return Hr(A,t)}Ol!==null&&Hr(Ol,t),Dl!==null&&Hr(Dl,t),Ml!==null&&Hr(Ml,t),Pa.forEach(e),Wa.forEach(e);for(var n=0;n<jl.length;n++){var i=jl[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<jl.length&&(n=jl[0],n.blockedOn===null);)tg(n),n.blockedOn===null&&jl.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],c=n[i+1],d=r[He]||null;if(typeof c=="function")d||ng(n);else if(d){var x=null;if(c&&c.hasAttribute("formAction")){if(r=c,d=c[He]||null)x=d.formAction;else if(_s(r)!==null)continue}else x=d.action;typeof x=="function"?n[i+1]=x:(n.splice(i,3),i-=3),ng(n)}}}function lg(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Ds(t){this._internalRoot=t}Yr.prototype.render=Ds.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,i=ln();Kp(n,i,t,e,null,null)},Yr.prototype.unmount=Ds.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Kp(t.current,2,null,t,null,null),Ar(),e[mi]=null}};function Yr(t){this._internalRoot=t}Yr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Qf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<jl.length&&e!==0&&e<jl[n].priority;n++);jl.splice(n,0,t),n===0&&tg(t)}};var ig=a.version;if(ig!=="19.3.0")throw Error(o(527,ig,"19.3.0"));vt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var ob={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:rt,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{oa=Vr.inject(ob),Fe=Vr}catch{}}return nu.createRoot=function(t,e){if(!s(t))throw Error(o(299));var n=!1,i="",r=Id,c=Kd,d=Fd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=Zp(t,1,!1,null,null,n,i,null,r,c,d,lg),t[mi]=e.current,os(t),new Ds(e)},nu.hydrateRoot=function(t,e,n){if(!s(t))throw Error(o(299));var i=!1,r="",c=Id,d=Kd,x=Fd,A=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(A=n.formState)),e=Zp(t,1,!0,e,n??null,i,r,A,c,d,x,lg),e.context=Ip(null),n=e.current,i=ln(),i=uo(i),r=vl(i),r.callback=null,bl(n,r,i),n=i,e.current.lanes=n,sa(e,n),qn(e),t[mi]=e.current,os(t),new Yr(e)},nu.version="19.3.0",nu}var mg;function vb(){if(mg)return Ls.exports;mg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Ls.exports=yb(),Ls.exports}var bb=vb();function xb(l,a){const u={};return(l[l.length-1]===""?[...l,""]:l).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}const Sb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tb={};function pg(l,a){return(Tb.jsx?Eb:Sb).test(l)}const Cb=/[ \t\n\f\r]/g;function Ab(l){return typeof l=="object"?l.type==="text"?gg(l.value):!1:gg(l)}function gg(l){return l.replace(Cb,"")===""}class du{constructor(a,u,o){this.normal=u,this.property=a,o&&(this.space=o)}}du.prototype.normal={};du.prototype.property={};du.prototype.space=void 0;function fy(l,a){const u={},o={};for(const s of l)Object.assign(u,s.property),Object.assign(o,s.normal);return new du(u,o,a)}function nf(l){return l.toLowerCase()}class Ze{constructor(a,u){this.attribute=u,this.property=a}}Ze.prototype.attribute="";Ze.prototype.booleanish=!1;Ze.prototype.boolean=!1;Ze.prototype.commaOrSpaceSeparated=!1;Ze.prototype.commaSeparated=!1;Ze.prototype.defined=!1;Ze.prototype.mustUseProperty=!1;Ze.prototype.number=!1;Ze.prototype.overloadedBoolean=!1;Ze.prototype.property="";Ze.prototype.spaceSeparated=!1;Ze.prototype.space=void 0;let zb=0;const At=di(),fe=di(),lf=di(),tt=di(),Ft=di(),fi=di(),un=di();function di(){return 2**++zb}const af=Object.freeze(Object.defineProperty({__proto__:null,boolean:At,booleanish:fe,commaOrSpaceSeparated:un,commaSeparated:fi,number:tt,overloadedBoolean:lf,spaceSeparated:Ft},Symbol.toStringTag,{value:"Module"})),Hs=Object.keys(af);class gf extends Ze{constructor(a,u,o,s){let h=-1;if(super(a,u),yg(this,"space",s),typeof o=="number")for(;++h<Hs.length;){const f=Hs[h];yg(this,Hs[h],(o&af[f])===af[f])}}}gf.prototype.defined=!0;function yg(l,a,u){u&&(l[a]=u)}function ua(l){const a={},u={};for(const[o,s]of Object.entries(l.properties)){const h=new gf(o,l.transform(l.attributes||{},o),s,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(h.mustUseProperty=!0),a[o]=h,u[nf(o)]=o,u[nf(h.attribute)]=o}return new du(a,u,l.space)}const hy=ua({properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:tt,ariaColIndex:tt,ariaColSpan:tt,ariaControls:Ft,ariaCurrent:null,ariaDescribedBy:Ft,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:Ft,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:Ft,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ft,ariaLevel:tt,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:Ft,ariaPlaceholder:null,ariaPosInSet:tt,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:Ft,ariaRowCount:tt,ariaRowIndex:tt,ariaRowSpan:tt,ariaSelected:fe,ariaSetSize:tt,ariaSort:null,ariaValueMax:tt,ariaValueMin:tt,ariaValueNow:tt,ariaValueText:null,role:null},transform(l,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function dy(l,a){return a in l?l[a]:a}function my(l,a){return dy(l,a.toLowerCase())}const wb=ua({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fi,acceptCharset:Ft,accessKey:Ft,action:null,allow:null,allowFullScreen:At,allowPaymentRequest:At,allowUserMedia:At,alpha:At,alt:null,as:null,async:At,autoCapitalize:null,autoComplete:Ft,autoFocus:At,autoPlay:At,blocking:Ft,capture:null,charSet:null,checked:At,cite:null,className:Ft,closedBy:null,colorSpace:null,cols:tt,colSpan:tt,command:null,commandFor:null,content:null,contentEditable:fe,controls:At,controlsList:Ft,coords:tt|fi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:At,defer:At,dir:null,dirName:null,disabled:At,download:lf,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:At,formTarget:null,headers:Ft,height:tt,hidden:lf,high:tt,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:At,inputMode:null,integrity:null,is:null,isMap:At,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:At,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:At,low:tt,manifest:null,max:null,maxLength:tt,media:null,method:null,min:null,minLength:tt,multiple:At,muted:At,name:null,nonce:null,noModule:At,noValidate:At,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:At,optimum:tt,pattern:null,ping:Ft,placeholder:null,playsInline:At,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:At,referrerPolicy:null,rel:Ft,required:At,reversed:At,rows:tt,rowSpan:tt,sandbox:Ft,scope:null,scoped:At,seamless:At,selected:At,shadowRootClonable:At,shadowRootCustomElementRegistry:At,shadowRootDelegatesFocus:At,shadowRootMode:null,shadowRootSerializable:At,shape:null,size:tt,sizes:null,slot:null,span:tt,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tt,step:null,style:null,tabIndex:tt,target:null,title:null,translate:null,type:null,typeMustMatch:At,useMap:null,value:fe,width:tt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ft,axis:null,background:null,bgColor:null,border:tt,borderColor:null,bottomMargin:tt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:At,declare:At,event:null,face:null,frame:null,frameBorder:null,hSpace:tt,leftMargin:tt,link:null,longDesc:null,lowSrc:null,marginHeight:tt,marginWidth:tt,noResize:At,noHref:At,noShade:At,noWrap:At,object:null,profile:null,prompt:null,rev:null,rightMargin:tt,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:tt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tt,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:At,disablePictureInPicture:At,disableRemotePlayback:At,exportParts:fi,part:Ft,prefix:null,property:null,results:tt,security:null,unselectable:null},space:"html",transform:my}),kb=ua({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",maskType:"mask-type",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:un,accentHeight:tt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tt,amplitude:tt,arabicForm:null,ascent:tt,attributeName:null,attributeType:null,azimuth:tt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tt,by:null,calcMode:null,capHeight:tt,className:Ft,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:tt,diffuseConstant:tt,direction:null,display:null,dur:null,divisor:tt,dominantBaseline:null,download:At,dx:null,dy:null,edgeMode:null,editable:null,elevation:tt,enableBackground:null,end:null,event:null,exponent:tt,externalResourcesRequired:null,fill:null,fillOpacity:tt,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:fi,g2:fi,glyphName:fi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tt,horizOriginX:tt,horizOriginY:tt,id:null,ideographic:tt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tt,k:tt,k1:tt,k2:tt,k3:tt,k4:tt,kernelMatrix:un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tt,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:tt,overlineThickness:tt,paintOrder:null,panose1:null,path:null,pathLength:tt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tt,pointsAtY:tt,pointsAtZ:tt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:un,rev:un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:un,requiredFeatures:un,requiredFonts:un,requiredFormats:un,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:tt,specularExponent:tt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tt,strikethroughThickness:tt,string:null,stroke:null,strokeDashArray:un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tt,strokeOpacity:tt,strokeWidth:null,style:null,surfaceScale:tt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:un,tabIndex:tt,tableValues:null,target:null,targetX:tt,targetY:tt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tt,underlineThickness:tt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tt,values:null,vAlphabetic:tt,vMathematical:tt,vectorEffect:null,vHanging:tt,vIdeographic:tt,version:null,vertAdvY:tt,vertOriginX:tt,vertOriginY:tt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dy}),py=ua({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(l,a){return"xlink:"+a.slice(5).toLowerCase()}}),gy=ua({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:my}),yy=ua({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(l,a){return"xml:"+a.slice(3).toLowerCase()}}),Nb={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"},_b=/[A-Z]/g,vg=/-[a-z]/g,Ob=/^data[-\w.:]+$/i;function Db(l,a){const u=nf(a);let o=a,s=Ze;if(u in l.normal)return l.property[l.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&Ob.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace(vg,jb);o="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!vg.test(h)){let f=h.replace(_b,Mb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=gf}return new s(o,a)}function Mb(l){return"-"+l.toLowerCase()}function jb(l){return l.charAt(1).toUpperCase()}const Rb=fy([hy,wb,py,gy,yy],"html"),yf=fy([hy,kb,py,gy,yy],"svg");function Lb(l){return l.join(" ").trim()}var la={},qs,bg;function Ub(){if(bg)return qs;bg=1;var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,u=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,g=`
50
+ `,y="/",v="*",p="",S="comment",b="declaration";function N(H,w){if(typeof H!="string")throw new TypeError("First argument must be a string");if(!H)return[];w=w||{};var I=1,X=1;function ot(at){var W=at.match(a);W&&(I+=W.length);var P=at.lastIndexOf(g);X=~P?at.length-P:X+at.length}function F(){var at={line:I,column:X};return function(W){return W.position=new j(at),pt(),W}}function j(at){this.start=at,this.end={line:I,column:X},this.source=w.source}j.prototype.content=H;function $(at){var W=new Error(w.source+":"+I+":"+X+": "+at);if(W.reason=at,W.filename=w.source,W.line=I,W.column=X,W.source=H,!w.silent)throw W}function et(at){var W=at.exec(H);if(W){var P=W[0];return ot(P),H=H.slice(P.length),W}}function pt(){et(u)}function R(at){var W;for(at=at||[];W=V();)W!==!1&&at.push(W);return at}function V(){var at=F();if(!(y!=H.charAt(0)||v!=H.charAt(1))){for(var W=2;p!=H.charAt(W)&&(v!=H.charAt(W)||y!=H.charAt(W+1));)++W;if(W+=2,p===H.charAt(W-1))return $("End of comment missing");var P=H.slice(2,W-2);return X+=2,ot(P),H=H.slice(W),X+=2,at({type:S,comment:P})}}function J(){var at=F(),W=et(o);if(W){if(V(),!et(s))return $("property missing ':'");var P=et(h),ut=at({type:b,property:q(W[0].replace(l,p)),value:P?q(P[0].replace(l,p)):p});return et(f),ut}}function mt(){var at=[];R(at);for(var W;W=J();)W!==!1&&(at.push(W),R(at));return at}return pt(),mt()}function q(H){return H?H.replace(m,p):p}return qs=N,qs}var xg;function Bb(){if(xg)return la;xg=1;var l=la&&la.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(la,"__esModule",{value:!0}),la.default=u;const a=l(Ub());function u(o,s){let h=null;if(!o||typeof o!="string")return h;const f=(0,a.default)(o),m=typeof s=="function";return f.forEach(g=>{if(g.type!=="declaration")return;const{property:y,value:v}=g;m?s(y,v,g):v&&(h=h||{},h[y]=v)}),h}return la}var lu={},Sg;function Hb(){if(Sg)return lu;Sg=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.camelCase=void 0;var l=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,u=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,h=function(y){return!y||u.test(y)||l.test(y)},f=function(y,v){return v.toUpperCase()},m=function(y,v){return"".concat(v,"-")},g=function(y,v){return v===void 0&&(v={}),h(y)?y:(y=y.toLowerCase(),v.reactCompat?y=y.replace(s,m):y=y.replace(o,m),y.replace(a,f))};return lu.camelCase=g,lu}var iu,Eg;function qb(){if(Eg)return iu;Eg=1;var l=iu&&iu.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=l(Bb()),u=Hb();function o(s,h){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(m,g){m&&g&&(f[(0,u.camelCase)(m,h)]=g)}),f}return o.default=o,iu=o,iu}var Yb=qb();const Vb=cy(Yb),vy=by("end"),vf=by("start");function by(l){return a;function a(u){const o=u&&u.position&&u.position[l]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Gb(l){const a=vf(l),u=vy(l);if(a&&u)return{start:a,end:u}}function ou(l){return!l||typeof l!="object"?"":"position"in l||"type"in l?Tg(l.position):"start"in l||"end"in l?Tg(l):"line"in l||"column"in l?uf(l):""}function uf(l){return Cg(l&&l.line)+":"+Cg(l&&l.column)}function Tg(l){return uf(l&&l.start)+"-"+uf(l&&l.end)}function Cg(l){return l&&typeof l=="number"?l:1}class _e extends Error{constructor(a,u,o){super(),typeof u=="string"&&(o=u,u=void 0);let s="",h={},f=!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"?s=a:!h.cause&&a&&(f=!0,s=a.message,h.cause=a),!h.ruleId&&!h.source&&typeof o=="string"){const g=o.indexOf(":");g===-1?h.ruleId=o:(h.source=o.slice(0,g),h.ruleId=o.slice(g+1))}if(!h.place&&h.ancestors&&h.ancestors){const g=h.ancestors[h.ancestors.length-1];g&&(h.place=g.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=s,this.line=m?m.line:void 0,this.name=ou(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=f&&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}}_e.prototype.file="";_e.prototype.name="";_e.prototype.reason="";_e.prototype.message="";_e.prototype.stack="";_e.prototype.column=void 0;_e.prototype.line=void 0;_e.prototype.ancestors=void 0;_e.prototype.cause=void 0;_e.prototype.fatal=void 0;_e.prototype.place=void 0;_e.prototype.ruleId=void 0;_e.prototype.source=void 0;const bf={}.hasOwnProperty,Xb=new Map,Qb=/[A-Z]/g,Zb=new Set(["table","tbody","thead","tfoot","tr"]),Ib=new Set(["td","th"]),xy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kb(l,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const u=a.filePath||void 0;let o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=nx(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");o=ex(u,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,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"?yf:Rb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=Sy(s,l,void 0);return h&&typeof h!="string"?h:s.create(l,s.Fragment,{children:h||void 0},void 0)}function Sy(l,a,u){if(a.type==="element")return Fb(l,a,u);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Jb(l,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Pb(l,a,u);if(a.type==="mdxjsEsm")return $b(l,a);if(a.type==="root")return Wb(l,a,u);if(a.type==="text")return tx(l,a)}function Fb(l,a,u){const o=l.schema;let s=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=yf,l.schema=s),l.ancestors.push(a);const h=Ty(l,a.tagName,!1),f=lx(l,a);let m=Sf(l,a);return Zb.has(a.tagName)&&(m=m.filter(function(g){return typeof g=="string"?!Ab(g):!0})),Ey(l,f,h,a),xf(f,m),l.ancestors.pop(),l.schema=o,l.create(a,h,f,u)}function Jb(l,a){if(a.data&&a.data.estree&&l.evaluater){const o=a.data.estree.body[0];return o.type,l.evaluater.evaluateExpression(o.expression)}fu(l,a.position)}function $b(l,a){if(a.data&&a.data.estree&&l.evaluater)return l.evaluater.evaluateProgram(a.data.estree);fu(l,a.position)}function Pb(l,a,u){const o=l.schema;let s=o;a.name==="svg"&&o.space==="html"&&(s=yf,l.schema=s),l.ancestors.push(a);const h=a.name===null?l.Fragment:Ty(l,a.name,!0),f=ix(l,a),m=Sf(l,a);return Ey(l,f,h,a),xf(f,m),l.ancestors.pop(),l.schema=o,l.create(a,h,f,u)}function Wb(l,a,u){const o={};return xf(o,Sf(l,a)),l.create(a,l.Fragment,o,u)}function tx(l,a){return a.value}function Ey(l,a,u,o){typeof u!="string"&&u!==l.Fragment&&l.passNode&&(a.node=o)}function xf(l,a){if(a.length>0){const u=a.length>1?a:a[0];u&&(l.children=u)}}function ex(l,a,u){return o;function o(s,h,f,m){const y=Array.isArray(f.children)?u:a;return m?y(h,f,m):y(h,f)}}function nx(l,a){return u;function u(o,s,h,f){const m=Array.isArray(h.children),g=vf(o);return a(s,h,f,m,{columnNumber:g?g.column-1:void 0,fileName:l,lineNumber:g?g.line:void 0},void 0)}}function lx(l,a){const u={};let o,s;for(s in a.properties)if(s!=="children"&&bf.call(a.properties,s)){const h=ax(l,s,a.properties[s]);if(h){const[f,m]=h;l.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&Ib.has(a.tagName)?o=m:u[f]=m}}if(o){const h=u.style||(u.style={});h[l.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return u}function ix(l,a){const u={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&l.evaluater){const h=o.data.estree.body[0];h.type;const f=h.expression;f.type;const m=f.properties[0];m.type,Object.assign(u,l.evaluater.evaluateExpression(m.argument))}else fu(l,a.position);else{const s=o.name;let h;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&l.evaluater){const m=o.value.data.estree.body[0];m.type,h=l.evaluater.evaluateExpression(m.expression)}else fu(l,a.position);else h=o.value===null?!0:o.value;u[s]=h}return u}function Sf(l,a){const u=[];let o=-1;const s=l.passKeys?new Map:Xb;for(;++o<a.children.length;){const h=a.children[o];let f;if(l.passKeys){const g=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(g){const y=s.get(g)||0;f=g+"-"+y,s.set(g,y+1)}}const m=Sy(l,h,f);m!==void 0&&u.push(m)}return u}function ax(l,a,u){const o=Db(l.schema,a);if(!(u==null||typeof u=="number"&&Number.isNaN(u))){if(Array.isArray(u)&&(u=o.commaSeparated?xb(u):Lb(u)),o.property==="style"){let s=typeof u=="object"?u:ux(l,String(u));return l.stylePropertyNameCase==="css"&&(s=rx(s)),["style",s]}return[l.elementAttributeNameCase==="react"&&o.space?Nb[o.property]||o.property:o.attribute,u]}}function ux(l,a){try{return Vb(a,{reactCompat:!0})}catch(u){if(l.ignoreInvalidStyle)return{};const o=u,s=new _e("Cannot parse `style` attribute",{ancestors:l.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=l.filePath||void 0,s.url=xy+"#cannot-parse-style-attribute",s}}function Ty(l,a,u){let o;if(!u)o={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let h=-1,f;for(;++h<s.length;){const m=pg(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(h&&m.type==="Literal"),optional:!1}:m}o=f}else o=pg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const s=o.value;return bf.call(l.components,s)?l.components[s]:s}if(l.evaluater)return l.evaluater.evaluateExpression(o);fu(l)}function fu(l,a){const u=new _e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:l.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw u.file=l.filePath||void 0,u.url=xy+"#cannot-handle-mdx-estrees-without-createevaluater",u}function rx(l){const a={};let u;for(u in l)bf.call(l,u)&&(a[ox(u)]=l[u]);return a}function ox(l){let a=l.replace(Qb,cx);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function cx(l){return"-"+l.toLowerCase()}const Ys={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"]},sx={};function Ef(l,a){const u=sx,o=typeof u.includeImageAlt=="boolean"?u.includeImageAlt:!0,s=typeof u.includeHtml=="boolean"?u.includeHtml:!0;return Cy(l,o,s)}function Cy(l,a,u){if(fx(l)){if("value"in l)return l.type==="html"&&!u?"":l.value;if(a&&"alt"in l&&l.alt)return l.alt;if("children"in l)return Ag(l.children,a,u)}return Array.isArray(l)?Ag(l,a,u):""}function Ag(l,a,u){const o=[];let s=-1;for(;++s<l.length;)o[s]=Cy(l[s],a,u);return o.join("")}function fx(l){return!!(l&&typeof l=="object")}const zg=document.createElement("i");function Tf(l){const a="&"+l+";";zg.innerHTML=a;const u=zg.textContent;return u.charCodeAt(u.length-1)===59&&l!=="semi"||u===a?!1:u}function kn(l,a,u,o){const s=l.length;let h=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,u=u>0?u:0,o.length<1e4)f=Array.from(o),f.unshift(a,u),l.splice(...f);else for(u&&l.splice(a,u);h<o.length;)f=o.slice(h,h+1e4),f.unshift(a,0),l.splice(...f),h+=1e4,a+=1e4}function bn(l,a){return l.length>0?(kn(l,l.length,0,a),l):a}const wg={}.hasOwnProperty;function Ay(l){const a={};let u=-1;for(;++u<l.length;)hx(a,l[u]);return a}function hx(l,a){let u;for(u in a){const s=(wg.call(l,u)?l[u]:void 0)||(l[u]={}),h=a[u];let f;if(h)for(f in h){wg.call(s,f)||(s[f]=[]);const m=h[f];dx(s[f],Array.isArray(m)?m:m?[m]:[])}}}function dx(l,a){let u=-1;const o=[];for(;++u<a.length;)(a[u].add==="after"?l:o).push(a[u]);kn(l,0,0,o)}function zy(l,a){const u=Number.parseInt(l,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 Nn(l){return l.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ue=Ul(/[A-Za-z]/),Ne=Ul(/[\dA-Za-z]/),mx=Ul(/[#-'*+\--9=?A-Z^-~]/);function Fr(l){return l!==null&&(l<32||l===127)}const rf=Ul(/\d/),px=Ul(/[\dA-Fa-f]/),gx=Ul(/[!-/:-@[-`{-~]/);function bt(l){return l!==null&&l<-2}function Jt(l){return l!==null&&(l<0||l===32)}function Ot(l){return l===-2||l===-1||l===32}const to=Ul(new RegExp("\\p{P}|\\p{S}","u")),hi=Ul(/\s/);function Ul(l){return a;function a(u){return u!==null&&u>-1&&l.test(String.fromCharCode(u))}}function ra(l){const a=[];let u=-1,o=0,s=0;for(;++u<l.length;){const h=l.charCodeAt(u);let f="";if(h===37&&Ne(l.charCodeAt(u+1))&&Ne(l.charCodeAt(u+2)))s=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(f=String.fromCharCode(h));else if(h>55295&&h<57344){const m=l.charCodeAt(u+1);h<56320&&m>56319&&m<57344?(f=String.fromCharCode(h,m),s=1):f="�"}else f=String.fromCharCode(h);f&&(a.push(l.slice(o,u),encodeURIComponent(f)),o=u+s+1,f=""),s&&(u+=s,s=0)}return a.join("")+l.slice(o)}function Ht(l,a,u,o){const s=o?o-1:1/0;let h=0;return f;function f(g){return Ot(g)?(l.enter(u),m(g)):a(g)}function m(g){return Ot(g)&&h++<s?(l.consume(g),m):(l.exit(u),a(g))}}function wy(l,a,u,o,s,h){let f=0;return m;function m(v){return Ot(v)?(l.enter(o),g(v)):y(v)}function g(v){return Ot(v)&&f<h?(l.consume(v),f++,g):(l.exit(o),y(v))}function y(v){return f>=s?a(v):u(v)}}const yx={tokenize:vx};function vx(l){const a=l.attempt(this.parser.constructs.contentInitial,o,s);let u;return a;function o(m){if(m===null){l.consume(m);return}return l.enter("lineEnding"),l.consume(m),l.exit("lineEnding"),Ht(l,a,"linePrefix")}function s(m){return l.enter("paragraph"),h(m)}function h(m){const g=l.enter("chunkText",{contentType:"text",previous:u});return u&&(u.next=g),u=g,f(m)}function f(m){if(m===null){l.exit("chunkText"),l.exit("paragraph"),l.consume(m);return}return bt(m)?(l.consume(m),l.exit("chunkText"),h):(l.consume(m),f)}}let Jr=class{constructor(){this.index=new Map,this.map=[]}add(a,u,o){kg(this,a,u,o,!1)}addBefore(a,u,o){kg(this,a,u,o,!0)}consume(a){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let u=this.map.length;const o=[];for(;u>0;)u-=1,o.push(a.slice(this.map[u][0]+this.map[u][1]),this.map[u][2]),a.length=this.map[u][0];o.push(a.slice()),a.length=0;let s=o.pop();for(;s;){for(const h of s)a.push(h);s=o.pop()}this.map.length=0,this.index.clear()}};function kg(l,a,u,o,s){if(u===0&&o.length===0)return;const h=l.index.get(a);if(h){h[1]+=u,s?(o.push(...h[2]),h[2]=o):h[2].push(...o);return}const f=[a,u,o];l.map.push(f),l.index.set(a,f)}const bx={tokenize:xx},Ng={tokenize:Sx};function xx(l){const a=this,u=[];let o=0,s,h,f;return m;function m(X){if(o<u.length){const ot=u[o];return a.containerState=ot[1],l.attempt(ot[0].continuation,g,y)(X)}return y(X)}function g(X){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&I();const ot=a.events.length;let F=ot,j;for(;F--;)if(a.events[F][0]==="exit"&&a.events[F][1].type==="chunkFlow"){j=a.events[F][1].end;break}w(o);let $=ot;for(;$<a.events.length;)a.events[$][1].end={...j},$++;const et=new Jr;return et.add(F+1,0,a.events.slice(ot)),et.add(ot,$-ot,[]),et.consume(a.events),y(X)}return m(X)}function y(X){if(o===u.length){if(!s)return S(X);if(s.currentConstruct&&s.currentConstruct.concrete)return N(X);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},l.check(Ng,v,p)(X)}function v(X){return s&&I(),w(o),S(X)}function p(X){return a.parser.lazy[a.now().line]=o!==u.length,f=a.now().offset,N(X)}function S(X){return a.containerState={},l.attempt(Ng,b,N)(X)}function b(X){return o++,u.push([a.currentConstruct,a.containerState]),S(X)}function N(X){if(X===null){s&&I(),w(0),l.consume(X);return}return s=s||a.parser.flow(a.now()),l.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),q(X)}function q(X){if(X===null){H(l.exit("chunkFlow"),!0),w(0),l.consume(X);return}return bt(X)?(l.consume(X),H(l.exit("chunkFlow")),o=0,a.interrupt=void 0,m):(l.consume(X),q)}function H(X,ot){const F=a.sliceStream(X);if(ot&&F.push(null),X.previous=h,h&&(h.next=X),h=X,s.defineSkip(X.start),s.write(F),a.parser.lazy[X.start.line]){let j=s.events.length;for(;j--;)if(s.events[j][1].start.offset<f&&(!s.events[j][1].end||s.events[j][1].end.offset>f))return;const $=a.events.length;let et=$,pt,R;for(;et--;)if(a.events[et][0]==="exit"&&a.events[et][1].type==="chunkFlow"){if(pt){R=a.events[et][1].end;break}pt=!0}for(w(o),j=$;j<a.events.length;)a.events[j][1].end={...R},j++;const V=new Jr;V.add(et+1,0,a.events.slice($)),V.add($,j-$,[]),V.consume(a.events)}}function w(X){let ot=u.length;for(;ot-- >X;){const F=u[ot];a.containerState=F[1],F[0].exit.call(a,l)}u.length=X}function I(){s.write([null]),h=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Sx(l,a,u){return Ht(l,l.attempt(this.parser.constructs.document,a,u),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $r(l){if(l===null||Jt(l)||hi(l))return 1;if(to(l))return 2}function eo(l,a,u){const o=[];let s=-1;for(;++s<l.length;){const h=l[s].resolveAll;h&&!o.includes(h)&&(a=h(a,u),o.push(h))}return a}const of={name:"attention",resolveAll:Ex,tokenize:Tx};function Ex(l,a){let u=-1,o;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="attentionSequence"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="attentionSequence"&&l[s][1]._open&&a.sliceSerialize(l[s][1]).charCodeAt(0)===a.sliceSerialize(l[u][1]).charCodeAt(0)){if((l[s][1]._close||l[u][1]._open)&&(l[u][1].end.offset-l[u][1].start.offset)%3&&!((l[s][1].end.offset-l[s][1].start.offset+l[u][1].end.offset-l[u][1].start.offset)%3))continue;const h=l[s][1].end.offset-l[s][1].start.offset>1&&l[u][1].end.offset-l[u][1].start.offset>1?2:1,f={...l[s][1].end},m={...l[u][1].start};_g(f,-h),_g(m,h);const g={type:h>1?"strongSequence":"emphasisSequence",start:f,end:{...l[s][1].end}},y={type:h>1?"strongSequence":"emphasisSequence",start:{...l[u][1].start},end:m},v={type:h>1?"strongText":"emphasisText",start:{...l[s][1].end},end:{...l[u][1].start}},p={type:h>1?"strong":"emphasis",start:{...g.start},end:{...y.end}};l[s][1].end={...g.start},l[u][1].start={...y.end},o=[],l[s][1].end.offset-l[s][1].start.offset&&(o=bn(o,[["enter",l[s][1],a],["exit",l[s][1],a]])),o=bn(o,[["enter",p,a],["enter",g,a],["exit",g,a],["enter",v,a]]),o=bn(o,eo(a.parser.constructs.insideSpan.null,l.slice(s+1,u),a)),o=bn(o,[["exit",v,a],["enter",y,a],["exit",y,a],["exit",p,a]]);let S=0;l[u][1].end.offset-l[u][1].start.offset&&(S=2,o=bn(o,[["enter",l[u][1],a],["exit",l[u][1],a]])),kn(l,s-1,u-s+3,o),u=s+o.length-S-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="attentionSequence"&&(l[u][1].type="data");return l}function Tx(l,a){const u=this.parser.constructs.attentionMarkers.null,o=this.previous,s=$r(o);let h;return f;function f(g){return h=g,l.enter("attentionSequence"),m(g)}function m(g){if(g===h)return l.consume(g),m;const y=l.exit("attentionSequence"),v=$r(g),p=!v||v===2&&s||u.includes(g)&&g!==42&&g!==95,S=!s||s===2&&v||u.includes(o)&&o!==42&&o!==95;return y._open=!!(h===42?p:p&&(s||!S)),y._close=!!(h===42?S:S&&(v||!p)),a(g)}}function _g(l,a){l.column+=a,l.offset+=a,l._bufferIndex+=a}const Cx={name:"autolink",tokenize:Ax};function Ax(l,a,u){let o=0;return s;function s(b){return l.enter("autolink"),l.enter("autolinkMarker"),l.consume(b),l.exit("autolinkMarker"),l.enter("autolinkProtocol"),h}function h(b){return Ue(b)?(l.consume(b),f):b===64?u(b):y(b)}function f(b){return b===43||b===45||b===46||Ne(b)?(o=1,m(b)):y(b)}function m(b){return b===58?(l.consume(b),o=0,g):(b===43||b===45||b===46||Ne(b))&&o++<32?(l.consume(b),m):(o=0,y(b))}function g(b){return b===62?(l.exit("autolinkProtocol"),l.enter("autolinkMarker"),l.consume(b),l.exit("autolinkMarker"),l.exit("autolink"),a):b===null||b===32||b===60||Fr(b)?u(b):(l.consume(b),g)}function y(b){return b===64?(l.consume(b),v):mx(b)?(l.consume(b),y):u(b)}function v(b){return Ne(b)?p(b):u(b)}function p(b){return b===46?(l.consume(b),o=0,v):b===62?(l.exit("autolinkProtocol").type="autolinkEmail",l.enter("autolinkMarker"),l.consume(b),l.exit("autolinkMarker"),l.exit("autolink"),a):S(b)}function S(b){if((b===45||Ne(b))&&o++<63){const N=b===45?S:p;return l.consume(b),N}return u(b)}}const mu={partial:!0,tokenize:zx};function zx(l,a,u){return o;function o(h){return Ot(h)?Ht(l,s,"linePrefix")(h):s(h)}function s(h){return h===null||bt(h)?a(h):u(h)}}const ky={continuation:{tokenize:kx},exit:Nx,name:"blockQuote",tokenize:wx};function wx(l,a,u){const o=this;return s;function s(f){if(f===62){const m=o.containerState;return m.open||(l.enter("blockQuote",{_container:!0}),m.open=!0),l.enter("blockQuotePrefix"),l.enter("blockQuoteMarker"),l.consume(f),l.exit("blockQuoteMarker"),h}return u(f)}function h(f){return Ot(f)?(l.enter("blockQuotePrefixWhitespace"),l.consume(f),l.exit("blockQuotePrefixWhitespace"),l.exit("blockQuotePrefix"),a):(l.exit("blockQuotePrefix"),a(f))}}function kx(l,a,u){const o=this;return s;function s(f){return Ot(f)?Ht(l,h,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return l.attempt(ky,a,u)(f)}}function Nx(l){l.exit("blockQuote")}const Ny={name:"characterEscape",tokenize:_x};function _x(l,a,u){return o;function o(h){return l.enter("characterEscape"),l.enter("escapeMarker"),l.consume(h),l.exit("escapeMarker"),s}function s(h){return gx(h)?(l.enter("characterEscapeValue"),l.consume(h),l.exit("characterEscapeValue"),l.exit("characterEscape"),a):u(h)}}const _y={name:"characterReference",tokenize:Ox};function Ox(l,a,u){const o=this;let s=0,h,f;return m;function m(p){return l.enter("characterReference"),l.enter("characterReferenceMarker"),l.consume(p),l.exit("characterReferenceMarker"),g}function g(p){return p===35?(l.enter("characterReferenceMarkerNumeric"),l.consume(p),l.exit("characterReferenceMarkerNumeric"),y):(l.enter("characterReferenceValue"),h=31,f=Ne,v(p))}function y(p){return p===88||p===120?(l.enter("characterReferenceMarkerHexadecimal"),l.consume(p),l.exit("characterReferenceMarkerHexadecimal"),l.enter("characterReferenceValue"),h=6,f=px,v):(l.enter("characterReferenceValue"),h=7,f=rf,v(p))}function v(p){if(p===59&&s){const S=l.exit("characterReferenceValue");return f===Ne&&!Tf(o.sliceSerialize(S))?u(p):(l.enter("characterReferenceMarker"),l.consume(p),l.exit("characterReferenceMarker"),l.exit("characterReference"),a)}return f(p)&&s++<h?(l.consume(p),v):u(p)}}const cf={partial:!0,tokenize:Dx};function Dx(l,a,u){const o=this;return s;function s(f){return f===null?u(f):(l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),h)}function h(f){return o.parser.lazy[o.now().line]?u(f):a(f)}}const Og={concrete:!0,name:"codeFenced",tokenize:Mx};function Mx(l,a,u){const o=this,s={partial:!0,tokenize:F};let h=0,f=0,m;return g;function g(j){return y(j)}function y(j){const $=o.events[o.events.length-1];return h=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,m=j,l.enter("codeFenced"),l.enter("codeFencedFence"),l.enter("codeFencedFenceSequence"),v(j)}function v(j){return j===m?(f++,l.consume(j),v):f<3?u(j):(l.exit("codeFencedFenceSequence"),Ot(j)?Ht(l,p,"whitespace")(j):p(j))}function p(j){return j===null||bt(j)?(l.exit("codeFencedFence"),o.interrupt?a(j):l.check(cf,q,ot)(j)):(l.enter("codeFencedFenceInfo"),l.enter("chunkString",{contentType:"string"}),S(j))}function S(j){return j===null||bt(j)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),p(j)):Ot(j)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),Ht(l,b,"whitespace")(j)):j===96&&j===m?u(j):(l.consume(j),S)}function b(j){return j===null||bt(j)?p(j):(l.enter("codeFencedFenceMeta"),l.enter("chunkString",{contentType:"string"}),N(j))}function N(j){return j===null||bt(j)?(l.exit("chunkString"),l.exit("codeFencedFenceMeta"),p(j)):j===96&&j===m?u(j):(l.consume(j),N)}function q(j){return l.attempt(s,ot,H)(j)}function H(j){return l.enter("lineEnding"),l.consume(j),l.exit("lineEnding"),w}function w(j){return h>0&&Ot(j)?Ht(l,I,"linePrefix",h+1)(j):I(j)}function I(j){return j===null||bt(j)?l.check(cf,q,ot)(j):(l.enter("codeFlowValue"),X(j))}function X(j){return j===null||bt(j)?(l.exit("codeFlowValue"),I(j)):(l.consume(j),X)}function ot(j){return l.exit("codeFenced"),a(j)}function F(j,$,et){let pt=0;return R;function R(W){return j.enter("lineEnding"),j.consume(W),j.exit("lineEnding"),V}function V(W){return j.enter("codeFencedFence"),Ot(W)?Ht(j,J,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):J(W)}function J(W){return W===m?(j.enter("codeFencedFenceSequence"),mt(W)):et(W)}function mt(W){return W===m?(pt++,j.consume(W),mt):pt>=f?(j.exit("codeFencedFenceSequence"),Ot(W)?Ht(j,at,"whitespace")(W):at(W)):et(W)}function at(W){return W===null||bt(W)?(j.exit("codeFencedFence"),$(W)):et(W)}}}const Vs={name:"codeIndented",tokenize:Rx},jx={partial:!0,tokenize:Lx};function Rx(l,a,u){return o;function o(m){return l.enter("codeIndented"),wy(l,s,u,"linePrefix",4,4)(m)}function s(m){return m===null?f(m):bt(m)?l.attempt(jx,s,f)(m):(l.enter("codeFlowValue"),h(m))}function h(m){return m===null||bt(m)?(l.exit("codeFlowValue"),s(m)):(l.consume(m),h)}function f(m){return l.exit("codeIndented"),a(m)}}function Lx(l,a,u){const o=this;return s;function s(f){return o.parser.lazy[o.now().line]?u(f):bt(f)?(l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),s):wy(l,a,h,"linePrefix",4,4)(f)}function h(f){return bt(f)?s(f):u(f)}}const Ux={name:"codeText",previous:Hx,resolve:Bx,tokenize:qx};function Bx(l){let a=l.length-4,u=3,o,s;if((l[u][1].type==="lineEnding"||l[u][1].type==="space")&&(l[a][1].type==="lineEnding"||l[a][1].type==="space")){for(o=u;++o<a;)if(l[o][1].type==="codeTextData"){l[u][1].type="codeTextPadding",l[a][1].type="codeTextPadding",u+=2,a-=2;break}}for(o=u-1,a++;++o<=a;)s===void 0?o!==a&&l[o][1].type!=="lineEnding"&&(s=o):(o===a||l[o][1].type==="lineEnding")&&(l[s][1].type="codeTextData",o!==s+2&&(l[s][1].end=l[o-1][1].end,l.splice(s+2,o-s-2),a-=o-s-2,o=s+2),s=void 0);return l}function Hx(l){return l!==96||this.events[this.events.length-1][1].type==="characterEscape"}function qx(l,a,u){let o=0,s,h;return f;function f(p){return l.enter("codeText"),l.enter("codeTextSequence"),m(p)}function m(p){return p===96?(l.consume(p),o++,m):(l.exit("codeTextSequence"),g(p))}function g(p){return p===null?u(p):p===32?(l.enter("space"),l.consume(p),l.exit("space"),g):p===96?(h=l.enter("codeTextSequence"),s=0,v(p)):bt(p)?(l.enter("lineEnding"),l.consume(p),l.exit("lineEnding"),g):(l.enter("codeTextData"),y(p))}function y(p){return p===null||p===32||p===96||bt(p)?(l.exit("codeTextData"),g(p)):(l.consume(p),y)}function v(p){return p===96?(l.consume(p),s++,v):s===o?(l.exit("codeTextSequence"),l.exit("codeText"),a(p)):(h.type="codeTextData",y(p))}}class Yx{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 o=u??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,u,o){const s=u||0;this.setCursor(Math.trunc(a));const h=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&au(this.left,o),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),au(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),au(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);au(this.right,u.reverse())}else{const u=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);au(this.left,u.reverse())}}}function au(l,a){let u=0;if(a.length<1e4)l.push(...a);else for(;u<a.length;)l.push(...a.slice(u,u+1e4)),u+=1e4}function Oy(l){const a={};let u=-1,o,s,h,f,m,g,y;const v=new Yx(l);for(;++u<v.length;){for(;u in a;)u=a[u];if(o=v.get(u),u&&o[1].type==="chunkFlow"&&v.get(u-1)[1].type==="listItemPrefix"&&(g=o[1]._tokenizer.events,h=0,h<g.length&&g[h][1].type==="lineEndingBlank"&&(h+=2),h<g.length&&g[h][1].type==="content"))for(;++h<g.length&&g[h][1].type!=="content";)g[h][1].type==="chunkText"&&(g[h][1]._isInFirstContentOfListItem=!0,h++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,Vx(v,u)),u=a[u],y=!0);else if(o[1]._container){for(h=u,s=void 0;h--;)if(f=v.get(h),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(v.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=h);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(o[1].end={...v.get(s)[1].start},m=v.slice(s,u),m.unshift(o),v.splice(s,u-s+1,m))}}return kn(l,0,Number.POSITIVE_INFINITY,v.slice(0)),!y}function Vx(l,a){const u=l.get(a)[1],o=l.get(a)[2];let s=a-1;const h=[];let f=u._tokenizer;f||(f=o.parser[u.contentType](u.start),u._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,g=[],y={};let v,p,S=-1,b=u,N=0,q=0;const H=[q];for(;b;){for(;l.get(++s)[1]!==b;);h.push(s),b._tokenizer||(v=o.sliceStream(b),b.next||v.push(null),p&&f.defineSkip(b.start),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(v),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),p=b,b=b.next}for(b=u;++S<m.length;)m[S][0]==="exit"&&m[S-1][0]==="enter"&&m[S][1].type===m[S-1][1].type&&m[S][1].start.line!==m[S][1].end.line&&(q=S+1,H.push(q),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(f.events=[],b?(b._tokenizer=void 0,b.previous=void 0):H.pop(),S=H.length;S--;){const w=m.slice(H[S],H[S+1]),I=h.pop();g.push([I,I+w.length-1]),l.splice(I,2,w)}for(g.reverse(),S=-1;++S<g.length;)y[N+g[S][0]]=N+g[S][1],N+=g[S][1]-g[S][0]-1;return y}const Gx={resolve:Qx,tokenize:Zx},Xx={partial:!0,tokenize:Ix};function Qx(l){return Oy(l),l}function Zx(l,a){let u;return o;function o(m){return l.enter("content"),u=l.enter("chunkContent",{contentType:"content"}),s(m)}function s(m){return m===null?h(m):bt(m)?l.check(Xx,f,h)(m):(l.consume(m),s)}function h(m){return l.exit("chunkContent"),l.exit("content"),a(m)}function f(m){return l.consume(m),l.exit("chunkContent"),u.next=l.enter("chunkContent",{contentType:"content",previous:u}),u=u.next,s}}function Ix(l,a,u){const o=this;return s;function s(f){return l.exit("chunkContent"),l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),Ht(l,h,"linePrefix")}function h(f){if(f===null||bt(f))return u(f);const m=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(f):l.interrupt(o.parser.constructs.flow,u,a)(f)}}function Dy(l,a,u,o,s,h,f,m,g){const y=g||Number.POSITIVE_INFINITY;let v=0;return p;function p(w){return w===60?(l.enter(o),l.enter(s),l.enter(h),l.consume(w),l.exit(h),S):w===null||w===32||w===41||Fr(w)?u(w):(l.enter(o),l.enter(f),l.enter(m),l.enter("chunkString",{contentType:"string"}),q(w))}function S(w){return w===62?(l.enter(h),l.consume(w),l.exit(h),l.exit(s),l.exit(o),a):(l.enter(m),l.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===62?(l.exit("chunkString"),l.exit(m),S(w)):w===null||w===60||bt(w)?u(w):(l.consume(w),w===92?N:b)}function N(w){return w===60||w===62||w===92?(l.consume(w),b):b(w)}function q(w){return!v&&(w===null||w===41||Jt(w))?(l.exit("chunkString"),l.exit(m),l.exit(f),l.exit(o),a(w)):v<y&&w===40?(l.consume(w),v++,q):w===41?(l.consume(w),v--,q):w===null||w===32||w===40||Fr(w)?u(w):(l.consume(w),w===92?H:q)}function H(w){return w===40||w===41||w===92?(l.consume(w),q):q(w)}}function My(l,a,u,o,s,h){const f=this;let m=0,g;return y;function y(b){return l.enter(o),l.enter(s),l.consume(b),l.exit(s),l.enter(h),v}function v(b){return m>999||b===null||b===91||b===93&&!g||b===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?u(b):b===93?(l.exit(h),l.enter(s),l.consume(b),l.exit(s),l.exit(o),a):bt(b)?(l.enter("lineEnding"),l.consume(b),l.exit("lineEnding"),v):(l.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||b===91||b===93||bt(b)||m++>999?(l.exit("chunkString"),v(b)):(l.consume(b),g||(g=!Ot(b)),b===92?S:p)}function S(b){return b===91||b===92||b===93?(l.consume(b),m++,p):p(b)}}function jy(l,a,u,o,s,h){let f;return m;function m(S){return S===34||S===39||S===40?(l.enter(o),l.enter(s),l.consume(S),l.exit(s),f=S===40?41:S,g):u(S)}function g(S){return S===f?(l.enter(s),l.consume(S),l.exit(s),l.exit(o),a):(l.enter(h),y(S))}function y(S){return S===f?(l.exit(h),g(f)):S===null?u(S):bt(S)?(l.enter("lineEnding"),l.consume(S),l.exit("lineEnding"),Ht(l,y,"linePrefix")):(l.enter("chunkString",{contentType:"string"}),v(S))}function v(S){return S===f||S===null||bt(S)?(l.exit("chunkString"),y(S)):(l.consume(S),S===92?p:v)}function p(S){return S===f||S===92?(l.consume(S),v):v(S)}}function cu(l,a){let u;return o;function o(s){return bt(s)?(l.enter("lineEnding"),l.consume(s),l.exit("lineEnding"),u=!0,o):Ot(s)?Ht(l,o,u?"linePrefix":"lineSuffix")(s):a(s)}}const Kx={name:"definition",tokenize:Jx},Fx={partial:!0,tokenize:$x};function Jx(l,a,u){const o=this;let s;return h;function h(b){return l.enter("definition"),f(b)}function f(b){return My.call(o,l,m,u,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function m(b){return s=Nn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),b===58?(l.enter("definitionMarker"),l.consume(b),l.exit("definitionMarker"),g):u(b)}function g(b){return Jt(b)?cu(l,y)(b):y(b)}function y(b){return Dy(l,v,u,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function v(b){return l.attempt(Fx,p,p)(b)}function p(b){return Ot(b)?Ht(l,S,"whitespace")(b):S(b)}function S(b){return b===null||bt(b)?(l.exit("definition"),o.parser.defined.push(s),a(b)):u(b)}}function $x(l,a,u){return o;function o(m){return Jt(m)?cu(l,s)(m):u(m)}function s(m){return jy(l,h,u,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function h(m){return Ot(m)?Ht(l,f,"whitespace")(m):f(m)}function f(m){return m===null||bt(m)?a(m):u(m)}}const Px={name:"hardBreakEscape",tokenize:Wx};function Wx(l,a,u){return o;function o(h){return l.enter("hardBreakEscape"),l.consume(h),s}function s(h){return bt(h)?(l.exit("hardBreakEscape"),a(h)):u(h)}}const tS={name:"headingAtx",resolve:eS,tokenize:nS};function eS(l,a){let u=l.length-2,o=3;if(l[o][1].type==="whitespace"&&(o+=2),u-2>o&&l[u][1].type==="whitespace"&&(u-=2),l[u][1].type==="atxHeadingSequence"&&(o===u-1||u-4>o&&l[u-2][1].type==="whitespace")&&(u-=o+1===u?2:4),u>o){const s={type:"atxHeadingText",start:l[o][1].start,end:l[u][1].end},h={type:"chunkText",start:l[o][1].start,end:l[u][1].end,contentType:"text"};kn(l,o,u-o+1,[["enter",s,a],["enter",h,a],["exit",h,a],["exit",s,a]])}return l}function nS(l,a,u){let o=0;return s;function s(v){return l.enter("atxHeading"),h(v)}function h(v){return l.enter("atxHeadingSequence"),f(v)}function f(v){return v===35&&o++<6?(l.consume(v),f):v===null||Jt(v)?(l.exit("atxHeadingSequence"),m(v)):u(v)}function m(v){return v===35?(l.enter("atxHeadingSequence"),g(v)):v===null||bt(v)?(l.exit("atxHeading"),a(v)):Ot(v)?Ht(l,m,"whitespace")(v):(l.enter("atxHeadingText"),y(v))}function g(v){return v===35?(l.consume(v),g):(l.exit("atxHeadingSequence"),m(v))}function y(v){return v===null||v===35||Jt(v)?(l.exit("atxHeadingText"),m(v)):(l.consume(v),y)}}const lS=["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"],Dg=["pre","script","style","textarea"],iS={concrete:!0,name:"htmlFlow",resolveTo:uS,tokenize:rS},aS={partial:!0,tokenize:oS};function uS(l){let a=l.length;for(;a--&&!(l[a][0]==="enter"&&l[a][1].type==="htmlFlow"););return a>1&&l[a-2][1].type==="linePrefix"&&(l[a][1].start=l[a-2][1].start,l[a+1][1].start=l[a-2][1].start,l.splice(a-2,2)),l}function rS(l,a,u){const o=this;let s,h,f,m,g;return y;function y(T){return v(T)}function v(T){return l.enter("htmlFlow"),l.enter("htmlFlowData"),l.consume(T),p}function p(T){return T===33?(l.consume(T),S):T===47?(l.consume(T),h=!0,q):T===63?(l.consume(T),s=3,o.interrupt?a:z):Ue(T)?(l.consume(T),f=String.fromCharCode(T),H):u(T)}function S(T){return T===45?(l.consume(T),s=2,b):T===91?(l.consume(T),s=5,m=0,N):Ue(T)?(l.consume(T),s=4,o.interrupt?a:z):u(T)}function b(T){return T===45?(l.consume(T),o.interrupt?a:z):u(T)}function N(T){const C="CDATA[";return T===C.charCodeAt(m++)?(l.consume(T),m===C.length?o.interrupt?a:J:N):u(T)}function q(T){return Ue(T)?(l.consume(T),f=String.fromCharCode(T),H):u(T)}function H(T){if(T===null||T===47||T===62||Jt(T)){const C=T===47,U=f.toLowerCase();return!C&&!h&&Dg.includes(U)?(s=1,o.interrupt?a(T):J(T)):lS.includes(f.toLowerCase())?(s=6,C?(l.consume(T),w):o.interrupt?a(T):J(T)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?u(T):h?I(T):X(T))}return T===45||Ne(T)?(l.consume(T),f+=String.fromCharCode(T),H):u(T)}function w(T){return T===62?(l.consume(T),o.interrupt?a:J):u(T)}function I(T){return Ot(T)?(l.consume(T),I):R(T)}function X(T){return T===47?(l.consume(T),R):T===58||T===95||Ue(T)?(l.consume(T),ot):Ot(T)?(l.consume(T),X):R(T)}function ot(T){return T===45||T===46||T===58||T===95||Ne(T)?(l.consume(T),ot):F(T)}function F(T){return T===61?(l.consume(T),j):Ot(T)?(l.consume(T),F):X(T)}function j(T){return T===null||T===60||T===61||T===62||T===96?u(T):T===34||T===39?(l.consume(T),g=T,$):Ot(T)?(l.consume(T),j):et(T)}function $(T){return T===g?(l.consume(T),g=null,pt):T===null||bt(T)?u(T):(l.consume(T),$)}function et(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Jt(T)?F(T):(l.consume(T),et)}function pt(T){return T===47||T===62||Ot(T)?X(T):u(T)}function R(T){return T===62?(l.consume(T),V):u(T)}function V(T){return T===null||bt(T)?J(T):Ot(T)?(l.consume(T),V):u(T)}function J(T){return T===45&&s===2?(l.consume(T),P):T===60&&s===1?(l.consume(T),ut):T===62&&s===4?(l.consume(T),qt):T===63&&s===3?(l.consume(T),z):T===93&&s===5?(l.consume(T),Nt):bt(T)&&(s===6||s===7)?(l.exit("htmlFlowData"),l.check(aS,te,mt)(T)):T===null||bt(T)?(l.exit("htmlFlowData"),mt(T)):(l.consume(T),J)}function mt(T){return l.check(cf,at,te)(T)}function at(T){return l.enter("lineEnding"),l.consume(T),l.exit("lineEnding"),W}function W(T){return T===null||bt(T)?mt(T):(l.enter("htmlFlowData"),J(T))}function P(T){return T===45?(l.consume(T),z):J(T)}function ut(T){return T===47?(l.consume(T),f="",ht):J(T)}function ht(T){if(T===62){const C=f.toLowerCase();return Dg.includes(C)?(l.consume(T),qt):J(T)}return Ue(T)&&f.length<8?(l.consume(T),f+=String.fromCharCode(T),ht):J(T)}function Nt(T){return T===93?(l.consume(T),z):J(T)}function z(T){return T===62?(l.consume(T),qt):T===45&&s===2?(l.consume(T),z):J(T)}function qt(T){return T===null||bt(T)?(l.exit("htmlFlowData"),te(T)):(l.consume(T),qt)}function te(T){return l.exit("htmlFlow"),a(T)}}function oS(l,a,u){return o;function o(s){return l.enter("lineEnding"),l.consume(s),l.exit("lineEnding"),l.attempt(mu,a,u)}}const cS={name:"htmlText",tokenize:sS};function sS(l,a,u){const o=this;let s,h,f;return m;function m(z){return l.enter("htmlText"),l.enter("htmlTextData"),l.consume(z),g}function g(z){return z===33?(l.consume(z),y):z===47?(l.consume(z),F):z===63?(l.consume(z),X):Ue(z)?(l.consume(z),et):u(z)}function y(z){return z===45?(l.consume(z),v):z===91?(l.consume(z),h=0,N):Ue(z)?(l.consume(z),I):u(z)}function v(z){return z===45?(l.consume(z),b):u(z)}function p(z){return z===null?u(z):z===45?(l.consume(z),S):bt(z)?(f=p,ut(z)):(l.consume(z),p)}function S(z){return z===45?(l.consume(z),b):p(z)}function b(z){return z===62?P(z):z===45?S(z):p(z)}function N(z){const qt="CDATA[";return z===qt.charCodeAt(h++)?(l.consume(z),h===qt.length?q:N):u(z)}function q(z){return z===null?u(z):z===93?(l.consume(z),H):bt(z)?(f=q,ut(z)):(l.consume(z),q)}function H(z){return z===93?(l.consume(z),w):q(z)}function w(z){return z===62?P(z):z===93?(l.consume(z),w):q(z)}function I(z){return z===null||z===62?P(z):bt(z)?(f=I,ut(z)):(l.consume(z),I)}function X(z){return z===null?u(z):z===63?(l.consume(z),ot):bt(z)?(f=X,ut(z)):(l.consume(z),X)}function ot(z){return z===62?P(z):X(z)}function F(z){return Ue(z)?(l.consume(z),j):u(z)}function j(z){return z===45||Ne(z)?(l.consume(z),j):$(z)}function $(z){return bt(z)?(f=$,ut(z)):Ot(z)?(l.consume(z),$):P(z)}function et(z){return z===45||Ne(z)?(l.consume(z),et):z===47||z===62||Jt(z)?pt(z):u(z)}function pt(z){return z===47?(l.consume(z),P):z===58||z===95||Ue(z)?(l.consume(z),R):bt(z)?(f=pt,ut(z)):Ot(z)?(l.consume(z),pt):P(z)}function R(z){return z===45||z===46||z===58||z===95||Ne(z)?(l.consume(z),R):V(z)}function V(z){return z===61?(l.consume(z),J):bt(z)?(f=V,ut(z)):Ot(z)?(l.consume(z),V):pt(z)}function J(z){return z===null||z===60||z===61||z===62||z===96?u(z):z===34||z===39?(l.consume(z),s=z,mt):bt(z)?(f=J,ut(z)):Ot(z)?(l.consume(z),J):(l.consume(z),at)}function mt(z){return z===s?(l.consume(z),s=void 0,W):z===null?u(z):bt(z)?(f=mt,ut(z)):(l.consume(z),mt)}function at(z){return z===null||z===34||z===39||z===60||z===61||z===96?u(z):z===47||z===62||Jt(z)?pt(z):(l.consume(z),at)}function W(z){return z===47||z===62||Jt(z)?pt(z):u(z)}function P(z){return z===62?(l.consume(z),l.exit("htmlTextData"),l.exit("htmlText"),a):u(z)}function ut(z){return l.exit("htmlTextData"),l.enter("lineEnding"),l.consume(z),l.exit("lineEnding"),ht}function ht(z){return Ot(z)?Ht(l,Nt,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):Nt(z)}function Nt(z){return l.enter("htmlTextData"),f(z)}}const Cf={name:"labelEnd",resolveAll:mS,resolveTo:pS,tokenize:gS},fS={tokenize:yS},hS={tokenize:vS},dS={tokenize:bS};function mS(l){let a=-1;const u=[];for(;++a<l.length;){const o=l[a][1];if(u.push(l[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",a+=s}}return l.length!==u.length&&kn(l,0,l.length,u),l}function pS(l,a){let u=l.length,o=0,s,h,f;for(;u--;){const v=l[u][1];if(s){if(v.type==="link"||v.type==="labelLink"&&v._inactive)break;l[u][0]==="enter"&&v.type==="labelLink"&&(v._inactive=!0)}else if(h){if(l[u][0]==="enter"&&(v.type==="labelImage"||v.type==="labelLink")&&!v._balanced&&(s=u,v.type!=="labelLink")){o=2;break}}else v.type==="labelEnd"&&(h=u)}const m={type:l[s][1].type==="labelLink"?"link":"image",start:{...l[s][1].start},end:{...l[l.length-1][1].end}},g={type:"label",start:{...l[s][1].start},end:{...l[h][1].end}},y={type:"labelText",start:{...l[s+o+2][1].end},end:{...l[h-2][1].start}};return f=[["enter",m,a],["enter",g,a]],f=bn(f,l.slice(s+1,s+o+3)),f=bn(f,[["enter",y,a]]),f=bn(f,eo(a.parser.constructs.insideSpan.null,l.slice(s+o+4,h-3),a)),f=bn(f,[["exit",y,a],l[h-2],l[h-1],["exit",g,a]]),f=bn(f,l.slice(h+1)),f=bn(f,[["exit",m,a]]),kn(l,s,l.length,f),l}function gS(l,a,u){const o=this,s=o._labelStarts;let h,f;if(s){for(;s.length>0&&s[s.length-1]._balanced;)s.pop();h=s[s.length-1]}return m;function m(S){return h?h._inactive?p(S):(f=o.parser.defined.includes(Nn(o.sliceSerialize({start:h.end,end:o.now()}))),l.enter("labelEnd"),l.enter("labelMarker"),l.consume(S),l.exit("labelMarker"),l.exit("labelEnd"),g):u(S)}function g(S){return S===40?l.attempt(fS,v,f?v:p)(S):S===91?l.attempt(hS,v,f?y:p)(S):f?v(S):p(S)}function y(S){return l.attempt(dS,v,p)(S)}function v(S){return s.pop(),a(S)}function p(S){return h._balanced=!0,u(S)}}function yS(l,a,u){return o;function o(p){return l.enter("resource"),l.enter("resourceMarker"),l.consume(p),l.exit("resourceMarker"),s}function s(p){return Jt(p)?cu(l,h)(p):h(p)}function h(p){return p===41?v(p):Dy(l,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function f(p){return Jt(p)?cu(l,g)(p):v(p)}function m(p){return u(p)}function g(p){return p===34||p===39||p===40?jy(l,y,u,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):v(p)}function y(p){return Jt(p)?cu(l,v)(p):v(p)}function v(p){return p===41?(l.enter("resourceMarker"),l.consume(p),l.exit("resourceMarker"),l.exit("resource"),a):u(p)}}function vS(l,a,u){const o=this;return s;function s(m){return My.call(o,l,h,f,"reference","referenceMarker","referenceString")(m)}function h(m){return o.parser.defined.includes(Nn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(m):u(m)}function f(m){return u(m)}}function bS(l,a,u){return o;function o(h){return l.enter("reference"),l.enter("referenceMarker"),l.consume(h),l.exit("referenceMarker"),s}function s(h){return h===93?(l.enter("referenceMarker"),l.consume(h),l.exit("referenceMarker"),l.exit("reference"),a):u(h)}}const xS={name:"labelStartImage",resolveAll:Cf.resolveAll,tokenize:SS};function SS(l,a,u){const o=this;let s;return h;function h(g){return l.enter("labelImage"),l.enter("labelImageMarker"),l.consume(g),l.exit("labelImageMarker"),f}function f(g){return g===91?(l.enter("labelMarker"),l.consume(g),l.exit("labelMarker"),s=l.exit("labelImage"),m):u(g)}function m(g){return g===94&&"_hiddenFootnoteSupport"in o.parser.constructs?u(g):(o._labelStarts=o._labelStarts||[],o._labelStarts.push(s),a(g))}}const ES={name:"labelStartLink",resolveAll:Cf.resolveAll,tokenize:TS};function TS(l,a,u){const o=this;let s;return h;function h(m){return l.enter("labelLink"),l.enter("labelMarker"),l.consume(m),l.exit("labelMarker"),s=l.exit("labelLink"),f}function f(m){return m===94&&"_hiddenFootnoteSupport"in o.parser.constructs?u(m):(o._labelStarts=o._labelStarts||[],o._labelStarts.push(s),a(m))}}const Gs={name:"lineEnding",tokenize:CS};function CS(l,a){return u;function u(o){return l.enter("lineEnding"),l.consume(o),l.exit("lineEnding"),Ht(l,a,"linePrefix")}}const Kr={name:"thematicBreak",tokenize:AS};function AS(l,a,u){let o=0,s;return h;function h(y){return l.enter("thematicBreak"),f(y)}function f(y){return s=y,m(y)}function m(y){return y===s?(l.enter("thematicBreakSequence"),g(y)):o>=3&&(y===null||bt(y))?(l.exit("thematicBreak"),a(y)):u(y)}function g(y){return y===s?(l.consume(y),o++,g):(l.exit("thematicBreakSequence"),Ot(y)?Ht(l,m,"whitespace")(y):m(y))}}const Qe={continuation:{tokenize:NS},exit:OS,name:"list",tokenize:kS},zS={partial:!0,tokenize:DS},wS={partial:!0,tokenize:_S};function kS(l,a,u){const o=this,s=o.events[o.events.length-1];let h=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return m;function m(b){const N=o.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(N==="listUnordered"?!o.containerState.marker||b===o.containerState.marker:rf(b)){if(o.containerState.type||(o.containerState.type=N,l.enter(N,{_container:!0})),N==="listUnordered")return l.enter("listItemPrefix"),b===42||b===45?l.check(Kr,u,y)(b):y(b);if(!o.interrupt||b===49)return l.enter("listItemPrefix"),l.enter("listItemValue"),g(b)}return u(b)}function g(b){return rf(b)&&++f<10?(l.consume(b),g):(!o.interrupt||f<2)&&(o.containerState.marker?b===o.containerState.marker:b===41||b===46)?(l.exit("listItemValue"),y(b)):u(b)}function y(b){return l.enter("listItemMarker"),l.consume(b),l.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||b,l.check(mu,o.interrupt?u:v,l.attempt(zS,S,p))}function v(b){return o.containerState.initialBlankLine=!0,h++,S(b)}function p(b){return Ot(b)?(l.enter("listItemPrefixWhitespace"),l.consume(b),l.exit("listItemPrefixWhitespace"),S):u(b)}function S(b){return o.containerState.size=h+o.sliceSerialize(l.exit("listItemPrefix"),!0).length,a(b)}}function NS(l,a,u){const o=this;return o.containerState._closeFlow=void 0,l.check(mu,s,h);function s(m){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ht(l,a,"listItemIndent",o.containerState.size+1)(m)}function h(m){return o.containerState.furtherBlankLines||!Ot(m)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,f(m)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l.attempt(wS,a,f)(m))}function f(m){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ht(l,l.attempt(Qe,a,u),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function _S(l,a,u){const o=this;return Ht(l,s,"listItemIndent",o.containerState.size+1);function s(h){const f=o.events[o.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===o.containerState.size?a(h):u(h)}}function OS(l){l.exit(this.containerState.type)}function DS(l,a,u){const o=this;return Ht(l,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(h){const f=o.events[o.events.length-1];return!Ot(h)&&f&&f[1].type==="listItemPrefixWhitespace"?a(h):u(h)}}const Mg={name:"setextUnderline",resolveTo:MS,tokenize:jS};function MS(l,a){const u=new Jr;let o=l.length,s,h,f;for(;o--;)if(l[o][0]==="enter"){if(l[o][1].type==="content"){s=o;break}l[o][1].type==="paragraph"&&(h=o)}else l[o][1].type==="content"&&u.add(o,1,[]),!f&&l[o][1].type==="definition"&&(f=o);const m={type:"setextHeading",start:{...l[s][1].start},end:{...l[l.length-1][1].end}};return l[h][1].type="setextHeadingText",f?(u.add(h,0,[["enter",m,a]]),u.add(f+1,0,[["exit",l[s][1],a]]),l[s][1].end={...l[f][1].end}):l[s][1]=m,u.add(l.length,0,[["exit",m,a]]),u.consume(l),l}function jS(l,a,u){const o=this;let s;return h;function h(y){let v=o.events.length,p;for(;v--;)if(o.events[v][1].type!=="lineEnding"&&o.events[v][1].type!=="linePrefix"&&o.events[v][1].type!=="content"){p=o.events[v][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||p)?(l.enter("setextHeadingLine"),s=y,f(y)):u(y)}function f(y){return l.enter("setextHeadingLineSequence"),m(y)}function m(y){return y===s?(l.consume(y),m):(l.exit("setextHeadingLineSequence"),Ot(y)?Ht(l,g,"lineSuffix")(y):g(y))}function g(y){return y===null||bt(y)?(l.exit("setextHeadingLine"),a(y)):u(y)}}const RS={tokenize:LS};function LS(l){const a=this,u=l.attempt(mu,o,l.attempt(this.parser.constructs.flowInitial,s,Ht(l,l.attempt(this.parser.constructs.flow,s,l.attempt(Gx,s)),"linePrefix")));return u;function o(h){if(h===null){l.consume(h);return}return l.enter("lineEndingBlank"),l.consume(h),l.exit("lineEndingBlank"),a.currentConstruct=void 0,u}function s(h){if(h===null){l.consume(h);return}return l.enter("lineEnding"),l.consume(h),l.exit("lineEnding"),a.currentConstruct=void 0,u}}const US={resolveAll:Ly()},BS=Ry("string"),HS=Ry("text");function Ry(l){return{resolveAll:Ly(l==="text"?qS:void 0),tokenize:a};function a(u){const o=this,s=this.parser.constructs[l],h=u.attempt(s,f,m);return f;function f(v){return y(v)?h(v):m(v)}function m(v){if(v===null){u.consume(v);return}return u.enter("data"),u.consume(v),g}function g(v){return y(v)?(u.exit("data"),h(v)):(u.consume(v),g)}function y(v){if(v===null)return!0;const p=s[v];let S=-1;if(p)for(;++S<p.length;){const b=p[S];if(!b.previous||b.previous.call(o,o.previous))return!0}return!1}}}function Ly(l){return a;function a(u,o){let s=-1,h;for(;++s<=u.length;)h===void 0?u[s]&&u[s][1].type==="data"&&(h=s,s++):(!u[s]||u[s][1].type!=="data")&&(s!==h+2&&(u[h][1].end=u[s-1][1].end,u.splice(h+2,s-h-2),s=h+2),h=void 0);return l?l(u,o):u}}function qS(l,a){const u=new Jr;let o=0;for(;++o<=l.length;)if((o===l.length||l[o][1].type==="lineEnding")&&l[o-1][1].type==="data"){const s=l[o-1][1],h=a.sliceStream(s);let f=h.length,m=-1,g=0,y;for(;f--;){const v=h[f];if(typeof v=="string"){for(m=v.length;v.charCodeAt(m-1)===32;)g++,m--;if(m)break;m=-1}else if(v===-2)y=!0,g++;else if(v!==-1){f++;break}}if(a._contentTypeTextTrailing&&o===l.length&&(g=0),g){const v={type:o===l.length||y||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?m:s.start._bufferIndex+m,_index:s.start._index+f,line:s.end.line,column:s.end.column-g,offset:s.end.offset-g},end:{...s.end}};s.end={...v.start},s.start.offset===s.end.offset?Object.assign(s,v):u.add(o,0,[["enter",v,a],["exit",v,a]])}o++}return u.consume(l),l}const YS={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:ky},VS={91:Kx},GS={[-2]:Vs,[-1]:Vs,32:Vs},XS={35:tS,42:Kr,45:[Mg,Kr],60:iS,61:Mg,95:Kr,96:Og,126:Og},QS={38:_y,92:Ny},ZS={[-5]:Gs,[-4]:Gs,[-3]:Gs,33:xS,38:_y,42:of,60:[Cx,cS],91:ES,92:[Px,Ny],93:Cf,95:of,96:Ux},IS={null:[of,US]},KS={null:[42,95]},FS={null:[]},JS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:KS,contentInitial:VS,disable:FS,document:YS,flow:XS,flowInitial:GS,insideSpan:IS,string:QS,text:ZS},Symbol.toStringTag,{value:"Module"}));function $S(l,a,u){let o={_bufferIndex:-1,_index:0,line:u&&u.line||1,column:u&&u.column||1,offset:u&&u.offset||0};const s={},h=[];let f=[],m=[];const g={attempt:$(F),check:$(j),consume:I,enter:X,exit:ot,interrupt:$(j,{interrupt:!0})},y={code:null,containerState:{},defineSkip:q,events:[],now:N,parser:l,previous:null,sliceSerialize:S,sliceStream:b,write:p};let v=a.tokenize.call(y,g);return a.resolveAll&&h.push(a),y;function p(V){return f=bn(f,V),H(),f[f.length-1]!==null?[]:(et(a,0),y.events=eo(h,y.events,y),y.events)}function S(V,J){return WS(b(V),J)}function b(V){return PS(f,V)}function N(){const{_bufferIndex:V,_index:J,line:mt,column:at,offset:W}=o;return{_bufferIndex:V,_index:J,line:mt,column:at,offset:W}}function q(V){s[V.line]=V.column,R()}function H(){for(;o._index<f.length;){const V=f[o._index];if(typeof V=="string"){const J=o._index;for(o._bufferIndex<0&&(o._bufferIndex=0);o._index===J&&o._bufferIndex<V.length;)w(V.charCodeAt(o._bufferIndex))}else w(V)}}function w(V){v=v(V)}function I(V){bt(V)?(o.line++,o.column=1,o.offset+=V===-3?2:1,R()):V!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===f[o._index].length&&(o._bufferIndex=-1,o._index++)),y.previous=V}function X(V,J){const mt=J||{};return mt.type=V,mt.start=N(),y.events.push(["enter",mt,y]),m.push(mt),mt}function ot(V){const J=m.pop();return J.end=N(),y.events.push(["exit",J,y]),J}function F(V,J){et(V,J.from)}function j(V,J){J.restore()}function $(V,J){return mt;function mt(at,W,P){let ut,ht,Nt,z;return Array.isArray(at)?te(at):"tokenize"in at?te([at]):qt(at);function qt(K){return lt;function lt(yt){const xt=yt!==null&&K[yt],Et=yt!==null&&K.null,rt=[...Array.isArray(xt)?xt:xt?[xt]:[],...Array.isArray(Et)?Et:Et?[Et]:[]];return te(rt)(yt)}}function te(K){return ut=K,ht=0,K.length===0?P:T(K[ht])}function T(K){return lt;function lt(yt){return z=pt(),Nt=K,K.partial||(y.currentConstruct=K),K.name&&y.parser.constructs.disable.null.includes(K.name)?U():K.tokenize.call(J?Object.assign(Object.create(y),J):y,g,C,U)(yt)}}function C(K){return V(Nt,z),W}function U(K){return z.restore(),++ht<ut.length?T(ut[ht]):P}}}function et(V,J){V.resolveAll&&!h.includes(V)&&h.push(V),V.resolve&&kn(y.events,J,y.events.length-J,V.resolve(y.events.slice(J),y)),V.resolveTo&&(y.events=V.resolveTo(y.events,y))}function pt(){const V=N(),J=y.previous,mt=y.currentConstruct,at=y.events.length,W=Array.from(m);return{from:at,restore:P};function P(){o=V,y.previous=J,y.currentConstruct=mt,y.events.length=at,m=W,R()}}function R(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function PS(l,a){const u=a.start._index,o=a.start._bufferIndex,s=a.end._index,h=a.end._bufferIndex;let f;if(u===s)f=[l[u].slice(o,h)];else{if(f=l.slice(u,s),o>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(o):f.shift()}h>0&&f.push(l[s].slice(0,h))}return f}function WS(l,a){let u=-1;const o=[];let s;for(;++u<l.length;){const h=l[u];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
51
+ `;break}case-3:{f=`\r
52
+ `;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(h)}s=h===-2,o.push(f)}return o.join("")}function tE(l){const o={constructs:Ay([JS,...(l||{}).extensions||[]]),content:s(yx),defined:[],document:s(bx),flow:s(RS),lazy:{},string:s(BS),text:s(HS)};return o;function s(h){return f;function f(m){return $S(o,h,m)}}}function eE(l){for(;!Oy(l););return l}const jg=/[\0\t\n\r]/g;function nE(){let l=1,a="",u=!0,o;return s;function s(h,f,m){h=a+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h));const g=[];let y=0;for(a="",u&&(h.charCodeAt(0)===65279&&y++,u=void 0);y<h.length;){jg.lastIndex=y;const v=jg.exec(h),p=v&&v.index!==void 0?v.index:h.length,S=h.charCodeAt(p);if(!v){a=h.slice(y);break}if(S===10&&y===p&&o)g.push(-3),o=void 0;else switch(o&&(g.push(-5),o=void 0),y<p&&(g.push(h.slice(y,p)),l+=p-y),S){case 0:{g.push(65533),l++;break}case 9:{const b=Math.ceil(l/4)*4;for(g.push(-2);l++<b;)g.push(-1);break}case 10:{g.push(-4),l=1;break}default:o=!0,l=1}y=p+1}return m&&(o&&g.push(-5),a&&g.push(a),g.push(null)),g}}const lE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iE(l){return l.replace(lE,aE)}function aE(l,a,u){if(a)return a;if(u.charCodeAt(0)===35){const s=u.charCodeAt(1),h=s===120||s===88;return zy(u.slice(h?2:1),h?16:10)}return Tf(u)||l}const Uy={}.hasOwnProperty;function uE(l,a,u){return a&&typeof a=="object"&&(u=a,a=void 0),rE(u)(eE(tE(u).document().write(nE()(l,a,!0))))}function rE(l){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(jt),autolinkProtocol:pt,autolinkEmail:pt,atxHeading:h(rn),blockQuote:h(Et),characterEscape:pt,characterReference:pt,codeFenced:h(rt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(rt,f),codeText:h(vt,f),codeTextData:pt,data:pt,codeFlowValue:pt,definition:h(Ae),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(xn),hardBreakEscape:h(ze),hardBreakTrailing:h(ze),htmlFlow:h(Y,f),htmlFlowData:pt,htmlText:h(Y,f),htmlTextData:pt,image:h(ft),label:f,link:h(jt),listItem:h(on),listItemValue:S,listOrdered:h(Oe,p),listUnordered:h(Oe),paragraph:h(ee),reference:T,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(rn),strong:h(ne),thematicBreak:h(Be)},exit:{atxHeading:g(),atxHeadingSequence:F,autolink:g(),autolinkEmail:xt,autolinkProtocol:yt,blockQuote:g(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:K,characterReference:lt,codeFenced:g(H),codeFencedFence:q,codeFencedFenceInfo:b,codeFencedFenceMeta:N,codeFlowValue:R,codeIndented:g(w),codeText:g(W),codeTextData:R,data:R,definition:g(),definitionDestinationString:ot,definitionLabelString:I,definitionTitleString:X,emphasis:g(),hardBreakEscape:g(J),hardBreakTrailing:g(J),htmlFlow:g(mt),htmlFlowData:R,htmlText:g(at),htmlTextData:R,image:g(ut),label:Nt,labelText:ht,lineEnding:V,link:g(P),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:C,resourceDestinationString:z,resourceTitleString:qt,resource:te,setextHeading:g(et),setextHeadingLineSequence:$,setextHeadingText:j,strong:g(),thematicBreak:g()}};By(a,(l||{}).mdastExtensions||[]);const u={};return o;function o(G){let nt={type:"root",children:[]};const Tt={stack:[nt],tokenStack:[],config:a,enter:m,exit:y,buffer:f,resume:v,data:u},zt=[];let Yt=-1;for(;++Yt<G.length;)if(G[Yt][1].type==="listOrdered"||G[Yt][1].type==="listUnordered")if(G[Yt][0]==="enter")zt.push(Yt);else{const De=zt.pop();Yt=s(G,De,Yt)}for(Yt=-1;++Yt<G.length;){const De=a[G[Yt][0]];Uy.call(De,G[Yt][1].type)&&De[G[Yt][1].type].call(Object.assign({sliceSerialize:G[Yt][2].sliceSerialize},Tt),G[Yt][1])}if(Tt.tokenStack.length>0){const De=Tt.tokenStack[Tt.tokenStack.length-1];(De[1]||Rg).call(Tt,void 0,De[0])}for(nt.position={start:Ll(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Ll(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Yt=-1;++Yt<a.transforms.length;)nt=a.transforms[Yt](nt)||nt;return nt}function s(G,nt,Tt){let zt=nt-1,Yt=-1,De=!1,Gn,cn,Xn,Qn;for(;++zt<=Tt;){const ye=G[zt];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?Yt++:Yt--,Qn=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(Gn&&!Qn&&!Yt&&!Xn&&(Xn=zt),Qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qn=void 0}if(!Yt&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||Yt===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(Gn){let ol=zt;for(cn=void 0;ol--;){const Sn=G[ol];if(Sn[1].type==="lineEnding"||Sn[1].type==="lineEndingBlank"){if(Sn[0]==="exit")continue;cn&&(G[cn][1].type="lineEndingBlank",De=!0),Sn[1].type="lineEnding",cn=ol}else if(!(Sn[1].type==="linePrefix"||Sn[1].type==="blockQuotePrefix"||Sn[1].type==="blockQuotePrefixWhitespace"||Sn[1].type==="blockQuoteMarker"||Sn[1].type==="listItemIndent"))break}Xn&&(!cn||Xn<cn)&&(Gn._spread=!0),Gn.end=Object.assign({},cn?G[cn][1].start:ye[1].end),G.splice(cn||zt,0,["exit",Gn,ye[2]]),zt++,Tt++}if(ye[1].type==="listItemPrefix"){const ol={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};Gn=ol,G.splice(zt,0,["enter",ol,ye[2]]),zt++,Tt++,Xn=void 0,Qn=!0}}}return G[nt][1]._spread=De,Tt}function h(G,nt){return Tt;function Tt(zt){m.call(this,G(zt),zt),nt&&nt.call(this,zt)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(G,nt,Tt){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([nt,Tt||void 0]),G.position={start:Ll(nt.start),end:void 0}}function g(G){return nt;function nt(Tt){G&&G.call(this,Tt),y.call(this,Tt)}}function y(G,nt){const Tt=this.stack.pop(),zt=this.tokenStack.pop();if(zt)zt[0].type!==G.type&&(nt?nt.call(this,G,zt[0]):(zt[1]||Rg).call(this,G,zt[0]));else throw new Error("Cannot close `"+G.type+"` ("+ou({start:G.start,end:G.end})+"): it’s not open");Tt.position.end=Ll(G.end)}function v(){return Ef(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function S(G){if(this.data.expectingFirstListItemValue){const nt=this.stack[this.stack.length-2];nt.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function b(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.lang=G}function N(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.meta=G}function q(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function H(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.value=G.replace(/(\r?\n|\r)$/g,"")}function I(G){const nt=this.resume(),Tt=this.stack[this.stack.length-1];Tt.label=nt,Tt.identifier=Nn(this.sliceSerialize(G)).toLowerCase()}function X(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.title=G}function ot(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.url=G}function F(G){const nt=this.stack[this.stack.length-1];if(!nt.depth){const Tt=this.sliceSerialize(G).length;nt.depth=Tt}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function $(G){const nt=this.stack[this.stack.length-1];nt.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function et(){this.data.setextHeadingSlurpLineEnding=void 0}function pt(G){const Tt=this.stack[this.stack.length-1].children;let zt=Tt[Tt.length-1];(!zt||zt.type!=="text")&&(zt=Ie(),zt.position={start:Ll(G.start),end:void 0},Tt.push(zt)),this.stack.push(zt)}function R(G){const nt=this.stack.pop();nt.value+=this.sliceSerialize(G),nt.position.end=Ll(G.end)}function V(G){const nt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Tt=nt.children[nt.children.length-1];Tt.position.end=Ll(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(nt.type)&&(pt.call(this,G),R.call(this,G))}function J(){this.data.atHardBreak=!0}function mt(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.value=G}function at(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.value=G}function W(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.value=G}function P(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const nt=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=nt,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ut(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const nt=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=nt,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ht(G){const nt=this.sliceSerialize(G),Tt=this.stack[this.stack.length-2];Tt.label=iE(nt),Tt.identifier=Nn(nt).toLowerCase()}function Nt(){const G=this.stack[this.stack.length-1],nt=this.resume(),Tt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Tt.type==="link"){const zt=G.children;Tt.children=zt}else Tt.alt=nt}function z(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.url=G}function qt(){const G=this.resume(),nt=this.stack[this.stack.length-1];nt.title=G}function te(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function C(G){const nt=this.resume(),Tt=this.stack[this.stack.length-1];Tt.label=nt,Tt.identifier=Nn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function U(G){this.data.characterReferenceType=G.type}function K(G){const nt=this.sliceSerialize(G),Tt=this.data.characterReferenceType;let zt;Tt?(zt=zy(nt,Tt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):zt=Tf(nt);const Yt=this.stack[this.stack.length-1];Yt.value+=zt}function lt(G){const nt=this.stack.pop();nt.position.end=Ll(G.end)}function yt(G){R.call(this,G);const nt=this.stack[this.stack.length-1];nt.url=this.sliceSerialize(G)}function xt(G){R.call(this,G);const nt=this.stack[this.stack.length-1];nt.url="mailto:"+this.sliceSerialize(G)}function Et(){return{type:"blockquote",children:[]}}function rt(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function Ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xn(){return{type:"emphasis",children:[]}}function rn(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function Y(){return{type:"html",value:""}}function ft(){return{type:"image",title:null,url:"",alt:null}}function jt(){return{type:"link",title:null,url:"",children:[]}}function Oe(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function on(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function ee(){return{type:"paragraph",children:[]}}function ne(){return{type:"strong",children:[]}}function Ie(){return{type:"text",value:""}}function Be(){return{type:"thematicBreak"}}}function Ll(l){return{line:l.line,column:l.column,offset:l.offset}}function By(l,a){let u=-1;for(;++u<a.length;){const o=a[u];Array.isArray(o)?By(l,o):oE(l,o)}}function oE(l,a){let u;for(u in a)if(Uy.call(a,u))switch(u){case"canContainEols":{const o=a[u];o&&l[u].push(...o);break}case"transforms":{const o=a[u];o&&l[u].push(...o);break}case"enter":case"exit":{const o=a[u];o&&Object.assign(l[u],o);break}}}function Rg(l,a){throw l?new Error("Cannot close `"+l.type+"` ("+ou({start:l.start,end:l.end})+"): a different token (`"+a.type+"`, "+ou({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+ou({start:a.start,end:a.end})+") is still open")}function cE(l){const a=this;a.parser=u;function u(o){return uE(o,{...a.data("settings"),...l,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function sE(l,a){const u={type:"element",tagName:"blockquote",properties:{},children:l.wrap(l.all(a),!0)};return l.patch(a,u),l.applyData(a,u)}function fE(l,a){const u={type:"element",tagName:"br",properties:{},children:[]};return l.patch(a,u),[l.applyData(a,u),{type:"text",value:`
53
+ `}]}function hE(l,a){const u=a.value?a.value+`
54
+ `:"",o={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let h={type:"element",tagName:"code",properties:o,children:[{type:"text",value:u}]};return a.meta&&(h.data={meta:a.meta}),l.patch(a,h),h=l.applyData(a,h),h={type:"element",tagName:"pre",properties:{},children:[h]},l.patch(a,h),h}function dE(l,a){const u={type:"element",tagName:"del",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function mE(l,a){const u={type:"element",tagName:"em",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function pE(l,a){const u=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",o=String(a.identifier).toUpperCase(),s=ra(o.toLowerCase()),h=l.footnoteOrder.indexOf(o);let f,m=l.footnoteCounts.get(o);m===void 0?(m=0,l.footnoteOrder.push(o),f=l.footnoteOrder.length):f=h+1,m+=1,l.footnoteCounts.set(o,m);const g={type:"element",tagName:"a",properties:{href:"#"+u+"fn-"+s,id:u+"fnref-"+s+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};l.patch(a,g);const y={type:"element",tagName:"sup",properties:{},children:[g]};return l.patch(a,y),l.applyData(a,y)}function gE(l,a){const u={type:"element",tagName:"h"+a.depth,properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function yE(l,a){if(l.options.allowDangerousHtml){const u={type:"raw",value:a.value};return l.patch(a,u),l.applyData(a,u)}}function Hy(l,a){const u=a.referenceType;let o="]";if(u==="collapsed"?o+="[]":u==="full"&&(o+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+o}];const s=l.all(a),h=s[0];h&&h.type==="text"?h.value="["+h.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=o:s.push({type:"text",value:o}),s}function vE(l,a){const u=String(a.identifier).toUpperCase(),o=l.definitionById.get(u);if(!o)return Hy(l,a);const s={src:ra(o.url||""),alt:a.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const h={type:"element",tagName:"img",properties:s,children:[]};return l.patch(a,h),l.applyData(a,h)}function bE(l,a){const u={src:ra(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 o={type:"element",tagName:"img",properties:u,children:[]};return l.patch(a,o),l.applyData(a,o)}function xE(l,a){const u={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};l.patch(a,u);const o={type:"element",tagName:"code",properties:{},children:[u]};return l.patch(a,o),l.applyData(a,o)}function SE(l,a){const u=String(a.identifier).toUpperCase(),o=l.definitionById.get(u);if(!o)return Hy(l,a);const s={href:ra(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const h={type:"element",tagName:"a",properties:s,children:l.all(a)};return l.patch(a,h),l.applyData(a,h)}function EE(l,a){const u={href:ra(a.url)};a.title!==null&&a.title!==void 0&&(u.title=a.title);const o={type:"element",tagName:"a",properties:u,children:l.all(a)};return l.patch(a,o),l.applyData(a,o)}function TE(l,a,u){const o=l.all(a),s=u?CE(u):qy(a),h={},f=[];if(typeof a.checked=="boolean"){const v=o[0];let p;v&&v.type==="element"&&v.tagName==="p"?p=v:(p={type:"element",tagName:"p",properties:{},children:[]},o.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.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<o.length;){const v=o[m];(s||m!==0||v.type!=="element"||v.tagName!=="p")&&f.push({type:"text",value:`
55
+ `}),v.type==="element"&&v.tagName==="p"&&!s?f.push(...v.children):f.push(v)}const g=o[o.length-1];g&&(s||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
56
+ `});const y={type:"element",tagName:"li",properties:h,children:f};return l.patch(a,y),l.applyData(a,y)}function CE(l){let a=!1;if(l.type==="list"){a=l.spread||!1;const u=l.children;let o=-1;for(;!a&&++o<u.length;)a=qy(u[o])}return a}function qy(l){const a=l.spread;return a??l.children.length>1}function AE(l,a){const u={},o=l.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(u.start=a.start);++s<o.length;){const f=o[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){u.className=["contains-task-list"];break}}const h={type:"element",tagName:a.ordered?"ol":"ul",properties:u,children:l.wrap(o,!0)};return l.patch(a,h),l.applyData(a,h)}function zE(l,a){const u={type:"element",tagName:"p",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function wE(l,a){const u={type:"root",children:l.wrap(l.all(a))};return l.patch(a,u),l.applyData(a,u)}function kE(l,a){const u={type:"element",tagName:"strong",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function NE(l,a){const u=l.all(a),o=u.shift(),s=[];if(o){const f={type:"element",tagName:"thead",properties:{},children:l.wrap([o],!0)};l.patch(a.children[0],f),s.push(f)}if(u.length>0){const f={type:"element",tagName:"tbody",properties:{},children:l.wrap(u,!0)},m=vf(a.children[1]),g=vy(a.children[a.children.length-1]);m&&g&&(f.position={start:m,end:g}),s.push(f)}const h={type:"element",tagName:"table",properties:{},children:l.wrap(s,!0)};return l.patch(a,h),l.applyData(a,h)}function _E(l,a,u){const o=u?u.children:void 0,h=(o?o.indexOf(a):1)===0?"th":"td",f=u&&u.type==="table"?u.align:void 0,m=f?f.length:a.children.length;let g=-1;const y=[];for(;++g<m;){const p=a.children[g],S={},b=f?f[g]:void 0;b&&(S.align=b);let N={type:"element",tagName:h,properties:S,children:[]};p&&(N.children=l.all(p),l.patch(p,N),N=l.applyData(p,N)),y.push(N)}const v={type:"element",tagName:"tr",properties:{},children:l.wrap(y,!0)};return l.patch(a,v),l.applyData(a,v)}function OE(l,a){const u={type:"element",tagName:"td",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}const Lg=9,Ug=32;function DE(l){const a=String(l),u=/\r?\n|\r/g;let o=u.exec(a),s=0;const h=[];for(;o;)h.push(Bg(a.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=u.exec(a);return h.push(Bg(a.slice(s),s>0,!1)),h.join("")}function Bg(l,a,u){let o=0,s=l.length;if(a){let h=l.codePointAt(o);for(;h===Lg||h===Ug;)o++,h=l.codePointAt(o)}if(u){let h=l.codePointAt(s-1);for(;h===Lg||h===Ug;)s--,h=l.codePointAt(s-1)}return s>o?l.slice(o,s):""}function ME(l,a){const u={type:"text",value:DE(String(a.value))};return l.patch(a,u),l.applyData(a,u)}function jE(l,a){const u={type:"element",tagName:"hr",properties:{},children:[]};return l.patch(a,u),l.applyData(a,u)}const RE={blockquote:sE,break:fE,code:hE,delete:dE,emphasis:mE,footnoteReference:pE,heading:gE,html:yE,imageReference:vE,image:bE,inlineCode:xE,linkReference:SE,link:EE,listItem:TE,list:AE,paragraph:zE,root:wE,strong:kE,table:NE,tableCell:OE,tableRow:_E,text:ME,thematicBreak:jE,toml:Gr,yaml:Gr,definition:Gr,footnoteDefinition:Gr};function Gr(){}const Yy=-1,no=0,su=1,Pr=2,Af=3,zf=4,wf=5,kf=6,Vy=7,Gy=8,{defineProperty:LE}=Object,Xy=typeof self=="object"?self:globalThis,Hg=(l,a)=>{switch(l){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+l)}return new Xy[l](a)},UE=(l,a)=>{const u=(s,h)=>(l.set(h,s),s),o=s=>{if(l.has(s))return l.get(s);const[h,f]=a[s];switch(h){case no:case Yy:return u(f,s);case su:{const m=u([],s);for(const g of f)m.push(o(g));return m}case Pr:{const m=u({},s);for(const[g,y]of f){const v=o(g),p=o(y);v==="__proto__"?LE(m,v,{value:p,configurable:!0,enumerable:!0,writable:!0}):m[v]=p}return m}case Af:return u(new Date(f),s);case zf:{const{source:m,flags:g}=f;return u(new RegExp(m,g),s)}case wf:{const m=u(new Map,s);for(const[g,y]of f)m.set(o(g),o(y));return m}case kf:{const m=u(new Set,s);for(const g of f)m.add(o(g));return m}case Vy:{const{name:m,message:g}=f;return u(typeof Xy[m]=="function"?Hg(m,g):new Error(g),s)}case Gy:return u(BigInt(f),s);case"BigInt":return u(Object(BigInt(f)),s);case"ArrayBuffer":return u(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return u(new DataView(m),f)}case"-0":return-0}return u(Hg(h,f),s)};return o},qg=l=>UE(new Map,l)(0),ci="",{toString:BE}={},{keys:HE,is:qE}=Object,uu=l=>{const a=typeof l;if(a!=="object"||!l)return[no,a];const u=BE.call(l).slice(8,-1);switch(u){case"Array":return[su,ci];case"Object":return[Pr,ci];case"Date":return[Af,ci];case"RegExp":return[zf,ci];case"Map":return[wf,ci];case"Set":return[kf,ci];case"DataView":return[su,u]}return u.includes("Array")?[su,u]:l instanceof Error?[Vy,l.name||"Error"]:[Pr,u]},Xr=([l,a])=>l===no&&(a==="function"||a==="symbol"),YE=(l,a,u,o)=>{const s=(f,m)=>{const g=o.push(f)-1;return u.set(m,g),g},h=f=>{if(u.has(f))return u.get(f);let[m,g]=uu(f);switch(m){case no:{let v=f;switch(g){case"bigint":m=Gy,v=f.toString();break;case"number":if(!f&&qE(f,-0))return o.push(["-0"])-1;break;case"function":case"symbol":if(l)throw new TypeError("unable to serialize "+g);v=null;break;case"undefined":return s([Yy],f)}return s([m,v],f)}case su:{if(g){let S=f;return g==="DataView"?S=new Uint8Array(f.buffer):g==="ArrayBuffer"&&(S=new Uint8Array(f)),s([g,[...S]],f)}const v=[],p=s([m,v],f);for(const S of f)v.push(h(S));return p}case Pr:{if(g)switch(g){case"BigInt":return s([g,f.toString()],f);case"Boolean":case"Number":case"String":return s([g,f.valueOf()],f)}if(a&&"toJSON"in f)return h(f.toJSON());const v=[],p=s([m,v],f);for(const S of HE(f))(l||!Xr(uu(f[S])))&&v.push([h(S),h(f[S])]);return p}case Af:return s([m,isNaN(f.getTime())?ci:f.toISOString()],f);case zf:{const{source:v,flags:p}=f;return s([m,{source:v,flags:p}],f)}case wf:{const v=[],p=s([m,v],f);for(const[S,b]of f)(l||!(Xr(uu(S))||Xr(uu(b))))&&v.push([h(S),h(b)]);return p}case kf:{const v=[],p=s([m,v],f);for(const S of f)(l||!Xr(uu(S)))&&v.push(h(S));return p}}const{message:y}=f;return s([m,{name:g,message:y}],f)};return h},Yg=(l,{json:a,lossy:u}={})=>{const o=[];return YE(!(a||u),!!a,new Map,o)(l),o},Wr=typeof structuredClone=="function"?(l,a)=>a&&("json"in a||"lossy"in a)?qg(Yg(l,a)):structuredClone(l):(l,a)=>qg(Yg(l,a));function VE(l,a){const u=[{type:"text",value:"↩"}];return a>1&&u.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),u}function GE(l,a){return"Back to reference "+(l+1)+(a>1?"-"+a:"")}function XE(l){const a=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",u=l.options.footnoteBackContent||VE,o=l.options.footnoteBackLabel||GE,s=l.options.footnoteLabel||"Footnotes",h=l.options.footnoteLabelTagName||"h2",f=l.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let g=-1;for(;++g<l.footnoteOrder.length;){const y=l.footnoteById.get(l.footnoteOrder[g]);if(!y)continue;const v=l.all(y),p=String(y.identifier).toUpperCase(),S=ra(p.toLowerCase());let b=0;const N=[],q=l.footnoteCounts.get(p);for(;q!==void 0&&++b<=q;){N.length>0&&N.push({type:"text",value:" "});let I=typeof u=="string"?u:u(g,b);typeof I=="string"&&(I={type:"text",value:I}),N.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(g,b),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const H=v[v.length-1];if(H&&H.type==="element"&&H.tagName==="p"){const I=H.children[H.children.length-1];I&&I.type==="text"?I.value+=" ":H.children.push({type:"text",value:" "}),H.children.push(...N)}else v.push(...N);const w={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:l.wrap(v,!0)};l.patch(y,w),m.push(w)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...Wr(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
57
+ `},{type:"element",tagName:"ol",properties:{},children:l.wrap(m,!0)},{type:"text",value:`
58
+ `}]}}const lo=(function(l){if(l==null)return KE;if(typeof l=="function")return io(l);if(typeof l=="object")return Array.isArray(l)?QE(l):ZE(l);if(typeof l=="string")return IE(l);throw new Error("Expected function, string, or object as test")});function QE(l){const a=[];let u=-1;for(;++u<l.length;)a[u]=lo(l[u]);return io(o);function o(...s){let h=-1;for(;++h<a.length;)if(a[h].apply(this,s))return!0;return!1}}function ZE(l){const a=l;return io(u);function u(o){const s=o;let h;for(h in l)if(s[h]!==a[h])return!1;return!0}}function IE(l){return io(a);function a(u){return u&&u.type===l}}function io(l){return a;function a(u,o,s){return!!(FE(u)&&l.call(this,u,typeof o=="number"?o:void 0,s||void 0))}}function KE(){return!0}function FE(l){return l!==null&&typeof l=="object"&&"type"in l}const Qy=[],JE=!0,sf=!1,$E="skip";function Zy(l,a,u,o){let s;typeof a=="function"&&typeof u!="function"?(o=u,u=a):s=a;const h=lo(s),f=o?-1:1;m(l,void 0,[])();function m(g,y,v){const p=g&&typeof g=="object"?g:{};if(typeof p.type=="string"){const b=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(g.type+(b?"<"+b+">":""))+")"})}return S;function S(){let b=Qy,N,q,H;if((!a||h(g,y,v[v.length-1]||void 0))&&(b=PE(u(g,v)),b[0]===sf))return b;if("children"in g&&g.children){const w=g;if(w.children&&b[0]!==$E)for(q=(o?w.children.length:-1)+f,H=v.concat(w);q>-1&&q<w.children.length;){const I=w.children[q];if(N=m(I,q,H)(),N[0]===sf)return N;q=typeof N[1]=="number"?N[1]:q+f}}return b}}}function PE(l){return Array.isArray(l)?l:typeof l=="number"?[JE,l]:l==null?Qy:[l]}function Nf(l,a,u,o){let s,h,f;typeof a=="function"&&typeof u!="function"?(h=void 0,f=a,s=u):(h=a,f=u,s=o),Zy(l,h,m,s);function m(g,y){const v=y[y.length-1],p=v?v.children.indexOf(g):void 0;return f(g,p,v)}}const ff={}.hasOwnProperty,WE={};function tT(l,a){const u=a||WE,o=new Map,s=new Map,h=new Map,f={...RE,...u.handlers},m={all:y,applyData:nT,definitionById:o,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:g,options:u,patch:eT,wrap:iT};return Nf(l,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const p=v.type==="definition"?o:s,S=String(v.identifier).toUpperCase();p.has(S)||p.set(S,v)}}),m;function g(v,p){const S=v.type,b=m.handlers[S];if(ff.call(m.handlers,S)&&b)return b(m,v,p);if(m.options.passThrough&&m.options.passThrough.includes(S)){if("children"in v){const{children:q,...H}=v,w=Wr(H);return w.children=m.all(v),w}return Wr(v)}return(m.options.unknownHandler||lT)(m,v,p)}function y(v){const p=[];if("children"in v){const S=v.children;let b=-1;for(;++b<S.length;){const N=m.one(S[b],v);if(N){if(b&&S[b-1].type==="break"&&(!Array.isArray(N)&&N.type==="text"&&(N.value=Vg(N.value)),!Array.isArray(N)&&N.type==="element")){const q=N.children[0];q&&q.type==="text"&&(q.value=Vg(q.value))}Array.isArray(N)?p.push(...N):p.push(N)}}}return p}}function eT(l,a){l.position&&(a.position=Gb(l))}function nT(l,a){let u=a;if(l&&l.data){const o=l.data.hName,s=l.data.hChildren,h=l.data.hProperties;if(typeof o=="string")if(u.type==="element")u.tagName=o;else{const f="children"in u?u.children:[u];u={type:"element",tagName:o,properties:{},children:f}}u.type==="element"&&h&&Object.assign(u.properties,Wr(h)),"children"in u&&u.children&&s!==null&&s!==void 0&&(u.children=s)}return u}function lT(l,a){const u=a.data||{},o="value"in a&&!(ff.call(u,"hProperties")||ff.call(u,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:l.all(a)};return l.patch(a,o),l.applyData(a,o)}function iT(l,a){const u=[];let o=-1;for(a&&u.push({type:"text",value:`
59
+ `});++o<l.length;)o&&u.push({type:"text",value:`
60
+ `}),u.push(l[o]);return a&&l.length>0&&u.push({type:"text",value:`
61
+ `}),u}function Vg(l){let a=0,u=l.charCodeAt(a);for(;u===9||u===32;)a++,u=l.charCodeAt(a);return l.slice(a)}function Gg(l,a){const u=tT(l,a),o=u.one(l,void 0),s=XE(u),h=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&h.children.push({type:"text",value:`
62
+ `},s),h}function aT(l,a){return l&&"run"in l?async function(u,o){const s=Gg(u,{file:o,...a});await l.run(s,o)}:function(u,o){return Gg(u,{file:o,...l||a})}}function Xg(l){if(l)throw l}var Xs,Qg;function uT(){if(Qg)return Xs;Qg=1;var l=Object.prototype.hasOwnProperty,a=Object.prototype.toString,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(y){return typeof Array.isArray=="function"?Array.isArray(y):a.call(y)==="[object Array]"},h=function(y){if(!y||a.call(y)!=="[object Object]")return!1;var v=l.call(y,"constructor"),p=y.constructor&&y.constructor.prototype&&l.call(y.constructor.prototype,"isPrototypeOf");if(y.constructor&&!v&&!p)return!1;var S;for(S in y);return typeof S>"u"||l.call(y,S)},f=function(y,v){u&&v.name==="__proto__"?u(y,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):y[v.name]=v.newValue},m=function(y,v){if(v==="__proto__")if(l.call(y,v)){if(o)return o(y,v).value}else return;return y[v]};return Xs=function g(){var y,v,p,S,b,N,q=arguments[0],H=1,w=arguments.length,I=!1;for(typeof q=="boolean"&&(I=q,q=arguments[1]||{},H=2),(q==null||typeof q!="object"&&typeof q!="function")&&(q={});H<w;++H)if(y=arguments[H],y!=null)for(v in y)p=m(q,v),S=m(y,v),q!==S&&(I&&S&&(h(S)||(b=s(S)))?(b?(b=!1,N=p&&s(p)?p:[]):N=p&&h(p)?p:{},f(q,{name:v,newValue:g(I,N,S)})):typeof S<"u"&&f(q,{name:v,newValue:S}));return q},Xs}var rT=uT();const Qs=cy(rT);function hf(l){if(typeof l!="object"||l===null)return!1;const a=Object.getPrototypeOf(l);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function oT(){const l=[],a={run:u,use:o};return a;function u(...s){let h=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...s);function m(g,...y){const v=l[++h];let p=-1;if(g){f(g);return}for(;++p<s.length;)(y[p]===null||y[p]===void 0)&&(y[p]=s[p]);s=y,v?cT(v,m)(...y):f(null,...y)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return l.push(s),a}}function cT(l,a){let u;return o;function o(...f){const m=l.length>f.length;let g;m&&f.push(s);try{g=l.apply(this,f)}catch(y){const v=y;if(m&&u)throw v;return s(v)}m||(g&&g.then&&typeof g.then=="function"?g.then(h,s):g instanceof Error?s(g):h(g))}function s(f,...m){u||(u=!0,a(f,...m))}function h(f){s(null,f)}}const Yn={basename:sT,dirname:fT,extname:hT,join:dT,sep:"/"};function sT(l,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');pu(l);let u=0,o=-1,s=l.length,h;if(a===void 0||a.length===0||a.length>l.length){for(;s--;)if(l.codePointAt(s)===47){if(h){u=s+1;break}}else o<0&&(h=!0,o=s+1);return o<0?"":l.slice(u,o)}if(a===l)return"";let f=-1,m=a.length-1;for(;s--;)if(l.codePointAt(s)===47){if(h){u=s+1;break}}else f<0&&(h=!0,f=s+1),m>-1&&(l.codePointAt(s)===a.codePointAt(m--)?m<0&&(o=s):(m=-1,o=f));return u===o?o=f:o<0&&(o=l.length),l.slice(u,o)}function fT(l){if(pu(l),l.length===0)return".";let a=-1,u=l.length,o;for(;--u;)if(l.codePointAt(u)===47){if(o){a=u;break}}else o||(o=!0);return a<0?l.codePointAt(0)===47?"/":".":a===1&&l.codePointAt(0)===47?"//":l.slice(0,a)}function hT(l){pu(l);let a=l.length,u=-1,o=0,s=-1,h=0,f;for(;a--;){const m=l.codePointAt(a);if(m===47){if(f){o=a+1;break}continue}u<0&&(f=!0,u=a+1),m===46?s<0?s=a:h!==1&&(h=1):s>-1&&(h=-1)}return s<0||u<0||h===0||h===1&&s===u-1&&s===o+1?"":l.slice(s,u)}function dT(...l){let a=-1,u;for(;++a<l.length;)pu(l[a]),l[a]&&(u=u===void 0?l[a]:u+"/"+l[a]);return u===void 0?".":mT(u)}function mT(l){pu(l);const a=l.codePointAt(0)===47;let u=pT(l,!a);return u.length===0&&!a&&(u="."),u.length>0&&l.codePointAt(l.length-1)===47&&(u+="/"),a?"/"+u:u}function pT(l,a){let u="",o=0,s=-1,h=0,f=-1,m,g;for(;++f<=l.length;){if(f<l.length)m=l.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(s===f-1||h===1))if(s!==f-1&&h===2){if(u.length<2||o!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(g=u.lastIndexOf("/"),g!==u.length-1){g<0?(u="",o=0):(u=u.slice(0,g),o=u.length-1-u.lastIndexOf("/")),s=f,h=0;continue}}else if(u.length>0){u="",o=0,s=f,h=0;continue}}a&&(u=u.length>0?u+"/..":"..",o=2)}else u.length>0?u+="/"+l.slice(s+1,f):u=l.slice(s+1,f),o=f-s-1;s=f,h=0}else m===46&&h>-1?h++:h=-1}return u}function pu(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}const gT={cwd:yT};function yT(){return"/"}function df(l){return!!(l!==null&&typeof l=="object"&&"href"in l&&l.href&&"protocol"in l&&l.protocol&&l.auth===void 0)}function vT(l){if(typeof l=="string")l=new URL(l);else if(!df(l)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+l+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(l.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return bT(l)}function bT(l){if(l.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=l.pathname;let u=-1;for(;++u<a.length;)if(a.codePointAt(u)===37&&a.codePointAt(u+1)===50){const o=a.codePointAt(u+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Zs=["history","path","basename","stem","extname","dirname"];class Iy{constructor(a){let u;a?df(a)?u={path:a}:typeof a=="string"||xT(a)?u={value:a}:u=a:u={},this.cwd="cwd"in u?"":gT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Zs.length;){const h=Zs[o];h in u&&u[h]!==void 0&&u[h]!==null&&(this[h]=h==="history"?[...u[h]]:u[h])}let s;for(s in u)Zs.includes(s)||(this[s]=u[s])}get basename(){return typeof this.path=="string"?Yn.basename(this.path):void 0}set basename(a){Ks(a,"basename"),Is(a,"basename"),this.path=Yn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Yn.dirname(this.path):void 0}set dirname(a){Zg(this.basename,"dirname"),this.path=Yn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Yn.extname(this.path):void 0}set extname(a){if(Is(a,"extname"),Zg(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=Yn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){df(a)&&(a=vT(a)),Ks(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Yn.basename(this.path,this.extname):void 0}set stem(a){Ks(a,"stem"),Is(a,"stem"),this.path=Yn.join(this.dirname||"",a+(this.extname||""))}fail(a,u,o){const s=this.message(a,u,o);throw s.fatal=!0,s}info(a,u,o){const s=this.message(a,u,o);return s.fatal=void 0,s}message(a,u,o){const s=new _e(a,u,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Is(l,a){if(l&&l.includes(Yn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Yn.sep+"`")}function Ks(l,a){if(!l)throw new Error("`"+a+"` cannot be empty")}function Zg(l,a){if(!l)throw new Error("Setting `"+a+"` requires `path` to be set too")}function xT(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const ST=(function(l){const o=this.constructor.prototype,s=o[l],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,o),h}),ET={}.hasOwnProperty;class _f extends ST{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=oT()}copy(){const a=new _f;let u=-1;for(;++u<this.attachers.length;){const o=this.attachers[u];a.use(...o)}return a.data(Qs(!0,{},this.namespace)),a}data(a,u){return typeof a=="string"?arguments.length===2?($s("data",this.frozen),this.namespace[a]=u,this):ET.call(this.namespace,a)&&this.namespace[a]||void 0:a?($s("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,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=u.call(a,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const u=Qr(a),o=this.parser||this.Parser;return Fs("parse",o),o(String(u),u)}process(a,u){const o=this;return this.freeze(),Fs("process",this.parser||this.Parser),Js("process",this.compiler||this.Compiler),u?s(void 0,u):new Promise(s);function s(h,f){const m=Qr(a),g=o.parse(m);o.run(g,m,function(v,p,S){if(v||!p||!S)return y(v);const b=p,N=o.stringify(b,S);AT(N)?S.value=N:S.result=N,y(v,S)});function y(v,p){v||!p?f(v):h?h(p):u(void 0,p)}}}processSync(a){let u=!1,o;return this.freeze(),Fs("processSync",this.parser||this.Parser),Js("processSync",this.compiler||this.Compiler),this.process(a,s),Kg("processSync","process",u),o;function s(h,f){u=!0,Xg(h),o=f}}run(a,u,o){Ig(a),this.freeze();const s=this.transformers;return!o&&typeof u=="function"&&(o=u,u=void 0),o?h(void 0,o):new Promise(h);function h(f,m){const g=Qr(u);s.run(a,g,y);function y(v,p,S){const b=p||a;v?m(v):f?f(b):o(void 0,b,S)}}}runSync(a,u){let o=!1,s;return this.run(a,u,h),Kg("runSync","run",o),s;function h(f,m){Xg(f),s=m,o=!0}}stringify(a,u){this.freeze();const o=Qr(u),s=this.compiler||this.Compiler;return Js("stringify",s),Ig(a),s(a,o)}use(a,...u){const o=this.attachers,s=this.namespace;if($s("use",this.frozen),a!=null)if(typeof a=="function")g(a,u);else if(typeof a=="object")Array.isArray(a)?m(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function h(y){if(typeof y=="function")g(y,[]);else if(typeof y=="object")if(Array.isArray(y)){const[v,...p]=y;g(v,p)}else f(y);else throw new TypeError("Expected usable value, not `"+y+"`")}function f(y){if(!("plugins"in y)&&!("settings"in y))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(y.plugins),y.settings&&(s.settings=Qs(!0,s.settings,y.settings))}function m(y){let v=-1;if(y!=null)if(Array.isArray(y))for(;++v<y.length;){const p=y[v];h(p)}else throw new TypeError("Expected a list of plugins, not `"+y+"`")}function g(y,v){let p=-1,S=-1;for(;++p<o.length;)if(o[p][0]===y){S=p;break}if(S===-1)o.push([y,...v]);else if(v.length>0){let[b,...N]=v;const q=o[S][1];hf(q)&&hf(b)&&(b=Qs(!0,q,b)),o[S]=[y,b,...N]}}}}const TT=new _f().freeze();function Fs(l,a){if(typeof a!="function")throw new TypeError("Cannot `"+l+"` without `parser`")}function Js(l,a){if(typeof a!="function")throw new TypeError("Cannot `"+l+"` without `compiler`")}function $s(l,a){if(a)throw new Error("Cannot call `"+l+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ig(l){if(!hf(l)||typeof l.type!="string")throw new TypeError("Expected node, got `"+l+"`")}function Kg(l,a,u){if(!u)throw new Error("`"+l+"` finished async. Use `"+a+"` instead")}function Qr(l){return CT(l)?l:new Iy(l)}function CT(l){return!!(l&&typeof l=="object"&&"message"in l&&"messages"in l)}function AT(l){return typeof l=="string"||zT(l)}function zT(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const wT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Fg=[],Jg={allowDangerousHtml:!0},kT=/^(https?|ircs?|mailto|xmpp)$/i,NT=[{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 _T(l){const a=OT(l),u=DT(l);return MT(a.runSync(a.parse(u),u),l)}function OT(l){const a=l.rehypePlugins||Fg,u=l.remarkPlugins||Fg,o=l.remarkRehypeOptions?{...l.remarkRehypeOptions,...Jg}:Jg;return TT().use(cE).use(u).use(aT,o).use(a)}function DT(l){const a=l.children||"",u=new Iy;return typeof a=="string"&&(u.value=a),u}function MT(l,a){const u=a.allowedElements,o=a.allowElement,s=a.components,h=a.disallowedElements,f=a.skipHtml,m=a.unwrapDisallowed,g=a.urlTransform||jT;for(const v of NT)Object.hasOwn(a,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+wT+v.id,void 0);return Nf(l,y),Kb(l,{Fragment:E.Fragment,components:s,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function y(v,p,S){if(v.type==="raw"&&S&&typeof p=="number")return f?S.children.splice(p,1):S.children[p]={type:"text",value:v.value},p;if(v.type==="element"){let b;for(b in Ys)if(Object.hasOwn(Ys,b)&&Object.hasOwn(v.properties,b)){const N=v.properties[b],q=Ys[b];(q===null||q.includes(v.tagName))&&(v.properties[b]=g(String(N||""),b,v))}}if(v.type==="element"){let b=u?!u.includes(v.tagName):h?h.includes(v.tagName):!1;if(!b&&o&&typeof p=="number"&&(b=!o(v,p,S)),b&&S&&typeof p=="number")return m&&v.children?S.children.splice(p,1,...v.children):S.children.splice(p,1),p}}}function jT(l){const a=l.indexOf(":"),u=l.indexOf("?"),o=l.indexOf("#"),s=l.indexOf("/");return a===-1||s!==-1&&a>s||u!==-1&&a>u||o!==-1&&a>o||kT.test(l.slice(0,a))?l:""}function $g(l,a){const u=String(l);if(typeof a!="string")throw new TypeError("Expected character");let o=0,s=u.indexOf(a);for(;s!==-1;)o++,s=u.indexOf(a,s+a.length);return o}function RT(l){if(typeof l!="string")throw new TypeError("Expected a string");return l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function LT(l,a,u){const s=lo((u||{}).ignore||[]),h=UT(a);let f=-1;for(;++f<h.length;)Zy(l,"text",m);function m(y,v){let p=-1,S;for(;++p<v.length;){const b=v[p],N=S?S.children:void 0;if(s(b,N?N.indexOf(b):void 0,S))return;S=b}if(S)return g(y,v)}function g(y,v){const p=v[v.length-1],S=h[f][0],b=h[f][1];let N=0;const H=p.children.indexOf(y);let w=!1,I=[];S.lastIndex=0;let X=S.exec(y.value);for(;X;){const ot=X.index,F={index:X.index,input:X.input,stack:[...v,y]};let j=b(...X,F);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?S.lastIndex=ot+1:(N!==ot&&I.push({type:"text",value:y.value.slice(N,ot)}),Array.isArray(j)?I.push(...j):j&&I.push(j),N=ot+X[0].length,w=!0),!S.global)break;X=S.exec(y.value)}return w?(N<y.value.length&&I.push({type:"text",value:y.value.slice(N)}),p.children.splice(H,1,...I)):I=[y],H+I.length}}function UT(l){const a=[];if(!Array.isArray(l))throw new TypeError("Expected find and replace tuple or list of tuples");const u=!l[0]||Array.isArray(l[0])?l:[l];let o=-1;for(;++o<u.length;){const s=u[o];a.push([BT(s[0]),HT(s[1])])}return a}function BT(l){return typeof l=="string"?new RegExp(RT(l),"g"):l}function HT(l){return typeof l=="function"?l:function(){return l}}const Ps="phrasing",Ws=["autolink","link","image","label"];function qT(){return{transforms:[IT],enter:{literalAutolink:VT,literalAutolinkEmail:tf,literalAutolinkHttp:tf,literalAutolinkWww:tf},exit:{literalAutolink:ZT,literalAutolinkEmail:QT,literalAutolinkHttp:GT,literalAutolinkWww:XT}}}function YT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ps,notInConstruct:Ws},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ps,notInConstruct:Ws},{character:":",before:"[ps]",after:"\\/",inConstruct:Ps,notInConstruct:Ws}]}}function VT(l){this.enter({type:"link",title:null,url:"",children:[]},l)}function tf(l){this.config.enter.autolinkProtocol.call(this,l)}function GT(l){this.config.exit.autolinkProtocol.call(this,l)}function XT(l){this.config.exit.data.call(this,l);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(l)}function QT(l){this.config.exit.autolinkEmail.call(this,l)}function ZT(l){this.exit(l)}function IT(l){LT(l,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),FT]],{ignore:["link","linkReference"]})}function KT(l,a,u,o,s){let h="";if(!Ky(s)||(/^w/i.test(a)&&(u=a+u,a="",h="http://"),!JT(u)))return!1;const f=$T(u+o);if(!f[0])return!1;const m={type:"link",title:null,url:h+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[m,{type:"text",value:f[1]}]:m}function FT(l,a,u,o){return!Ky(o,!0)||/[-\d_]$/.test(u)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+u,children:[{type:"text",value:a+"@"+u}]}}function JT(l){const a=l.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 $T(l){const a=/[!"&'),.:;<>?\]}]+$/.exec(l);if(!a)return[l,void 0];l=l.slice(0,a.index);let u=a[0],o=u.indexOf(")");const s=$g(l,"(");let h=$g(l,")");for(;o!==-1&&s>h;)l+=u.slice(0,o+1),u=u.slice(o+1),o=u.indexOf(")"),h++;return[l,u]}function Ky(l,a){const u=l.input.charCodeAt(l.index-1);return(l.index===0||hi(u)||to(u))&&(!a||u!==47)}Fy.peek=u2;function PT(){this.buffer()}function WT(l){this.enter({type:"footnoteReference",identifier:"",label:""},l)}function t2(){this.buffer()}function e2(l){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},l)}function n2(l){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=Nn(this.sliceSerialize(l)).toLowerCase(),u.label=a}function l2(l){this.exit(l)}function i2(l){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=Nn(this.sliceSerialize(l)).toLowerCase(),u.label=a}function a2(l){this.exit(l)}function u2(){return"["}function Fy(l,a,u,o){const s=u.createTracker(o);let h=s.move("[^");const f=u.enter("footnoteReference"),m=u.enter("reference");return h+=s.move(u.safe(u.associationId(l),{after:"]",before:h})),m(),f(),h+=s.move("]"),h}function r2(){return{enter:{gfmFootnoteCallString:PT,gfmFootnoteCall:WT,gfmFootnoteDefinitionLabelString:t2,gfmFootnoteDefinition:e2},exit:{gfmFootnoteCallString:n2,gfmFootnoteCall:l2,gfmFootnoteDefinitionLabelString:i2,gfmFootnoteDefinition:a2}}}function o2(l){let a=!1;return l&&l.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:u,footnoteReference:Fy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function u(o,s,h,f){const m=h.createTracker(f);let g=m.move("[^");const y=h.enter("footnoteDefinition"),v=h.enter("label");return g+=m.move(h.safe(h.associationId(o),{before:g,after:"]"})),v(),g+=m.move("]:"),o.children&&o.children.length>0&&(m.shift(4),g+=m.move((a?`
63
+ `:" ")+h.indentLines(h.containerFlow(o,m.current()),a?Jy:c2))),y(),g}}function c2(l,a,u){return a===0?l:Jy(l,a,u)}function Jy(l,a,u){return(u?"":" ")+l}const s2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Of.attention=p2;Of.peek=g2;function f2(){return{canContainEols:["delete"],enter:{strikethrough:d2},exit:{strikethrough:m2}}}function h2(){return{handlers:{delete:Of},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:s2}]}}function d2(l){this.enter({type:"delete",children:[],position:void 0},l)}function m2(l){this.exit(l)}function Of(l,a,u,o){const s=u.createTracker(o),h=u.stack.includes("strikethrough")?"~":"~~",f=u.enter("strikethrough");let m=s.move(h);return m+=u.containerPhrasing(l,{...s.current(),before:m,after:"~"}),m+=s.move(h),f(),m}function p2(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function g2(){return"~"}function y2(l){return l.length}function v2(l,a){const u=a||{},o=(u.align||[]).concat(),s=u.stringLength||y2,h=[],f=[],m=[],g=[];let y=0,v=-1;for(;++v<l.length;){const q=[],H=[];let w=-1;for(l[v].length>y&&(y=l[v].length);++w<l[v].length;){const I=b2(l[v][w]);if(u.alignDelimiters!==!1){const X=s(I);H[w]=X,(g[w]===void 0||X>g[w])&&(g[w]=X)}q.push(I)}f[v]=q,m[v]=H}let p=-1;if(typeof o=="object"&&"length"in o)for(;++p<y;)h[p]=Pg(o[p]);else{const q=Pg(o);for(;++p<y;)h[p]=q}p=-1;const S=[],b=[];for(;++p<y;){const q=h[p];let H="",w="";q===99?(H=":",w=":"):q===108?H=":":q===114&&(w=":");let I=u.alignDelimiters===!1?1:Math.max(1,g[p]-H.length-w.length);const X=H+"-".repeat(I)+w;u.alignDelimiters!==!1&&(I=H.length+I+w.length,I>g[p]&&(g[p]=I),b[p]=I),S[p]=X}f.splice(1,0,S),m.splice(1,0,b),v=-1;const N=[];for(;++v<f.length;){const q=f[v],H=m[v];p=-1;const w=[];for(;++p<y;){const I=q[p]||"";let X="",ot="";if(u.alignDelimiters!==!1){const F=g[p]-(H[p]||0),j=h[p];j===114?X=" ".repeat(F):j===99?F%2?(X=" ".repeat(F/2+.5),ot=" ".repeat(F/2-.5)):(X=" ".repeat(F/2),ot=X):ot=" ".repeat(F)}u.delimiterStart!==!1&&!p&&w.push("|"),u.padding!==!1&&!(u.alignDelimiters===!1&&I==="")&&(u.delimiterStart!==!1||p)&&w.push(" "),u.alignDelimiters!==!1&&w.push(X),w.push(I),u.alignDelimiters!==!1&&w.push(ot),u.padding!==!1&&w.push(" "),(u.delimiterEnd!==!1||p!==y-1)&&w.push("|")}N.push(u.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return N.join(`
64
+ `)}function b2(l){return l==null?"":String(l)}function Pg(l){const a=typeof l=="string"?l.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}const x2=lo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function S2(l,a,u,o){const s=u.enter("blockquote"),h=u.createTracker(o);h.move("> "),h.shift(2);const f=u.indentLines(u.containerFlow(l,h.current()),E2);return s(),f}function E2(l,a,u){return">"+(u?"":" ")+l}function T2(l,a){return Wg(l,a.inConstruct,!0)&&!Wg(l,a.notInConstruct,!1)}function Wg(l,a,u){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return u;let o=-1;for(;++o<a.length;)if(l.includes(a[o]))return!0;return!1}function ty(l,a,u,o){let s=-1;for(;++s<u.unsafe.length;){const h=u.unsafe[s];if(h.character===`
65
+ `&&!h.before&&!h.after&&T2(u.stack,h))return/[\t ]/.test(o.before)?"":" "}return`\\
66
+ `}function C2(l,a){const u=String(l);let o=u.indexOf(a),s=o,h=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++h>f&&(f=h):h=1,s=o+a.length,o=u.indexOf(a,s);return f}function A2(l,a){return!!(a.options.fences===!1&&l.value&&!l.lang&&/[^\n\r ]/.test(l.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(l.value))}function z2(l){const a=l.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function w2(l,a,u,o){const s=z2(u),h=l.value||"";if(A2(l,u)){const p=u.enter("codeIndented"),S=u.indentLines(h,k2);return p(),S}const f=u.createTracker(o),m=s.repeat(Math.max(C2(h,s)+1,3)),g=u.enter("codeFenced"),y=s==="`"?"GraveAccent":"Tilde";let v=f.move(m);if(l.lang){const p=u.enter(`codeFencedLang${y}`);v+=f.move(u.safe(l.lang,{before:v,after:" ",encode:["`"],...f.current()})),p()}if(l.lang&&l.meta){const p=u.enter(`codeFencedMeta${y}`);v+=f.move(" "),v+=f.move(u.safe(l.meta,{before:v,after:`
67
+ `,encode:["`"],...f.current()})),p()}return v+=f.move(`
68
+ `),h&&(v+=f.move(h+`
69
+ `)),v+=f.move(m),g(),v}function k2(l,a,u){return(u?"":" ")+l}function Df(l){const a=l.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function N2(l,a,u,o){const s=Df(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("definition");let m=u.enter("label");const g=u.createTracker(o);let y=g.move("[");return y+=g.move(u.safe(u.associationId(l),{before:y,after:"]",...g.current()})),y+=g.move("]: "),m(),!l.url||/[\0- \u007F]/.test(l.url)?(m=u.enter("destinationLiteral"),y+=g.move("<"),y+=g.move(u.safe(l.url,{before:y,after:">",...g.current()})),y+=g.move(">")):(m=u.enter("destinationRaw"),y+=g.move(u.safe(l.url,{before:y,after:l.title?" ":`
70
+ `,...g.current()}))),m(),l.title&&(m=u.enter(`title${h}`),y+=g.move(" "+s),y+=g.move(u.safe(l.title,{before:y,after:s,...g.current()})),y+=g.move(s),m()),f(),y}function _2(l){const a=l.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}Mf.attention=O2;Mf.peek=D2;function Mf(l,a,u,o){const s=u.enter("phrasing"),h=u.containerPhrasing({type:"root",children:[l]},o);return s(),h}function O2(l,a){return{construct:"emphasis",markers:_2(a)==="*"?["*","_"]:["_","*"],sizes:[1]}}function D2(l,a,u){return u.options.emphasis||"*"}function M2(l){return"&#x"+l.toString(16).toUpperCase()+";"}function j2(l,a){let u=!1;return Nf(l,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return u=!0,sf}),!!((!l.depth||l.depth<3)&&Ef(l)&&(a.options.setext||u))}function R2(l,a,u,o){const s=Math.max(Math.min(6,l.depth||1),1),h=u.createTracker(o);if(j2(l,u)){const p=u.enter("headingSetext"),S=u.enter("phrasing"),b=u.containerPhrasing(l,{...h.current(),before:`
71
+ `,after:`
72
+ `});return S(),p(),b+`
73
+ `+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
74
+ `))+1))}const f="#".repeat(s),m=u.enter("headingAtx"),g=u.enter("phrasing");h.move(f+" ");let y=u.containerPhrasing(l,{before:"# ",after:`
75
+ `,...h.current()});const v=y.charCodeAt(0);return(v===9||v===32)&&(y=M2(v)+y.slice(1)),y=y?f+" "+y:f,u.options.closeAtx&&(y+=" "+f),g(),m(),y}$y.peek=L2;function $y(l){return l.value||""}function L2(){return"<"}Py.peek=U2;function Py(l,a,u,o){const s=Df(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("image");let m=u.enter("label");const g=u.createTracker(o);let y=g.move("![");return y+=g.move(u.safe(l.alt,{before:y,after:"]",...g.current()})),y+=g.move("]("),m(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(m=u.enter("destinationLiteral"),y+=g.move("<"),y+=g.move(u.safe(l.url,{before:y,after:">",...g.current()})),y+=g.move(">")):(m=u.enter("destinationRaw"),y+=g.move(u.safe(l.url,{before:y,after:l.title?" ":")",...g.current()}))),m(),l.title&&(m=u.enter(`title${h}`),y+=g.move(" "+s),y+=g.move(u.safe(l.title,{before:y,after:s,...g.current()})),y+=g.move(s),m()),y+=g.move(")"),f(),y}function U2(){return"!"}Wy.peek=B2;function Wy(l,a,u,o){const s=l.referenceType,h=u.enter("imageReference");let f=u.enter("label");const m=u.createTracker(o);let g=m.move("![");const y=u.safe(l.alt,{before:g,after:"]",...m.current()});g+=m.move(y+"]["),f();const v=u.stack;u.stack=v.filter(function(S){return S!=="phrasing"}),f=u.enter("reference");const p=u.safe(u.associationId(l),{before:g,after:"]",...m.current()});return f(),u.stack=v,h(),s==="full"||!y||y!==p?g+=m.move(p+"]"):s==="shortcut"?g=g.slice(0,-1):g+=m.move("]"),g}function B2(){return"!"}t1.peek=H2;function t1(l,a,u){let o=l.value||"",s="`",h=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^\n\r ]/.test(o)&&(/^[\n\r ]/.test(o)&&/[\n\r ]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++h<u.unsafe.length;){const f=u.unsafe[h],m=u.compilePattern(f);if(!f.atBreak)continue;let g;for(;g=m.exec(o);){let y=g.index;o.charCodeAt(y)===10&&o.charCodeAt(y-1)===13&&y--,o=o.slice(0,y)+" "+o.slice(g.index+1)}}return s+o+s}function H2(){return"`"}function e1(l,a){const u=Ef(l);return!!(!a.options.resourceLink&&l.url&&!l.title&&l.children&&l.children.length===1&&l.children[0].type==="text"&&(u===l.url||"mailto:"+u===l.url)&&/^[a-z][+\-.a-z]+:/i.test(l.url)&&!/[\0- <>\u007F]/.test(l.url))}n1.peek=q2;function n1(l,a,u,o){const s=Df(u),h=s==='"'?"Quote":"Apostrophe",f=u.createTracker(o);if(e1(l,u)){const v=u.stack;u.stack=v.filter(function(b){return b!=="phrasing"});const p=u.enter("autolink");let S=f.move("<");return S+=f.move(u.containerPhrasing(l,{before:S,after:">",...f.current()})),S+=f.move(">"),p(),u.stack=v,S}const m=u.enter("link");let g=u.enter("label"),y=f.move("[");return y+=f.move(u.containerPhrasing(l,{before:y,after:"](",...f.current()})),y+=f.move("]("),g(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(g=u.enter("destinationLiteral"),y+=f.move("<"),y+=f.move(u.safe(l.url,{before:y,after:">",...f.current()})),y+=f.move(">")):(g=u.enter("destinationRaw"),y+=f.move(u.safe(l.url,{before:y,after:l.title?" ":")",...f.current()}))),g(),l.title&&(g=u.enter(`title${h}`),y+=f.move(" "+s),y+=f.move(u.safe(l.title,{before:y,after:s,...f.current()})),y+=f.move(s),g()),y+=f.move(")"),m(),y}function q2(l,a,u){return e1(l,u)?"<":"["}l1.peek=Y2;function l1(l,a,u,o){const s=l.referenceType,h=u.enter("linkReference");let f=u.enter("label");const m=u.createTracker(o);let g=m.move("[");const y=u.containerPhrasing(l,{before:g,after:"]",...m.current()});g+=m.move(y+"]["),f();const v=u.stack;u.stack=v.filter(function(S){return S!=="phrasing"}),f=u.enter("reference");const p=u.safe(u.associationId(l),{before:g,after:"]",...m.current()});return f(),u.stack=v,h(),s==="full"||!y||y!==p?g+=m.move(p+"]"):s==="shortcut"?g=g.slice(0,-1):g+=m.move("]"),g}function Y2(){return"["}function jf(l){const a=l.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function V2(l){const a=jf(l),u=l.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 G2(l){const a=l.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function i1(l){const a=l.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function X2(l,a,u,o){const s=u.enter("list"),h=u.bulletCurrent;let f=l.ordered?G2(u):jf(u);const m=l.ordered?f==="."?")":".":V2(u);let g=a&&u.bulletLastUsed?f===u.bulletLastUsed:!1;if(!l.ordered){const v=l.children?l.children[0]:void 0;if((f==="*"||f==="-")&&v&&(!v.children||!v.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&&(g=!0),i1(u)===f&&v){let p=-1;for(;++p<l.children.length;){const S=l.children[p];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){g=!0;break}}}}g&&(f=m),u.bulletCurrent=f;const y=u.containerFlow(l,o);return u.bulletLastUsed=f,u.bulletCurrent=h,s(),y}function Q2(l){const a=l.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 Z2(l,a,u,o){const s=Q2(u);let h=u.bulletCurrent||jf(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(l))+h);let f=h.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||l.spread))&&(f=Math.ceil(f/4)*4);const m=u.createTracker(o);m.move(h+" ".repeat(f-h.length)),m.shift(f);const g=u.enter("listItem"),y=u.indentLines(u.containerFlow(l,m.current()),v);return g(),y;function v(p,S,b){return S?(b?"":" ".repeat(f))+p:(b?h:h+" ".repeat(f-h.length))+p}}function I2(l,a,u,o){const s=u.enter("paragraph"),h=u.enter("phrasing"),f=u.containerPhrasing(l,o);return h(),s(),f}function K2(l,a,u,o){if(!l.children.some(function(m){return x2(m)}))return u.containerFlow(l,o);const h=u.enter("phrasing"),f=u.containerPhrasing(l,o);return h(),f}function F2(l){const a=l.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Rf.attention=J2;Rf.peek=$2;function Rf(l,a,u,o){const s=u.enter("phrasing"),h=u.containerPhrasing({type:"root",children:[l]},o);return s(),h}function J2(l,a){return{construct:"strong",markers:F2(a)==="*"?["*","_"]:["_","*"],sizes:[2]}}function $2(l,a,u){return u.options.strong||"*"}function P2(l,a,u,o){return u.safe(l.value,o)}function W2(l){const a=l.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 tC(l,a,u){const o=(i1(u)+(u.options.ruleSpaces?" ":"")).repeat(W2(u));return u.options.ruleSpaces?o.slice(0,-1):o}const a1={blockquote:S2,break:ty,code:w2,definition:N2,emphasis:Mf,hardBreak:ty,heading:R2,html:$y,image:Py,imageReference:Wy,inlineCode:t1,link:n1,linkReference:l1,list:X2,listItem:Z2,paragraph:I2,root:K2,strong:Rf,text:P2,thematicBreak:tC};function eC(){return{enter:{table:nC,tableData:ey,tableHeader:ey,tableRow:iC},exit:{codeText:aC,table:lC,tableData:ef,tableHeader:ef,tableRow:ef}}}function nC(l){const a=l._align;this.enter({type:"table",align:a.map(function(u){return u==="none"?null:u}),children:[]},l),this.data.inTable=!0}function lC(l){this.exit(l),this.data.inTable=void 0}function iC(l){this.enter({type:"tableRow",children:[]},l)}function ef(l){this.exit(l)}function ey(l){this.enter({type:"tableCell",children:[]},l)}function aC(l){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,uC));const u=this.stack[this.stack.length-1];u.type,u.value=a,this.exit(l)}function uC(l,a){return a==="|"?a:l}function rC(l){const a=l||{},u=a.tableCellPadding,o=a.tablePipeAlign,s=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:S,table:f,tableCell:g,tableRow:m}};function f(b,N,q,H){return y(v(b,q,H),b.align)}function m(b,N,q,H){const w=p(b,q,H),I=y([w]);return I.slice(0,I.indexOf(`
77
+ `))}function g(b,N,q,H){const w=q.enter("tableCell"),I=q.enter("phrasing"),X=q.containerPhrasing(b,{...H,before:h,after:h});return I(),w(),X}function y(b,N){return v2(b,{align:N,alignDelimiters:o,padding:u,stringLength:s})}function v(b,N,q){const H=b.children;let w=-1;const I=[],X=N.enter("table");for(;++w<H.length;)I[w]=p(H[w],N,q);return X(),I}function p(b,N,q){const H=b.children;let w=-1;const I=[],X=N.enter("tableRow");for(;++w<H.length;)I[w]=g(H[w],b,N,q);return X(),I}function S(b,N,q){let H=a1.inlineCode(b,N,q);return q.stack.includes("tableCell")&&(H=H.replace(/\|/g,"\\$&")),H}}function oC(){return{exit:{taskListCheckValueChecked:ny,taskListCheckValueUnchecked:ny,paragraph:sC}}}function cC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fC}}}function ny(l){const a=this.stack[this.stack.length-2];a.type,a.checked=l.type==="taskListCheckValueChecked"}function sC(l){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 o=u.children[0];if(o&&o.type==="text"){const s=a.children;let h=-1,f;for(;++h<s.length;){const m=s[h];if(m.type==="paragraph"){f=m;break}}f===u&&(o.value=o.value.slice(1),o.value.length===0?u.children.shift():u.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,u.position.start=Object.assign({},o.position.start)))}}this.exit(l)}function fC(l,a,u,o){const s=l.children[0],h=typeof l.checked=="boolean"&&s&&s.type==="paragraph",f="["+(l.checked?"x":" ")+"] ",m=u.createTracker(o);h&&m.move(f);let g=a1.listItem(l,a,u,{...o,...m.current()});return h&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),g;function y(v){return v+f}}function hC(){return[qT(),r2(),f2(),eC(),oC()]}function dC(l){return{extensions:[YT(),o2(l),h2(),rC(l),cC()]}}const mC={tokenize:xC,partial:!0},u1={tokenize:SC,partial:!0},r1={tokenize:EC,partial:!0},o1={tokenize:TC,partial:!0},pC={tokenize:CC,partial:!0},c1={name:"wwwAutolink",tokenize:vC,previous:f1},s1={name:"protocolAutolink",tokenize:bC,previous:h1},rl={name:"emailAutolink",tokenize:yC,previous:d1},Vn={};function gC(){return{text:Vn}}let ri=48;for(;ri<123;)Vn[ri]=rl,ri++,ri===58?ri=65:ri===91&&(ri=97);Vn[43]=rl;Vn[45]=rl;Vn[46]=rl;Vn[95]=rl;Vn[72]=[rl,s1];Vn[104]=[rl,s1];Vn[87]=[rl,c1];Vn[119]=[rl,c1];function yC(l,a,u){const o=this;let s,h;return f;function f(p){return!mf(p)||!d1.call(o,o.previous)||Lf(o.events)?u(p):(l.enter("literalAutolink"),l.enter("literalAutolinkEmail"),m(p))}function m(p){return mf(p)?(l.consume(p),m):p===64?(l.consume(p),g):u(p)}function g(p){return p===46?l.check(pC,v,y)(p):p===45||p===95||Ne(p)?(h=!0,l.consume(p),g):v(p)}function y(p){return l.consume(p),s=!0,g}function v(p){return h&&s&&Ue(o.previous)?(l.exit("literalAutolinkEmail"),l.exit("literalAutolink"),a(p)):u(p)}}function vC(l,a,u){const o=this;return s;function s(f){return f!==87&&f!==119||!f1.call(o,o.previous)||Lf(o.events)?u(f):(l.enter("literalAutolink"),l.enter("literalAutolinkWww"),l.check(mC,l.attempt(u1,l.attempt(r1,h),u),u)(f))}function h(f){return l.exit("literalAutolinkWww"),l.exit("literalAutolink"),a(f)}}function bC(l,a,u){const o=this;let s="",h=!1;return f;function f(p){return(p===72||p===104)&&h1.call(o,o.previous)&&!Lf(o.events)?(l.enter("literalAutolink"),l.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),l.consume(p),m):u(p)}function m(p){if(Ue(p)&&s.length<5)return s+=String.fromCodePoint(p),l.consume(p),m;if(p===58){const S=s.toLowerCase();if(S==="http"||S==="https")return l.consume(p),g}return u(p)}function g(p){return p===47?(l.consume(p),h?y:(h=!0,g)):u(p)}function y(p){return p===null||Fr(p)||Jt(p)||hi(p)||to(p)?u(p):l.attempt(u1,l.attempt(r1,v),u)(p)}function v(p){return l.exit("literalAutolinkHttp"),l.exit("literalAutolink"),a(p)}}function xC(l,a,u){let o=0;return s;function s(f){return(f===87||f===119)&&o<3?(o++,l.consume(f),s):f===46&&o===3?(l.consume(f),h):u(f)}function h(f){return f===null?u(f):a(f)}}function SC(l,a,u){let o,s,h;return f;function f(y){return y===46||y===95?l.check(o1,g,m)(y):y===null||Jt(y)||hi(y)||y!==45&&to(y)?g(y):(h=!0,l.consume(y),f)}function m(y){return y===95?o=!0:(s=o,o=void 0),l.consume(y),f}function g(y){return s||o||!h?u(y):a(y)}}function EC(l,a){let u=0,o=0;return s;function s(f){return f===40?(u++,l.consume(f),s):f===41&&o<u?h(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?l.check(o1,a,h)(f):f===null||Jt(f)||hi(f)?a(f):(l.consume(f),s)}function h(f){return f===41&&o++,l.consume(f),s}}function TC(l,a,u){return o;function o(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?(l.consume(m),o):m===38?(l.consume(m),h):m===93?(l.consume(m),s):m===60||m===null||Jt(m)||hi(m)?a(m):u(m)}function s(m){return m===null||m===40||m===91||Jt(m)||hi(m)?a(m):o(m)}function h(m){return Ue(m)?f(m):u(m)}function f(m){return m===59?(l.consume(m),o):Ue(m)?(l.consume(m),f):u(m)}}function CC(l,a,u){return o;function o(h){return l.consume(h),s}function s(h){return Ne(h)?u(h):a(h)}}function f1(l){return l===null||l===40||l===42||l===95||l===91||l===93||l===126||Jt(l)}function h1(l){return!Ue(l)}function d1(l){return!(l===47||mf(l))}function mf(l){return l===43||l===45||l===46||l===95||Ne(l)}function Lf(l){let a=l.length,u=!1;for(;a--;){const o=l[a][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){u=!0;break}if(o._gfmAutolinkLiteralWalkedInto){u=!1;break}}return l.length>0&&!u&&(l[l.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),u}const AC={tokenize:MC,partial:!0};function zC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_C,continuation:{tokenize:OC},exit:DC}},text:{91:{name:"gfmFootnoteCall",tokenize:NC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wC,resolveTo:kC}}}}function wC(l,a,u){const o=this;let s=o.events.length;const h=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f;for(;s--;){const g=o.events[s][1];if(g.type==="labelImage"){f=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return m;function m(g){if(!f||!f._balanced)return u(g);const y=Nn(o.sliceSerialize({start:f.end,end:o.now()}));return y.codePointAt(0)!==94||!h.includes(y.slice(1))?u(g):(l.enter("gfmFootnoteCallLabelMarker"),l.consume(g),l.exit("gfmFootnoteCallLabelMarker"),a(g))}}function kC(l,a){let u=l.length;for(;u--;)if(l[u][1].type==="labelImage"&&l[u][0]==="enter"){l[u][1];break}l[u+1][1].type="data",l[u+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},l[u+3][1].start),end:Object.assign({},l[l.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},l[u+3][1].end),end:Object.assign({},l[u+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},l[l.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},m=[l[u+1],l[u+2],["enter",o,a],l[u+3],l[u+4],["enter",s,a],["exit",s,a],["enter",h,a],["enter",f,a],["exit",f,a],["exit",h,a],l[l.length-2],l[l.length-1],["exit",o,a]];return l.splice(u,l.length-u+1,...m),l}function NC(l,a,u){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let h=0,f;return m;function m(p){return l.enter("gfmFootnoteCall"),l.enter("gfmFootnoteCallLabelMarker"),l.consume(p),l.exit("gfmFootnoteCallLabelMarker"),g}function g(p){return p!==94?u(p):(l.enter("gfmFootnoteCallMarker"),l.consume(p),l.exit("gfmFootnoteCallMarker"),l.enter("gfmFootnoteCallString"),l.enter("chunkString").contentType="string",y)}function y(p){if(h>999||p===93&&!f||p===null||p===91||Jt(p))return u(p);if(p===93){l.exit("chunkString");const S=l.exit("gfmFootnoteCallString");return s.includes(Nn(o.sliceSerialize(S)))?(l.enter("gfmFootnoteCallLabelMarker"),l.consume(p),l.exit("gfmFootnoteCallLabelMarker"),l.exit("gfmFootnoteCall"),a):u(p)}return Jt(p)||(f=!0),h++,l.consume(p),p===92?v:y}function v(p){return p===91||p===92||p===93?(l.consume(p),h++,y):y(p)}}function _C(l,a,u){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let h,f=0,m;return g;function g(N){return l.enter("gfmFootnoteDefinition")._container=!0,l.enter("gfmFootnoteDefinitionLabel"),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(N),l.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(N){return N===94?(l.enter("gfmFootnoteDefinitionMarker"),l.consume(N),l.exit("gfmFootnoteDefinitionMarker"),l.enter("gfmFootnoteDefinitionLabelString"),l.enter("chunkString").contentType="string",v):u(N)}function v(N){if(f>999||N===93&&!m||N===null||N===91||Jt(N))return u(N);if(N===93){l.exit("chunkString");const q=l.exit("gfmFootnoteDefinitionLabelString");return h=Nn(o.sliceSerialize(q)),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(N),l.exit("gfmFootnoteDefinitionLabelMarker"),l.exit("gfmFootnoteDefinitionLabel"),S}return Jt(N)||(m=!0),f++,l.consume(N),N===92?p:v}function p(N){return N===91||N===92||N===93?(l.consume(N),f++,v):v(N)}function S(N){return N===58?(l.enter("definitionMarker"),l.consume(N),l.exit("definitionMarker"),s.includes(h)||s.push(h),Ht(l,b,"gfmFootnoteDefinitionWhitespace")):u(N)}function b(N){return a(N)}}function OC(l,a,u){return l.check(mu,a,l.attempt(AC,a,u))}function DC(l){l.exit("gfmFootnoteDefinition")}function MC(l,a,u){const o=this;return Ht(l,s,"gfmFootnoteDefinitionIndent",5);function s(h){const f=o.events[o.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(h):u(h)}}function jC(l){let u=(l||{}).singleTilde;const o={name:"strikethrough",tokenize:h,resolveAll:s};return u==null&&(u=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(f,m){let g=-1;for(;++g<f.length;)if(f[g][0]==="enter"&&f[g][1].type==="strikethroughSequenceTemporary"&&f[g][1]._close){let y=g;for(;y--;)if(f[y][0]==="exit"&&f[y][1].type==="strikethroughSequenceTemporary"&&f[y][1]._open&&f[g][1].end.offset-f[g][1].start.offset===f[y][1].end.offset-f[y][1].start.offset){f[g][1].type="strikethroughSequence",f[y][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},f[y][1].start),end:Object.assign({},f[g][1].end)},p={type:"strikethroughText",start:Object.assign({},f[y][1].end),end:Object.assign({},f[g][1].start)},S=[["enter",v,m],["enter",f[y][1],m],["exit",f[y][1],m],["enter",p,m]],b=m.parser.constructs.insideSpan.null;b&&kn(S,S.length,0,eo(b,f.slice(y+1,g),m)),kn(S,S.length,0,[["exit",p,m],["enter",f[g][1],m],["exit",f[g][1],m],["exit",v,m]]),kn(f,y-1,g-y+3,S),g=y+S.length-2;break}}for(g=-1;++g<f.length;)f[g][1].type==="strikethroughSequenceTemporary"&&(f[g][1].type="data");return f}function h(f,m,g){const y=this.previous,v=this.events;let p=0;return S;function S(N){return y===126&&v[v.length-1][1].type!=="characterEscape"?g(N):(f.enter("strikethroughSequenceTemporary"),b(N))}function b(N){const q=$r(y);if(N===126)return p>1?g(N):(f.consume(N),p++,b);if(p<2&&!u)return g(N);const H=f.exit("strikethroughSequenceTemporary"),w=$r(N);return H._open=!w||w===2&&!!q,H._close=!q||q===2&&!!w,m(N)}}}class RC{constructor(){this.map=[],this.index=new Map}add(a,u,o){LC(this,a,u,o)}consume(a){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let u=this.map.length;const o=[];for(;u>0;)u-=1,o.push(a.slice(this.map[u][0]+this.map[u][1]),this.map[u][2]),a.length=this.map[u][0];o.push(a.slice()),a.length=0;let s=o.pop();for(;s;){for(const h of s)a.push(h);s=o.pop()}this.map.length=0,this.index.clear()}}function LC(l,a,u,o){if(u===0&&o.length===0)return;const s=l.index.get(a);if(s){s[1]+=u,s[2].push(...o);return}const h=[a,u,o];l.map.push(h),l.index.set(a,h)}function UC(l,a){let u=!1;const o=[];for(;a<l.length;){const s=l[a];if(u){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(l[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(l[a-1][1].type==="tableDelimiterMarker"){const h=o.length-1;o[h]=o[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(u=!0);a+=1}return o}function BC(){return{flow:{null:{name:"table",tokenize:HC,resolveAll:qC}}}}function HC(l,a,u){const o=this;let s=0,h=0,f;return m;function m(R){let V=o.events.length-1;for(;V>-1;){const{type:at}=o.events[V][1];if(at==="lineEnding"||at==="linePrefix")V--;else break}const J=V>-1?o.events[V][1].type:null,mt=J==="tableHead"||J==="tableRow"?j:g;return mt===j&&o.parser.lazy[o.now().line]?u(R):mt(R)}function g(R){return l.enter("tableHead"),l.enter("tableRow"),y(R)}function y(R){return R===124||(f=!0,h+=1),v(R)}function v(R){return R===null?u(R):bt(R)?h>1?(h=0,o.interrupt=!0,l.exit("tableRow"),l.enter("lineEnding"),l.consume(R),l.exit("lineEnding"),b):u(R):Ot(R)?Ht(l,v,"whitespace")(R):(h+=1,f&&(f=!1,s+=1),R===124?(l.enter("tableCellDivider"),l.consume(R),l.exit("tableCellDivider"),f=!0,v):(l.enter("data"),p(R)))}function p(R){return R===null||R===124||Jt(R)?(l.exit("data"),v(R)):(l.consume(R),R===92?S:p)}function S(R){return R===92||R===124?(l.consume(R),p):p(R)}function b(R){return o.interrupt=!1,o.parser.lazy[o.now().line]?u(R):(l.enter("tableDelimiterRow"),f=!1,Ot(R)?Ht(l,N,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):N(R))}function N(R){return R===45||R===58?H(R):R===124?(f=!0,l.enter("tableCellDivider"),l.consume(R),l.exit("tableCellDivider"),q):F(R)}function q(R){return Ot(R)?Ht(l,H,"whitespace")(R):H(R)}function H(R){return R===58?(h+=1,f=!0,l.enter("tableDelimiterMarker"),l.consume(R),l.exit("tableDelimiterMarker"),w):R===45?(h+=1,w(R)):R===null||bt(R)?ot(R):F(R)}function w(R){return R===45?(l.enter("tableDelimiterFiller"),I(R)):F(R)}function I(R){return R===45?(l.consume(R),I):R===58?(f=!0,l.exit("tableDelimiterFiller"),l.enter("tableDelimiterMarker"),l.consume(R),l.exit("tableDelimiterMarker"),X):(l.exit("tableDelimiterFiller"),X(R))}function X(R){return Ot(R)?Ht(l,ot,"whitespace")(R):ot(R)}function ot(R){return R===124?N(R):R===null||bt(R)?!f||s!==h?F(R):(l.exit("tableDelimiterRow"),l.exit("tableHead"),a(R)):F(R)}function F(R){return u(R)}function j(R){return l.enter("tableRow"),$(R)}function $(R){return R===124?(l.enter("tableCellDivider"),l.consume(R),l.exit("tableCellDivider"),$):R===null||bt(R)?(l.exit("tableRow"),a(R)):Ot(R)?Ht(l,$,"whitespace")(R):(l.enter("data"),et(R))}function et(R){return R===null||R===124||Jt(R)?(l.exit("data"),$(R)):(l.consume(R),R===92?pt:et)}function pt(R){return R===92||R===124?(l.consume(R),et):et(R)}}function qC(l,a){let u=-1,o=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],m=!1,g=0,y,v,p;const S=new RC;for(;++u<l.length;){const b=l[u],N=b[1];b[0]==="enter"?N.type==="tableHead"?(m=!1,g!==0&&(ly(S,a,g,y,v),v=void 0,g=0),y={type:"table",start:Object.assign({},N.start),end:Object.assign({},N.end)},S.add(u,0,[["enter",y,a]])):N.type==="tableRow"||N.type==="tableDelimiterRow"?(o=!0,p=void 0,h=[0,0,0,0],f=[0,u+1,0,0],m&&(m=!1,v={type:"tableBody",start:Object.assign({},N.start),end:Object.assign({},N.end)},S.add(u,0,[["enter",v,a]])),s=N.type==="tableDelimiterRow"?2:v?3:1):s&&(N.type==="data"||N.type==="tableDelimiterMarker"||N.type==="tableDelimiterFiller")?(o=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],p=Zr(S,a,h,s,void 0,p),h=[0,0,0,0]),f[2]=u)):N.type==="tableCellDivider"&&(o?o=!1:(h[1]!==0&&(f[0]=f[1],p=Zr(S,a,h,s,void 0,p)),h=f,f=[h[1],u,0,0])):N.type==="tableHead"?(m=!0,g=u):N.type==="tableRow"||N.type==="tableDelimiterRow"?(g=u,h[1]!==0?(f[0]=f[1],p=Zr(S,a,h,s,u,p)):f[1]!==0&&(p=Zr(S,a,f,s,u,p)),s=0):s&&(N.type==="data"||N.type==="tableDelimiterMarker"||N.type==="tableDelimiterFiller")&&(f[3]=u)}for(g!==0&&ly(S,a,g,y,v),S.consume(a.events),u=-1;++u<a.events.length;){const b=a.events[u];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=UC(a.events,u))}return l}function Zr(l,a,u,o,s,h){const f=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",m="tableContent";u[0]!==0&&(h.end=Object.assign({},ia(a.events,u[0])),l.add(u[0],0,[["exit",h,a]]));const g=ia(a.events,u[1]);if(h={type:f,start:Object.assign({},g),end:Object.assign({},g)},l.add(u[1],0,[["enter",h,a]]),u[2]!==0){const y=ia(a.events,u[2]),v=ia(a.events,u[3]),p={type:m,start:Object.assign({},y),end:Object.assign({},v)};if(l.add(u[2],0,[["enter",p,a]]),o!==2){const S=a.events[u[2]],b=a.events[u[3]];if(S[1].end=Object.assign({},b[1].end),S[1].type="chunkText",S[1].contentType="text",u[3]>u[2]+1){const N=u[2]+1,q=u[3]-u[2]-1;l.add(N,q,[])}}l.add(u[3]+1,0,[["exit",p,a]])}return s!==void 0&&(h.end=Object.assign({},ia(a.events,s)),l.add(s,0,[["exit",h,a]]),h=void 0),h}function ly(l,a,u,o,s){const h=[],f=ia(a.events,u);s&&(s.end=Object.assign({},f),h.push(["exit",s,a])),o.end=Object.assign({},f),h.push(["exit",o,a]),l.add(u+1,0,h)}function ia(l,a){const u=l[a],o=u[0]==="enter"?"start":"end";return u[1][o]}const YC={name:"tasklistCheck",tokenize:GC};function VC(){return{text:{91:YC}}}function GC(l,a,u){const o=this;return s;function s(g){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?u(g):(l.enter("taskListCheck"),l.enter("taskListCheckMarker"),l.consume(g),l.exit("taskListCheckMarker"),h)}function h(g){return Jt(g)?(l.enter("taskListCheckValueUnchecked"),l.consume(g),l.exit("taskListCheckValueUnchecked"),f):g===88||g===120?(l.enter("taskListCheckValueChecked"),l.consume(g),l.exit("taskListCheckValueChecked"),f):u(g)}function f(g){return g===93?(l.enter("taskListCheckMarker"),l.consume(g),l.exit("taskListCheckMarker"),l.exit("taskListCheck"),m):u(g)}function m(g){return bt(g)?a(g):Ot(g)?l.check({tokenize:XC},a,u)(g):u(g)}}function XC(l,a,u){return Ht(l,o,"whitespace");function o(s){return s===null?u(s):a(s)}}function QC(l){return Ay([gC(),zC(),jC(l),BC(),VC()])}const ZC={};function IC(l){const a=this,u=l||ZC,o=a.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),h=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),f=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(QC(u)),h.push(hC()),f.push(dC(u))}function hu({src:l,platform:a,className:u,fallbackClassName:o}){const[s,h]=st.useState(null);return l&&l!==s?E.jsx("img",{className:u,src:l,alt:`${a}应用图标`,onError:()=>h(l)}):E.jsx("span",{className:o,"aria-label":`${a}应用`,children:a[0]})}async function oi(l,a){const u=await fetch(l,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}}),o=await u.json();if(!u.ok)throw new Error(o.error||"请求失败");return o}function KC(l){const[a,u]=st.useState("dingtalk");return E.jsxs("div",{className:"im-prototype",children:[E.jsxs("div",{className:"im-provider-tabs",role:"group","aria-label":"IM 平台",children:[E.jsx("button",{className:a==="dingtalk"?"active":"",onClick:()=>u("dingtalk"),children:"钉钉"}),E.jsx("button",{className:a==="feishu"?"active":"",onClick:()=>u("feishu"),children:"飞书"})]}),E.jsx(FC,{...l,provider:a},a)]})}function FC({projects:l,agents:a,projectLabel:u,provider:o}){const s=o==="feishu"?"飞书":"钉钉",[h,f]=st.useState([]),[m,g]=st.useState(null),[y,v]=st.useState(!1),[p,S]=st.useState(!1),[b,N]=st.useState(null),[q,H]=st.useState(null),[w,I]=st.useState(""),X=st.useRef(0),[ot,F]=st.useState("");st.useEffect(()=>{let V=!0;const J=()=>{oi(`/api/${o}/apps`).then(at=>{V&&f(at)}).catch(at=>{V&&I(at.message)})};J();const mt=o==="feishu"?window.setInterval(J,5e3):void 0;return()=>{V=!1,window.clearInterval(mt)}},[l,o]),st.useEffect(()=>()=>{X.current++},[]),st.useEffect(()=>{if(!y||!m)return;let V=!0,J;async function mt(){try{const at=await oi(`/api/${o}/registration/${m.id}`);if(!V)return;at.status==="SUCCESS"?(f(await oi(`/api/${o}/apps`)),v(!1),g(null)):at.status==="WAITING"?J=window.setTimeout(mt,m.interval*1e3):(F(at.status==="EXPIRED"?"二维码已过期,请重新发起扫码。":at.reason||"授权失败,请重试。"),g(null))}catch(at){V&&(F(at.message),g(null))}}return J=window.setTimeout(mt,m.interval*1e3),()=>{V=!1,window.clearTimeout(J)}},[y,m,o]),st.useEffect(()=>{if(!(o!=="feishu"||!m))return()=>{fetch(`/api/feishu/registration/${m.id}`,{method:"DELETE"})}},[o,m]);function j(){X.current++,v(!1),g(null)}async function $(){v(!0),S(!0),F(""),g(null);const V=++X.current;try{const J=await oi(`/api/${o}/registration`,{method:"POST"});V===X.current?g(J):o==="feishu"&&await fetch(`/api/feishu/registration/${J.id}`,{method:"DELETE"})}catch(J){V===X.current&&F(J.message)}finally{V===X.current&&S(!1)}}async function et(V,J){try{const mt=await oi(`/api/${o}/apps/${V}`,{method:"PATCH",body:JSON.stringify(J)});f(at=>at.map(W=>W.id===V?mt:W))}catch(mt){I(mt.message)}}async function pt(V){if(window.confirm(`删除“${V.name||V.clientId}”的 IM 接入?删除后将停止接收该应用的消息,已有对话记录会保留。${s}中的应用不会删除。`)){I(""),N(V.id);try{await oi(`/api/${o}/apps/${V.id}`,{method:"DELETE"}),f(J=>J.filter(mt=>mt.id!==V.id))}catch(J){I(J.message)}finally{N(null)}}}async function R(V){I(""),H(V);try{const J=await oi(`/api/${o}/apps/${V}/sync`,{method:"POST"});f(mt=>mt.map(at=>at.id===V?J:at))}catch(J){I(J.message)}finally{H(null)}}return E.jsxs("div",{children:[E.jsxs("div",{className:"im-intro",children:[E.jsxs("h1",{children:[s,"接入"]}),E.jsx("button",{className:"im-primary-button",onClick:()=>void $(),children:"扫码创建应用"})]}),w&&E.jsxs("div",{className:"im-error",role:"alert",children:[w,E.jsx("button",{onClick:()=>I(""),"aria-label":"关闭错误",children:"×"})]}),E.jsx("div",{className:"im-robot-list",children:h.length?h.map(V=>E.jsx("div",{className:"im-robot-entry",children:E.jsxs("div",{className:"im-robot-row",children:[E.jsx("div",{className:"im-robot-mark",children:E.jsx(hu,{src:V.icon,platform:s})}),E.jsxs("div",{className:"im-app-info",children:[E.jsx("strong",{children:V.name||V.clientId}),V.connectionStatus&&E.jsx("small",{className:"im-connection-status",children:{idle:"未连接",connecting:"连接中",connected:"消息监听已连接",reconnecting:"重新连接中",failed:"消息监听连接失败"}[V.connectionStatus]})]}),E.jsxs("label",{className:"im-binding",children:["项目",E.jsxs(aa,{"aria-label":`绑定 ${V.name||V.clientId} 的项目`,value:V.project||"",onChange:J=>void et(V.id,{project:J||null}),children:[E.jsx("option",{value:"",children:"未绑定"}),l.map(J=>E.jsx("option",{value:J,children:u(J)},J))]})]}),E.jsxs("label",{className:"im-binding",children:["Agent",E.jsxs(aa,{"aria-label":`选择 ${V.name||V.clientId} 的 Agent`,value:V.agent||"",onChange:J=>void et(V.id,{agent:J||null}),children:[E.jsx("option",{value:"",children:"未选择"}),a.map(J=>E.jsxs("option",{value:J.id,disabled:!J.installed,children:[J.name,J.installed?"":"(未安装)"]},J.id))]})]}),E.jsx("button",{className:"im-sync-button",disabled:q!==null,"aria-label":`同步 ${V.name||V.clientId} 的名称和图标`,onClick:()=>void R(V.id),children:q===V.id?"同步中…":"一键同步"}),E.jsx("button",{className:"im-delete-button",disabled:b!==null,"aria-label":`删除 ${V.name||V.clientId} 的 IM 接入`,onClick:()=>void pt(V),children:b===V.id?"删除中…":"删除"})]})},V.id)):E.jsxs("div",{className:"im-empty",children:["暂无",s,"应用"]})}),y&&E.jsxs("div",{className:"im-scan-layer",role:"presentation",children:[E.jsx("button",{className:"im-scan-backdrop","aria-label":"关闭扫码窗口",onClick:j}),E.jsxs("section",{className:"im-scan-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"im-scan-title",children:[E.jsx("button",{className:"im-scan-close","aria-label":"关闭",onClick:j,children:"×"}),E.jsxs("h2",{id:"im-scan-title",children:["使用",s,"扫码创建应用"]}),p&&E.jsx("p",{className:"im-scan-message",children:"正在获取授权二维码…"}),m&&E.jsxs(E.Fragment,{children:[E.jsx("img",{className:"im-qr-image",src:m.qrCode,alt:`${s}应用授权二维码`}),m.userCode&&E.jsxs("p",{className:"im-user-code",children:["授权码 ",E.jsx("strong",{children:m.userCode})]}),E.jsxs("p",{children:["请使用",s,"扫描二维码并完成授权"]}),E.jsx("a",{className:"im-open-link",href:m.verificationUrl,target:"_blank",rel:"noopener noreferrer",children:"在浏览器中打开授权页面"})]}),ot&&E.jsxs(E.Fragment,{children:[E.jsx("p",{className:"im-scan-error",role:"alert",children:ot}),E.jsx("button",{className:"im-primary-button",onClick:()=>void $(),children:"重新获取二维码"})]})]})]})]})}const iy={install:"安装",update:"更新",uninstall:"卸载"};async function Ir(l,a){const u=await fetch(l,{...a,headers:{"Content-Type":"application/json"}}),o=await u.json();if(!u.ok)throw new Error(o.error);return o}function JC({active:l,onChange:a}){var H;const[u,o]=st.useState([]),[s,h]=st.useState(!1),[f,m]=st.useState(null),[g,y]=st.useState(""),[v,p]=st.useState(""),[S,b]=st.useState("");st.useEffect(()=>{if(!l)return;let w=!0;return h(!0),Ir("/api/agents/management").then(I=>{w&&o(I)}).catch(I=>{w&&y(I.message)}).finally(()=>{w&&h(!1)}),()=>{w=!1}},[l]);async function N(){h(!0),y("");try{const w=await Ir("/api/agents/refresh",{method:"POST"});o(w),a(w)}catch(w){y(w.message)}finally{h(!1)}}async function q(w,I){if(!(f||s)&&!(I==="uninstall"&&!window.confirm(`卸载 ${w.name}?将移除本机 CLI,保留配置和对话记录。`))){m({id:w.id,action:I}),y(""),p(""),b("");try{const X=await Ir(`/api/agents/${w.id}/actions`,{method:"POST",body:JSON.stringify({action:I})});o(X.agents),a(X.agents),p(`${w.name} ${iy[I]}完成`),b(X.output)}catch(X){y(X.message);try{const ot=await Ir("/api/agents/management");o(ot),a(ot)}catch(ot){y(`${X.message}
78
+ 刷新失败:${ot.message}`)}}finally{m(null)}}}return E.jsxs("section",{className:"agent-panel","aria-label":"Agent 管理",children:[E.jsxs("div",{className:"im-intro",children:[E.jsxs("div",{children:[E.jsx("h1",{children:"Agent 管理"}),E.jsx("p",{className:"agent-intro",children:"查看本机 CLI 版本,安装、更新或卸载 Agent。"})]}),E.jsx("button",{className:"im-sync-button",disabled:s||!!f,onClick:()=>void N(),children:s?"刷新中…":"刷新状态"})]}),g&&E.jsxs("div",{className:"im-error",role:"alert",children:[E.jsx("span",{children:g}),E.jsx("button",{onClick:()=>y(""),children:"关闭"})]}),E.jsx("div",{className:"agent-feedback",role:"status","aria-live":"polite",children:f?`正在${iy[f.action]} ${(H=u.find(w=>w.id===f.id))==null?void 0:H.name},请等待完成…`:v}),s&&!u.length&&E.jsx("p",{className:"im-empty",children:"正在读取 Agent 信息…"}),E.jsx("div",{className:"agent-list",children:u.map(w=>E.jsxs("article",{className:"agent-entry",children:[E.jsxs("div",{className:"agent-entry-heading",children:[E.jsx("strong",{children:w.name}),E.jsx("span",{className:`agent-install-status ${w.installed?"installed":""}`,children:w.installed?"已安装":"未安装"})]}),E.jsxs("dl",{className:"agent-details",children:[E.jsxs("div",{children:[E.jsx("dt",{children:"版本"}),E.jsx("dd",{title:w.versionError,children:w.installed?w.version||"读取失败":"—"})]}),E.jsxs("div",{children:[E.jsx("dt",{children:"命令"}),E.jsx("dd",{children:E.jsx("code",{children:w.command})})]}),w.path&&E.jsxs("div",{children:[E.jsx("dt",{children:"路径"}),E.jsx("dd",{className:"agent-path",title:w.path,children:w.path})]})]}),w.versionError&&E.jsxs("p",{className:"agent-entry-error",children:["版本读取失败:",w.versionError]}),w.managementError&&E.jsx("p",{className:"agent-entry-error",children:w.managementError}),E.jsx("div",{className:"agent-entry-actions",children:w.installed?E.jsxs(E.Fragment,{children:[E.jsx("button",{className:"im-sync-button",disabled:s||!!f||!w.management,onClick:()=>void q(w,"update"),children:(f==null?void 0:f.id)===w.id&&f.action==="update"?"更新中…":"更新至最新版"}),E.jsx("button",{className:"im-delete-button",disabled:s||!!f||!w.management,onClick:()=>void q(w,"uninstall"),children:(f==null?void 0:f.id)===w.id&&f.action==="uninstall"?"卸载中…":"卸载"})]}):E.jsx("button",{className:"im-primary-button",disabled:s||!!f||!w.management,onClick:()=>void q(w,"install"),children:(f==null?void 0:f.id)===w.id&&f.action==="install"?"安装中…":"安装"})})]},w.id))}),S&&E.jsxs("details",{className:"agent-operation-output",children:[E.jsx("summary",{children:"操作输出"}),E.jsx("pre",{children:S})]})]})}function ru({type:l}){return E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l==="add"?E.jsx("path",{d:"M12 5v14M5 12h14"}):l==="edit"?E.jsx("path",{d:"m16 3 5 5M4 16 16 4a3.5 3.5 0 0 1 5 5L9 21H4v-5Z"}):E.jsx(E.Fragment,{children:E.jsx("path",{d:"M3 6h18M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M5 6l1 14a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1l1-14M10 10v7M14 10v7"})})})}async function ke(l,a){const u=await fetch(l,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}}),o=await u.json();if(!u.ok)throw new Error(o.error||"Request failed");return o}function ay(l){return l.split(/[\\/]/).filter(Boolean).at(-1)||l}function si(l,a){const u=ay(l);return a.filter(o=>ay(o)===u).length>1?l.split(/[\\/]/).filter(Boolean).slice(-2).join("/"):u}function m1(l){return new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(l)}function uy(l){return l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}k`:String(l)}const ry={starting:"准备中",running:"运行中",waiting:"等待中",completed:"已完成",failed:"失败",stopped:"已停止"};function $C(l){const a=l.replace(/^\$\s*(?:\/bin\/(?:zsh|bash|sh)\s+-lc\s+)?/,""),u=a[0]==='"'||a[0]==="'"?a[0]:"",o=a.slice(u?1:0).split(`
79
+ `)[0];return u&&o.endsWith(u)?o.slice(0,-1):o}function PC(l){return/^diff --git /m.test(l)||/^@@ -\d/m.test(l)}function p1({text:l}){return E.jsx("pre",{className:"diff-content",children:l.split(`
80
+ `).map((a,u)=>{const o=a.startsWith("+++")||a.startsWith("---")||a.startsWith("diff --git")||a.startsWith("@@")?"meta":a.startsWith("+")?"added":a.startsWith("-")?"removed":"";return E.jsxs("span",{className:`diff-line ${o}`,children:[a||" ",`
81
+ `]},u)})})}function WC(l){var u;if(l.agent!=="codex")return l.events;const a=[];for(let o=0;o<l.events.length;o++){const s=l.events[o];if(s.type!=="output"||!s.text.startsWith("$ ")){a.push(s);continue}const h=[];for(;((u=l.events[o])==null?void 0:u.type)==="output"&&l.events[o].text.startsWith("$ ");)h.push(l.events[o++]);const f=[];for(;f.length<h.length;){const m=l.events[o];if((m==null?void 0:m.type)!=="output"||m.text.startsWith("$ ")||m.timestamp-h.at(-1).timestamp>1e3)break;f.push(m),o++}h.forEach((m,g)=>{var y;return a.push({...m,type:"tool",detail:(y=f[g])==null?void 0:y.text})}),o--}return a}function g1(l){const a=[];for(const u of WC(l))if(!(u.type!=="message"&&u.type!=="output"&&u.type!=="dingtalk_message"&&u.type!=="feishu_message"&&u.type!=="tool"&&u.type!=="file_change"&&!(u.type==="error"&&l.status==="failed")))if(u.type==="tool"){const o=a.at(-1);Array.isArray(o)?o.push(u):a.push([u])}else a.push(u);return a}function t3(l){return g1(l).flatMap(a=>Array.isArray(a)||a.type!=="message"&&a.type!=="output"&&a.type!=="dingtalk_message"&&a.type!=="feishu_message"?[]:[`${a.type==="message"?"用户":a.type==="feishu_message"?"应用(已发送到飞书)":a.type==="dingtalk_message"?"应用(已发送到钉钉)":"助手"}:
82
+ ${a.text.trim()}`]).join(`
83
+
84
+ `)}function e3(l,a){const u=a.replace(/[\\/]+$/,"");return l.startsWith(`${u}/`)||l.startsWith(`${u}\\`)?l.slice(u.length+1):l}function oy({event:l}){const a=$C(l.text);return E.jsxs("details",{className:"tool-call",children:[E.jsxs("summary",{children:[E.jsx("span",{className:"tool-call-label",children:"工具"}),E.jsx("strong",{title:l.text,children:a}),l.detail&&E.jsx("span",{className:"tool-call-chevron"})]}),l.detail&&(PC(l.detail)?E.jsx(p1,{text:l.detail}):E.jsx("pre",{children:l.detail}))]})}function n3({event:l,cwd:a}){const u=l.kind==="add"?"新增":l.kind==="delete"?"删除":l.kind==="move"?"移动":"修改",o=E.jsxs(E.Fragment,{children:[E.jsx("span",{className:`change-kind ${l.kind||"update"}`,children:u}),E.jsx("strong",{title:l.text,children:e3(l.text,a)}),l.comparison&&E.jsxs("small",{className:"change-baseline",children:["对比 ",l.comparison]}),l.detail&&E.jsx("span",{className:"tool-call-chevron"})]});return l.detail?E.jsxs("details",{className:"file-change",children:[E.jsx("summary",{children:o}),E.jsx(p1,{text:l.detail})]}):E.jsx("div",{className:"file-change file-change-summary",children:o})}function l3({index:l,pane:a,multi:u,active:o,agents:s,projects:h,sessions:f,feishuApps:m,onFocus:g,onProjectChange:y,onSessionCreated:v,onSessionUpdate:p}){var Ae,xn,rn,ze;const S=a.sessionId,[b,N]=st.useState(f.find(Y=>Y.id===S)||null),[q,H]=st.useState(((Ae=s.find(Y=>Y.installed))==null?void 0:Ae.id)||""),[w,I]=st.useState(((xn=f.find(Y=>Y.id===S))==null?void 0:xn.model)||""),[X,ot]=st.useState(""),[F,j]=st.useState(null),[$,et]=st.useState(!1),[pt,R]=st.useState(""),[V,J]=st.useState(null),mt=st.useRef(null),at=st.useRef(null),W=st.useRef(null),P=st.useRef(!0);st.useEffect(()=>{function Y(ft){const jt=W.current;jt!=null&&jt.open&&ft.target instanceof Node&&!jt.contains(ft.target)&&(jt.open=!1)}return document.addEventListener("pointerdown",Y),()=>document.removeEventListener("pointerdown",Y)},[]),st.useEffect(()=>{var Y;s.some(ft=>ft.id===q&&ft.installed)||H(((Y=s.find(ft=>ft.installed))==null?void 0:Y.id)||"")},[s,q]),st.useEffect(()=>{I((b==null?void 0:b.model)||"")},[b==null?void 0:b.id,b==null?void 0:b.model]),st.useEffect(()=>{if(!S){N(null);return}let Y=!0,ft;return ke(`/api/sessions/${S}`).then(jt=>{var Oe;Y&&(N(jt),p(jt),ft=new EventSource(`/api/sessions/${S}/events?after=${((Oe=jt.events.at(-1))==null?void 0:Oe.id)||0}`),ft.onmessage=on=>{const ee=JSON.parse(on.data);N(ne=>!ne||ne.id!==S?ne:ne.events.some(Be=>Be.id===ee.id)?ee.pushedToIm?{...ne,events:ne.events.map(Be=>Be.id===ee.id?{...Be,pushedToIm:!0}:Be)}:ne:{...ne,...ee.feishuConversation?{feishuConversation:ee.feishuConversation}:{},...ee.dingtalkConversation?{dingtalkConversation:ee.dingtalkConversation}:{},status:ee.type==="status"?ee.text:ne.status,usage:ee.type==="usage"?JSON.parse(ee.text):ne.usage,updatedAt:ee.timestamp,events:[...ne.events,ee].slice(-500)}),ee.type==="status"&&(p({id:S,status:ee.text,updatedAt:ee.timestamp}),ke(`/api/sessions/${S}`).then(ne=>{Y&&N(Ie=>{var Be,G;return Ie&&(((Be=Ie.events.at(-1))==null?void 0:Be.id)||0)>(((G=ne.events.at(-1))==null?void 0:G.id)||0)?{...Ie,externalSessionId:ne.externalSessionId}:ne}),Y&&p(ne)}))})}).catch(jt=>{Y&&R(jt.message)}),()=>{Y=!1,ft==null||ft.close()}},[S]),st.useEffect(()=>{P.current=!0,mt.current&&(mt.current.scrollTop=mt.current.scrollHeight)},[b==null?void 0:b.id]),st.useEffect(()=>{P.current&&mt.current&&(mt.current.scrollTop=mt.current.scrollHeight)},[b==null?void 0:b.events.length]),st.useEffect(()=>{if(V===null)return;const Y=window.setTimeout(()=>J(null),2e3);return()=>window.clearTimeout(Y)},[V]);async function ut(Y,ft){R("");try{await navigator.clipboard.writeText(Y),J(ft)}catch(jt){R(`复制失败:${jt.message}`)}}async function ht(){const Y=X.trim();if(Et){R(""),et(!0);try{if(b){const ft=await ke(`/api/sessions/${b.id}/messages`,{method:"POST",body:JSON.stringify({content:Y,model:w})});p(ft)}else{const ft=await ke("/api/sessions",{method:"POST",body:JSON.stringify({agent:q,cwd:a.cwd,prompt:Y,model:w})});v(l,ft)}ot("")}catch(ft){R(ft.message)}finally{et(!1)}}}async function Nt(Y){if(!(!b||!b.dingtalkAppId&&!b.feishuAppId||Y.type!=="output"||!Y.text.trim()||F!==null||Y.pushedToIm)){R(""),j(Y.id);try{const ft=await ke(`/api/sessions/${b.id}/${b.feishuAppId?"feishu":"dingtalk"}/messages`,{method:"POST",body:JSON.stringify({eventId:Y.id})});p(ft),N(jt=>(jt==null?void 0:jt.id)===ft.id?{...jt,events:jt.events.map(Oe=>Oe.id===Y.id?{...Oe,pushedToIm:!0}:Oe)}:jt)}catch(ft){R(ft.message)}finally{j(null)}}}async function z(){if(b){R(""),et(!0);try{await ke(`/api/sessions/${b.id}/stop`,{method:"POST"})}catch(Y){R(Y.message)}finally{et(!1)}}}const qt=(b==null?void 0:b.status)==="running"||(b==null?void 0:b.status)==="starting",te=b!=null&&b.feishuAppId?"飞书":"钉钉",T=(b==null?void 0:b.cwd)||(h.includes(a.cwd)?a.cwd:""),C=(b==null?void 0:b.agent)||q,U=s.find(Y=>Y.id===C),K=(U==null?void 0:U.models)||[],lt=(rn=K.find(Y=>Y.id===(w||(U==null?void 0:U.defaultModel))))==null?void 0:rn.contextWindow,yt=b!=null&&b.usage?b.usage.inputTokens+b.usage.outputTokens:void 0,xt=!!(qt||b&&!b.externalSessionId),Et=!!(X.trim()&&!$&&!xt&&(U!=null&&U.installed)&&(b?b.externalSessionId:T&&q)),rt=Y=>{var ft;return((ft=s.find(jt=>jt.id===Y))==null?void 0:ft.name)||Y},vt=(ze=m.find(Y=>Y.id===(b==null?void 0:b.feishuAppId)))==null?void 0:ze.icon;return E.jsx("div",{className:`pane-wrap ${o&&u?"focused":""}`,onPointerDown:()=>g(l),onFocusCapture:()=>g(l),children:E.jsxs("section",{className:"output-panel","aria-label":`对话窗口 ${l+1}`,children:[E.jsxs("div",{className:"chat-header",children:[(b==null?void 0:b.dingtalkAppId)&&E.jsx(hu,{className:"chat-app-icon",fallbackClassName:"feishu-app-mark",src:`/api/dingtalk/apps/${b.dingtalkAppId}/icon`,platform:"钉钉"}),(b==null?void 0:b.feishuAppId)&&E.jsx(hu,{className:"chat-app-icon",fallbackClassName:"feishu-app-mark",src:vt,platform:"飞书"}),E.jsxs("div",{className:"chat-heading",children:[b?u?E.jsxs(E.Fragment,{children:[E.jsx("strong",{title:b.prompt,children:b.prompt}),E.jsxs("p",{children:[si(b.cwd,h)," · ",rt(b.agent)," · ",ry[b.status]]})]}):E.jsxs("p",{children:[rt(b.agent)," · ",ry[b.status]]}):E.jsxs(E.Fragment,{children:[E.jsx("strong",{children:"新对话"}),u&&E.jsxs("p",{children:["窗口 ",l+1," · 从侧边栏选择对话"]})]}),(b==null?void 0:b.dingtalkConversation)&&E.jsxs("p",{className:"chat-source",children:[b.dingtalkConversation.type==="group"?"群聊":"单聊",b.dingtalkConversation.type==="group"&&b.dingtalkConversation.groupName&&` · 群名称:${b.dingtalkConversation.groupName}`," · 提问人:",E.jsx("span",{title:b.dingtalkConversation.senderStaffId,children:b.dingtalkConversation.senderName})]}),(b==null?void 0:b.feishuConversation)&&E.jsxs("p",{className:"chat-source",children:["飞书 · ",b.feishuConversation.type==="group"?"群聊":"单聊"," · 提问人:",b.feishuConversation.senderId]})]}),E.jsxs("div",{className:"output-actions",children:[b&&E.jsx("button",{className:"copy-button",onClick:()=>void ut(t3(b),"conversation"),"aria-label":V==="conversation"?"已复制对话":"复制对话",children:V==="conversation"?"已复制":"复制对话"}),b&&E.jsxs("details",{ref:W,className:"run-log",onBlur:Y=>{Y.currentTarget.contains(Y.relatedTarget)||(Y.currentTarget.open=!1)},children:[E.jsx("summary",{children:"运行日志"}),E.jsx("div",{className:"run-log-content",tabIndex:0,children:b.events.map(Y=>E.jsxs("div",{children:[E.jsxs("span",{children:[m1(Y.timestamp)," · ",Y.type]}),E.jsx("pre",{children:Y.text}),Y.detail&&E.jsx("pre",{children:Y.detail})]},Y.id))})]}),qt&&E.jsx("button",{className:"stop-button",disabled:$,onClick:z,children:"停止"})]})]}),pt&&E.jsxs("div",{className:"global-error",role:"alert",children:[E.jsx("span",{children:pt}),E.jsx("button",{onClick:()=>R(""),children:"关闭"})]}),E.jsx("div",{className:"conversation-scroll",ref:mt,role:"log","aria-label":`窗口 ${l+1} 对话记录`,onScroll:Y=>{const ft=Y.currentTarget;P.current=ft.scrollHeight-ft.scrollTop-ft.clientHeight<80},children:b?E.jsxs("div",{className:"chat-thread",children:[g1(b).map(Y=>Array.isArray(Y)?Y.length===1?E.jsx(oy,{event:Y[0]},Y[0].id):E.jsxs("details",{className:"tool-group",children:[E.jsxs("summary",{className:"tool-group-heading",children:["工具调用 · ",Y.length," 次",E.jsx("span",{className:"tool-call-chevron"})]}),E.jsx("div",{className:"tool-group-content",children:Y.map(ft=>E.jsx(oy,{event:ft},ft.id))})]},Y[0].id):Y.type==="message"?E.jsx("div",{className:"chat-turn user-turn",children:E.jsx("div",{className:"user-bubble",children:Y.text})},Y.id):Y.type==="file_change"?E.jsx(n3,{event:Y,cwd:b.cwd},Y.id):Y.type==="error"?E.jsx("div",{className:"chat-notice",children:Y.text},Y.id):E.jsxs("div",{className:"chat-turn assistant-turn",children:[(Y.type==="dingtalk_message"||Y.type==="feishu_message")&&E.jsxs("div",{className:"dingtalk-sent-label",children:["应用 · 已发送到",Y.type==="feishu_message"?"飞书":"钉钉"]}),E.jsx("div",{className:"assistant-copy",children:Y.type==="dingtalk_message"||Y.type==="feishu_message"?E.jsx("div",{className:"dingtalk-sent-content",children:Y.text}):E.jsx(_T,{remarkPlugins:[IC],children:Y.text})}),E.jsxs("div",{className:"reply-actions",children:[E.jsx("button",{className:"reply-copy","aria-label":V===Y.id?"已复制这条回复":"复制这条回复",onClick:()=>void ut(Y.text,Y.id),children:E.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:V===Y.id?E.jsx("path",{d:"m5 12 4 4L19 6"}):E.jsxs(E.Fragment,{children:[E.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),E.jsx("path",{d:"M16 8V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4"})]})})}),Y.type==="output"&&(b.dingtalkAppId||b.feishuAppId)&&Y.text.trim()&&E.jsx("button",{className:"reply-push",disabled:F!==null||Y.pushedToIm,onClick:()=>void Nt(Y),children:F===Y.id?"推送中…":Y.pushedToIm?"已推送":`推送给${te}`})]})]},Y.id)),qt&&E.jsxs("div",{className:"chat-progress",children:[E.jsx("span",{}),rt(b.agent)," 正在处理…"]})]}):E.jsx("div",{className:"chat-empty",children:E.jsx("strong",{children:"描述你想完成的任务"})})},b==null?void 0:b.id),E.jsxs("div",{className:"chat-compose-wrap",children:[!b&&E.jsxs("div",{className:"composer-project-row",children:[E.jsxs("span",{className:"project-select",children:[E.jsx("span",{className:"project-folder","aria-hidden":"true"}),E.jsxs(aa,{"aria-label":`窗口 ${l+1} 选择项目`,value:T,disabled:$,onChange:Y=>y(l,Y),children:[!T&&E.jsx("option",{value:"",children:"选择项目"}),h.map(Y=>E.jsx("option",{value:Y,children:si(Y,h)},Y))]})]}),E.jsx("span",{className:"agent-select",children:E.jsxs(aa,{"aria-label":`窗口 ${l+1} 选择 Agent`,value:C,disabled:$,onChange:Y=>{H(Y),I("")},children:[!C&&E.jsx("option",{value:"",children:"选择 Agent"}),s.map(Y=>E.jsxs("option",{value:Y.id,disabled:!Y.installed,children:[Y.name,Y.installed?"":"(未安装)"]},Y.id))]})})]}),E.jsxs("div",{className:"chat-composer",children:[E.jsx("textarea",{ref:at,"aria-label":`窗口 ${l+1} 消息`,value:X,onChange:Y=>ot(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&!Y.shiftKey&&(Y.preventDefault(),ht())},placeholder:qt?"等待 Agent 完成当前任务…":b?"继续输入任务要求":"描述要完成的任务",disabled:$||xt,rows:2}),E.jsxs("div",{className:"composer-footer",children:[E.jsx("div",{className:"composer-actions",children:E.jsx("label",{className:"model-select",children:E.jsxs(aa,{"aria-label":`窗口 ${l+1} 选择模型`,value:w,disabled:!C||$||!!qt,onChange:Y=>I(Y),children:[E.jsx("option",{value:"",children:U!=null&&U.defaultModel?`默认 · ${U.defaultModel}`:"Agent 默认"}),w&&!K.some(Y=>Y.id===w)&&E.jsx("option",{value:w,disabled:C==="codex"&&w==="gpt-6.1-sol",children:w}),K.map(Y=>E.jsx("option",{value:Y.id,children:Y.name},Y.id))]})})}),E.jsx("button",{className:"composer-send","aria-label":b?"发送消息":"创建对话并发送",disabled:!Et,onClick:ht,children:"↑"})]})]}),b&&E.jsx("div",{className:"context-status",title:b.usage?`累计输入 ${b.usage.inputTokens.toLocaleString()} Token,累计输出 ${b.usage.outputTokens.toLocaleString()} Token`:"Agent 尚未返回 Token 用量",children:yt===void 0&&!lt?"上下文数据未提供":`累计消耗 ${yt===void 0?"暂无用量":`${uy(yt)} Token`} · 单次窗口 ${lt?`${uy(lt)} Token`:"未提供"}`})]})]})})}function i3(){const[l,a]=st.useState([]),[u,o]=st.useState([]),[s,h]=st.useState([]),[f,m]=st.useState([]),[g,y]=st.useState(null),[v,p]=st.useState(Array.from({length:4},()=>({sessionId:null,cwd:"",revision:0}))),[S,b]=st.useState(0),[N,q]=st.useState("single"),[H,w]=st.useState(!1),[I,X]=st.useState(!1),[ot,F]=st.useState(""),[j,$]=st.useState(()=>new URLSearchParams(window.location.search).get("im-view")==="robots"),[et,pt]=st.useState(!1),R=N==="single"?1:N==="double"?2:4,V=v[S];st.useEffect(()=>{Promise.all([ke("/api/agents"),ke("/api/sessions"),ke("/api/projects"),ke("/api/directories"),ke("/api/feishu/apps")]).then(([T,C,U,K,lt])=>{var Et;const yt=[...new Set([...U,...C.map(rt=>rt.cwd)])],xt=((Et=C[0])==null?void 0:Et.cwd)||U[0]||K.path;a(T),o(C),m(yt),y(xt),h(lt),p(rt=>rt.map((vt,Ae)=>{var xn;return Ae===0?{sessionId:((xn=C[0])==null?void 0:xn.id)||null,cwd:xt,revision:vt.revision+1}:vt}))}).catch(T=>F(T.message))},[]),st.useEffect(()=>{const T=window.setInterval(()=>{ke("/api/sessions").then(o).catch(C=>F(C.message)),ke("/api/feishu/apps").then(h).catch(C=>F(C.message))},5e3);return()=>window.clearInterval(T)},[]),st.useEffect(()=>{if(!H)return;const T=C=>{C.key==="Escape"&&w(!1)};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[H]);function J(T,C,U){p(K=>K.map((lt,yt)=>yt===T?{sessionId:C,cwd:U,revision:lt.revision+1}:lt)),b(T)}function mt(T,C=S){$(!1),pt(!1),w(!1),y(T||null),J(C,null,T)}function at(T){$(!1),pt(!1),w(!1),y(T.cwd),J(S,T.id,T.cwd)}async function W(T=S){if(!I){F(""),X(!0);try{const C=await ke("/api/projects/pick",{method:"POST"});if(!C.path)return;const U=C.path;m(K=>K.includes(U)?K:[...K,U]),mt(U,T)}catch(C){F(C.message)}finally{X(!1)}}}async function P(T){const C=u.filter(U=>U.cwd===T).length;if(window.confirm(`删除项目“${si(T,f)}”及其 ${C} 个对话记录?本地项目文件不会删除。`)){F("");try{await ke("/api/projects",{method:"DELETE",body:JSON.stringify({path:T})});const U=f.filter(K=>K!==T);m(U),o(K=>K.filter(lt=>lt.cwd!==T)),y(K=>K===T?U[0]||null:K),p(K=>K.map(lt=>lt.cwd===T?{sessionId:null,cwd:U[0]||"",revision:lt.revision+1}:lt))}catch(U){F(U.message)}}}async function ut(T){if(window.confirm(`删除对话“${T.prompt}”?此操作会删除对话记录。`)){F("");try{await ke(`/api/sessions/${T.id}`,{method:"DELETE"}),o(C=>C.filter(U=>U.id!==T.id)),p(C=>C.map(U=>U.sessionId===T.id?{...U,sessionId:null,revision:U.revision+1}:U))}catch(C){F(C.message)}}}function ht(T){const C=T==="single"?1:T==="double"?2:4;b(U=>Math.min(U,C-1)),q(T)}function Nt(T){o(C=>C.map(U=>U.id===T.id?{...U,status:T.status,updatedAt:T.updatedAt,externalSessionId:T.externalSessionId??U.externalSessionId}:U))}function z(T,C){o(U=>[C,...U]),y(C.cwd),J(T,C.id,C.cwd)}const qt=T=>{var C;return((C=l.find(U=>U.id===T))==null?void 0:C.name)||T},te=V.sessionId;return E.jsxs("div",{className:"app-shell",children:[E.jsx("button",{className:`mobile-menu-backdrop ${H?"open":""}`,"aria-label":"关闭菜单",onClick:()=>w(!1)}),E.jsxs("aside",{className:`sidebar ${H?"open":""}`,id:"project-menu",children:[E.jsxs("div",{className:"brand",children:[E.jsxs("div",{className:"brand-symbol",children:[E.jsx("span",{}),E.jsx("span",{}),E.jsx("span",{})]}),E.jsx("strong",{children:"Agent Muster"}),E.jsx("button",{className:"menu-close","aria-label":"关闭菜单",onClick:()=>w(!1),children:"×"})]}),E.jsxs("nav",{className:"sidebar-menu","aria-label":"快捷菜单",children:[E.jsxs("button",{className:"sidebar-create",disabled:I,onClick:()=>void W(),children:[E.jsx(ru,{type:"add"}),E.jsx("span",{children:"创建项目"})]}),!j&&!et&&E.jsx("div",{className:"layout-switch",children:E.jsxs(aa,{"aria-label":"窗口模式",triggerLabel:E.jsxs(E.Fragment,{children:[E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[E.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),E.jsx("path",{d:"M12 3v18M12 12h9"})]}),E.jsx("span",{children:"窗口模式"})]}),value:N,onChange:T=>ht(T),children:[E.jsx("option",{value:"single",children:"单窗"}),E.jsx("option",{value:"double",children:"1×2"}),E.jsx("option",{value:"quad",children:"2×2"})]})}),E.jsxs("button",{className:`im-sidebar-link ${j?"active":""}`,onClick:()=>{$(!0),pt(!1),w(!1)},children:[E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:E.jsx("path",{d:"M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5Z"})}),E.jsx("span",{children:"IM 集成"})]}),E.jsxs("button",{className:`im-sidebar-link ${et?"active":""}`,onClick:()=>{pt(!0),$(!1),w(!1)},children:[E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[E.jsx("rect",{x:"4",y:"6",width:"16",height:"14",rx:"3"}),E.jsx("path",{d:"M12 6V3M8 11h.01M16 11h.01M8 16h8M1 11v4M23 11v4"})]}),E.jsx("span",{children:"Agent 管理"})]})]}),E.jsxs("nav",{className:"sidebar-projects","aria-label":"项目和对话",children:[E.jsxs("div",{className:"section-title",children:[E.jsxs("span",{children:["项目 ",E.jsx("span",{className:"count",children:f.length})]}),E.jsx("button",{className:"add-project",disabled:I,onClick:()=>void W(),"aria-label":"添加项目",title:"添加项目",children:E.jsx(ru,{type:"add"})})]}),f.map(T=>{const C=u.filter(K=>K.cwd===T),U=g===T;return E.jsxs("div",{className:"project-group",children:[E.jsxs("div",{className:"project-row",children:[E.jsxs("button",{className:`project-item ${V.cwd===T?"active":""}`,onClick:()=>{var K;$(!1),pt(!1),U?y(null):(y(T),J(S,((K=C[0])==null?void 0:K.id)||null,T))},title:T,"aria-expanded":U,children:[E.jsx("span",{className:"project-folder"}),E.jsx("span",{className:"project-name",children:si(T,f)}),E.jsx("span",{className:"project-count",children:C.length})]}),E.jsx("button",{className:"project-new",onClick:()=>mt(T),"aria-label":`在 ${si(T,f)} 中新建对话`,title:"新建对话",children:E.jsx(ru,{type:"edit"})}),E.jsx("button",{className:"sidebar-delete",onClick:()=>void P(T),"aria-label":`删除项目 ${si(T,f)}`,title:"删除项目",children:E.jsx(ru,{type:"delete"})})]}),U&&E.jsx("div",{className:"project-conversations",children:C.length?C.map(K=>{var xt;const lt=v.slice(0,R).findIndex(Et=>Et.sessionId===K.id),yt=(xt=s.find(Et=>Et.id===K.feishuAppId))==null?void 0:xt.icon;return E.jsxs("div",{className:"conversation-row",children:[E.jsxs("button",{className:`conversation-item ${te===K.id?"selected":""}`,onClick:()=>at(K),title:K.prompt,children:[E.jsx("span",{className:`status-dot ${K.status}`}),K.dingtalkAppId&&E.jsx(hu,{className:"conversation-app-icon",fallbackClassName:"feishu-app-mark",src:`/api/dingtalk/apps/${K.dingtalkAppId}/icon`,platform:"钉钉"}),K.feishuAppId&&E.jsx(hu,{className:"conversation-app-icon",fallbackClassName:"feishu-app-mark",src:yt,platform:"飞书"}),E.jsxs("span",{className:"conversation-text",children:[E.jsx("strong",{children:K.prompt}),E.jsxs("small",{children:[qt(K.agent)," · ",m1(K.createdAt)]})]}),R>1&&lt>=0&&E.jsx("span",{className:"pane-marker","aria-label":`窗口 ${lt+1}`,children:lt+1})]}),E.jsx("button",{className:"sidebar-delete conversation-delete",onClick:()=>void ut(K),"aria-label":`删除对话 ${K.prompt}`,title:"删除对话",children:E.jsx(ru,{type:"delete"})})]},K.id)}):E.jsx("p",{className:"project-empty",children:"还没有对话"})})]},T)}),!f.length&&E.jsx("p",{className:"project-empty",children:"暂无项目。点击右侧加号选择本地目录。"})]})]}),E.jsxs("main",{className:"main-area",children:[E.jsx("header",{className:"topbar",children:E.jsx("div",{className:"topbar-left",children:E.jsxs("button",{className:"menu-toggle","aria-label":H?"关闭菜单":"打开菜单","aria-expanded":H,"aria-controls":"project-menu",onClick:()=>w(T=>!T),children:[E.jsx("span",{}),E.jsx("span",{}),E.jsx("span",{})]})})}),E.jsxs("div",{className:"content chat-content",children:[ot&&E.jsxs("div",{className:"global-error",role:"alert",children:[E.jsx("span",{children:ot}),E.jsx("button",{onClick:()=>F(""),children:"关闭"})]}),E.jsx("div",{className:`workspace-grid ${N}`,style:{display:j||et?"none":void 0},children:v.slice(0,R).map((T,C)=>E.jsx(l3,{index:C,pane:T,multi:R>1,active:S===C,agents:l,projects:f,sessions:u,feishuApps:s,onFocus:b,onProjectChange:(U,K)=>{p(lt=>lt.map((yt,xt)=>xt===U?{...yt,cwd:K}:yt)),y(K)},onSessionCreated:z,onSessionUpdate:Nt},`${C}-${T.revision}`))}),E.jsx("div",{hidden:!et,children:E.jsx(JC,{active:et,onChange:a})}),E.jsx("div",{hidden:!j,children:E.jsx(KC,{projects:f,agents:l,projectLabel:T=>si(T,f)})})]})]})]})}bb.createRoot(document.getElementById("root")).render(E.jsx(i3,{}));