agent-muster 0.1.2 → 0.1.3

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,83 @@
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 ry(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Os={exports:{}},tu={};/**
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 ig;function ob(){if(ig)return tu;ig=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 d in s)d!=="key"&&(h[d]=s[d])}else h=s;return s=h.ref,{$$typeof:l,type:o,key:f,ref:s!==void 0?s:null,props:h}}return tu.Fragment=a,tu.jsx=u,tu.jsxs=u,tu}var ag;function cb(){return ag||(ag=1,Os.exports=ob()),Os.exports}var A=cb(),Ds={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 ug;function sb(){if(ug)return Ct;ug=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"),d=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 k(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,N={};function K(E,G,nt){this.props=E,this.context=G,this.refs=N,this.updater=nt||H}K.prototype.isReactComponent={},K.prototype.setState=function(E,G){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,G,"setState")},K.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Z(){}Z.prototype=K.prototype;function ft(E,G,nt){this.props=E,this.context=G,this.refs=N,this.updater=nt||H}var I=ft.prototype=new Z;I.constructor=ft,B(I,K.prototype),I.isPureReactComponent=!0;var j=Array.isArray;function J(){}var et={H:null,A:null,T:null,S:null},yt=Object.prototype.hasOwnProperty;function R(E,G,nt){var ut=nt.ref;return{$$typeof:l,type:E,key:G,ref:ut!==void 0?ut:null,props:nt}}function q(E,G){return R(E.type,G,E.props)}function F(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function dt(E){var G={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(nt){return G[nt]})}var at=/\/+/g;function W(E,G){return typeof E=="object"&&E!==null&&E.key!=null?dt(""+E.key):G.toString(36)}function $(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(J,J):(E.status="pending",E.then(function(G){E.status==="pending"&&(E.status="fulfilled",E.value=G)},function(G){E.status==="pending"&&(E.status="rejected",E.reason=G)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function rt(E,G,nt,ut,St){var Et=typeof E;(Et==="undefined"||Et==="boolean")&&(E=null);var zt=!1;if(E===null)zt=!0;else switch(Et){case"bigint":case"string":case"number":zt=!0;break;case"object":switch(E.$$typeof){case l:case a:zt=!0;break;case v:return zt=E._init,rt(zt(E._payload),G,nt,ut,St)}}if(zt)return St=St(E),zt=ut===""?"."+W(E,0):ut,j(St)?(nt="",zt!=null&&(nt=zt.replace(at,"$&/")+"/"),rt(St,G,nt,"",function(Le){return Le})):St!=null&&(F(St)&&(St=q(St,nt+(St.key==null||E&&E.key===St.key?"":(""+St.key).replace(at,"$&/")+"/")+zt)),G.push(St)),1;zt=0;var ct=ut===""?".":ut+":";if(j(E))for(var vt=0;vt<E.length;vt++)ut=E[vt],Et=ct+W(ut,vt),zt+=rt(ut,G,nt,Et,St);else if(vt=k(E),typeof vt=="function")for(E=vt.call(E),vt=0;!(ut=E.next()).done;)ut=ut.value,Et=ct+W(ut,vt++),zt+=rt(ut,G,nt,Et,St);else if(Et==="object"){if(typeof E.then=="function")return rt($(E),G,nt,ut,St);throw G=String(E),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return zt}function mt(E,G,nt){if(E==null)return E;var ut=[],St=0;return rt(E,ut,"","",function(Et){return G.call(nt,Et,St++)}),ut}function At(E){if(E._status===-1){var G=E._result,nt=G();nt.then(function(ut){(E._status===0||E._status===-1)&&(E._status=1,E._result=ut,nt.status===void 0&&(nt.status="fulfilled",nt.value=ut))},function(ut){(E._status===0||E._status===-1)&&(E._status=2,E._result=ut,nt.status===void 0&&(nt.status="rejected",nt.reason=ut))}),E._status===-1&&(E._status=0,E._result=nt)}if(E._status===1)return E._result.default;throw E._result}var z=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function P(E){var G=et.T,nt={};nt.types=G!==null?G.types:null,et.T=nt;try{var ut=E(),St=et.S;St!==null&&St(nt,ut),typeof ut=="object"&&ut!==null&&typeof ut.then=="function"&&ut.then(J,z)}catch(Et){z(Et)}finally{G!==null&&nt.types!==null&&(G.types=nt.types),et.T=G}}function ot(E){var G=et.T;if(G!==null){var nt=G.types;nt===null?G.types=[E]:nt.indexOf(E)===-1&&nt.push(E)}else P(ot.bind(null,E))}var T={map:mt,forEach:function(E,G,nt){mt(E,function(){G.apply(this,arguments)},nt)},count:function(E){var G=0;return mt(E,function(){G++}),G},toArray:function(E){return mt(E,function(G){return G})||[]},only:function(E){if(!F(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Ct.Activity=p,Ct.Children=T,Ct.Component=K,Ct.Fragment=u,Ct.Profiler=s,Ct.PureComponent=ft,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(E){return et.H.useMemoCache(E)}},Ct.addTransitionType=ot,Ct.cache=function(E){return function(){return E.apply(null,arguments)}},Ct.cacheSignal=function(){return null},Ct.cloneElement=function(E,G,nt){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ut=B({},E.props),St=E.key;if(G!=null)for(Et in G.key!==void 0&&(St=""+G.key),G)!yt.call(G,Et)||Et==="key"||Et==="__self"||Et==="__source"||Et==="ref"&&G.ref===void 0||(ut[Et]=G[Et]);var Et=arguments.length-2;if(Et===1)ut.children=nt;else if(1<Et){for(var zt=Array(Et),ct=0;ct<Et;ct++)zt[ct]=arguments[ct+2];ut.children=zt}return R(E.type,St,ut)},Ct.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:h,_context:E},E},Ct.createElement=function(E,G,nt){var ut,St={},Et=null;if(G!=null)for(ut in G.key!==void 0&&(Et=""+G.key),G)yt.call(G,ut)&&ut!=="key"&&ut!=="__self"&&ut!=="__source"&&(St[ut]=G[ut]);var zt=arguments.length-2;if(zt===1)St.children=nt;else if(1<zt){for(var ct=Array(zt),vt=0;vt<zt;vt++)ct[vt]=arguments[vt+2];St.children=ct}if(E&&E.defaultProps)for(ut in zt=E.defaultProps,zt)St[ut]===void 0&&(St[ut]=zt[ut]);return R(E,Et,St)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(E){return{$$typeof:d,render:E}},Ct.isValidElement=F,Ct.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:At}},Ct.memo=function(E,G){return{$$typeof:y,type:E,compare:G===void 0?null:G}},Ct.startTransition=P,Ct.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},Ct.use=function(E){return et.H.use(E)},Ct.useActionState=function(E,G,nt){return et.H.useActionState(E,G,nt)},Ct.useCallback=function(E,G){return et.H.useCallback(E,G)},Ct.useContext=function(E){return et.H.useContext(E)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(E,G){return et.H.useDeferredValue(E,G)},Ct.useEffect=function(E,G){return et.H.useEffect(E,G)},Ct.useEffectEvent=function(E){return et.H.useEffectEvent(E)},Ct.useId=function(){return et.H.useId()},Ct.useImperativeHandle=function(E,G,nt){return et.H.useImperativeHandle(E,G,nt)},Ct.useInsertionEffect=function(E,G){return et.H.useInsertionEffect(E,G)},Ct.useLayoutEffect=function(E,G){return et.H.useLayoutEffect(E,G)},Ct.useMemo=function(E,G){return et.H.useMemo(E,G)},Ct.useOptimistic=function(E,G){return et.H.useOptimistic(E,G)},Ct.useReducer=function(E,G,nt){return et.H.useReducer(E,G,nt)},Ct.useRef=function(E){return et.H.useRef(E)},Ct.useState=function(E){return et.H.useState(E)},Ct.useSyncExternalStore=function(E,G,nt){return et.H.useSyncExternalStore(E,G,nt)},Ct.useTransition=function(){return et.H.useTransition()},Ct.version="19.3.0",Ct}var rg;function df(){return rg||(rg=1,Ds.exports=sb()),Ds.exports}var pt=df(),Ms={exports:{}},Ae={};/**
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 og;function fb(){if(og)return Ae;og=1;var l=df();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 d(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 Ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ae.browser=function(v){return{$$typeof:h,_reason:v}},Ae.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 d(v,p,null,S)},Ae.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()}},Ae.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))},Ae.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},Ae.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var S=p.as,b=y(S,p.crossOrigin),k=typeof p.integrity=="string"?p.integrity:void 0,H=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:k,fetchPriority:H}):S==="script"&&o.d.X(v,{crossOrigin:b,integrity:k,fetchPriority:H,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ae.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)},Ae.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})}},Ae.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)},Ae.requestFormReset=function(v){o.d.r(v)},Ae.unstable_batchedUpdates=function(v,p){return v(p)},Ae.useFormState=function(v,p,S){return g.H.useFormState(v,p,S)},Ae.useFormStatus=function(){return g.H.useHostTransitionStatus()},Ae.version="19.3.0",Ae}var cg;function oy(){if(cg)return Ms.exports;cg=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(),Ms.exports=fb(),Ms.exports}var hb=oy();function ru({value:l,onChange:a,children:u,triggerLabel:o,disabled:s,"aria-label":h}){var ft;const f=pt.Children.toArray(u).filter(pt.isValidElement).map(I=>({value:String(I.props.value),label:I.props.children,disabled:!!I.props.disabled})),d=f.findIndex(I=>I.value===l),[g,y]=pt.useState(!1),[v,p]=pt.useState(-1),[S,b]=pt.useState({left:0,top:0,width:0}),k=pt.useRef(null),H=pt.useRef(null),B=pt.useId(),N=g&&!s;function K(){p(d>=0&&!f[d].disabled?d:f.findIndex(I=>!I.disabled)),y(!0)}function Z(I){var J;const j=f[I];!j||j.disabled||(a(j.value),y(!1),(J=k.current)==null||J.focus())}return pt.useLayoutEffect(()=>{if(!N||!k.current||!H.current)return;const I=k.current.getBoundingClientRect(),j=Math.min(Math.max(I.width,160),window.innerWidth-16),J=H.current.offsetHeight;b({left:Math.max(8,Math.min(I.left,window.innerWidth-j-8)),top:I.bottom+J+6<=window.innerHeight-8?I.bottom+6:Math.max(8,I.top-J-6),width:j})},[N,S.width]),pt.useEffect(()=>{if(!N)return;function I(J){var et,yt;J.target instanceof Node&&!((et=k.current)!=null&&et.contains(J.target))&&!((yt=H.current)!=null&&yt.contains(J.target))&&y(!1)}function j(J){var et;J.target instanceof Node&&((et=H.current)!=null&&et.contains(J.target))||y(!1)}return document.addEventListener("pointerdown",I),window.addEventListener("resize",j),window.addEventListener("scroll",j,!0),()=>{document.removeEventListener("pointerdown",I),window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0)}},[N]),pt.useEffect(()=>{var I,j;N&&((j=(I=H.current)==null?void 0:I.querySelector(`[id="${B}-${v}"]`))==null||j.scrollIntoView({block:"nearest"}))},[v,N,B]),A.jsxs("span",{className:"select-control",children:[A.jsxs("button",{ref:k,type:"button",className:"select-input",disabled:s,role:"combobox","aria-label":h,"aria-haspopup":"listbox","aria-expanded":N,"aria-controls":N?B:void 0,"aria-activedescendant":N&&v>=0?`${B}-${v}`:void 0,onClick:()=>N?y(!1):K(),onBlur:()=>y(!1),onKeyDown:I=>{if(I.key==="Escape"||I.key==="Tab"){y(!1);return}if(I.key==="ArrowDown"||I.key==="ArrowUp"||I.key==="Home"||I.key==="End"){if(I.preventDefault(),!N){K();return}const j=f.flatMap((yt,R)=>yt.disabled?[]:[R]),J=j.indexOf(v),et=I.key==="Home"?0:I.key==="End"?j.length-1:(J+(I.key==="ArrowDown"?1:-1)+j.length)%j.length;j.length&&p(j[et])}else N&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),Z(v))},children:[A.jsx("span",{className:"select-value",children:o??((ft=f[d])==null?void 0:ft.label)}),A.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:A.jsx("path",{d:"m6 9 6 6 6-6"})})]}),N&&hb.createPortal(A.jsx("div",{ref:H,id:B,className:"select-menu",role:"listbox","aria-label":h,style:S,onMouseDown:I=>I.preventDefault(),children:f.map((I,j)=>A.jsxs("button",{id:`${B}-${j}`,type:"button",role:"option",tabIndex:-1,"aria-selected":I.value===l,disabled:I.disabled,className:`select-option${v===j?" active":""}`,onPointerMove:()=>!I.disabled&&p(j),onClick:()=>Z(j),children:[A.jsx("span",{children:I.label}),I.value===l&&A.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:A.jsx("path",{d:"m5 12 4 4L19 6"})})]},I.value))}),document.body)]})}var js={exports:{}},eu={},Rs={exports:{}},Us={};/**
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 sg;function mb(){return sg||(sg=1,(function(l){function a($,rt){var mt=$.length;$.push(rt);t:for(;0<mt;){var At=mt-1>>>1,z=$[At];if(0<s(z,rt))$[At]=rt,$[mt]=z,mt=At;else break t}}function u($){return $.length===0?null:$[0]}function o($){if($.length===0)return null;var rt=$[0],mt=$.pop();if(mt!==rt){$[0]=mt;t:for(var At=0,z=$.length,P=z>>>1;At<P;){var ot=2*(At+1)-1,T=$[ot],E=ot+1,G=$[E];if(0>s(T,mt))E<z&&0>s(G,T)?($[At]=G,$[E]=mt,At=E):($[At]=T,$[ot]=mt,At=ot);else if(E<z&&0>s(G,mt))$[At]=G,$[E]=mt,At=E;else break t}}return rt}function s($,rt){var mt=$.sortIndex-rt.sortIndex;return mt!==0?mt:$.id-rt.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,d=f.now();l.unstable_now=function(){return f.now()-d}}var g=[],y=[],v=1,p=null,S=3,b=!1,k=!1,H=!1,B=!1,N=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function ft($){for(var rt=u(y);rt!==null;){if(rt.callback===null)o(y);else if(rt.startTime<=$)o(y),rt.sortIndex=rt.expirationTime,a(g,rt);else break;rt=u(y)}}function I($){if(H=!1,ft($),!k)if(u(g)!==null)k=!0,j||(j=!0,F());else{var rt=u(y);rt!==null&&W(I,rt.startTime-$)}}var j=!1,J=-1,et=5,yt=-1;function R(){return B?!0:!(l.unstable_now()-yt<et)}function q(){if(B=!1,j){var $=l.unstable_now();yt=$;var rt=!0;try{t:{k=!1,H&&(H=!1,K(J),J=-1),b=!0;var mt=S;try{e:{for(ft($),p=u(g);p!==null&&!(p.expirationTime>$&&R());){var At=p.callback;if(typeof At=="function"){p.callback=null,S=p.priorityLevel;var z=At(p.expirationTime<=$);if($=l.unstable_now(),typeof z=="function"){p.callback=z,ft($),rt=!0;break e}p===u(g)&&o(g),ft($)}else o(g);p=u(g)}if(p!==null)rt=!0;else{var P=u(y);P!==null&&W(I,P.startTime-$),rt=!1}}break t}finally{p=null,S=mt,b=!1}rt=void 0}}finally{rt?F():j=!1}}}var F;if(typeof Z=="function")F=function(){Z(q)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,at=dt.port2;dt.port1.onmessage=q,F=function(){at.postMessage(null)}}else F=function(){N(q,0)};function W($,rt){J=N(function(){$(l.unstable_now())},rt)}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($){$.callback=null},l.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):et=0<$?Math.floor(1e3/$):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function($){switch(S){case 1:case 2:case 3:var rt=3;break;default:rt=S}var mt=S;S=rt;try{return $()}finally{S=mt}},l.unstable_requestPaint=function(){B=!0},l.unstable_runWithPriority=function($,rt){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var mt=S;S=$;try{return rt()}finally{S=mt}},l.unstable_scheduleCallback=function($,rt,mt){var At=l.unstable_now();switch(typeof mt=="object"&&mt!==null?(mt=mt.delay,mt=typeof mt=="number"&&0<mt?At+mt:At):mt=At,$){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=mt+z,$={id:v++,callback:rt,priorityLevel:$,startTime:mt,expirationTime:z,sortIndex:-1},mt>At?($.sortIndex=mt,a(y,$),u(g)===null&&$===u(y)&&(H?(K(J),J=-1):H=!0,W(I,mt-At))):($.sortIndex=z,a(g,$),k||b||(k=!0,j||(j=!0,F()))),$},l.unstable_shouldYield=R,l.unstable_wrapCallback=function($){var rt=S;return function(){var mt=S;S=rt;try{return $.apply(this,arguments)}finally{S=mt}}}})(Us)),Us}var fg;function db(){return fg||(fg=1,Rs.exports=mb()),Rs.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 hg;function pb(){if(hg)return eu;hg=1;var l=db(),a=df(),u=oy();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 d(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 m=!1,x=r.child;x;){if(x===n){m=!0,n=r,i=c;break}if(x===i){m=!0,i=r,n=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===n){m=!0,n=c,i=r;break}if(x===i){m=!0,i=c,n=r;break}x=x.sibling}if(!m)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 k(t){var e=[null,null],n=S(t);return n===null||H(e,t,n.child,{foundSelf:!1}),e}function H(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)&&H(t,e,n.child,i))return!0;n=n.sibling}return!1}function B(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 N=null,K=null;function Z(t,e,n){return t===n?!0:t===e?(N=t,!0):!1}function ft(t,e,n){return t===n?(K=t,!1):t===e?(K!==null&&(N=t),!0):!1}function I(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 J=Object.assign,et=Symbol.for("react.element"),yt=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),dt=Symbol.for("react.profiler"),at=Symbol.for("react.consumer"),W=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),rt=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),ot=Symbol.for("react.legacy_hidden"),T=Symbol.for("react.memo_cache_sentinel"),E=Symbol.for("react.view_transition"),G=Symbol.for("react.recoverable"),nt=Symbol.iterator;function ut(t){return t===null||typeof t!="object"?null:(t=nt&&t[nt]||t["@@iterator"],typeof t=="function"?t:null)}var St=Symbol.for("react.client.reference");function Et(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===St?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case dt:return"Profiler";case F:return"StrictMode";case rt:return"Suspense";case mt:return"SuspenseList";case P:return"Activity";case E: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 $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case At:return e=t.displayName||null,e!==null?e:Et(t.type)||"Memo";case z:e=t._payload,t=t._init;try{return Et(t(e))}catch{}}return null}var zt=Array.isArray,ct=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,Le={pending:!1,data:null,method:null,action:null},ul=[],un=-1;function ze(t){return{current:t}}function te(t){0>un||(t.current=ul[un],ul[un]=null,un--)}function Y(t,e){un++,ul[un]=t.current,t.current=e}var Ot=ze(null),me=ze(null),Ze=ze(null),rl=ze(null);function ae(t,e){switch(Y(Ze,e),Y(me,t),Y(Ot,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=dp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}te(Ot),Y(Ot,t)}function ne(){te(Ot),te(me),te(Ze)}function wn(t){var e=t.memoizedState;e!==null&&(ta._currentValue=e.memoizedState,Y(rl,t)),e=Ot.current;var n=dp(e,t.type);e!==n&&(Y(me,t),Y(Ot,n))}function V(t){me.current===t&&(te(Ot),te(me)),rl.current===t&&(te(rl),ta._currentValue=Le)}var lt,Tt;function kt(t){if(lt===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);lt=e&&e[1]||"",Tt=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+lt+t+Tt}var Yt=!1;function Ne(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 Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(it){var _=it}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(it){_=it}Q=!1;try{var U=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Q=!0,new t}finally{Q&&(U!==void 0?Object.defineProperty(t.prototype,"props",U):delete t.prototype.props)}}}else{try{throw Error()}catch(it){_=it}(Q=t())&&typeof Q.catch=="function"&&Q.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(),m=c[0],x=c[1];if(m&&x){var C=m.split(`
44
+ `),D=x.split(`
45
+ `);for(r=i=0;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(i===C.length||r===D.length)for(i=C.length-1,r=D.length-1;1<=i&&0<=r&&C[i]!==D[r];)r--;for(;1<=i&&0<=r;i--,r--)if(C[i]!==D[r]){if(i!==1||r!==1)do if(i--,r--,0>r||C[i]!==D[r]){var L=`
46
+ `+C[i].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=i&&0<=r);break}}}finally{Yt=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?kt(n):""}function Yn(t,e){switch(t.tag){case 26:case 27:case 5:return kt(t.type);case 16:return kt("Lazy");case 13:return t.child!==e&&e!==null?kt("Suspense Fallback"):kt("Suspense");case 19:return kt("SuspenseList");case 0:case 15:return Ne(t.type,!1);case 11:return Ne(t.type.render,!1);case 1:return Ne(t.type,!0);case 31:return kt("Activity");case 30:return kt("ViewTransition");default:return""}}function rn(t){try{var e="",n=null;do e+=Yn(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Vn=Object.prototype.hasOwnProperty,Gn=l.unstable_scheduleCallback,ve=l.unstable_cancelCallback,ol=l.unstable_shouldYield,vn=l.unstable_requestPaint,Ie=l.unstable_now,p1=l.unstable_getCurrentPriorityLevel,Uf=l.unstable_ImmediatePriority,Lf=l.unstable_UserBlockingPriority,pu=l.unstable_NormalPriority,g1=l.unstable_LowPriority,Bf=l.unstable_IdlePriority,y1=l.log,v1=l.unstable_setDisableYieldValue,ra=null,Ke=null;function cl(t){if(typeof y1=="function"&&v1(t),Ke&&typeof Ke.setStrictMode=="function")try{Ke.setStrictMode(ra,t)}catch{}}var Fe=Math.clz32?Math.clz32:S1,b1=Math.log,x1=Math.LN2;function S1(t){return t>>>=0,t===0?32:31-(b1(t)/x1|0)|0}var gu=256,yu=262144,vu=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 bu(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var r=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=i&134217727;return x!==0?(i=x&~c,i!==0?r=Bl(i):(m&=x,m!==0?r=Bl(m):n||(n=x&~t,n!==0&&(r=Bl(n))))):(x=i&~c,x!==0?r=Bl(x):m!==0?r=Bl(m):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 oa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Hf(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-Fe(n),r=1<<i;e|=t[i],n&=~r}return e}function E1(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 qf(){var t=vu;return vu<<=1,(vu&62914560)===0&&(vu=4194304),t}function lo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ca(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function T1(t,e,n,i,r,c){var m=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,C=t.expirationTimes,D=t.hiddenUpdates;for(n=m&~n;0<n;){var L=31-Fe(n),Q=1<<L;x[L]=0,C[L]=-1;var _=D[L];if(_!==null)for(D[L]=null,L=0;L<_.length;L++){var U=_[L];U!==null&&(U.lane&=-536870913)}n&=~Q}i!==0&&Yf(t,i,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function Yf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Fe(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Vf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Fe(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}function Gf(t,e){var n=e&-e;return n=(n&42)!==0?1:io(n),(n&(t.suspendedLanes|e))!==0?0:n}function io(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 ao(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Xf(){var t=vt.p;return t!==0?t:(t=window.event,t===void 0?32:$p(t.type))}function Qf(t,e){var n=vt.p;try{return vt.p=t,e()}finally{vt.p=n}}var Xn=Math.random().toString(36).slice(2),be="__reactFiber$"+Xn,Be="__reactProps$"+Xn,di="__reactContainer$"+Xn,Zf="__reactEvents$"+Xn,C1="__reactListeners$"+Xn,A1="__reactHandles$"+Xn,If="__reactResources$"+Xn,sa="__reactMarker$"+Xn,xu="__reactLoad$"+Xn;function Su(t){delete t[be],delete t[Be],delete t[C1],delete t[A1]}function Hl(t){var e;if(e=t[be])return e;for(var n=t.parentNode;n;){if(e=n[di]||n[be]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Op(t);t!==null;){if(n=t[be])return n;t=Op(t)}return e}t=n,n=t.parentNode}return null}function pi(t){if(t=t[be]||t[di]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function fa(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[If];return e||(e=t[If]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function de(t){t[sa]=!0}function Kf(t){t[xu]=void 0}var Ff=new Set,Jf={};function ql(t,e){yi(t,e),yi(t+"Capture",e)}function yi(t,e){for(Jf[t]=e,t=0;t<e.length;t++)Ff.add(e[t])}var z1=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]*$"),$f={},Pf={};function w1(t){return Vn.call(Pf,t)?!0:Vn.call($f,t)?!1:z1.test(t)?Pf[t]=!0:($f[t]=!0,!1)}var Ht=!1;function Wf(){var t=Ht;return Ht=!1,t}function Eu(t,e,n){if(w1(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 Tu(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 Qn(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 Je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function th(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function k1(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(m){n=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function uo(t){if(!t._valueTracker){var e=th(t)?"checked":"value";t._valueTracker=k1(t,e,""+t[e])}}function eh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=th(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}var _1=/[\n"\\]/g;function on(t){return t.replace(_1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ro(t,e,n,i,r,c,m,x){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Je(e)):t.value!==""+Je(e)&&(t.value=""+Je(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?m==="number"&&t.value==e?oo(t,Je(t.value)):oo(t,Je(e)):n!=null?oo(t,Je(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=""+Je(x):t.removeAttribute("name")}function nh(t,e,n,i,r,c,m,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)){uo(t);return}n=n!=null?""+Je(n):"",e=e!=null?""+Je(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,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),uo(t)}function oo(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=""+Je(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 lh(t,e,n){if(e!=null&&(e=""+Je(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Je(n):""}function ih(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(o(92));if(zt(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Je(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),uo(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 N1=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 ah(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||N1.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function uh(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]="",Ht=!0);for(var r in e)i=e[r],e.hasOwnProperty(r)&&n[r]!==i&&(ah(t,r,i),Ht=!0)}else for(var c in e)e.hasOwnProperty(c)&&ah(t,c,e[c])}function co(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 O1=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"]]),D1=/^[\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 Cu(t){return D1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function kn(){}var so=null;function fo(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 rh(t){var e=pi(t);if(e&&(t=e.stateNode)){var n=t[Be]||null;t:switch(t=e.stateNode,e.type){case"input":if(ro(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="'+on(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=i[Be]||null;if(!r)throw Error(o(90));ro(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&&eh(i)}break t;case"textarea":lh(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&vi(t,!!n.multiple,e,!1)}}}var ho=!1;function oh(t,e,n){if(ho)return t(e,n);ho=!0;try{var i=t(e);return i}finally{if(ho=!1,(xi!==null||Si!==null)&&(Cr(),xi&&(e=xi,t=Si,Si=xi=null,rh(e),t)))for(e=0;e<t.length;e++)rh(t[e])}}function ha(t,e){var n=t.stateNode;if(n===null)return null;var i=n[Be]||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 Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mo=!1;if(Zn)try{var ma={};Object.defineProperty(ma,"passive",{get:function(){mo=!0}}),window.addEventListener("test",ma,ma),window.removeEventListener("test",ma,ma)}catch{mo=!1}var sl=null,po=null,Au=null;function ch(){if(Au)return Au;var t,e=po,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 m=n-t;for(i=1;i<=m&&e[n-i]===r[c-i];i++);return Au=r.slice(t,1<i?1-i:void 0)}function zu(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 wu(){return!0}function sh(){return!1}function Oe(t){function e(n,i,r,c,m){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=c,this.target=m,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)?wu:sh,this.isPropagationStopped=sh,this}return J(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=wu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),e}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ku=Oe(fl),da=J({},fl,{view:0,detail:0}),M1=Oe(da),go,yo,pa,_u=J({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,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!==pa&&(pa&&t.type==="mousemove"?(go=t.screenX-pa.screenX,yo=t.screenY-pa.screenY):yo=go=0,pa=t),go)},movementY:function(t){return"movementY"in t?t.movementY:yo}}),fh=Oe(_u),j1=J({},_u,{dataTransfer:0}),R1=Oe(j1),U1=J({},da,{relatedTarget:0}),vo=Oe(U1),L1=J({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),B1=Oe(L1),H1=J({},fl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q1=Oe(H1),Y1=J({},fl,{data:0}),hh=Oe(Y1),V1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G1={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"},X1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=X1[t])?!!e[t]:!1}function bo(){return Q1}var Z1=J({},da,{key:function(t){if(t.key){var e=V1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=zu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?G1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bo,charCode:function(t){return t.type==="keypress"?zu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?zu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),I1=Oe(Z1),K1=J({},_u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mh=Oe(K1),F1=J({},fl,{submitter:0}),J1=Oe(F1),$1=J({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),P1=Oe($1),W1=J({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),t0=Oe(W1),e0=J({},_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}),n0=Oe(e0),l0=J({},fl,{newState:0,oldState:0,source:0}),i0=Oe(l0),a0=[9,13,27,32],xo=Zn&&"CompositionEvent"in window,ga=null;Zn&&"documentMode"in document&&(ga=document.documentMode);var u0=Zn&&"TextEvent"in window&&!ga,dh=Zn&&(!xo||ga&&8<ga&&11>=ga),ph=" ",gh=!1;function yh(t,e){switch(t){case"keyup":return a0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function r0(t,e){switch(t){case"compositionend":return vh(e);case"keypress":return e.which!==32?null:(gh=!0,ph);case"textInput":return t=e.data,t===ph&&gh?null:t;default:return null}}function o0(t,e){if(Ei)return t==="compositionend"||!xo&&yh(t,e)?(t=ch(),Au=po=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 dh&&e.locale!=="ko"?null:e.data;default:return null}}var c0={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 bh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!c0[t.type]:e==="textarea"}function xh(t,e,n,i){xi?Si?Si.push(i):Si=[i]:xi=i,e=Nr(e,"onChange"),0<e.length&&(n=new ku("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var ya=null,va=null;function s0(t){rp(t,0)}function Nu(t){var e=fa(t);if(eh(e))return t}function Sh(t,e){if(t==="change")return e}var Eh=!1;if(Zn){var So;if(Zn){var Eo="oninput"in document;if(!Eo){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),Eo=typeof Th.oninput=="function"}So=Eo}else So=!1;Eh=So&&(!document.documentMode||9<document.documentMode)}function Ch(){ya&&(ya.detachEvent("onpropertychange",Ah),va=ya=null)}function Ah(t){if(t.propertyName==="value"&&Nu(va)){var e=[];xh(e,va,t,fo(t)),oh(s0,e)}}function f0(t,e,n){t==="focusin"?(Ch(),ya=e,va=n,ya.attachEvent("onpropertychange",Ah)):t==="focusout"&&Ch()}function h0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Nu(va)}function m0(t,e){if(t==="click")return Nu(e)}function d0(t,e){if(t==="input"||t==="change")return Nu(e)}function p0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var $e=typeof Object.is=="function"?Object.is:p0;function ba(t,e){if($e(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(!Vn.call(e,r)||!$e(t[r],e[r]))return!1}return!0}function To(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 zh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wh(t,e){var n=zh(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=zh(n)}}function kh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?kh(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=To(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=To(t.document)}return e}function Co(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 g0=Zn&&"documentMode"in document&&11>=document.documentMode,Ti=null,Ao=null,xa=null,zo=!1;function Nh(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||Ti==null||Ti!==To(i)||(i=Ti,"selectionStart"in i&&Co(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}),xa&&ba(xa,i)||(xa=i,i=Nr(Ao,"onSelect"),0<i.length&&(e=new ku("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")},wo={},Oh={};Zn&&(Oh=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(wo[t])return wo[t];if(!Ci[t])return t;var e=Ci[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Oh)return wo[t]=e[n];return t}var Dh=Vl("animationend"),Mh=Vl("animationiteration"),jh=Vl("animationstart"),y0=Vl("transitionrun"),v0=Vl("transitionstart"),b0=Vl("transitioncancel"),Rh=Vl("transitionend"),Uh=new Map,ko="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(" ");ko.push("scrollEnd");function bn(t,e){Uh.set(t,e),ql(e,[t])}var x0=0;function In(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=Tn.identifierPrefix;var n=x0++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function Lh(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 Kn(t,e){return t=Lh(t),e=Lh(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Ou=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)},cn=[],Ai=0,_o=0;function Du(){for(var t=Ai,e=_o=Ai=0;e<t;){var n=cn[e];cn[e++]=null;var i=cn[e];cn[e++]=null;var r=cn[e];cn[e++]=null;var c=cn[e];if(cn[e++]=null,i!==null&&r!==null){var m=i.pending;m===null?r.next=r:(r.next=m.next,m.next=r),i.pending=r}c!==0&&Bh(n,r,c)}}function Mu(t,e,n,i){cn[Ai++]=t,cn[Ai++]=e,cn[Ai++]=n,cn[Ai++]=i,_o|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function No(t,e,n,i){return Mu(t,e,n,i),ju(t)}function Gl(t,e){return Mu(t,null,null,e),ju(t)}function Bh(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-Fe(n),t=c.hiddenUpdates,i=t[r],i===null?t[r]=[e]:i.push(e),e.lane=n|536870912),c):null}function ju(t){if(50<Va)throw Va=0,Tr=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 S0(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 He(t,e,n,i){return new S0(t,e,n,i)}function Oo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fn(t,e){var n=t.alternate;return n===null?(n=He(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 Hh(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 Ru(t,e,n,i,r,c){var m=0;if(i=t,typeof i=="function")Oo(i)&&(m=1);else if(typeof i=="string")m=Fv(t,n,Ot.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(i){case P:return t=He(31,n,e,r),t.elementType=P,t.lanes=c,t;case q:return Xl(n.children,r,c,e);case F:m=8,r|=24;break;case dt:return t=He(12,n,e,r|2),t.elementType=dt,t.lanes=c,t;case rt:return t=He(13,n,e,r),t.elementType=rt,t.lanes=c,t;case mt:return t=He(19,n,e,r),t.elementType=mt,t.lanes=c,t;case ot:case E:return t=r|32,t=He(30,n,e,t),t.elementType=E,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:m=10;break t;case at:m=9;break t;case $:m=11;break t;case At:m=14;break t;case z:m=16,i=null;break t}m=29,n=Error(o(130,t===null?"null":typeof t,"")),i=null}return e=He(m,n,e,r),e.elementType=t,e.type=i,e.lanes=c,e}function Xl(t,e,n,i){return t=He(7,t,i,e),t.lanes=n,t}function Do(t,e,n){return t=He(6,t,null,e),t.lanes=n,t}function qh(t){var e=He(18,null,null,0);return e.stateNode=t,e}function Mo(t,e,n){return e=He(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Yh=new WeakMap;function sn(t,e){if(typeof t=="object"&&t!==null){var n=Yh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:rn(e)},Yh.set(t,e),e)}return{value:t,source:e,stack:rn(e)}}var wi=[],ki=0,Uu=null,Sa=0,fn=[],hn=0,hl=null,_n=1,Nn="";function Jn(t,e){wi[ki++]=Sa,wi[ki++]=Uu,Uu=t,Sa=e}function Vh(t,e,n){fn[hn++]=_n,fn[hn++]=Nn,fn[hn++]=hl,hl=t;var i=_n;t=Nn;var r=32-Fe(i)-1;i&=~(1<<r),n+=1;var c=32-Fe(e)+r;if(30<c){var m=r-r%5;c=(i&(1<<m)-1).toString(32),i>>=m,r-=m,_n=1<<32-Fe(e)+r|n<<r|i,Nn=c+t}else _n=1<<c|n<<r|i,Nn=t}function Lu(t){t.return!==null&&(Jn(t,1),Vh(t,1,0))}function jo(t){for(;t===Uu;)Uu=wi[--ki],wi[ki]=null,Sa=wi[--ki],wi[ki]=null;for(;t===hl;)hl=fn[--hn],fn[hn]=null,Nn=fn[--hn],fn[hn]=null,_n=fn[--hn],fn[hn]=null}function Gh(t,e){fn[hn++]=_n,fn[hn++]=Nn,fn[hn++]=hl,_n=e.id,Nn=e.overflow,hl=t}var pe=null,$t=null,Dt=!1,ml=null,mn=!1,Ro=Error(o(519));function dl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ea(sn(e,t)),Ro}function Xh(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[be]=t,e[Be]=i,n){case"dialog":Rt("cancel",e),Rt("close",e);break;case"iframe":case"object":case"embed":Rt("load",e);break;case"video":case"audio":for(n=0;n<Xa.length;n++)Rt(Xa[n],e);break;case"source":Rt("error",e);break;case"img":case"image":case"link":Rt("error",e),Rt("load",e);break;case"details":Rt("toggle",e);break;case"input":Rt("invalid",e),nh(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Rt("invalid",e);break;case"textarea":Rt("invalid",e),ih(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||fp(e.textContent,n)?(i.popover!=null&&(Rt("beforetoggle",e),Rt("toggle",e)),i.onScroll!=null&&Rt("scroll",e),i.onScrollEnd!=null&&Rt("scrollend",e),i.onClick!=null&&(e.onclick=kn),e=!0):e=!1,e||dl(t,!0)}function Bu(t){for(pe=t.return;pe;)switch(pe.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:pe=pe.return}}function _i(t){if(t!==pe)return!1;if(!Dt)return Bu(t),Dt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||fs(t.type,t.memoizedProps)),n=!n),n&&$t&&dl(t),Bu(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));$t=Np(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));$t=Np(t)}else e===27?(e=$t,Nl(t.type)?(t=xs,xs=null,$t=t):$t=e):$t=pe?pn(t.stateNode.nextSibling):null;return!0}function Ql(){$t=pe=null,Dt=!1}function Uo(){var t=ml;return t!==null&&(Ve===null?Ve=t:Ve.push.apply(Ve,t),ml=null),t}function Ea(t){ml===null?ml=[t]:ml.push(t)}var Lo=ze(null),Zl=null,$n=null;function pl(t,e,n){Y(Lo,e._currentValue),e._currentValue=n}function Pn(t){t._currentValue=Lo.current,te(Lo)}function Hu(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 Bo(t,e,n,i){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var m=r.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=r;for(var C=0;C<e.length;C++)if(x.context===e[C]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),Hu(c.return,n,t),i||(m=null);break t}c=x.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(o(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Hu(m,n,t),m=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=n,m=r.alternate,m!==null&&(m.lanes|=n),Hu(r.return,n,t),m=r.child,m=m!==null?m.sibling:null):m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===t){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}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 m=r.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var x=r.type;$e(r.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(r===rl.current){if(m=r.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(ta):t=[ta])}r=r.return}return t!==null&&Bo(e,t,n,i),e.flags|=262144,t!==null}function qu(t){for(t=t.firstContext;t!==null;){if(!$e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Kl(t){Zl=t,$n=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function xe(t){return Qh(Zl,t)}function Yu(t,e){return Zl===null&&Kl(t),Qh(t,e)}function Qh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},$n===null){if(t===null)throw Error(o(308));$n=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else $n=$n.next=e;return n}var E0=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()})}},T0=l.unstable_scheduleCallback,C0=l.unstable_NormalPriority,re={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ho(){return{controller:new E0,data:new Map,refCount:0}}function Ta(t){t.refCount--,t.refCount===0&&T0(C0,function(){t.controller.abort()})}function Zh(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 Ca=null;function A0(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Aa=null,qo=0,Fl=0,Ni=null;function z0(t,e){if(Aa===null){var n=Aa=[];qo=0,Fl=ns(),Ni={status:"pending",value:void 0,then:function(i){n.push(i)}}}return qo++,e.then(Ih,Ih),e}function Ih(){if(--qo===0&&(Ca=null,Aa!==null)){Ni!==null&&(Ni.status="fulfilled");var t=Aa;Aa=null,Fl=0,Ni=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function w0(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 Kh=ct.S;ct.S=function(t,e){if(qd=Ie(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&z0(t,e),Ca!==null)for(var n=Ki;n!==null;)Zh(n,Ca),n=n.next;if(n=t.types,n!==null){for(var i=Ki;i!==null;)Zh(i,n),i=i.next;if(Fl!==0){i=Ca,i===null&&(i=Ca=[]);for(var r=0;r<n.length;r++){var c=n[r];i.indexOf(c)===-1&&i.push(c)}}}Kh!==null&&Kh(t,e)};var Jl=ze(null);function Yo(){var t=Jl.current;return t!==null?t:Kt.pooledCache}function Vu(t,e){e===null?Y(Jl,Jl.current):Y(Jl,e.pool)}function Fh(){var t=Yo();return t===null?null:{parent:re._currentValue,pool:t}}var Oi=Error(o(460)),Vo=Error(o(474)),Gu=Error(o(542)),Xu={then:function(){}};function Jh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function $h(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(kn,kn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t===void 0&&!("reason"in e)?Error(o(600)):t;default:if(typeof e.status=="string")e.then(kn,kn);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,Wh(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 Ph(){if(Pl===null)throw Error(o(459));var t=Pl;return Pl=null,t}function Wh(t){if(t===Oi||t===Gu)throw Error(o(483))}var Di=null,za=0;function Qu(t){var e=za;return za+=1,Di===null&&(Di=[]),$h(Di,t,e)}function gl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Zu(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 tm(t){function e(O,w){if(t){var M=O.deletions;M===null?(O.deletions=[w],O.flags|=16):M.push(w)}}function n(O,w){if(!t)return null;for(;w!==null;)e(O,w),w=w.sibling;return null}function i(O){for(var w=new Map;O!==null;)O.key===null?w.set(O.index,O):w.set(O.key,O),O=O.sibling;return w}function r(O,w){return O=Fn(O,w),O.index=0,O.sibling=null,O}function c(O,w,M){return O.index=M,t?(M=O.alternate,M!==null?(M=M.index,M<w?(O.flags|=2,w):M):(O.flags|=134217730,w)):(O.flags|=1048576,w)}function m(O){return t&&O.alternate===null&&(O.flags|=134217730),O}function x(O,w,M,X){return w===null||w.tag!==6?(w=Do(M,O.mode,X),w.return=O,w):(w=r(w,M),w.return=O,w)}function C(O,w,M,X){var st=M.type;return st===q?(O=L(O,w,M.props.children,X,M.key),gl(O,M),O):w!==null&&(w.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===z&&$l(st)===w.type)?(w=r(w,M.props),gl(w,M),w.return=O,w):(w=Ru(M.type,M.key,M.props,null,O.mode,X),gl(w,M),w.return=O,w)}function D(O,w,M,X){return w===null||w.tag!==4||w.stateNode.containerInfo!==M.containerInfo||w.stateNode.implementation!==M.implementation?(w=Mo(M,O.mode,X),w.return=O,w):(w=r(w,M.children||[]),w.return=O,w)}function L(O,w,M,X,st){return w===null||w.tag!==7?(w=Xl(M,O.mode,X,st),w.return=O,w):(w=r(w,M),w.return=O,w)}function Q(O,w,M){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Do(""+w,O.mode,M),w.return=O,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case yt:return M=Ru(w.type,w.key,w.props,null,O.mode,M),gl(M,w),M.return=O,M;case R:return w=Mo(w,O.mode,M),w.return=O,w;case z:return w=$l(w),Q(O,w,M)}if(zt(w)||ut(w))return w=Xl(w,O.mode,M,null),w.return=O,w;if(typeof w.then=="function")return Q(O,Qu(w),M);if(w.$$typeof===W)return Q(O,Yu(O,w),M);Zu(O,w)}return null}function _(O,w,M,X){var st=w!==null?w.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return st!==null?null:x(O,w,""+M,X);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case yt:return M.key===st?C(O,w,M,X):null;case R:return M.key===st?D(O,w,M,X):null;case z:return M=$l(M),_(O,w,M,X)}if(zt(M)||ut(M))return st!==null?null:L(O,w,M,X,null);if(typeof M.then=="function")return _(O,w,Qu(M),X);if(M.$$typeof===W)return _(O,w,Yu(O,M),X);Zu(O,M)}return null}function U(O,w,M,X,st){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(M)||null,x(w,O,""+X,st);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case yt:return O=O.get(X.key===null?M:X.key)||null,C(w,O,X,st);case R:return O=O.get(X.key===null?M:X.key)||null,D(w,O,X,st);case z:return X=$l(X),U(O,w,M,X,st)}if(zt(X)||ut(X))return O=O.get(M)||null,L(w,O,X,st,null);if(typeof X.then=="function")return U(O,w,M,Qu(X),st);if(X.$$typeof===W)return U(O,w,M,Yu(w,X),st);Zu(w,X)}return null}function it(O,w,M,X){for(var st=null,Lt=null,gt=w,xt=w=0,se=null;gt!==null&&xt<M.length;xt++){gt.index>xt?(se=gt,gt=null):se=gt.sibling;var Bt=_(O,gt,M[xt],X);if(Bt===null){gt===null&&(gt=se);break}t&&gt&&Bt.alternate===null&&e(O,gt),w=c(Bt,w,xt),Lt===null?st=Bt:Lt.sibling=Bt,Lt=Bt,gt=se}if(xt===M.length)return n(O,gt),Dt&&Jn(O,xt),st;if(gt===null){for(;xt<M.length;xt++)gt=Q(O,M[xt],X),gt!==null&&(w=c(gt,w,xt),Lt===null?st=gt:Lt.sibling=gt,Lt=gt);return Dt&&Jn(O,xt),st}for(gt=i(gt);xt<M.length;xt++)se=U(gt,O,xt,M[xt],X),se!==null&&(t&&(Bt=se.alternate,Bt!==null&&gt.delete(Bt.key===null?xt:Bt.key)),w=c(se,w,xt),Lt===null?st=se:Lt.sibling=se,Lt=se);return t&&gt.forEach(function(Rl){return e(O,Rl)}),Dt&&Jn(O,xt),st}function ht(O,w,M,X){if(M==null)throw Error(o(151));for(var st=null,Lt=null,gt=w,xt=w=0,se=null,Bt=M.next();gt!==null&&!Bt.done;xt++,Bt=M.next()){gt.index>xt?(se=gt,gt=null):se=gt.sibling;var Rl=_(O,gt,Bt.value,X);if(Rl===null){gt===null&&(gt=se);break}t&&gt&&Rl.alternate===null&&e(O,gt),w=c(Rl,w,xt),Lt===null?st=Rl:Lt.sibling=Rl,Lt=Rl,gt=se}if(Bt.done)return n(O,gt),Dt&&Jn(O,xt),st;if(gt===null){for(;!Bt.done;xt++,Bt=M.next())Bt=Q(O,Bt.value,X),Bt!==null&&(w=c(Bt,w,xt),Lt===null?st=Bt:Lt.sibling=Bt,Lt=Bt);return Dt&&Jn(O,xt),st}for(gt=i(gt);!Bt.done;xt++,Bt=M.next())Bt=U(gt,O,xt,Bt.value,X),Bt!==null&&(t&&(se=Bt.alternate,se!==null&&gt.delete(se.key===null?xt:se.key)),w=c(Bt,w,xt),Lt===null?st=Bt:Lt.sibling=Bt,Lt=Bt);return t&&gt.forEach(function(rb){return e(O,rb)}),Dt&&Jn(O,xt),st}function Nt(O,w,M,X){if(typeof M=="object"&&M!==null&&M.type===q&&M.key===null&&M.props.ref===void 0&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case yt:t:{for(var st=M.key;w!==null;){if(w.key===st){if(st=M.type,st===q){if(w.tag===7){n(O,w.sibling),X=r(w,M.props.children),gl(X,M),X.return=O,O=X;break t}}else if(w.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===z&&$l(st)===w.type){n(O,w.sibling),X=r(w,M.props),gl(X,M),X.return=O,O=X;break t}n(O,w);break}else e(O,w);w=w.sibling}M.type===q?(X=Xl(M.props.children,O.mode,X,M.key),gl(X,M),X.return=O,O=X):(X=Ru(M.type,M.key,M.props,null,O.mode,X),gl(X,M),X.return=O,O=X)}return m(O);case R:t:{for(st=M.key;w!==null;){if(w.key===st)if(w.tag===4&&w.stateNode.containerInfo===M.containerInfo&&w.stateNode.implementation===M.implementation){n(O,w.sibling),X=r(w,M.children||[]),X.return=O,O=X;break t}else{n(O,w);break}else e(O,w);w=w.sibling}X=Mo(M,O.mode,X),X.return=O,O=X}return m(O);case z:return M=$l(M),Nt(O,w,M,X)}if(zt(M))return it(O,w,M,X);if(ut(M)){if(st=ut(M),typeof st!="function")throw Error(o(150));return M=st.call(M),ht(O,w,M,X)}if(typeof M.then=="function")return Nt(O,w,Qu(M),X);if(M.$$typeof===W)return Nt(O,w,Yu(O,M),X);Zu(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,w!==null&&w.tag===6?(n(O,w.sibling),X=r(w,M),X.return=O,O=X):(n(O,w),X=Do(M,O.mode,X),X.return=O,O=X),m(O)):n(O,w)}return function(O,w,M,X){try{za=0;var st=Nt(O,w,M,X);return Di=null,st}catch(gt){if(gt===Oi||gt===Gu)throw gt;var Lt=He(29,gt,null,O.mode);return Lt.lanes=X,Lt.return=O,Lt}finally{}}}var Wl=tm(!0),em=tm(!1),yl=!1;function Go(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(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=ju(t),Bh(t,null,n),e}return Mu(t,i,e,n),ju(t)}function wa(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,Vf(t,n)}}function Qo(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 m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?r=c=m:c=c.next=m,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 Zo=!1;function ka(){if(Zo){var t=Ni;if(t!==null)throw t}}function _a(t,e,n,i){Zo=!1;var r=t.updateQueue;yl=!1;var c=r.firstBaseUpdate,m=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var C=x,D=C.next;C.next=null,m===null?c=D:m.next=D,m=C;var L=t.alternate;L!==null&&(L=L.updateQueue,x=L.lastBaseUpdate,x!==m&&(x===null?L.firstBaseUpdate=D:x.next=D,L.lastBaseUpdate=C))}if(c!==null){var Q=r.baseState;m=0,L=D=C=null,x=c;do{var _=x.lane&-536870913,U=_!==x.lane;if(U?(Ut&_)===_:(i&_)===_){_!==0&&_===Fl&&(Zo=!0),L!==null&&(L=L.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var it=t,ht=x;_=e;var Nt=n;switch(ht.tag){case 1:if(it=ht.payload,typeof it=="function"){Q=it.call(Nt,Q,_);break t}Q=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ht.payload,_=typeof it=="function"?it.call(Nt,Q,_):it,_==null)break t;Q=J({},Q,_);break t;case 2:yl=!0}}_=x.callback,_!==null&&(t.flags|=64,U&&(t.flags|=8192),U=r.callbacks,U===null?r.callbacks=[_]:U.push(_))}else U={lane:_,tag:x.tag,payload:x.payload,callback:x.callback,next:null},L===null?(D=L=U,C=Q):L=L.next=U,m|=_;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;U=x,x=U.next,U.next=null,r.lastBaseUpdate=U,r.shared.pending=null}}while(!0);L===null&&(C=Q),r.baseState=C,r.firstBaseUpdate=D,r.lastBaseUpdate=L,c===null&&(r.shared.lanes=0),zl|=m,t.lanes=m,t.memoizedState=Q}}function nm(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function lm(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)nm(n[t],e)}var xl=ze(null),Iu=ze(0);function im(t,e){t=ll,Y(Iu,t),Y(xl,e),ll=t|e.baseLanes}function Io(){Y(Iu,ll),Y(xl,xl.current)}function Ko(){ll=Iu.current,te(xl),te(Iu)}var Se=ze(null),we=null;function Sl(t){var e=t.alternate;Y(Ee,Ee.current&1),Y(Se,t),we===null&&(e===null||xl.current!==null||e.memoizedState!==null)&&(we=t)}function Fo(t){Y(Ee,Ee.current),Y(Se,t),we===null&&(we=t)}function am(t){t.tag===22?(Y(Ee,Ee.current),Y(Se,t),we===null&&(we=t)):El()}function El(){Y(Ee,Ee.current),Y(Se,Se.current)}function Pe(t){te(Se),we===t&&(we=null),te(Ee)}var Ee=ze(0);function Na(t,e){Y(Se,Se.current),Y(Ee,e)}function Jo(t){te(Ee),te(Se),we===t&&(we=null)}function Ku(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vs(n)||bs(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 Wn=0,_t=null,It=null,oe=null,Fu=!1,Mi=!1,ti=!1,Ju=0,Oa=0,ji=null,k0=0;function le(){throw Error(o(321))}function $o(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!$e(t[n],e[n]))return!1;return!0}function Po(t,e,n,i,r,c){return Wn=c,_t=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ct.H=t===null||t.memoizedState===null?Vm:Gm,ti=!1,c=n(i,r),ti=!1,Mi&&(c=rm(e,n,i,r)),um(t),c}function um(t){ct.H=lr;var e=It!==null&&It.next!==null;if(Wn=0,oe=It=_t=null,Fu=!1,Oa=0,ji=null,e)throw Error(o(300));t===null||ce||(t=t.dependencies,t!==null&&qu(t)&&(ce=!0))}function rm(t,e,n,i){_t=t;var r=0;do{if(Mi&&(ji=null),Oa=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)}ct.H=U0,c=e(n,i)}while(Mi);return c}function _0(){var t=ct.H,e=t.useState()[0];return e=typeof e.then=="function"?Da(e):e,t=t.useState()[0],(It!==null?It.memoizedState:null)!==t&&(_t.flags|=1024),e}function Wo(){var t=Ju!==0;return Ju=0,t}function tc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function ec(t){if(Fu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Fu=!1}Wn=0,oe=It=_t=null,Mi=!1,Oa=Ju=0,ji=null}function De(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?_t.memoizedState=oe=t:oe=oe.next=t,oe}function ue(){if(It===null){var t=_t.alternate;t=t!==null?t.memoizedState:null}else t=It.next;var e=oe===null?_t.memoizedState:oe.next;if(e!==null)oe=e,It=t;else{if(t===null)throw _t.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?_t.memoizedState=oe=t:oe=oe.next=t}return oe}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Da(t){var e=Oa;return Oa+=1,ji===null&&(ji=[]),t=$h(ji,t,e),e=_t,(oe===null?e.memoizedState:oe.next)===null&&(e=e.alternate,ct.H=e===null||e.memoizedState===null?Vm:Gm),t}function Pu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Da(t);if(t.$$typeof===G)return;if(t.$$typeof===W)return xe(t)}throw Error(o(438,String(t)))}function nc(t){var e=null,n=_t.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=_t.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=$u(),_t.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 tl(t,e){return typeof e=="function"?e(t):e}function Wu(t){var e=ue();return lc(e,It,t)}function lc(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 m=r.next;r.next=c.next,c.next=m}e.baseQueue=r=c,i.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var x=m=null,C=null,D=e,L=!1;do{var Q=D.lane&-536870913;if(Q!==D.lane?(Ut&Q)===Q:(Wn&Q)===Q){var _=D.revertLane;if(_===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Q===Fl&&(L=!0);else if((Wn&_)===_){D=D.next,_===Fl&&(L=!0);continue}else Q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(x=C=Q,m=c):C=C.next=Q,_t.lanes|=_,zl|=_;Q=D.action,ti&&n(c,Q),c=D.hasEagerState?D.eagerState:n(c,Q)}else _={lane:Q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(x=C=_,m=c):C=C.next=_,_t.lanes|=Q,zl|=Q;D=D.next}while(D!==null&&D!==e);if(C===null?m=c:C.next=x,!$e(c,t.memoizedState)&&(ce=!0,L&&(n=Ni,n!==null)))throw n;t.memoizedState=c,t.baseState=m,t.baseQueue=C,i.lastRenderedState=c}return r===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function ic(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 m=r=r.next;do c=t(c,m.action),m=m.next;while(m!==r);$e(c,e.memoizedState)||(ce=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,i]}function om(t,e,n){var i=_t,r=ue(),c=Dt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var m=!$e((It||r).memoizedState,n);if(m&&(r.memoizedState=n,ce=!0),r=r.queue,rc(fm.bind(null,i,r,t),[t]),t=r.getSnapshot!==e||m||oe!==null&&(oe.memoizedState.tag&1)!==0,Ri(t?9:8,{destroy:void 0},sm.bind(null,i,r,n,e),null),t){if(i.flags|=2048,Kt===null)throw Error(o(349));c||(Wn&127)!==0||cm(i,e,n)}return n}function cm(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=_t.updateQueue,e===null?(e=$u(),_t.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function sm(t,e,n,i){e.value=n,e.getSnapshot=i,hm(e)&&mm(t)}function fm(t,e,n){return n(function(){hm(e)&&mm(t)})}function hm(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!$e(t,n)}catch{return!0}}function mm(t){var e=Gl(t,2);e!==null&&Ge(e,t,2)}function ac(t){var e=De();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:tl,lastRenderedState:t},e}function dm(t,e,n,i){return t.baseState=n,lc(t,It,typeof i=="function"?i:tl)}function N0(t,e,n,i,r){if(nr(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(m){c.listeners.push(m)}};ct.T!==null?n(!0):c.isTransition=!1,i(c),n=e.pending,n===null?(c.next=e.pending=c,pm(e,c)):(c.next=n.next,e.pending=n.next=c)}}function pm(t,e){var n=e.action,i=e.payload,r=t.state;if(e.isTransition){var c=ct.T,m={};m.types=c!==null?c.types:null,ct.T=m;try{var x=n(r,i),C=ct.S;C!==null&&C(m,x),gm(t,e,x)}catch(D){uc(t,e,D)}finally{c!==null&&m.types!==null&&(c.types=m.types),ct.T=c}}else try{c=n(r,i),gm(t,e,c)}catch(D){uc(t,e,D)}}function gm(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ym(t,e,i)},function(i){return uc(t,e,i)}):ym(t,e,n)}function ym(t,e,n){e.status="fulfilled",e.value=n,vm(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,pm(t,n)))}function uc(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,vm(e),e=e.next;while(e!==i)}t.action=null}function vm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function bm(t,e){return e}function xm(t,e){if(Dt){var n=Kt.formState;if(n!==null){t:{var i=_t;if(Dt){if($t){e:{for(var r=$t,c=mn;r.nodeType!==8;){if(!c){r=null;break e}if(r=pn(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){$t=pn(r.nextSibling),i=r.data==="F!";break t}}dl(i)}i=!1}i&&(e=n[0])}}return n=De(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bm,lastRenderedState:e},n.queue=i,n=Hm.bind(null,_t,i),i.dispatch=n,i=ac(!1),c=hc.bind(null,_t,!1,i.queue),i=De(),r={state:e,dispatch:null,action:t,pending:null},i.queue=r,n=N0.bind(null,_t,r,c,n),r.dispatch=n,i.memoizedState=t,[e,n,!1]}function Sm(t){var e=ue();return Em(e,It,t)}function Em(t,e,n){if(e=lc(t,e,bm)[0],t=Wu(tl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Da(e)}catch(m){throw m===Oi?Gu:m}else i=e;e=ue();var r=e.queue,c=r.dispatch;return n!==e.memoizedState&&(_t.flags|=2048,Ri(9,{destroy:void 0},O0.bind(null,r,n),null)),[i,c,t]}function O0(t,e){t.action=e}function Tm(t){var e=ue(),n=It;if(n!==null)return Em(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=_t.updateQueue,e===null&&(e=$u(),_t.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 Cm(){return ue().memoizedState}function tr(t,e,n,i){var r=De();_t.flags|=t,r.memoizedState=Ri(1|e,{destroy:void 0},n,i===void 0?null:i)}function er(t,e,n,i){var r=ue();i=i===void 0?null:i;var c=r.memoizedState.inst;It!==null&&i!==null&&$o(i,It.memoizedState.deps)?r.memoizedState=Ri(e,c,n,i):(_t.flags|=t,r.memoizedState=Ri(1|e,c,n,i))}function Am(t,e){tr(8390656,8,t,e)}function rc(t,e){er(2048,8,t,e)}function D0(t){_t.flags|=4;var e=_t.updateQueue;if(e===null)e=$u(),_t.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function zm(t){var e=ue().memoizedState;return D0({ref:e,nextImpl:t}),function(){if((Vt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function wm(t,e){return er(4,2,t,e)}function km(t,e){return er(4,4,t,e)}function _m(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 Nm(t,e,n){n=n!=null?n.concat([t]):null,er(4,4,_m.bind(null,e,t),n)}function oc(){}function Om(t,e){var n=ue();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&$o(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Dm(t,e){var n=ue();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&$o(e,i[1]))return i[0];if(i=t(),ti){cl(!0);try{t()}finally{cl(!1)}}return n.memoizedState=[i,e],i}function cc(t,e,n){return n===void 0||(Wn&1073741824)!==0&&(Ut&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Vd(),_t.lanes|=t,zl|=t,n)}function Mm(t,e,n,i){return $e(n,e)?n:xl.current!==null?(t=cc(t,n,i),$e(t,e)||(ce=!0),t):(Wn&106)===0||(Wn&1073741824)!==0&&(Ut&261930)===0?(ce=!0,t.memoizedState=n):(t=Vd(),_t.lanes|=t,zl|=t,e)}function jm(t,e,n,i,r){var c=vt.p;vt.p=c!==0&&8>c?c:8;var m=ct.T,x={};x.types=m!==null?m.types:null,ct.T=x,hc(t,!1,e,n);try{var C=r(),D=ct.S;if(D!==null&&D(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var L=w0(C,i);Ma(t,e,L,nn(t))}else Ma(t,e,i,nn(t))}catch(Q){Ma(t,e,{then:function(){},status:"rejected",reason:Q},nn())}finally{vt.p=c,m!==null&&x.types!==null&&(m.types=x.types),ct.T=m}}function M0(){}function sc(t,e,n,i){if(t.tag!==5)throw Error(o(476));var r=Rm(t).queue;jm(t,r,e,Le,n===null?M0:function(){return Um(t),n(i)})}function Rm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Le,baseState:Le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:Le},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Um(t){var e=Rm(t);e.next===null&&(e=t.alternate.memoizedState),Ma(t,e.next.queue,{},nn())}function fc(){return xe(ta)}function Lm(){return ue().memoizedState}function Bm(){return ue().memoizedState}function j0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=nn();t=vl(n);var i=bl(e,t,n);i!==null&&(Ge(i,e,n),wa(i,e,n)),e={cache:Ho()},t.payload=e;return}e=e.return}}function R0(t,e,n){var i=nn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nr(t)?qm(e,n):(n=No(t,e,n,i),n!==null&&(Ge(n,t,i),Ym(n,e,i)))}function Hm(t,e,n){var i=nn();Ma(t,e,n,i)}function Ma(t,e,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(nr(t))qm(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,x=c(m,n);if(r.hasEagerState=!0,r.eagerState=x,$e(x,m))return Mu(t,e,r,0),Kt===null&&Du(),!1}catch{}finally{}if(n=No(t,e,r,i),n!==null)return Ge(n,t,i),Ym(n,e,i),!0}return!1}function hc(t,e,n,i){if(i={lane:2,revertLane:ns(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},nr(t)){if(e)throw Error(o(479))}else e=No(t,n,i,2),e!==null&&Ge(e,t,2)}function nr(t){var e=t.alternate;return t===_t||e!==null&&e===_t}function qm(t,e){Mi=Fu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ym(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Vf(t,n)}}var lr={readContext:xe,use:Pu,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useLayoutEffect:le,useInsertionEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useSyncExternalStore:le,useId:le,useHostTransitionStatus:le,useFormState:le,useActionState:le,useOptimistic:le,useMemoCache:le,useCacheRefresh:le,useEffectEvent:le},Vm={readContext:xe,use:Pu,useCallback:function(t,e){return De().memoizedState=[t,e===void 0?null:e],t},useContext:xe,useEffect:Am,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,tr(4194308,4,_m.bind(null,e,t),n)},useLayoutEffect:function(t,e){return tr(4194308,4,t,e)},useInsertionEffect:function(t,e){tr(4,2,t,e)},useMemo:function(t,e){var n=De();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=De();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=R0.bind(null,_t,t),[i.memoizedState,t]},useRef:function(t){var e=De();return t={current:t},e.memoizedState=t},useState:function(t){t=ac(t);var e=t.queue,n=Hm.bind(null,_t,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:oc,useDeferredValue:function(t,e){var n=De();return cc(n,t,e)},useTransition:function(){var t=ac(!1);return t=jm.bind(null,_t,t.queue,!0,!1),De().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=_t,r=De();if(Dt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Kt===null)throw Error(o(349));(Ut&127)!==0||cm(i,e,n)}r.memoizedState=n;var c={value:n,getSnapshot:e};return r.queue=c,Am(fm.bind(null,i,c,t),[t]),i.flags|=2048,Ri(9,{destroy:void 0},sm.bind(null,i,c,n,e),null),n},useId:function(){var t=De(),e=Kt.identifierPrefix;if(Dt){var n=Nn,i=_n;n=(i&~(1<<32-Fe(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ju++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=k0++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fc,useFormState:xm,useActionState:xm,useOptimistic:function(t){var e=De();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=hc.bind(null,_t,!0,n),n.dispatch=e,[t,e]},useMemoCache:nc,useCacheRefresh:function(){return De().memoizedState=j0.bind(null,_t)},useEffectEvent:function(t){var e=De(),n={impl:t};return e.memoizedState=n,function(){if((Vt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Gm={readContext:xe,use:Pu,useCallback:Om,useContext:xe,useEffect:rc,useImperativeHandle:Nm,useInsertionEffect:wm,useLayoutEffect:km,useMemo:Dm,useReducer:Wu,useRef:Cm,useState:function(){return Wu(tl)},useDebugValue:oc,useDeferredValue:function(t,e){var n=ue();return Mm(n,It.memoizedState,t,e)},useTransition:function(){var t=Wu(tl)[0],e=ue().memoizedState;return[typeof t=="boolean"?t:Da(t),e]},useSyncExternalStore:om,useId:Lm,useHostTransitionStatus:fc,useFormState:Sm,useActionState:Sm,useOptimistic:function(t,e){var n=ue();return dm(n,It,t,e)},useMemoCache:nc,useCacheRefresh:Bm,useEffectEvent:zm},U0={readContext:xe,use:Pu,useCallback:Om,useContext:xe,useEffect:rc,useImperativeHandle:Nm,useInsertionEffect:wm,useLayoutEffect:km,useMemo:Dm,useReducer:ic,useRef:Cm,useState:function(){return ic(tl)},useDebugValue:oc,useDeferredValue:function(t,e){var n=ue();return It===null?cc(n,t,e):Mm(n,It.memoizedState,t,e)},useTransition:function(){var t=ic(tl)[0],e=ue().memoizedState;return[typeof t=="boolean"?t:Da(t),e]},useSyncExternalStore:om,useId:Lm,useHostTransitionStatus:fc,useFormState:Tm,useActionState:Tm,useOptimistic:function(t,e){var n=ue();return It!==null?dm(n,It,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:nc,useCacheRefresh:Bm,useEffectEvent:zm};function mc(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:J({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var dc={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=nn(),r=vl(i);r.payload=e,n!=null&&(r.callback=n),e=bl(t,r,i),e!==null&&(Ge(e,t,i),wa(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=nn(),r=vl(i);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=bl(t,r,i),e!==null&&(Ge(e,t,i),wa(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=nn(),i=vl(n);i.tag=2,e!=null&&(i.callback=e),e=bl(t,i,n),e!==null&&(Ge(e,t,n),wa(e,t,n))}};function Xm(t,e,n,i,r,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,c,m):e.prototype&&e.prototype.isPureReactComponent?!ba(n,i)||!ba(r,c):!0}function Qm(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&&dc.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=J({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Zm(t){Ou(t)}function Im(t){console.error(t)}function Km(t){Ou(t)}function ir(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Fm(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 pc(t,e,n){return n=vl(n),n.tag=3,n.payload={element:null},n.callback=function(){ir(t,e)},n}function Jm(t){return t=vl(t),t.tag=3,t}function $m(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(){Fm(e,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Fm(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 L0(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=Se.current,n!==null){switch(n.tag){case 31:case 13:case 19:return we===null?Ar():n.alternate===null&&ie===0&&(ie=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Xu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Wc(t,i,r)),!1;case 22:return n.flags|=65536,i===Xu?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)),Wc(t,i,r)),!1}throw Error(o(435,n.tag))}return Wc(t,i,r),Ar(),!1}if(Dt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,i!==Ro&&(t=Error(o(422),{cause:i}),Ea(sn(t,n)))):(i!==Ro&&(e=Error(o(423),{cause:i}),Ea(sn(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,i=sn(i,n),r=pc(t.stateNode,i,r),Qo(t,r),ie!==4&&(ie=2)),!1;var c=Error(o(520),{cause:i});if(c=sn(c,n),Ya===null?Ya=[c]:Ya.push(c),ie!==4&&(ie=2),e===null)return!0;i=sn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=pc(n.stateNode,i,t),Qo(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=Jm(r),$m(r,t,n,i),Qo(n,r),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var gc=Error(o(461)),ce=!1;function he(t,e,n,i){e.child=t===null?em(e,null,n,i):Wl(e,t.child,n,i)}function Pm(t,e,n,i,r){n=n.render;var c=e.ref;if("ref"in i){var m={};for(var x in i)x!=="ref"&&(m[x]=i[x])}else m=i;return Kl(e),i=Po(t,e,n,m,c,r),x=Wo(),t!==null&&!ce?(tc(t,e,r),el(t,e,r)):(Dt&&x&&Lu(e),e.flags|=1,he(t,e,i,r),e.child)}function Wm(t,e,n,i,r){if(t===null){var c=n.type;return typeof c=="function"&&!Oo(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,td(t,e,c,i,r)):(t=Ru(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Cc(t,r)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:ba,n(m,i)&&t.ref===e.ref)return el(t,e,r)}return e.flags|=1,t=Fn(c,i),t.ref=e.ref,t.return=e,e.child=t}function td(t,e,n,i,r){if(t!==null){var c=t.memoizedProps;if(ba(c,i)&&t.ref===e.ref)if(ce=!1,e.pendingProps=i=c,Cc(t,r))(t.flags&131072)!==0&&(ce=!0);else return e.lanes=t.lanes,el(t,e,r)}return yc(t,e,n,i,r)}function ed(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 nd(t,e,c,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Vu(e,c!==null?c.cachePool:null),c!==null?im(e,c):Io(),am(e);else return i=e.lanes=536870912,nd(t,e,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(Vu(e,c.cachePool),im(e,c),El(),e.memoizedState=null):(t!==null&&Vu(e,null),Io(),El());return he(t,e,r,n),e.child}function ja(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function nd(t,e,n,i,r){var c=Yo();return c=c===null?null:{parent:re._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Vu(e,null),Io(),am(e),t!==null&&Il(t,e,i,!0),e.childLanes=r,null}function ar(t,e){return e=ur({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ld(t,e,n){return Wl(e,t.child,null,n),t=ar(e,e.pendingProps),t.flags|=2,Pe(e),e.memoizedState=null,t}function B0(t,e,n){var i=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Dt){if(i.mode==="hidden")return t=ar(e,i),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},ja(null,t);if(Fo(e),(t=$t)?(t=_p(t,mn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:hl!==null?{id:_n,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=qh(t),n.return=e,e.child=n,pe=e,$t=null)):t=null,t===null)throw dl(e);return e.lanes=536870912,null}return ar(e,i)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(Fo(e),r)if(e.flags&256)e.flags&=-257,e=ld(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&&(m=Gf(i,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,Gl(t,m),Ge(i,t,m),gc;Ar()}e=ld(t,e,n)}else t=c.treeContext,$t=pn(m.nextSibling),pe=e,Dt=!0,ml=null,mn=!1,t!==null&&Gh(e,t),e=ar(e,i),e.flags|=134221824;return e}return t=Fn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ui(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 yc(t,e,n,i,r){return Kl(e),n=Po(t,e,n,i,void 0,r),i=Wo(),t!==null&&!ce?(tc(t,e,r),el(t,e,r)):(Dt&&i&&Lu(e),e.flags|=1,he(t,e,n,r),e.child)}function id(t,e,n,i,r,c){return Kl(e),e.updateQueue=null,n=rm(e,i,n,r),um(t),i=Wo(),t!==null&&!ce?(tc(t,e,c),el(t,e,c)):(Dt&&i&&Lu(e),e.flags|=1,he(t,e,n,c),e.child)}function ad(t,e,n,i,r){if(Kl(e),e.stateNode===null){var c=zi,m=n.contextType;typeof m=="object"&&m!==null&&(c=xe(m)),c=new n(i,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=dc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=i,c.state=e.memoizedState,c.refs={},Go(e),m=n.contextType,c.context=typeof m=="object"&&m!==null?xe(m):zi,c.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(mc(e,n,m,i),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&dc.enqueueReplaceState(c,c.state,null),_a(e,i,c,r),ka(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,C=ei(n,x);c.props=C;var D=c.context,L=n.contextType;m=zi,typeof L=="object"&&L!==null&&(m=xe(L));var Q=n.getDerivedStateFromProps;L=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||D!==m)&&Qm(e,c,i,m),yl=!1;var _=e.memoizedState;c.state=_,_a(e,i,c,r),ka(),D=e.memoizedState,x||_!==D||yl?(typeof Q=="function"&&(mc(e,n,Q,i),D=e.memoizedState),(C=yl||Xm(e,n,C,i,_,D,m))?(L||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=m,i=C):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{c=e.stateNode,Xo(t,e),m=e.memoizedProps,L=ei(n,m),c.props=L,Q=e.pendingProps,_=c.context,D=n.contextType,C=zi,typeof D=="object"&&D!==null&&(C=xe(D)),x=n.getDerivedStateFromProps,(D=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==Q||_!==C)&&Qm(e,c,i,C),yl=!1,_=e.memoizedState,c.state=_,_a(e,i,c,r),ka();var U=e.memoizedState;m!==Q||_!==U||yl||t!==null&&t.dependencies!==null&&qu(t.dependencies)?(typeof x=="function"&&(mc(e,n,x,i),U=e.memoizedState),(L=yl||Xm(e,n,L,i,_,U,C)||t!==null&&t.dependencies!==null&&qu(t.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,U,C),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,U,C)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=U),c.props=i,c.state=U,c.context=C,i=L):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),i=!1)}return c=i,Ui(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=el(t,e,r),t}function ud(t,e,n,i){return Ql(),e.flags|=256,he(t,e,n,i),e.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(t){return{baseLanes:t,cachePool:Fh()}}function xc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=en),t}function rd(t,e,n){var i=e.pendingProps,r=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:(Ee.current&2)!==0),m&&(r=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(Dt){if(r?Sl(e):El(),(t=$t)?(t=_p(t,mn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:hl!==null?{id:_n,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=qh(t),n.return=e,e.child=n,pe=e,$t=null)):t=null,t===null)throw dl(e);return bs(t)?e.lanes=32:e.lanes=536870912,null}return c=i.children,i=i.fallback,r?(El(),r=e.mode,c=ur({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=bc(n),i.childLanes=xc(t,m,n),e.memoizedState=vc,ja(null,i)):(Sl(e),Sc(e,c))}var x=t.memoizedState;if(x!==null){var C=x.dehydrated;if(C!==null)return H0(t,e,c,m,i,C,x,n)}return r?(El(),r=i.fallback,c=e.mode,x=t.child,C=x.sibling,i=Fn(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&1206910976,C!==null?r=Fn(C,r):(r=Xl(r,c,n,null),r.flags|=2),r.return=e,i.return=e,i.sibling=r,e.child=i,ja(null,i),i=e.child,r=t.child.memoizedState,r===null?r=bc(n):(c=r.cachePool,c!==null?(x=re._currentValue,c=c.parent!==x?{parent:x,pool:x}:c):c=Fh(),r={baseLanes:r.baseLanes|n,cachePool:c}),i.memoizedState=r,i.childLanes=xc(t,m,n),e.memoizedState=vc,ja(t.child,i)):(Sl(e),n=t.child,t=n.sibling,n=Fn(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=n,e.memoizedState=null,n)}function Sc(t,e){return e=ur({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ur(t,e){return t=He(22,t,null,e),t.lanes=0,t}function rr(t,e,n){return Wl(e,t.child,null,n),t=Sc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function H0(t,e,n,i,r,c,m,x){if(n)return e.flags&256?(Sl(e),e.flags&=-257,rr(t,e,x)):e.memoizedState!==null?(El(),e.child=t.child,e.flags|=128,null):(El(),c=r.fallback,m=e.mode,r=ur({mode:"visible",children:r.children},m),c=Xl(c,m,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=bc(x),r.childLanes=xc(t,i,x),e.memoizedState=vc,ja(null,r));if(Sl(e),bs(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var C=i.dgst;return i=C,i!==""&&(r=Error(o(419)),r.stack="",r.digest=i,Ea({value:r,source:null,stack:null})),rr(t,e,x)}if(ce||Il(t,e,x,!1),i=(x&t.childLanes)!==0,ce||i){if(xl.current!==null)return rr(t,e,x);if(i=Kt,i!==null&&(r=Gf(i,x),r!==0&&r!==m.retryLane))throw m.retryLane=r,Gl(t,r),Ge(i,t,r),gc;return vs(c)||Ar(),rr(t,e,x)}return vs(c)?(e.flags|=192,e.child=t.child,null):(t=m.treeContext,$t=pn(c.nextSibling),pe=e,Dt=!0,ml=null,mn=!1,t!==null&&Gh(e,t),e=Sc(e,r.children),e.flags|=134221824,e)}function od(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Hu(t.return,e,n)}function cd(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&Ku(n)===null&&(e=t),t=t.sibling}return e}function or(t,e,n,i,r,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=n,m.tailMode=r,m.treeForkCount=c)}function Ec(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 Tc(t,e,n){var i=e.pendingProps,r=i.revealOrder,c=i.tail;i=i.children;var m=Ee.current;if(e.flags&128)return Na(e,m),null;var x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,Na(e,m),r==="backwards"&&t!==null?(Ec(t),he(t,e,i,n),Ec(t)):he(t,e,i,n),i=Dt?Sa:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&od(t,n,e);else if(t.tag===19)od(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=cd(e.child),n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null,Ec(e)),or(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&&Ku(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}or(e,!0,n,null,c,i);break;case"together":or(e,!1,null,null,void 0,i);break;case"independent":e.memoizedState=null;break;default:n=cd(e.child),n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),or(e,!1,r,n,c,i)}return e.child}function sd(t,e,n){var i=e.pendingProps;return pl(e,e.type,i.value),he(t,e,i.children,n),e.child}function el(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=Fn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Fn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Cc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&qu(t)))}function q0(t,e,n){switch(e.tag){case 3:ae(e,e.stateNode.containerInfo),pl(e,re,t.memoizedState.cache),Ql();break;case 27:case 5:wn(e);break;case 4:ae(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,Fo(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?rd(t,e,n):(Sl(e),t=el(t,e,n),t!==null?t.sibling:null)}Sl(e);break;case 19:if(e.flags&128)return Tc(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 Tc(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Na(e,Ee.current),i)break;return null;case 22:return e.lanes=0,ed(t,e,n,e.pendingProps);case 24:pl(e,re,t.memoizedState.cache)}return el(t,e,n)}function fd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ce=!0;else{if(!Cc(t,n)&&(e.flags&128)===0)return ce=!1,q0(t,e,n);ce=(t.flags&131072)!==0}else ce=!1,Dt&&(e.flags&1048576)!==0&&Vh(e,Sa,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")Oo(t)?(i=ei(t,i),e.tag=1,e=ad(null,e,t,i,n)):(e.tag=0,e=yc(null,e,t,i,n));else{if(t!=null){var r=t.$$typeof;if(r===$){e.tag=11,e=Pm(null,e,t,i,n);break t}else if(r===At){e.tag=14,e=Wm(null,e,t,i,n);break t}else if(r===W){e.tag=10,e.type=t,e=sd(null,e,n);break t}}throw e=Et(t)||t,Error(o(306,e,""))}}return e;case 0:return yc(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,r=ei(i,e.pendingProps),ad(t,e,i,r,n);case 3:t:{if(ae(e,e.stateNode.containerInfo),t===null)throw Error(o(387));i=e.pendingProps;var c=e.memoizedState;r=c.element,Xo(t,e),_a(e,i,null,n);var m=e.memoizedState;if(i=m.cache,pl(e,re,i),i!==c.cache&&Bo(e,[re],n,!0),ka(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=ud(t,e,i,n);break t}else if(i!==r){r=sn(Error(o(424)),e),Ea(r),e=ud(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=pn(t.firstChild),pe=e,Dt=!0,ml=null,mn=!0,n=em(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ql(),i===r){e=el(t,e,n);break t}he(t,e,i,n)}e=e.child}return e;case 26:return Ui(t,e),t===null?(n=Up(e.type,null,e.pendingProps,null))?e.memoizedState=n:Dt||(e.stateNode=pp(e.type,e.pendingProps,Ze.current,e)):e.memoizedState=Up(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return wn(e),t===null&&Dt&&(i=e.stateNode=Dp(e.type,e.pendingProps,Ze.current),pe=e,mn=!0,r=$t,Nl(e.type)?(xs=r,$t=pn(i.firstChild)):$t=r),he(t,e,e.pendingProps.children,n),Ui(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Dt&&((r=i=$t)&&(i=jv(i,e.type,e.pendingProps,mn),i!==null?(e.stateNode=i,pe=e,$t=pn(i.firstChild),mn=!1,r=!0):r=!1),r||dl(e)),wn(e),r=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,i=c.children,fs(r,c)?i=null:m!==null&&fs(r,m)&&(e.flags|=32),e.memoizedState!==null&&(r=Po(t,e,_0,null,null,n),ta._currentValue=r),Ui(t,e),he(t,e,i,n),e.child;case 6:return t===null&&Dt&&((t=n=$t)&&(n=Rv(n,e.pendingProps,mn),n!==null?(e.stateNode=n,pe=e,$t=null,t=!0):t=!1),t||dl(e)),null;case 13:return rd(t,e,n);case 4:return ae(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 Pm(t,e,e.type,e.pendingProps,n);case 7:return i=e.pendingProps,Ui(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 sd(t,e,n);case 9:return r=e.type._context,i=e.pendingProps.children,Kl(e),r=xe(r),i=i(r),e.flags|=1,he(t,e,i,n),e.child;case 14:return Wm(t,e,e.type,e.pendingProps,n);case 15:return td(t,e,e.type,e.pendingProps,n);case 19:return Tc(t,e,n);case 31:return B0(t,e,n);case 22:return ed(t,e,n,e.pendingProps);case 24:return Kl(e),i=xe(re),t===null?(r=Yo(),r===null&&(r=Kt,c=Ho(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=n),r=c),e.memoizedState={parent:i,cache:r},Go(e),pl(e,re,r)):((t.lanes&n)!==0&&(Xo(t,e),_a(e,null,null,n),ka()),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&&Bo(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:Dt&&Lu(e),t!==null&&t.memoizedProps.name!==i.name?e.flags|=4194816:Ui(t,e),he(t,e,i.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function nl(t){t.flags|=4}function Ac(t,e,n,i,r){var c;if((c=(t.mode&32)!==0)&&(c=n===null?qp(e,i):qp(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(Zd())t.flags|=8192;else throw Pl=Xu,Vo}else t.flags&=-16777217}function hd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Yp(e))if(Zd())t.flags|=8192;else throw Pl=Xu,Vo}function cr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?qf():536870912,t.lanes|=e,Yi|=e)}function Ra(t,e){if(!Dt)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 Y0(t,e,n){var i=e.pendingProps;switch(jo(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),Pn(re),ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(_i(e)?nl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Uo())),Pt(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(nl(e),c!==null?(Pt(e),hd(e,c)):(Pt(e),Ac(e,r,null,i,n))):c?c!==t.memoizedState?(nl(e),Pt(e),hd(e,c)):(Pt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&nl(e),Pt(e),Ac(e,r,t,i,n)),null;case 27:if(V(e),n=Ze.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&nl(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return Pt(e),e.subtreeFlags&=-33554433,null}t=Ot.current,_i(e)?Xh(e):(t=Dp(r,i,n),e.stateNode=t,nl(e))}return Pt(e),e.subtreeFlags&=-33554433,null;case 5:if(V(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&nl(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return Pt(e),e.subtreeFlags&=-33554433,null}if(c=Ot.current,_i(e))Xh(e);else{var m=Za(Ze.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?m.createElement(r,{is:i.is}):m.createElement(r)}}c[be]=e,c[Be]=i;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=c;t:switch(Ce(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&&nl(e)}}return Pt(e),e.subtreeFlags&=-33554433,Ac(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&nl(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(o(166));if(t=Ze.current,_i(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,r=pe,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}t[be]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||fp(t.nodeValue,n)),t||dl(e,!0)}else t=Za(t).createTextNode(i),t[be]=e,e.stateNode=t}return Pt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=_i(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[be]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Pt(e),t=!1}else n=Uo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Pe(e),e):(Pe(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=_i(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[be]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Pt(e),r=!1}else r=Uo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Pe(e),e):(Pe(e),null)}return Pe(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),cr(e,e.updateQueue),Pt(e),null);case 4:return ne(),t===null&&us(e.stateNode.containerInfo),e.flags|=67108864,Pt(e),null;case 10:return Pn(e.type),Pt(e),null;case 19:if(Jo(e),i=e.memoizedState,i===null)return Pt(e),null;if(r=(e.flags&128)!==0,c=i.rendering,c===null)if(r)Ra(i,!1);else{if(ie!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Ku(t),c!==null){for(e.flags|=128,Ra(i,!1),t=c.updateQueue,e.updateQueue=t,cr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Hh(n,t),n=n.sibling;return Na(e,Ee.current&1|2),Dt&&Jn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ie()>Sr&&(e.flags|=128,r=!0,Ra(i,!1),e.lanes=4194304)}else{if(!r)if(t=Ku(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,cr(e,t),Ra(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!c.alternate&&!Dt)return Pt(e),null}else 2*Ie()-i.renderingStartTime>Sr&&n!==536870912&&(e.flags|=128,r=!0,Ra(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=Ie(),t.sibling=null,c=Ee.current,c=r?c&1|2:c&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||Dt?Na(e,c):(n=c,Y(Se,e),Y(Ee,n),we===null&&(we=e)),Dt&&Jn(e,i.treeForkCount),t}return Pt(e),null;case 22:case 23:return Pe(e),Ko(),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&&cr(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&&te(Jl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Pn(re),Pt(e),null;case 25:return null;case 30:return e.flags|=33554432,Pt(e),null}throw Error(o(156,e.tag))}function V0(t,e){switch(jo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pn(re),ne(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return V(e),null;case 31:if(e.memoizedState!==null){if(Pe(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(Pe(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 Jo(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 ne(),null;case 10:return Pn(e.type),null;case 22:case 23:return Pe(e),Ko(),t!==null&&te(Jl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Pn(re),null;case 25:return null;default:return null}}function md(t,e){switch(jo(e),e.tag){case 3:Pn(re),ne();break;case 26:case 27:case 5:V(e);break;case 4:ne();break;case 31:e.memoizedState!==null&&Pe(e);break;case 13:Pe(e);break;case 19:Jo(e);break;case 10:Pn(e.type);break;case 22:case 23:Pe(e),Ko(),t!==null&&te(Jl);break;case 24:Pn(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,m=n.inst;i=c(),m.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 m=i.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,r=e;var C=n,D=x;try{D()}catch(L){Qt(r,C,L)}}}i=i.next}while(i!==c)}}catch(L){Qt(e,e.return,L)}}function dd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{lm(e,n)}catch(i){Qt(t,t.return,i)}}}function pd(t,e,n){n.props=ei(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Qt(t,e,i)}}function On(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=In(t.memoizedProps,r);(r.ref===null||r.ref.name!==c)&&(r.ref=Ep(c)),i=r.ref;break;case 7:if(t.stateNode===null){var m=new ln(t);p(t.child,!1,Dv,m,void 0,void 0),t.stateNode=m}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 Te(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 sr(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++)kp(t.stateNode,e[n])}function gd(t){for(var e=t.return;e!==null&&(wc(e)&&kp(t.stateNode,e.stateNode),!zc(e));)e=e.return}function La(t){for(var e=t.return;e!==null&&(wc(e)&&Mv(t.stateNode,e.stateNode),!zc(e));)e=e.return}function zc(t){return t.tag===5||t.tag===3||t.tag===27}function wc(t){return t&&t.tag===7&&t.stateNode!==null}function kc(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 _c(t,e,n){try{var i=t.stateNode;dv(i,t.type,n,e),i[Be]=e}catch(r){Qt(t,t.return,r)}}function yd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Nl(t.type)||t.tag===4}function Nc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||yd(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&&Nl(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 Oc(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=kn)),sr(t,i),Ht=!0;else if(r!==4&&(r===27&&(sr(t,i),i=null,Nl(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(Oc(t,e,n,i),t=t.sibling;t!==null;)Oc(t,e,n,i),t=t.sibling}function fr(t,e,n,i){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?n.insertBefore(r,e):n.appendChild(r),sr(t,i),Ht=!0;else if(r!==4&&(r===27&&(sr(t,i),i=null,Nl(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(fr(t,e,n,i),t=t.sibling;t!==null;)fr(t,e,n,i),t=t.sibling}function vd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);Ce(e,i,n),e[be]=t,e[Be]=n}catch(c){Qt(t,t.return,c)}}var hr=!1,We=null;function bd(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(hr=!0)}var Dn=null;function xd(){var t=Dn;return Dn=null,t}var qe=0;function Li(t,e,n,i,r){return qe=0,Sd(t.child,e,n,i,r)}function Sd(t,e,n,i,r){for(var c=!1;t!==null;){if(t.tag===5){var m=t.stateNode;if(i!==null){var x=ds(m);i.push(x),x.view&&(c=!0)}else c||ds(m).view&&(c=!0);hr=!0,xp(m,qe===0?e:e+"_"+qe,n),qe++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&r||Sd(t.child,e,n,i,r)&&(c=!0));t=t.sibling}return c}function Mn(t,e){for(;t!==null;)t.tag===5?Sp(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Mn(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=Kn(e.default,e.share),e!=="none"&&(Li(t,n,e,null,!1)||Mn(t.child,!1))}t=t.sibling}}function Dc(t,e){if(t.tag===30){var n=t.stateNode,i=t.memoizedProps,r=In(i,n),c=Kn(i.default,n.paired?i.share:i.enter);c!=="none"?Li(t,r,c,null,!1)?(mr(t),n.paired||e||Qi(t,i.onEnter)):Mn(t.child,!1):mr(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Dc(t,e),t=t.sibling;else mr(t)}function Mc(t){if(We!==null&&We.size!==0){var e=We;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=Kn(n.default,n.share);if(c!=="none"&&(Li(t,i,c,null,!1)?(c=t.stateNode,r.paired=c,c.paired=r,Qi(t,n.onShare)):Mn(t.child,!1)),e.delete(i),e.size===0)break}}}Mc(t)}t=t.sibling}}}function jc(t){if(t.tag===30){var e=t.memoizedProps,n=In(e,t.stateNode),i=We!==null?We.get(n):void 0,r=Kn(e.default,i!==void 0?e.share:e.exit);r!=="none"&&(Li(t,n,r,null,!1)?i!==void 0?(r=t.stateNode,i.paired=r,r.paired=i,We.delete(n),Qi(t,e.onShare)):Qi(t,e.onExit):Mn(t.child,!1)),We!==null&&Mc(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)jc(t),t=t.sibling;else We!==null&&Mc(t)}function Ed(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=In(e,t.stateNode);e=Kn(e.default,e.update),t.flags&=-5,e!=="none"&&Li(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&Ed(t);t=t.sibling}}function Rc(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,Mn(t.child,!1))}Rc(t)}t=t.sibling}}function dr(t){if(t.tag===30)t.stateNode.paired=null,Mn(t.child,!1),Rc(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)dr(t),t=t.sibling;else Rc(t)}function Td(t){for(t=t.child;t!==null;)t.tag===30?Mn(t.child,!1):(t.subtreeFlags&33554432)!==0&&Td(t),t=t.sibling}function Uc(t,e,n,i,r,c,m){for(var x=!1;e!==null;){if(e.tag===5){var C=e.stateNode;if(c!==null&&qe<c.length){var D=c[qe],L=ds(C);(D.view||L.view)&&(x=!0);var Q;if(Q=(t.flags&4)===0)if(L.clip)Q=!0;else{Q=D.rect;var _=L.rect;Q=Q.y!==_.y||Q.x!==_.x||Q.height!==_.height||Q.width!==_.width}Q&&(t.flags|=4),L.abs?L=!D.abs:(D=D.rect,L=L.rect,L=D.height!==L.height||D.width!==L.width),L&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&xp(C,qe===0?n:n+"_"+qe,r),x&&(t.flags&4)!==0||(Dn===null&&(Dn=[]),Dn.push(C,qe===0?i:i+"_"+qe,e.memoizedProps)),qe++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&m?t.flags|=e.flags&32:Uc(t,e.child,n,i,r,c,m)&&(x=!0));e=e.sibling}return x}function Cd(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,i=t.stateNode,r=In(n,i),c=Kn(n.default,n.update),m;m=t.memoizedState,t.memoizedState=null,i=t;var x=t.child;qe=0,r=Uc(i,x,r,r,c,m,!1),(t.flags&4)!==0&&r&&Qi(t,n.onUpdate)}else(t.subtreeFlags&33554432)!==0&&Cd(t);t=t.sibling}}var ge=!1,Gt=!1,jn=!1,Lc=!1,Ad=typeof WeakSet=="function"?WeakSet:Set,ye=null,Rn=!1,Ba=!1,pr=!1,Bc=!1;function G0(t,e,n){if(t=t.containerInfo,cs=ea,t=_h(t),Co(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,m=r.focusNode;r=r.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break t}var x=0,C=-1,D=-1,L=0,Q=0,_=t,U=null;e:for(;;){for(var it;_!==i||c!==0&&_.nodeType!==3||(C=x+c),_!==m||r!==0&&_.nodeType!==3||(D=x+r),_.nodeType===3&&(x+=_.nodeValue.length),(it=_.firstChild)!==null;)U=_,_=it;for(;;){if(_===t)break e;if(U===i&&++L===c&&(C=x),U===m&&++Q===r&&(D=x),(it=_.nextSibling)!==null)break;_=U,U=_.parentNode}_=it}i=C===-1||D===-1?null:{start:C,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(ss={focusedElem:t,selectionRange:i},ea=!1,n=(n&335544064)===n,ye=e,e=n?9270:1024;ye!==null;){if(t=ye,n&&(i=t.deletions,i!==null))for(c=0;c<i.length;c++)n&&jc(i[c]);if(t.alternate===null&&(t.flags&2)!==0)n&&bd(t),gr(n);else{if(t.tag===22){if(i=t.alternate,t.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&jc(i),gr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&bd(t),gr(n);continue}}i=t.child,(t.subtreeFlags&e)!==0&&i!==null?(i.return=t,ye=i):(n&&Ed(t),gr(n))}}We=null}function gr(t){for(;ye!==null;){var e=ye,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 m=ei(e.type,r);n=c.getSnapshotBeforeUpdate(m,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)ys(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":ys(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=In(i.memoizedProps,i.stateNode),r=e.memoizedProps,r=Kn(r.default,r.update),r!=="none"&&Li(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,ye=i;break}ye=e.return}}function zd(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(t,n),i&4&&Ua(5,n);break;case 1:if(Un(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(m){Qt(n,n.return,m)}else{var r=ei(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Qt(n,n.return,m)}}i&64&&dd(n),i&512&&On(n,n.return);break;case 3:if(Un(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{lm(t,e)}catch(m){Qt(n,n.return,m)}}break;case 27:e===null&&i&4&&vd(n);case 26:case 5:Un(t,n),e===null&&i&4&&kc(n),i&512&&On(n,n.return);break;case 12:Un(t,n);break;case 31:Un(t,n),i&4&&Nd(t,n);break;case 13:Un(t,n),i&4&&Od(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=ev.bind(null,n),Uv(t,n))));break;case 22:if(i=n.memoizedState!==null||ge,!i){var c=e!==null&&e.memoizedState!==null||Gt;e=ge,r=Gt,ge=i,(Gt=c)&&!r?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),En(t,n,i)):Un(t,n),ge=e,Gt=r}break;case 30:Un(t,n),i&512&&On(n,n.return);break;case 7:i&512&&On(n,n.return);default:Un(t,n)}}function Hc(t,e){for(t=t.child;t!==null;)wd(t,e),t=t.sibling}function wd(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,m=c!=null&&c.hasOwnProperty("display")?c.display:null;r.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(C){Qt(t,t.return,C)}qc(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,Ht=!0}catch(C){Qt(t,t.return,C)}break;case 18:try{var x=t.stateNode;e?bp(x,!0):bp(t.stateNode,!1)}catch(C){Qt(t,t.return,C)}break;case 22:case 23:t.memoizedState===null&&Hc(t,e);break;default:Hc(t,e)}}function qc(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,i=e;switch(n.tag){case 4:wd(n,i);break t;case 22:n.memoizedState===null&&qc(n,i);break t;default:qc(n,i)}}t=t.sibling}}function kd(t){var e=t.alternate;e!==null&&(t.alternate=null,kd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Su(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,Ye=!1;function xn(t,e,n){for(n=n.child;n!==null;)_d(t,e,n),n=n.sibling}function _d(t,e,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(ra,n)}catch{}switch(n.tag){case 26:Gt||Te(n,e),xn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Gt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Gt||Te(n,e),La(n);var i=Wt,r=Ye;Nl(n.type)&&(Wt=n.stateNode,Ye=!1),xn(t,e,n),Mp(n.stateNode,n.type,n.memoizedProps),Wt=i,Ye=r;break;case 5:Gt||Te(n,e),La(n);case 6:if(n.tag===6&&La(n),i=Wt,r=Ye,Wt=null,xn(t,e,n),Wt=i,Ye=r,Wt!==null)if(Ye)try{(Wt.nodeType===9?Wt.body:Wt.nodeName==="HTML"?Wt.ownerDocument.body:Wt).removeChild(n.stateNode),Ht=!0}catch(c){Qt(n,e,c)}else try{Wt.removeChild(n.stateNode),Ht=!0}catch(c){Qt(n,e,c)}break;case 18:Wt!==null&&(Ye?(t=Wt,vp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),na(t)):vp(Wt,n.stateNode));break;case 4:i=Wt,r=Ye,Wt=n.stateNode.containerInfo,Ye=!0,xn(t,e,n),Wt=i,Ye=r;break;case 0:case 11:case 14:case 15:Tl(2,n,e),Gt||Tl(4,n,e),xn(t,e,n);break;case 1:Gt||(Te(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&pd(n,e,i)),xn(t,e,n);break;case 21:xn(t,e,n);break;case 22:Gt=(i=Gt)||n.memoizedState!==null,xn(t,e,n),Gt=i;break;case 30:Te(n,e),xn(t,e,n);break;case 7:Gt||Te(n,e),xn(t,e,n);break;default:xn(t,e,n)}}function Nd(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 Od(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 X0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ad),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ad),e;default:throw Error(o(435,t.tag))}}function yr(t,e){var n=X0(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var r=nv.bind(null,t,i);i.then(r,r)}})}function Me(t,e,n){var i=e.deletions;if(i!==null)for(var r=0;r<i.length;r++){var c=i[r],m=t,x=e,C=x;t:for(;C!==null;){switch(C.tag){case 27:if(Nl(C.type)){Wt=C.stateNode,Ye=!1;break t}break;case 5:Wt=C.stateNode,Ye=!1;break t;case 3:case 4:Wt=C.stateNode.containerInfo,Ye=!0;break t}C=C.return}if(Wt===null)throw Error(o(160));_d(m,x,c),Wt=null,Ye=!1,m=c.alternate,m!==null&&(m.return=null),c.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Dd(e,t,n),e=e.sibling}var Sn=null;function Dd(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 m=i[c];m.ref.impl=m.nextImpl}Me(e,t,n),je(t),r&4&&(Tl(3,t,t.return),Ua(3,t),Tl(5,t,t.return));break;case 1:Me(e,t,n),je(t),r&512&&(Gt||i===null||Te(i,i.return)),r&64&&ge&&(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=Sn,Me(e,t,n),je(t),r&512&&(Gt||i===null||Te(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(ge)t.stateNode=pp(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[sa]||i[be]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=r.createElement(e),r.head.insertBefore(i,r.querySelector("head > title"))),Ce(i,e,n),i[be]=t,de(i),e=i;break t;case"link":if(c=Hp("link","href",r).get(e+(n.href||""))){for(m=0;m<c.length;m++)if(i=c[m],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(m,1);break e}}i=r.createElement(e),Ce(i,e,n),r.head.appendChild(i);break;case"meta":if(c=Hp("meta","content",r).get(e+(n.content||""))){for(m=0;m<c.length;m++)if(i=c[m],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(m,1);break e}}i=r.createElement(e),Ce(i,e,n),r.head.appendChild(i);break;default:throw Error(o(468,e))}i[be]=t,de(i),e=i}t.stateNode=e}else ge||Cs(c,t.type,t.stateNode);else t.stateNode=Bp(c,n,t.memoizedProps);else r!==n?(r===null?(e=i.stateNode,e===null||Gt||e.parentNode.removeChild(e)):r.count--,n===null?ge||Cs(c,t.type,t.stateNode):Bp(c,n,t.memoizedProps)):n===null&&t.stateNode!==null&&_c(t,t.memoizedProps,i.memoizedProps);break;case 27:Me(e,t,n),je(t),r&512&&(Gt||i===null||Te(i,i.return)),i!==null&&r&4&&_c(t,t.memoizedProps,i.memoizedProps);break;case 5:if(c=jn,jn=!1,Me(e,t,n),jn=c,je(t),r&512&&(Gt||i===null||Te(i,i.return)),t.flags&32){e=t.stateNode;try{bi(e,""),Ht=!0}catch(L){Qt(t,t.return,L)}}r&4&&t.stateNode!=null&&(e=t.memoizedProps,_c(t,e,i!==null?i.memoizedProps:e)),r&1024&&(Lc=!0);break;case 6:if(Me(e,t,n),je(t),r&4){if(t.stateNode===null)throw Error(o(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,Ht=!0}catch(L){Qt(t,t.return,L)}}break;case 3:if(Ht=!1,Dr=null,c=Sn,Sn=Ia(e.containerInfo),Me(e,t,n),Sn=c,je(t),r&4&&i!==null&&i.memoizedState.isDehydrated)try{na(e.containerInfo)}catch(L){Qt(t,t.return,L)}Lc&&(Lc=!1,Md(t)),Ht=!1;break;case 4:r=jn,jn=ge,i=Wf(),c=Sn,Sn=Ia(t.stateNode.containerInfo),Me(e,t,n),je(t),Sn=c,Ht&&Ba&&(pr=!0),Ht=i,jn=r;break;case 12:Me(e,t,n),je(t);break;case 31:Me(e,t,n),je(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,yr(t,e)));break;case 13:Me(e,t,n),je(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xr=Ie()),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,yr(t,e)));break;case 22:c=t.memoizedState!==null,m=i!==null&&i.memoizedState!==null;var x=ge,C=Gt,D=jn;ge=x||c,jn=D||c,Gt=C||m,Me(e,t,n),Gt=C,jn=D,ge=x,je(t),r&8192&&(e=t.stateNode,e._visibility=c?e._visibility&-2:e._visibility|1,!c||i===null||m||ge||Gt||(e=m||Gt,n=ge,i=Gt,ge=c||ge,Gt=e,Cl(t,2),ge=n,Gt=i),!c&&jn||Hc(t,c)),r&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,yr(t,n))));break;case 19:Me(e,t,n),je(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,yr(t,e)));break;case 30:r&512&&(Gt||i===null||Te(i,i.return)),r=Wf(),c=Ba,m=(n&335544064)===n,x=t.memoizedProps,Ba=m&&Kn(x.default,x.update)!=="none",Me(e,t,n),je(t),m&&i!==null&&Ht&&(t.flags|=4),Ba=c,Ht=r;break;case 21:break;case 7:r&512&&(Gt||i===null||Te(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=t);default:Me(e,t,n),je(t)}}function je(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(yd(i)){n=i;break}i=i.return}i=null;for(var r=t.return;r!==null;){if(wc(r)){var c=r.stateNode;i===null?i=[c]:i.push(c)}if(zc(r))break;r=r.return}var m=i;if(n==null)throw Error(o(160));switch(n.tag){case 27:var x=n.stateNode,C=Nc(t);fr(t,C,x,m);break;case 5:var D=n.stateNode;n.flags&32&&(bi(D,""),n.flags&=-33);var L=Nc(t);fr(t,L,D,m);break;case 3:case 4:var Q=n.stateNode.containerInfo,_=Nc(t);Oc(t,_,Q,m);break;default:throw Error(o(161))}}catch(U){Qt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Md(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Md(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;)jd(e,t),e=e.sibling;else Cd(e)}function jd(t,e){var n=t.alternate;if(n===null)Dc(t,!1);else switch(t.tag){case 3:if(Bc=Rn=!1,xd(),Bi(e,t),!Rn&&!pr){if(t=Dn,t!==null)for(var i=0;i<t.length;i+=3){n=t[i];var r=t[i+1];Sp(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"})),Bc=!0}Dn=null;break;case 5:Bi(e,t);break;case 4:i=Rn,Rn=!1,Bi(e,t),Rn&&(pr=!0),Rn=i;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?Dc(t,!1):Bi(e,t));break;case 30:i=Rn,r=xd(),Rn=!1,Bi(e,t),Rn&&(t.flags|=4);var c=t.memoizedProps,m=t.stateNode;e=In(c,m),m=In(n.memoizedProps,m);var x=Kn(c.default,c.update);x==="none"?e=!1:(c=n.memoizedState,n.memoizedState=null,n=t.child,qe=0,e=Uc(t,n,e,m,x,c,!0),qe!==(c===null?0:c.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(Qi(t,t.memoizedProps.onUpdate),Dn=r):r!==null&&(r.push.apply(r,Dn),Dn=r),Rn=(t.flags&32)!==0?!0:i;break;default:Bi(e,t)}}function Un(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)zd(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:Te(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&pd(n,n.return,r),Cl(n,i);break;case 27:(i&2)!==0&&Mp(n.stateNode,n.type,n.memoizedProps);case 5:Te(n,n.return),n.tag!==5&&n.tag!==27||La(n),Cl(n,i);break;case 6:La(n);break;case 26:Te(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:Te(n,n.return),Cl(n,i);break;case 7:Te(n,n.return);default:Cl(n,i)}t=t.sibling}}function En(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,m=c.flags,x=(n&1)!==0;switch(c.tag){case 0:case 11:case 15:En(r,c,n),Ua(4,c);break;case 1:if(En(r,c,n),i=c,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(L){Qt(i,i.return,L)}if(i=c,r=i.updateQueue,r!==null){var C=i.stateNode;try{var D=r.shared.hiddenCallbacks;if(D!==null)for(r.shared.hiddenCallbacks=null,r=0;r<D.length;r++)nm(D[r],C)}catch(L){Qt(i,i.return,L)}}x&&m&64&&dd(c),On(c,c.return);break;case 27:(n&2)!==0&&vd(c);case 5:c.tag!==5&&c.tag!==27||gd(c),En(r,c,n),x&&i===null&&m&4&&kc(c),On(c,c.return);break;case 6:gd(c);break;case 26:C=c.stateNode,c.memoizedState!==null||C===null||ge||Cs(Ia(C.ownerDocument),c.type,C),En(r,c,n),x&&i===null&&m&4&&kc(c),On(c,c.return);break;case 12:En(r,c,n);break;case 31:En(r,c,n),x&&m&4&&Nd(r,c);break;case 13:En(r,c,n),x&&m&4&&Od(r,c);break;case 22:c.memoizedState===null&&En(r,c,n),On(c,c.return);break;case 30:En(r,c,n),On(c,c.return);break;case 7:On(c,c.return);default:En(r,c,n)}e=e.sibling}}function Yc(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&&Ta(n))}function Vc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ta(t))}function dn(t,e,n,i){var r=(n&335544064)===n;if(e.subtreeFlags&(r?10262:10256))for(e=e.child;e!==null;)Rd(t,e,n,i),e=e.sibling;else r&&Td(e)}function Rd(t,e,n,i){var r=(n&335544064)===n;r&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&dr(e);var c=e.flags;switch(e.tag){case 0:case 11:case 15:dn(t,e,n,i),c&2048&&Ua(9,e);break;case 1:dn(t,e,n,i);break;case 3:dn(t,e,n,i),r&&Bc&&(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&&Ta(c)));break;case 12:if(c&2048){dn(t,e,n,i),c=e.stateNode;try{var m=e.memoizedProps,x=m.id,C=m.onPostCommit;typeof C=="function"&&C(x,e.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(D){Qt(e,e.return,D)}}else dn(t,e,n,i);break;case 31:dn(t,e,n,i);break;case 13:dn(t,e,n,i);break;case 23:break;case 22:m=e.stateNode,x=e.alternate,e.memoizedState!==null?(r&&x!==null&&x.memoizedState===null&&dr(x),m._visibility&2?dn(t,e,n,i):Ha(t,e)):(r&&x!==null&&x.memoizedState!==null&&dr(e),m._visibility&2?dn(t,e,n,i):(m._visibility|=2,Hi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1))),c&2048&&Yc(x,e);break;case 24:dn(t,e,n,i),c&2048&&Vc(e.alternate,e);break;case 30:r&&(c=e.alternate,c!==null&&(Mn(c.child,!0),Mn(e.child,!0))),dn(t,e,n,i);break;default:dn(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,m=e,x=n,C=i,D=m.flags;switch(m.tag){case 0:case 11:case 15:Hi(c,m,x,C,r),Ua(8,m);break;case 23:break;case 22:var L=m.stateNode;m.memoizedState!==null?L._visibility&2?Hi(c,m,x,C,r):Ha(c,m):(L._visibility|=2,Hi(c,m,x,C,r)),r&&D&2048&&Yc(m.alternate,m);break;case 24:Hi(c,m,x,C,r),r&&D&2048&&Vc(m.alternate,m);break;default:Hi(c,m,x,C,r)}e=e.sibling}}function Ha(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:Ha(n,i),r&2048&&Yc(i.alternate,i);break;case 24:Ha(n,i),r&2048&&Vc(i.alternate,i);break;default:Ha(n,i)}e=e.sibling}}var ni=8192;function li(t,e,n){if(t.subtreeFlags&ni)for(t=t.child;t!==null;)Ud(t,e,n),t=t.sibling}function Ud(t,e,n){switch(t.tag){case 26:li(t,e,n),t.flags&ni&&(t.memoizedState!==null?Jv(n,Sn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&Gp(n,t)));break;case 5:li(t,e,n),t.flags&ni&&(t=t.stateNode,(e&335544128)===e&&Gp(n,t));break;case 3:case 4:var i=Sn;Sn=Ia(t.stateNode.containerInfo),li(t,e,n),Sn=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,We===null&&(We=new Map),We.set(i,r)}li(t,e,n);break;default:li(t,e,n)}}function Ld(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 qa(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];ye=i,Hd(i,t)}Ld(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bd(t),t=t.sibling}function Bd(t){switch(t.tag){case 0:case 11:case 15:qa(t),t.flags&2048&&Tl(9,t,t.return);break;case 3:qa(t);break;case 12:qa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,vr(t)):qa(t);break;default:qa(t)}}function vr(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];ye=i,Hd(i,t)}Ld(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Tl(8,e,e.return),vr(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,vr(e));break;default:vr(e)}t=t.sibling}}function Hd(t,e){for(;ye!==null;){var n=ye;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:Ta(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ye=i;else t:for(n=t;ye!==null;){i=ye;var r=i.sibling,c=i.return;if(kd(i),i===n){ye=null;break t}if(r!==null){r.return=c,ye=r;break t}ye=c}}}var Q0={getCacheForType:function(t){var e=xe(re),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return xe(re).controller.signal}},Z0=typeof WeakMap=="function"?WeakMap:Map,Vt=0,Kt=null,jt=null,Ut=0,Xt=0,tn=null,Al=!1,qi=!1,Gc=!1,ll=0,ie=0,zl=0,ii=0,br=0,en=0,Yi=0,Ya=null,Ve=null,Xc=!1,xr=0,qd=0,Sr=1/0,Er=null,wl=null,ee=0,Tn=null,ai=null,Ln=0,Qc=0,Zc=null,Yd=null,Vi=null,Gi=null,Xi=null,Va=0,Tr=null;function nn(){return(Vt&2)!==0&&Ut!==0?Ut&-Ut:ct.T!==null?ns():Xf()}function Vd(){if(en===0)if((Ut&536870912)===0||Dt){var t=yu;yu<<=1,(yu&3932160)===0&&(yu=262144),en=t}else en=536870912;return t=Se.current,t!==null&&(t.flags|=32),en}function Qi(t,e){if(e!=null){var n=t.stateNode,i=n.ref;i===null&&(i=n.ref=Ep(In(t.memoizedProps,n))),Gi===null&&(Gi=[]),Gi.push(e.bind(null,i))}}function Ge(t,e,n){(t===Kt&&(Xt===2||Xt===9)||t.cancelPendingCommit!==null)&&(Zi(t,0),kl(t,Ut,en,!1)),ca(t,n),((Vt&2)===0||t!==Kt)&&(t===Kt&&((Vt&2)===0&&(ii|=n),ie===4&&kl(t,Ut,en,!1)),Bn(t))}function Gd(t,e,n){if((Vt&6)!==0)throw Error(o(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||oa(t,e),r=i?F0(t,e):Kc(t,e,!0),c=i;do{if(r===0){qi&&!i&&kl(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!I0(n)){r=Kc(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;r=Ya;var C=x.current.memoizedState.isDehydrated;if(C&&(Zi(x,m).flags|=256),m=Kc(x,m,!1),m!==2&&m!==6){if(Gc&&!C){x.errorRecoveryDisabledLanes|=c,ii|=c,r=4;break t}c=Ve,Ve=r,c!==null&&(Ve===null?Ve=c:Ve.push.apply(Ve,c))}r=m}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,en,!Al);break t;case 2:Ve=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=xr+300-Ie(),10<r)){if(kl(i,e,en,!Al),bu(i,0,!0)!==0)break t;Ln=e,i.timeoutHandle=ms(Xd.bind(null,i,n,Ve,Er,Xc,e,en,ii,Yi,Al,c,"Throttled",-0,0),r);break t}Xd(i,n,Ve,Er,Xc,e,en,ii,Yi,Al,c,null,-0,0)}}break}while(!0);Bn(t)}function Xd(t,e,n,i,r,c,m,x,C,D,L,Q,_,U){t.timeoutHandle=-1;var it=e.subtreeFlags,ht=(c&335544064)===c;if(Q=null,(ht||it&8192||(it&16785408)===16785408)&&(Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},We=null,Ud(e,c,Q),ht&&(it=Q,ht=t.containerInfo,ht=(ht.nodeType===9?ht:ht.ownerDocument).__reactViewTransition,ht!=null&&(it.count++,it.waitingForViewTransition=!0,it=Ja.bind(it),ht.finished.then(it,it))),it=(c&62914560)===c?xr-Ie():(c&4194048)===c?qd-Ie():0,it=$v(Q,it),it!==null)){Ln=c,t.cancelPendingCommit=it(Pd.bind(null,t,e,c,n,i,r,m,x,C,D,L,Q,null,_,U)),kl(t,c,m,!D);return}Pd(t,e,c,n,i,r,m,x,C,D,L,Q)}function I0(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(!$e(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=Hf(t,e),e&=~br,e&=~ii,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var r=e;0<r;){var c=31-Fe(r),m=1<<c;i[c]=-1,r&=~m}n!==0&&Yf(t,n,e)}function Cr(){return(Vt&6)===0?(Ga(0),!1):!0}function Ic(){if(jt!==null){if(Xt===0)var t=jt.return;else t=jt,$n=Zl=null,ec(t),Di=null,za=0,t=jt;for(;t!==null;)md(t.alternate,t),t=t.return;jt=null}}function Zi(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,yv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Ln=0,Ic(),Kt=t,jt=n=Fn(t.current,null),Ut=e,Xt=0,tn=null,Al=!1,qi=oa(t,e),Gc=!1,Yi=en=br=ii=zl=ie=0,Ve=Ya=null,Xc=!1,ll=Hf(t,e),Du(),n}function Qd(t,e){_t=null,ct.H=lr,e===Oi||e===Gu?(e=Ph(),Xt=3):e===Vo?(e=Ph(),Xt=4):Xt=e===gc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,tn=e,jt===null&&(ie=1,ir(t,sn(e,t.current)))}function Zd(){var t=Se.current;return t===null?!0:(Ut&4194048)===Ut?we===null:(Ut&62914560)===Ut||(Ut&536870912)!==0?t===we:!1}function Id(){var t=ct.H;return ct.H=lr,t===null?lr:t}function Kd(){var t=ct.A;return ct.A=Q0,t}function Ar(){ie=4,Al||(Ut&4194048)!==Ut&&Se.current!==null||(qi=!0),(zl&134217727)===0&&(ii&134217727)===0||Kt===null||kl(Kt,Ut,en,!1)}function Kc(t,e,n){var i=Vt;Vt|=2;var r=Id(),c=Kd();(Kt!==t||Ut!==e)&&(Er=null,Zi(t,e)),e=!1;var m=ie;t:do try{if(Xt!==0&&jt!==null){var x=jt,C=tn;switch(Xt){case 8:Ic(),m=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var D=Xt;if(Xt=0,tn=null,Ii(t,x,C,D),n&&qi){m=0;break t}break;default:D=Xt,Xt=0,tn=null,Ii(t,x,C,D)}}K0(),m=ie;break}catch(L){Qd(t,L)}while(!0);return e&&t.shellSuspendCounter++,$n=Zl=null,Vt=i,ct.H=r,ct.A=c,jt===null&&(Kt=null,Ut=0,Du()),m}function K0(){for(;jt!==null;)Fd(jt)}function F0(t,e){var n=Vt;Vt|=2;var i=Id(),r=Kd();Kt!==t||Ut!==e?(Er=null,Sr=Ie()+500,Zi(t,e)):qi=oa(t,e);t:do try{if(Xt!==0&&jt!==null){e=jt;var c=tn;e:switch(Xt){case 1:Xt=0,tn=null,Ii(t,e,c,1);break;case 2:case 9:if(Jh(c)){Xt=0,tn=null,Jd(e);break}e=function(){Xt!==2&&Xt!==9||Kt!==t||(Xt=7),Bn(t)},c.then(e,e);break t;case 3:Xt=7;break t;case 4:Xt=5;break t;case 7:Jh(c)?(Xt=0,tn=null,Jd(e)):(Xt=0,tn=null,Ii(t,e,c,7));break;case 5:var m=null;switch(jt.tag){case 26:m=jt.memoizedState;case 5:case 27:var x=jt;if(m?Yp(m):x.stateNode.complete){Xt=0,tn=null;var C=x.sibling;if(C!==null)jt=C;else{var D=x.return;D!==null?(jt=D,zr(D)):jt=null}break e}}Xt=0,tn=null,Ii(t,e,c,5);break;case 6:Xt=0,tn=null,Ii(t,e,c,6);break;case 8:Ic(),ie=6;break t;default:throw Error(o(462))}}J0();break}catch(L){Qd(t,L)}while(!0);return $n=Zl=null,ct.H=i,ct.A=r,Vt=n,jt!==null?0:(Kt=null,Ut=0,Du(),ie)}function J0(){for(;jt!==null&&!ol();)Fd(jt)}function Fd(t){var e=fd(t.alternate,t,ll);t.memoizedProps=t.pendingProps,e===null?zr(t):jt=e}function Jd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=id(n,e,e.pendingProps,e.type,void 0,Ut);break;case 11:e=id(n,e,e.pendingProps,e.type.render,e.ref,Ut);break;case 5:ec(e);var i=e;i===pe&&(Dt?(Bu(i),i.tag===5&&i.stateNode!=null&&($t=i.stateNode)):(Bu(i),Dt=!0));default:md(n,e),e=jt=Hh(e,ll),e=fd(n,e,ll)}t.memoizedProps=t.pendingProps,e===null?zr(t):jt=e}function Ii(t,e,n,i){$n=Zl=null,ec(e),Di=null,za=0;var r=e.return;try{if(L0(t,r,e,n,Ut)){ie=1,ir(t,sn(n,t.current)),jt=null;return}}catch(c){if(r!==null)throw jt=r,c;ie=1,ir(t,sn(n,t.current)),jt=null;return}e.flags&32768?(Dt||i===1?t=!0:qi||(Ut&536870912)!==0?t=!1:(Al=t=!0,(i===2||i===9||i===3||i===6)&&(i=Se.current,i!==null&&i.tag===13&&(i.flags|=16384))),$d(e,t)):zr(e)}function zr(t){var e=t;do{if((e.flags&32768)!==0){$d(e,Al);return}t=e.return;var n=Y0(e.alternate,e,ll);if(n!==null){jt=n;return}if(e=e.sibling,e!==null){jt=e;return}jt=e=t}while(e!==null);ie===0&&(ie=5)}function $d(t,e){do{var n=V0(t.alternate,t);if(n!==null){n.flags&=32767,jt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){jt=t;return}jt=t=n}while(t!==null);ie=6,jt=null}function Pd(t,e,n,i,r,c,m,x,C,D,L,Q){t.cancelPendingCommit=null;do wr();while(ee!==0);if((Vt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));t===Kt&&(jt=Kt=null,Ut=0),ai=e,Tn=t,Ln=n,Zc=r,Yd=i,$0(t,e,n,m,x,C,Q)}}function $0(t,e,n,i,r,c,m){var x=e.lanes|e.childLanes;if(Qc=x,x|=_o,T1(t,n,x,i,r,c),Gi=null,(n&335544064)===n?(Xi=A0(t),i=10262):(Xi=null,i=10256),(e.subtreeFlags&i)!==0||(e.flags&i)!==0?(t.callbackNode=null,t.callbackPriority=0,lv(pu,function(){return Pc(),null})):(t.callbackNode=null,t.callbackPriority=0),hr=!1,i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=ct.T,ct.T=null,r=vt.p,vt.p=2,c=Vt,Vt|=4;try{G0(t,e,n)}finally{Vt=c,vt.p=r,ct.T=i}}ee=1,hr?Vi=Tv(m,t.containerInfo,Xi,Fc,Jc,W0,$c,Pc,P0):(Fc(),Jc(),$c())}function P0(t){if(ee!==0){var e=Tn.onRecoverableError;e(t,{componentStack:null})}}function W0(){ee===3&&(ee=0,jd(ai,Tn),ee=4)}function Fc(){if(ee===1){ee=0;var t=Tn,e=ai,n=Ln,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=ct.T,ct.T=null;var r=vt.p;vt.p=2;var c=Vt;Vt|=4;try{Ba=pr=!1,Dd(e,t,n),n=ss;var m=_h(t.containerInfo),x=n.focusedElem,C=n.selectionRange;if(m!==x&&x&&x.ownerDocument&&kh(x.ownerDocument.documentElement,x)){if(C!==null&&Co(x)){var D=C.start,L=C.end;if(L===void 0&&(L=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(L,x.value.length);else{var Q=x.ownerDocument||document,_=Q&&Q.defaultView||window;if(_.getSelection){var U=_.getSelection(),it=x.textContent.length,ht=Math.min(C.start,it),Nt=C.end===void 0?ht:Math.min(C.end,it);!U.extend&&ht>Nt&&(m=Nt,Nt=ht,ht=m);var O=wh(x,ht),w=wh(x,Nt);if(O&&w&&(U.rangeCount!==1||U.anchorNode!==O.node||U.anchorOffset!==O.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var M=Q.createRange();M.setStart(O.node,O.offset),U.removeAllRanges(),ht>Nt?(U.addRange(M),U.extend(w.node,w.offset)):(M.setEnd(w.node,w.offset),U.addRange(M))}}}}for(Q=[],U=x;U=U.parentNode;)U.nodeType===1&&Q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var X=Q[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}ea=!!cs,ss=cs=null}finally{Vt=c,vt.p=r,ct.T=i}}t.current=e,ee=2}}function Jc(){if(ee===2){ee=0;var t=Tn,e=ai,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=ct.T,ct.T=null;var i=vt.p;vt.p=2;var r=Vt;Vt|=4;try{zd(t,e.alternate,e)}finally{Vt=r,vt.p=i,ct.T=n}}ee=3}}function $c(){if(ee===4||ee===3){ee=0;var t=Vi;Vi=null,vn();var e=Tn,n=ai,i=Ln,r=Yd,c=(i&335544064)===i?10262:10256;if((n.subtreeFlags&c)!==0||(n.flags&c)!==0?ee=5:(ee=0,ai=Tn=null,Wd(e,e.pendingLanes)),c=e.pendingLanes,c===0&&(wl=null),ao(i),n=n.stateNode,Ke&&typeof Ke.onCommitFiberRoot=="function")try{Ke.onCommitFiberRoot(ra,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=ct.T,c=vt.p,vt.p=2,ct.T=null;try{for(var m=e.onRecoverableError,x=0;x<r.length;x++){var C=r[x];m(C.value,{componentStack:C.stack})}}finally{ct.T=n,vt.p=c}}if(r=Gi,m=Xi,Xi=null,r!==null&&(Gi=null,m===null&&(m=[]),t!==null))for(C=0;C<r.length;C++)n=(0,r[C])(m),n!==void 0&&t.finished.finally(n);(Ln&3)!==0&&wr(),Bn(e),c=e.pendingLanes,(i&261930)!==0&&(c&42)!==0?e===Tr?Va++:(Va=0,Tr=e):(Va=0,Tr=null),Ga(0)}}function Wd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ta(e)))}function wr(){return Vi!==null&&(Vi.skipTransition(),Vi=null),Fc(),Jc(),$c(),Pc()}function Pc(){if(ee!==5)return!1;var t=Tn,e=Qc;Qc=0;var n=ao(Ln),i=ct.T,r=vt.p;try{vt.p=32>n?32:n,ct.T=null,n=Zc,Zc=null;var c=Tn,m=Ln;if(ee=0,ai=Tn=null,Ln=0,(Vt&6)!==0)throw Error(o(331));var x=Vt;if(Vt|=4,Bd(c.current),Rd(c,c.current,m,n),Vt=x,Ga(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot=="function")try{Ke.onPostCommitFiberRoot(ra,c)}catch{}return!0}finally{vt.p=r,ct.T=i,Wd(t,e)}}function tp(t,e,n){e=sn(n,e),e=pc(t.stateNode,e,2),t=bl(t,e,2),t!==null&&(ca(t,2),Bn(t))}function Qt(t,e,n){if(t.tag===3)tp(t,t,n);else for(;e!==null;){if(e.tag===3){tp(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=sn(n,t),n=Jm(2),i=bl(e,n,2),i!==null&&($m(n,i,e,t),ca(i,2),Bn(i));break}}e=e.return}}function Wc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new Z0;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)||(Gc=!0,r.add(n),t=tv.bind(null,t,e,n),e.then(t,t))}function tv(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Kt===t&&(Ut&n)===n&&((ie===4||ie===3&&(Ut&62914560)===Ut&&300>Ie()-xr)&&(Vt&2)===0?Zi(t,0):br|=n,Yi===Ut&&(Yi=0)),Bn(t)}function ep(t,e){e===0&&(e=qf()),t=Gl(t,e),t!==null&&(ca(t,e),Bn(t))}function ev(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ep(t,n)}function nv(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),ep(t,n)}function lv(t,e){return Gn(t,e)}var Ki=null,Fi=null,ts=!1,kr=!1,es=!1,_l=0;function Bn(t){t!==Fi&&t.next===null&&(Fi===null?Ki=Fi=t:Fi=Fi.next=t),kr=!0,ts||(ts=!0,av())}function Ga(t,e){if(!es&&kr){es=!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 m=i.suspendedLanes,x=i.pingedLanes;c=(1<<31-Fe(42|t)+1)-1,c&=r&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,ap(i,c))}else c=Ut,c=bu(i,i===Kt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||oa(i,c)||(n=!0,ap(i,c));i=i.next}while(n);es=!1}}function iv(){np()}function np(){kr=ts=!1;var t=0;_l!==0&&gv()&&(t=_l);for(var e=Ie(),n=null,i=Ki;i!==null;){var r=i.next,c=lp(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)&&(kr=!0)),i=r}ee!==0&&ee!==5||Ga(t),_l!==0&&(_l=0)}function lp(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-Fe(c),x=1<<m,C=r[m];C===-1?((x&n)===0||(x&i)!==0)&&(r[m]=E1(x,e)):C<=e&&(t.expiredLanes|=x),c&=~x}if(e=Kt,n=Ut,n=bu(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&&ve(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||oa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&ve(i),ao(n)){case 2:case 8:n=Lf;break;case 32:n=pu;break;case 268435456:n=Bf;break;default:n=pu}return i=ip.bind(null,t),n=Gn(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&ve(i),t.callbackPriority=2,t.callbackNode=null,2}function ip(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(wr()&&t.callbackNode!==n)return null;var i=Ut;return i=bu(t,t===Kt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Gd(t,i,e),lp(t,Ie()),t.callbackNode!=null&&t.callbackNode===n?ip.bind(null,t):null)}function ap(t,e){if(wr())return null;Gd(t,e,!0)}function av(){vv(function(){(Vt&6)!==0?Gn(Uf,iv):np()})}function ns(){if(_l===0){var t=Fl;t===0&&(t=gu,gu<<=1,(gu&261888)===0&&(gu=256)),_l=t}return _l}function up(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Cu(t)}function uv(t,e,n,i,r){if(e==="submit"&&n&&n.stateNode===r){var c=up((r[Be]||null).action),m=i.submitter;m&&(e=(e=m[Be]||null)?up(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var x=new ku("action","action",null,i,r);t.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_l!==0){var C=new FormData(r,m);sc(n,{pending:!0,data:C,method:r.method,action:c},null,C)}}else typeof c=="function"&&(x.preventDefault(),C=new FormData(r,m),sc(n,{pending:!0,data:C,method:r.method,action:c},c,C))},currentTarget:r}]})}}for(var ls=0;ls<ko.length;ls++){var is=ko[ls],rv=is.toLowerCase(),ov=is[0].toUpperCase()+is.slice(1);bn(rv,"on"+ov)}bn(Dh,"onAnimationEnd"),bn(Mh,"onAnimationIteration"),bn(jh,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(y0,"onTransitionRun"),bn(v0,"onTransitionStart"),bn(b0,"onTransitionCancel"),bn(Rh,"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 Xa="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(" "),cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xa));function rp(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 m=i.length-1;0<=m;m--){var x=i[m],C=x.instance,D=x.currentTarget;if(x=x.listener,C!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=D;try{c(r)}catch(L){Ou(L)}r.currentTarget=null,c=C}else for(m=0;m<i.length;m++){if(x=i[m],C=x.instance,D=x.currentTarget,x=x.listener,C!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=D;try{c(r)}catch(L){Ou(L)}r.currentTarget=null,c=C}}}}function Rt(t,e){var n=e[Zf];n===void 0&&(n=e[Zf]=new Set);var i=t+"__bubble";n.has(i)||(op(e,t,2,!1),n.add(i))}function as(t,e,n){var i=0;e&&(i|=4),op(n,t,i,e)}var _r="_reactListening"+Math.random().toString(36).slice(2);function us(t){if(!t[_r]){t[_r]=!0,Ff.forEach(function(n){n!=="selectionchange"&&(cv.has(n)||as(n,!1,t),as(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[_r]||(e[_r]=!0,as("selectionchange",!1,e))}}function op(t,e,n,i){switch($p(e)){case 2:var r=eb;break;case 8:r=nb;break;default:r=zs}n=r.bind(null,e,n,t),r=void 0,!mo||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 rs(t,e,n,i,r){var c=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var x=i.stateNode.containerInfo;if(x===r)break;if(m===4)for(m=i.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===r)return;m=m.return}for(;x!==null;){if(m=Hl(x),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){i=c=m;continue t}x=x.parentNode}}i=i.return}oh(function(){var D=c,L=fo(n),Q=[];t:{var _=Uh.get(t);if(_!==void 0){var U=ku,it=t;switch(t){case"keypress":if(zu(n)===0)break t;case"keydown":case"keyup":U=I1;break;case"focusin":it="focus",U=vo;break;case"focusout":it="blur",U=vo;break;case"beforeblur":case"afterblur":U=vo;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":U=fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=R1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=P1;break;case Dh:case Mh:case jh:U=B1;break;case Rh:U=t0;break;case"scroll":case"scrollend":U=M1;break;case"wheel":U=n0;break;case"copy":case"cut":case"paste":U=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=mh;break;case"submit":U=J1;break;case"toggle":case"beforetoggle":U=i0}var ht=(e&4)!==0,Nt=!ht&&(t==="scroll"||t==="scrollend"),O=ht?_!==null?_+"Capture":null:_;ht=[];for(var w=D,M;w!==null;){var X=w;if(M=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||M===null||O===null||(X=ha(w,O),X!=null&&ht.push(Qa(w,X,M))),Nt)break;w=w.return}0<ht.length&&(_=new U(_,it,null,n,L),Q.push({event:_,listeners:ht}))}}if((e&7)===0){t:{if(U=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",U&&n!==so&&(it=n.relatedTarget||n.fromElement)&&(Hl(it)||it[di]))break t;(_||U)&&(it=L.window===L?L:(U=L.ownerDocument)?U.defaultView||U.parentWindow:window,_?(U=n.relatedTarget||n.toElement,_=D,U=U?Hl(U):null,U!==null&&(Nt=h(U),ht=U.tag,U!==Nt||ht!==5&&ht!==27&&ht!==6)&&(U=null)):(_=null,U=D),_!==U&&(ht=fh,X="onMouseLeave",O="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(ht=mh,X="onPointerLeave",O="onPointerEnter",w="pointer"),Nt=_==null?it:fa(_),M=U==null?it:fa(U),it=new ht(X,w+"leave",_,n,L),it.target=Nt,it.relatedTarget=M,X=null,Hl(L)===D&&(ht=new ht(O,w+"enter",U,n,L),ht.target=M,ht.relatedTarget=Nt,X=ht),Nt=X,ht=_&&U?j(_,U,sv):null,_!==null&&cp(Q,it,_,ht,!1),U!==null&&Nt!==null&&cp(Q,Nt,U,ht,!0)))}t:{if(_=D?fa(D):window,U=_.nodeName&&_.nodeName.toLowerCase(),U==="select"||U==="input"&&_.type==="file")var st=Sh;else if(bh(_))if(Eh)st=d0;else{st=h0;var Lt=f0}else U=_.nodeName,!U||U.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?D&&co(D.elementType)&&(st=Sh):st=m0;if(st&&(st=st(t,D))){xh(Q,st,n,L);break t}Lt&&Lt(t,_,D)}switch(Lt=D?fa(D):window,t){case"focusin":(bh(Lt)||Lt.contentEditable==="true")&&(Ti=Lt,Ao=D,xa=null);break;case"focusout":xa=Ao=Ti=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,Nh(Q,n,L);break;case"selectionchange":if(g0)break;case"keydown":case"keyup":Nh(Q,n,L)}var gt;if(xo)t:{switch(t){case"compositionstart":var xt="onCompositionStart";break t;case"compositionend":xt="onCompositionEnd";break t;case"compositionupdate":xt="onCompositionUpdate";break t}xt=void 0}else Ei?yh(t,n)&&(xt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(xt="onCompositionStart");xt&&(dh&&n.locale!=="ko"&&(Ei||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&Ei&&(gt=ch()):(sl=L,po="value"in sl?sl.value:sl.textContent,Ei=!0)),Lt=Nr(D,xt),0<Lt.length&&(xt=new hh(xt,t,null,n,L),Q.push({event:xt,listeners:Lt}),gt?xt.data=gt:(gt=vh(n),gt!==null&&(xt.data=gt)))),(gt=u0?r0(t,n):o0(t,n))&&(xt=Nr(D,"onBeforeInput"),0<xt.length&&(Lt=new hh("onBeforeInput","beforeinput",null,n,L),Q.push({event:Lt,listeners:xt}),Lt.data=gt)),uv(Q,t,D,n,L)}rp(Q,e)})}function Qa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Nr(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=ha(t,n),r!=null&&i.unshift(Qa(t,r,c)),r=ha(t,e),r!=null&&i.push(Qa(t,r,c))),t.tag===3)return i;t=t.return}return[]}function sv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cp(t,e,n,i,r){for(var c=e._reactName,m=[];n!==null&&n!==i;){var x=n,C=x.alternate,D=x.stateNode;if(x=x.tag,C!==null&&C===i)break;x!==5&&x!==26&&x!==27||D===null||(C=D,r?(D=ha(n,c),D!=null&&m.unshift(Qa(n,D,C))):r||(D=ha(n,c),D!=null&&m.push(Qa(n,D,C)))),n=n.return}m.length!==0&&t.push({event:e,listeners:m})}var fv=/\r\n?/g,hv=/\u0000|\uFFFD/g;function sp(t){return(typeof t=="string"?t:""+t).replace(fv,`
49
+ `).replace(hv,"")}function fp(t,e){return e=sp(e),sp(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":Tu(t,"class",i);break;case"tabIndex":Tu(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Tu(t,n,i);break;case"style":uh(t,i,c);return;case"data":if(e!=="object"){Tu(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=Cu(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=Cu(i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=kn);return;case"onScroll":i!=null&&Rt("scroll",t);return;case"onScrollEnd":i!=null&&Rt("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=Cu(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":Rt("beforetoggle",t),Rt("toggle",t),Eu(t,"popover",i);break;case"xlinkActuate":Qn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Qn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Qn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Qn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Qn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Qn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Qn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Qn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Qn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Eu(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=O1.get(n)||n,Eu(t,n,i);else return}Ht=!0}function os(t,e,n,i,r,c){switch(n){case"style":uh(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&&Rt("scroll",t);return;case"onScrollEnd":i!=null&&Rt("scrollend",t);return;case"onClick":i!=null&&(t.onclick=kn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Jf.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[Be]||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}Ht=!0,n in t?t[n]=i:i===!0?t.setAttribute(n,""):Eu(t,n,i)}return}Ht=!0}function Ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",t),Rt("load",t);var i=!1,r=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=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,m,n,null)}}r&&Zt(t,e,"srcSet",n.srcSet,n,null),i&&Zt(t,e,"src",n.src,n,null);return;case"input":Rt("invalid",t);var x=c=m=r=null,C=null,D=null;for(i in n)if(n.hasOwnProperty(i)){var L=n[i];if(L!=null)switch(i){case"name":r=L;break;case"type":m=L;break;case"checked":C=L;break;case"defaultChecked":D=L;break;case"value":c=L;break;case"defaultValue":x=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,e));break;default:Zt(t,e,i,L,n,null)}}nh(t,c,x,C,D,m,r,!1);return;case"select":Rt("invalid",t),i=m=c=null;for(r in n)if(n.hasOwnProperty(r)&&(x=n[r],x!=null))switch(r){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":i=x;default:Zt(t,e,r,x,n,null)}e=c,n=m,t.multiple=!!i,e!=null?vi(t,!!i,e,!1):n!=null&&vi(t,!!i,n,!0);return;case"textarea":Rt("invalid",t),c=r=i=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){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,m,x,n,null)}ih(t,i,r,c);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(i=n[C],i!=null))switch(C){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Zt(t,e,C,i,n,null)}return;case"dialog":Rt("beforetoggle",t),Rt("toggle",t),Rt("cancel",t),Rt("close",t);break;case"iframe":case"object":Rt("load",t);break;case"video":case"audio":for(i=0;i<Xa.length;i++)Rt(Xa[i],t);break;case"image":Rt("error",t),Rt("load",t);break;case"details":Rt("toggle",t);break;case"embed":case"source":case"link":Rt("error",t),Rt("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(co(e)){for(L in n)n.hasOwnProperty(L)&&(i=n[L],i!==void 0&&os(t,e,L,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 mv={};function dv(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,m=null,x=null,C=null,D=null,L=null;for(U in n){var Q=n[U];if(n.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":C=Q;default:i.hasOwnProperty(U)||Zt(t,e,U,null,i,Q)}}for(var _ in i){var U=i[_];if(Q=n[_],i.hasOwnProperty(_)&&(U!=null||Q!=null))switch(_){case"type":U!==Q&&(Ht=!0),c=U;break;case"name":U!==Q&&(Ht=!0),r=U;break;case"checked":U!==Q&&(Ht=!0),D=U;break;case"defaultChecked":U!==Q&&(Ht=!0),L=U;break;case"value":U!==Q&&(Ht=!0),m=U;break;case"defaultValue":U!==Q&&(Ht=!0),x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==Q&&Zt(t,e,_,U,i,Q)}}ro(t,m,x,C,D,L,c,r);return;case"select":U=m=x=_=null;for(c in n)if(C=n[c],n.hasOwnProperty(c)&&C!=null)switch(c){case"value":break;case"multiple":U=C;default:i.hasOwnProperty(c)||Zt(t,e,c,null,i,C)}for(r in i)if(c=i[r],C=n[r],i.hasOwnProperty(r)&&(c!=null||C!=null))switch(r){case"value":c!==C&&(Ht=!0),_=c;break;case"defaultValue":c!==C&&(Ht=!0),x=c;break;case"multiple":c!==C&&(Ht=!0),m=c;default:c!==C&&Zt(t,e,r,c,i,C)}e=x,n=m,i=U,_!=null?vi(t,!!n,_,!1):!!i!=!!n&&(e!=null?vi(t,!!n,e,!0):vi(t,!!n,n?[]:"",!1));return;case"textarea":U=_=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(m in i)if(r=i[m],c=n[m],i.hasOwnProperty(m)&&(r!=null||c!=null))switch(m){case"value":r!==c&&(Ht=!0),_=r;break;case"defaultValue":r!==c&&(Ht=!0),U=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==c&&Zt(t,e,m,r,i,c)}lh(t,_,U);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(C in i)if(_=i[C],U=n[C],i.hasOwnProperty(C)&&_!==U&&(_!=null||U!=null))switch(C){case"selected":_!==U&&(Ht=!0),t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Zt(t,e,C,_,i,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ht in n)_=n[ht],n.hasOwnProperty(ht)&&_!=null&&!i.hasOwnProperty(ht)&&Zt(t,e,ht,null,i,_);for(D in i)if(_=i[D],U=n[D],i.hasOwnProperty(D)&&_!==U&&(_!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:Zt(t,e,D,_,i,U)}return;default:if(co(e)){for(var Nt in n)_=n[Nt],n.hasOwnProperty(Nt)&&_!==void 0&&!i.hasOwnProperty(Nt)&&os(t,e,Nt,void 0,i,_);for(L in i)_=i[L],U=n[L],!i.hasOwnProperty(L)||_===U||_===void 0&&U===void 0||os(t,e,L,_,i,U);return}}for(var O in n)_=n[O],n.hasOwnProperty(O)&&_!=null&&!i.hasOwnProperty(O)&&Zt(t,e,O,null,i,_);for(Q in i)_=i[Q],U=n[Q],!i.hasOwnProperty(Q)||_===U||_==null&&U==null||Zt(t,e,Q,_,i,U)}function hp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pv(){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,m=r.initiatorType,x=r.duration;if(c&&x&&hp(m)){for(m=0,x=r.responseEnd,i+=1;i<n.length;i++){var C=n[i],D=C.startTime;if(D>x)break;var L=C.transferSize,Q=C.initiatorType;L&&hp(Q)&&(C=C.responseEnd,m+=L*(C<x?1:(x-D)/(C-D)))}if(--i,e+=8*(c+m)/(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 cs=null,ss=null;function Za(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 dp(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 pp(t,e,n,i){return n=Za(n).createElement(t),n[be]=i,n[Be]=e,Ce(n,t,e),de(n),n}function fs(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 hs=null;function gv(){var t=window.event;return t&&t.type==="popstate"?t===hs?!1:(hs=t,!0):(hs=null,!1)}var ms=typeof setTimeout=="function"?setTimeout:void 0,yv=typeof clearTimeout=="function"?clearTimeout:void 0,gp=typeof Promise=="function"?Promise:void 0,yp=typeof requestAnimationFrame=="function"?requestAnimationFrame:ms,vv=typeof queueMicrotask=="function"?queueMicrotask:typeof gp<"u"?function(t){return gp.resolve(null).then(t).catch(bv)}:ms;function bv(t){setTimeout(function(){throw t})}function Nl(t){return t==="head"}function vp(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")Ss(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ss(n);for(var c=n.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[sa]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&Ss(t.ownerDocument.body);n=r}while(n);na(e)}function bp(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 xp(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 Sp(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 xv(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 ds(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return xv(e,n,t)}function Sv(t){return t.documentElement.clientHeight}function Ev(t){this.addEventListener("load",t),this.addEventListener("error",t)}function Tv(t,e,n,i,r,c,m,x,C){var D=e.nodeType===9?e:e.ownerDocument;try{var L=D.startViewTransition({update:function(){var _=D.defaultView,U=_.navigation&&_.navigation.transition,it=D.fonts.status;i();var ht=[];if(it==="loaded"&&(Sv(D),D.fonts.status==="loading"&&ht.push(D.fonts.ready)),it=ht.length,t!==null)for(var Nt=t.suspenseyImages,O=0,w=0;w<Nt.length;w++){var M=Nt[w];if(!M.complete){var X=M.getBoundingClientRect();if(0<X.bottom&&0<X.right&&X.top<_.innerHeight&&X.left<_.innerWidth){if(O+=Vp(M),O>Mr){ht.length=it;break}M=new Promise(Ev.bind(M)),ht.push(M)}}}if(0<ht.length)return _=Promise.race([Promise.all(ht),new Promise(function(st){return setTimeout(st,500)})]).then(r,r),(U?Promise.allSettled([U.finished,_]):_).then(c,c);if(r(),U)return U.finished.then(c,c);c()},types:n});D.__reactViewTransition=L;var Q=[];return L.ready.then(function(){for(var _=D.documentElement.getAnimations({subtree:!0}),U=0;U<_.length;U++){var it=_[U],ht=it.effect,Nt=ht.pseudoElement;if(Nt!=null&&Nt.startsWith("::view-transition")){Q.push(it),it=ht.getKeyframes();for(var O=Nt=void 0,w=!0,M=0;M<it.length;M++){var X=it[M],st=X.width;if(Nt===void 0)Nt=st;else if(Nt!==st){w=!1;break}if(st=X.height,O===void 0)O=st;else if(O!==st){w=!1;break}delete X.width,delete X.height,X.transform==="none"&&delete X.transform}w&&Nt!==void 0&&O!==void 0&&(ht.setKeyframes(it),w=getComputedStyle(ht.target,ht.pseudoElement),w.width!==Nt||w.height!==O)&&(w=it[0],w.width=Nt,w.height=O,w=it[it.length-1],w.width=Nt,w.height=O,ht.setKeyframes(it))}}m()},function(_){D.__reactViewTransition===L&&(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&&C(_)}finally{i(),r(),m()}}),L.finished.finally(function(){for(var _=0;_<Q.length;_++)Q[_].cancel();D.__reactViewTransition===L&&(D.__reactViewTransition=null),x()}),L}catch{return i(),r(),m(),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}:J({},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 Ep(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 ln(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}ln.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(Cp(c,t,e,n)===-1){var m=this,x=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(x=function(C){m.removeEventListener(t,e,n),typeof e=="function"?e.call(this,C):e.handleEvent(C)}),i!==null&&(r=m.removeEventListener.bind(m,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,Cv,t,x,i)}this._eventListeners=c}};function Cv(t,e,n,i){return B(t).addEventListener(e,n,i),!1}ln.prototype.removeEventListener=function(t,e,n){var i=this._eventListeners;if(i!==null&&(e=Cp(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,Av,t,n,r),i.splice(e,1),c!==null&&c()}};function Av(t,e,n,i){return B(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 Tp(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function Cp(t,e,n,i){if(t.length===0)return-1;i=Tp(i);for(var r=0;r<t.length;r++){var c=t[r];if(c.type===e&&c.listener===n&&Tp(c.optionsOrUseCapture)===i)return r}return-1}ln.prototype.dispatchEvent=function(t){var e=S(this._fragmentFiber);if(e===null)return!0;e=B(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)},ln.prototype.focus=function(t){p(this._fragmentFiber.child,!0,Ap,t,void 0,void 0)};function Ap(t,e){return t.tag===6?!1:(t=B(t),Lv(t,e))}ln.prototype.focusLast=function(t){var e=[];p(this._fragmentFiber.child,!0,ps,e,void 0,void 0);for(var n=e.length-1;0<=n&&!Ap(e[n],t);n--);};function ps(t,e){return e.push(t),!1}ln.prototype.blur=function(){var t=S(this._fragmentFiber);t!==null&&(t=B(t),t=Za(t).activeElement,t!==null&&p(this._fragmentFiber.child,!1,zv,t,void 0,void 0))};function zv(t,e){return t.tag===6?!1:(t=B(t),t===e||t.contains(e)?(e.blur(),!0):!1)}ln.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),p(this._fragmentFiber.child,!1,wv,t,void 0,void 0)};function wv(t,e){return t.tag===6||(t=B(t),e.observe(t)),!1}ln.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),p(this._fragmentFiber.child,!1,kv,t,void 0,void 0);for(var n=e=0;n<Cn.length;n++){var i=Cn[n];i.fragmentInstance===this&&i.observer===t?t.unobserve(i.instance):Cn[e++]=i}Cn.length=e}};function kv(t,e){return t.tag===6||(t=B(t),e.unobserve(t)),!1}var Cn=[],gs=!1;function _v(t,e,n){Cn.push({fragmentInstance:t,observer:e,instance:n}),gs||(gs=!0,Bv(function(){gs=!1;var i=Cn;Cn=[];for(var r=0;r<i.length;r++){var c=i[r];c.observer.unobserve(c.instance)}}))}ln.prototype.getClientRects=function(){var t=[];return p(this._fragmentFiber.child,!1,Nv,t,void 0,void 0),t};function Nv(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=B(t),e.push.apply(e,t.getClientRects());return!1}ln.prototype.getRootNode=function(t){var e=S(this._fragmentFiber);return e===null?this:B(e).getRootNode(t)},ln.prototype.compareDocumentPosition=function(t){var e=S(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,ps,n,void 0,void 0);var i=B(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=k(e)[1],n===null?r=Node.DOCUMENT_POSITION_PRECEDING:(t=B(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=B(n[0]),r=B(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 m=e.compareDocumentPosition(t),x=r.compareDocumentPosition(t),C=m&Node.DOCUMENT_POSITION_CONTAINED_BY||x&Node.DOCUMENT_POSITION_CONTAINED_BY;return x=i&&c&&m&Node.DOCUMENT_POSITION_FOLLOWING&&x&Node.DOCUMENT_POSITION_PRECEDING,e=i&&e===t||c&&r===t||C||x?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&e===t||!c&&r===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:m,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Ov(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Ov(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,I),e===null?e=!1:(p(e,!0,Z,c,n),c=N,N=null,e=c!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!c)&&!(e=c===i)&&(e=j(i,c,I),e===null?e=!1:(p(e,!0,ft,c,i),c=N,K=N=null,e=c!==null)),e):!1}function zp(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)}ln.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(o(566));var e=[];p(this._fragmentFiber.child,!1,ps,e,void 0,void 0);var n=t!==!1;if(e.length===0){var i=k(this._fragmentFiber);if(i=n?i[1]||i[0]||S(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){t=B(i),zp(t,n);return}if(i=B(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=B(r),zp(r,n)):B(r).scrollIntoView(t),i+=n?-1:1}};function Dv(t,e){return t=B(t),wp(t,e),!1}function wp(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function kp(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 m=0,x=0;x<Cn.length;x++){var C=Cn[x];(C.fragmentInstance!==e||C.observer!==c||C.instance!==t)&&(Cn[m++]=C)}Cn.length=m,c.observe(t)}),wp(t,e))}function Mv(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"?_v(e,c,t):c.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function ys(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":ys(n),Su(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function jv(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[sa])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=pn(t.nextSibling),t===null)break}return null}function Rv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=pn(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=pn(t.nextSibling),t===null))return null;return t}function vs(t){return t.data==="$?"||t.data==="$~"}function bs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Uv(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 pn(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 xs=null;function Np(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return pn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Op(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 Lv(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 Bv(t){yp(function(){yp(function(e){return t(e)})})}function Dp(t,e,n){switch(e=Za(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 Mp(t,e,n){for(var i in n){var r=n[i];n.hasOwnProperty(i)&&r!=null&&Zt(t,e,i,null,mv,r)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===kn&&(t.onclick=null),Su(t)}function Ss(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Su(t)}var gn=new Map,jp=new Set;function Ia(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 il=vt.d;vt.d={f:Hv,r:qv,D:Yv,C:Vv,L:Gv,m:Xv,X:Zv,S:Qv,M:Iv};function Hv(){var t=il.f(),e=Cr();return t||e}function qv(t){var e=pi(t);e!==null&&e.tag===5&&e.type==="form"?Um(e):il.r(t)}var $i=typeof document>"u"?null:document;function Rp(t,e,n){var i=$i;if(i&&typeof e=="string"&&e){var r=on(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),jp.has(r)||(jp.add(r),t={rel:t,crossOrigin:n,href:e},i.querySelector(r)===null&&(e=i.createElement("link"),Ce(e,"link",t),de(e),i.head.appendChild(e)))}}function Yv(t){il.D(t),Rp("dns-prefetch",t,null)}function Vv(t,e){il.C(t,e),Rp("preconnect",t,e)}function Gv(t,e,n){il.L(t,e,n);var i=$i;if(i&&t&&e){var r='link[rel="preload"][as="'+on(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+on(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+on(n.imageSizes)+'"]')):r+='[href="'+on(t)+'"]';var c=r;switch(e){case"style":c=Pi(t);break;case"script":c=Wi(t)}if(!(gn.has(c)||(t=J({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),gn.set(c,t),i.querySelector(r)!==null||e==="style"&&i.querySelector(Ka(c))||e==="script"&&i.querySelector(Fa(c))))){var m=i.createElement("link");Ce(m,"link",t),e==="style"&&(m[xu]=!0,m.onload=m.onerror=function(){Kf(m)}),de(m),i.head.appendChild(m)}}}function Xv(t,e){il.m(t,e);var n=$i;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+on(i)+'"][href="'+on(t)+'"]',c=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Wi(t)}if(!gn.has(c)&&(t=J({rel:"modulepreload",href:t},e),gn.set(c,t),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fa(c)))return}i=n.createElement("link"),Ce(i,"link",t),de(i),n.head.appendChild(i)}}}function Qv(t,e,n){il.S(t,e,n);var i=$i;if(i&&t){var r=gi(i).hoistableStyles,c=Pi(t);e=e||"default";var m=r.get(c);if(!m){var x={loading:0,preload:null};if(m=i.querySelector(Ka(c)))x.loading=5;else{t=J({rel:"stylesheet",href:t,"data-precedence":e},n),(n=gn.get(c))&&Es(t,n);var C=m=i.createElement("link");de(C),Ce(C,"link",t),C._p=new Promise(function(D,L){C.onload=D,C.onerror=L}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Or(m,e,i)}m={type:"stylesheet",instance:m,count:1,state:x},r.set(c,m)}}}function Zv(t,e){il.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(Fa(r)),c||(t=J({src:t,async:!0},e),(e=gn.get(r))&&Ts(t,e),c=n.createElement("script"),de(c),Ce(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(r,c))}}function Iv(t,e){il.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(Fa(r)),c||(t=J({src:t,async:!0,type:"module"},e),(e=gn.get(r))&&Ts(t,e),c=n.createElement("script"),de(c),Ce(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=Ze.current)?Ia(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,m=c.get(t);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=r.querySelector(Ka(t)))?c._p||(m.instance=c,m.state.loading=5):(c=gn.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},gn.set(t,c)),Kv(r,t,c,m.state))),e&&i===null)throw Error(o(528,""));return m}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="'+on(t)+'"'}function Ka(t){return'link[rel="stylesheet"]['+t+"]"}function Lp(t){return J({},t,{"data-precedence":t.precedence,precedence:null})}function Kv(t,e,n,i){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[xu]!==!0){i.loading=1;return}}else e=t.createElement("link"),e[xu]=!0,e.onload=e.onerror=Kf.bind(null,e),Ce(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="'+on(t)+'"]'}function Fa(t){return"script[async]"+t}function Bp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+on(n.href)+'"]');if(i)return e.instance=i,de(i),i;var r=J({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),de(i),Ce(i,"style",r),Or(i,n.precedence,t),e.instance=i;case"stylesheet":r=Pi(n.href);var c=t.querySelector(Ka(r));if(c)return e.state.loading|=4,e.instance=c,de(c),c;i=Lp(n),(r=gn.get(r))&&Es(i,r),c=(t.ownerDocument||t).createElement("link"),de(c);var m=c;return m._p=new Promise(function(x,C){m.onload=x,m.onerror=C}),Ce(c,"link",i),e.state.loading|=4,Or(c,n.precedence,t),e.instance=c;case"script":return c=Wi(n.src),(r=t.querySelector(Fa(c)))?(e.instance=r,de(r),r):(i=n,(r=gn.get(c))&&(i=J({},n),Ts(i,r)),t=t.ownerDocument||t,r=t.createElement("script"),de(r),Ce(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,Or(i,n.precedence,t));return e.instance}function Or(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,m=0;m<i.length;m++){var x=i[m];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 Es(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ts(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Dr=null;function Hp(t,e,n){if(Dr===null){var i=new Map,r=Dr=new Map;r.set(n,i)}else r=Dr,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[sa]||c[be]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var x=i.get(m);x?x.push(c):i.set(m,[c])}}return i}function Cs(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Fv(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 qp(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Yp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Vp(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Gp(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Vp(e),t.suspenseyImages.push(e)),t=Pv.bind(t),e.decode().then(t,t))}function Jv(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(Ka(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ja.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,de(c);return}c=e.ownerDocument||e,i=Lp(i),(r=gn.get(r))&&Es(i,r),c=c.createElement("link"),de(c);var m=c;m._p=new Promise(function(x,C){m.onload=x,m.onerror=C}),Ce(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=Ja.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Mr=0;function $v(t,e){return t.stylesheets&&t.count===0&&Rr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&Rr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Mr===0&&(Mr=62500*pv());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Rr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Mr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Xp(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Rr(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function Ja(){this.count--,Xp(this)}function Pv(){this.imgCount--,Xp(this)}var jr=null;function Rr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,jr=new Map,e.forEach(Wv,t),jr=null,Ja.call(t))}function Wv(t,e){if(!(e.state.loading&4)){var n=jr.get(t);if(n)var i=n.get(null);else{n=new Map,jr.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var m=r[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),i=m)}i&&n.set(null,i)}r=e.instance,m=r.getAttribute("data-precedence"),c=n.get(m)||i,c===i&&n.set(null,r),n.set(m,r),this.count++,i=Ja.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:Le,_currentValue2:Le,_threadCount:0};function tb(t,e,n,i,r,c,m,x,C){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=lo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.hiddenUpdates=lo(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.transitionTypes=null,this.incompleteTransitions=new Map}function Qp(t,e,n,i,r,c,m,x,C,D,L,Q){return t=new tb(t,e,n,m,C,D,L,Q,x),e=1,c===!0&&(e|=24),c=He(3,null,null,e),t.current=c,c.stateNode=t,e=Ho(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:e},Go(c),t}function Zp(t){return t?(t=zi,t):zi}function Ip(t,e,n,i,r,c){r=Zp(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&&(Ge(n,t,e),wa(n,t,e))}function Kp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function As(t,e){Kp(t,e),(t=t.alternate)&&Kp(t,e)}function Fp(t){if(t.tag===13||t.tag===31){var e=Gl(t,67108864);e!==null&&Ge(e,t,67108864),As(t,67108864)}}function Jp(t){if(t.tag===13||t.tag===31){var e=nn();e=io(e);var n=Gl(t,e);n!==null&&Ge(n,t,e),As(t,e)}}var ea=!0;function eb(t,e,n,i){var r=ct.T;ct.T=null;var c=vt.p;try{vt.p=2,zs(t,e,n,i)}finally{vt.p=c,ct.T=r}}function nb(t,e,n,i){var r=ct.T;ct.T=null;var c=vt.p;try{vt.p=8,zs(t,e,n,i)}finally{vt.p=c,ct.T=r}}function zs(t,e,n,i){if(ea){var r=ws(i);if(r===null)rs(t,e,i,Ur,n),Pp(t,i);else if(ib(r,t,e,n,i))i.stopPropagation();else if(Pp(t,i),e&4&&-1<lb.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 m=Bl(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var C=1<<31-Fe(m);x.entanglements[1]|=C,m&=~C}Bn(c),(Vt&6)===0&&(Sr=Ie()+500,Ga(0))}}break;case 31:case 13:x=Gl(c,2),x!==null&&Ge(x,c,2),Cr(),As(c,2)}if(c=ws(i),c===null&&rs(t,e,i,Ur,n),c===r)break;r=c}r!==null&&i.stopPropagation()}else rs(t,e,i,null,n)}}function ws(t){return t=fo(t),ks(t)}var Ur=null;function ks(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=d(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 $p(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(p1()){case Uf:return 2;case Lf:return 8;case pu:case g1:return 32;case Bf:return 268435456;default:return 32}default:return 32}}var _s=!1,Ol=null,Dl=null,Ml=null,$a=new Map,Pa=new Map,jl=[],lb="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 Pp(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":$a.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pa.delete(e.pointerId)}}function Wa(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&&Fp(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function ib(t,e,n,i,r){switch(e){case"focusin":return Ol=Wa(Ol,t,e,n,i,r),!0;case"dragenter":return Dl=Wa(Dl,t,e,n,i,r),!0;case"mouseover":return Ml=Wa(Ml,t,e,n,i,r),!0;case"pointerover":var c=r.pointerId;return $a.set(c,Wa($a.get(c)||null,t,e,n,i,r)),!0;case"gotpointercapture":return c=r.pointerId,Pa.set(c,Wa(Pa.get(c)||null,t,e,n,i,r)),!0}return!1}function Wp(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,Qf(t.priority,function(){Jp(n)});return}}else if(e===31){if(e=d(n),e!==null){t.blockedOn=e,Qf(t.priority,function(){Jp(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 Lr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ws(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);so=i,n.target.dispatchEvent(i),so=null}else return e=pi(n),e!==null&&Fp(e),t.blockedOn=n,!1;e.shift()}return!0}function tg(t,e,n){Lr(t)&&n.delete(e)}function ab(){_s=!1,Ol!==null&&Lr(Ol)&&(Ol=null),Dl!==null&&Lr(Dl)&&(Dl=null),Ml!==null&&Lr(Ml)&&(Ml=null),$a.forEach(tg),Pa.forEach(tg)}function Br(t,e){t.blockedOn===e&&(t.blockedOn=null,_s||(_s=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ab)))}var Hr=null;function eg(t){Hr!==t&&(Hr=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Hr===t&&(Hr=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(ks(i||n)===null)continue;break}var c=pi(n);c!==null&&(t.splice(e,3),e-=3,sc(c,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function na(t){function e(C){return Br(C,t)}Ol!==null&&Br(Ol,t),Dl!==null&&Br(Dl,t),Ml!==null&&Br(Ml,t),$a.forEach(e),Pa.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);)Wp(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],m=r[Be]||null;if(typeof c=="function")m||eg(n);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(r=c,m=c[Be]||null)x=m.formAction;else if(ks(r)!==null)continue}else x=m.action;typeof x=="function"?n[i+1]=x:(n.splice(i,3),i-=3),eg(n)}}}function ng(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return r=m})},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 Ns(t){this._internalRoot=t}qr.prototype.render=Ns.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,i=nn();Ip(n,i,t,e,null,null)},qr.prototype.unmount=Ns.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ip(t.current,2,null,t,null,null),Cr(),e[di]=null}};function qr(t){this._internalRoot=t}qr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Xf();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&&Wp(t)}};var lg=a.version;if(lg!=="19.3.0")throw Error(o(527,lg,"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 ub={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ct,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yr.isDisabled&&Yr.supportsFiber)try{ra=Yr.inject(ub),Ke=Yr}catch{}}return eu.createRoot=function(t,e){if(!s(t))throw Error(o(299));var n=!1,i="",r=Zm,c=Im,m=Km;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&&(m=e.onRecoverableError)),e=Qp(t,1,!1,null,null,n,i,null,r,c,m,ng),t[di]=e.current,us(t),new Ns(e)},eu.hydrateRoot=function(t,e,n){if(!s(t))throw Error(o(299));var i=!1,r="",c=Zm,m=Im,x=Km,C=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&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),e=Qp(t,1,!0,e,n??null,i,r,C,c,m,x,ng),e.context=Zp(null),n=e.current,i=nn(),i=io(i),r=vl(i),r.callback=null,bl(n,r,i),n=i,e.current.lanes=n,ca(e,n),Bn(e),t[di]=e.current,us(t),new qr(e)},eu.version="19.3.0",eu}var mg;function gb(){if(mg)return js.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(),js.exports=pb(),js.exports}var yb=gb();function vb(l,a){const u={};return(l[l.length-1]===""?[...l,""]:l).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}const bb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sb={};function dg(l,a){return(Sb.jsx?xb:bb).test(l)}const Eb=/[ \t\n\f\r]/g;function Tb(l){return typeof l=="object"?l.type==="text"?pg(l.value):!1:pg(l)}function pg(l){return l.replace(Eb,"")===""}class hu{constructor(a,u,o){this.normal=u,this.property=a,o&&(this.space=o)}}hu.prototype.normal={};hu.prototype.property={};hu.prototype.space=void 0;function cy(l,a){const u={},o={};for(const s of l)Object.assign(u,s.property),Object.assign(o,s.normal);return new hu(u,o,a)}function tf(l){return l.toLowerCase()}class Qe{constructor(a,u){this.attribute=u,this.property=a}}Qe.prototype.attribute="";Qe.prototype.booleanish=!1;Qe.prototype.boolean=!1;Qe.prototype.commaOrSpaceSeparated=!1;Qe.prototype.commaSeparated=!1;Qe.prototype.defined=!1;Qe.prototype.mustUseProperty=!1;Qe.prototype.number=!1;Qe.prototype.overloadedBoolean=!1;Qe.prototype.property="";Qe.prototype.spaceSeparated=!1;Qe.prototype.space=void 0;let Cb=0;const wt=mi(),fe=mi(),ef=mi(),tt=mi(),Ft=mi(),fi=mi(),an=mi();function mi(){return 2**++Cb}const nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:wt,booleanish:fe,commaOrSpaceSeparated:an,commaSeparated:fi,number:tt,overloadedBoolean:ef,spaceSeparated:Ft},Symbol.toStringTag,{value:"Module"})),Ls=Object.keys(nf);class pf extends Qe{constructor(a,u,o,s){let h=-1;if(super(a,u),gg(this,"space",s),typeof o=="number")for(;++h<Ls.length;){const f=Ls[h];gg(this,Ls[h],(o&nf[f])===nf[f])}}}pf.prototype.defined=!0;function gg(l,a,u){u&&(l[a]=u)}function aa(l){const a={},u={};for(const[o,s]of Object.entries(l.properties)){const h=new pf(o,l.transform(l.attributes||{},o),s,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(h.mustUseProperty=!0),a[o]=h,u[tf(o)]=o,u[tf(h.attribute)]=o}return new hu(a,u,l.space)}const sy=aa({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 fy(l,a){return a in l?l[a]:a}function hy(l,a){return fy(l,a.toLowerCase())}const Ab=aa({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:wt,allowPaymentRequest:wt,allowUserMedia:wt,alpha:wt,alt:null,as:null,async:wt,autoCapitalize:null,autoComplete:Ft,autoFocus:wt,autoPlay:wt,blocking:Ft,capture:null,charSet:null,checked:wt,cite:null,className:Ft,closedBy:null,colorSpace:null,cols:tt,colSpan:tt,command:null,commandFor:null,content:null,contentEditable:fe,controls:wt,controlsList:Ft,coords:tt|fi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wt,defer:wt,dir:null,dirName:null,disabled:wt,download:ef,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wt,formTarget:null,headers:Ft,height:tt,hidden:ef,high:tt,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:wt,inputMode:null,integrity:null,is:null,isMap:wt,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:wt,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wt,low:tt,manifest:null,max:null,maxLength:tt,media:null,method:null,min:null,minLength:tt,multiple:wt,muted:wt,name:null,nonce:null,noModule:wt,noValidate:wt,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:wt,optimum:tt,pattern:null,ping:Ft,placeholder:null,playsInline:wt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wt,referrerPolicy:null,rel:Ft,required:wt,reversed:wt,rows:tt,rowSpan:tt,sandbox:Ft,scope:null,scoped:wt,seamless:wt,selected:wt,shadowRootClonable:wt,shadowRootCustomElementRegistry:wt,shadowRootDelegatesFocus:wt,shadowRootMode:null,shadowRootSerializable:wt,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:wt,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:wt,declare:wt,event:null,face:null,frame:null,frameBorder:null,hSpace:tt,leftMargin:tt,link:null,longDesc:null,lowSrc:null,marginHeight:tt,marginWidth:tt,noResize:wt,noHref:wt,noShade:wt,noWrap:wt,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:wt,disablePictureInPicture:wt,disableRemotePlayback:wt,exportParts:fi,part:Ft,prefix:null,property:null,results:tt,security:null,unselectable:null},space:"html",transform:hy}),zb=aa({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:an,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:wt,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:an,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:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,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:an,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:an,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:an,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:fy}),my=aa({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()}}),dy=aa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hy}),py=aa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(l,a){return"xml:"+a.slice(3).toLowerCase()}}),wb={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"},kb=/[A-Z]/g,yg=/-[a-z]/g,_b=/^data[-\w.:]+$/i;function Nb(l,a){const u=tf(a);let o=a,s=Qe;if(u in l.normal)return l.property[l.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&_b.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace(yg,Db);o="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!yg.test(h)){let f=h.replace(kb,Ob);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=pf}return new s(o,a)}function Ob(l){return"-"+l.toLowerCase()}function Db(l){return l.charAt(1).toUpperCase()}const Mb=cy([sy,Ab,my,dy,py],"html"),gf=cy([sy,zb,my,dy,py],"svg");function jb(l){return l.join(" ").trim()}var la={},Bs,vg;function Rb(){if(vg)return Bs;vg=1;var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,u=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,g=`
50
+ `,y="/",v="*",p="",S="comment",b="declaration";function k(B,N){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];N=N||{};var K=1,Z=1;function ft(at){var W=at.match(a);W&&(K+=W.length);var $=at.lastIndexOf(g);Z=~$?at.length-$:Z+at.length}function I(){var at={line:K,column:Z};return function(W){return W.position=new j(at),yt(),W}}function j(at){this.start=at,this.end={line:K,column:Z},this.source=N.source}j.prototype.content=B;function J(at){var W=new Error(N.source+":"+K+":"+Z+": "+at);if(W.reason=at,W.filename=N.source,W.line=K,W.column=Z,W.source=B,!N.silent)throw W}function et(at){var W=at.exec(B);if(W){var $=W[0];return ft($),B=B.slice($.length),W}}function yt(){et(u)}function R(at){var W;for(at=at||[];W=q();)W!==!1&&at.push(W);return at}function q(){var at=I();if(!(y!=B.charAt(0)||v!=B.charAt(1))){for(var W=2;p!=B.charAt(W)&&(v!=B.charAt(W)||y!=B.charAt(W+1));)++W;if(W+=2,p===B.charAt(W-1))return J("End of comment missing");var $=B.slice(2,W-2);return Z+=2,ft($),B=B.slice(W),Z+=2,at({type:S,comment:$})}}function F(){var at=I(),W=et(o);if(W){if(q(),!et(s))return J("property missing ':'");var $=et(h),rt=at({type:b,property:H(W[0].replace(l,p)),value:$?H($[0].replace(l,p)):p});return et(f),rt}}function dt(){var at=[];R(at);for(var W;W=F();)W!==!1&&(at.push(W),R(at));return at}return yt(),dt()}function H(B){return B?B.replace(d,p):p}return Bs=k,Bs}var bg;function Ub(){if(bg)return la;bg=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(Rb());function u(o,s){let h=null;if(!o||typeof o!="string")return h;const f=(0,a.default)(o),d=typeof s=="function";return f.forEach(g=>{if(g.type!=="declaration")return;const{property:y,value:v}=g;d?s(y,v,g):v&&(h=h||{},h[y]=v)}),h}return la}var nu={},xg;function Lb(){if(xg)return nu;xg=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.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()},d=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,d):y=y.replace(o,d),y.replace(a,f))};return nu.camelCase=g,nu}var lu,Sg;function Bb(){if(Sg)return lu;Sg=1;var l=lu&&lu.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=l(Ub()),u=Lb();function o(s,h){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(d,g){d&&g&&(f[(0,u.camelCase)(d,h)]=g)}),f}return o.default=o,lu=o,lu}var Hb=Bb();const qb=ry(Hb),gy=yy("end"),yf=yy("start");function yy(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 Yb(l){const a=yf(l),u=gy(l);if(a&&u)return{start:a,end:u}}function ou(l){return!l||typeof l!="object"?"":"position"in l||"type"in l?Eg(l.position):"start"in l||"end"in l?Eg(l):"line"in l||"column"in l?lf(l):""}function lf(l){return Tg(l&&l.line)+":"+Tg(l&&l.column)}function Eg(l){return lf(l&&l.start)+"-"+lf(l&&l.end)}function Tg(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 d=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=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.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 vf={}.hasOwnProperty,Vb=new Map,Gb=/[A-Z]/g,Xb=new Set(["table","tbody","thead","tfoot","tr"]),Qb=new Set(["td","th"]),vy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zb(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=tx(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=Wb(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"?gf:Mb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=by(s,l,void 0);return h&&typeof h!="string"?h:s.create(l,s.Fragment,{children:h||void 0},void 0)}function by(l,a,u){if(a.type==="element")return Ib(l,a,u);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Kb(l,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Jb(l,a,u);if(a.type==="mdxjsEsm")return Fb(l,a);if(a.type==="root")return $b(l,a,u);if(a.type==="text")return Pb(l,a)}function Ib(l,a,u){const o=l.schema;let s=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=gf,l.schema=s),l.ancestors.push(a);const h=Sy(l,a.tagName,!1),f=ex(l,a);let d=xf(l,a);return Xb.has(a.tagName)&&(d=d.filter(function(g){return typeof g=="string"?!Tb(g):!0})),xy(l,f,h,a),bf(f,d),l.ancestors.pop(),l.schema=o,l.create(a,h,f,u)}function Kb(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 Fb(l,a){if(a.data&&a.data.estree&&l.evaluater)return l.evaluater.evaluateProgram(a.data.estree);fu(l,a.position)}function Jb(l,a,u){const o=l.schema;let s=o;a.name==="svg"&&o.space==="html"&&(s=gf,l.schema=s),l.ancestors.push(a);const h=a.name===null?l.Fragment:Sy(l,a.name,!0),f=nx(l,a),d=xf(l,a);return xy(l,f,h,a),bf(f,d),l.ancestors.pop(),l.schema=o,l.create(a,h,f,u)}function $b(l,a,u){const o={};return bf(o,xf(l,a)),l.create(a,l.Fragment,o,u)}function Pb(l,a){return a.value}function xy(l,a,u,o){typeof u!="string"&&u!==l.Fragment&&l.passNode&&(a.node=o)}function bf(l,a){if(a.length>0){const u=a.length>1?a:a[0];u&&(l.children=u)}}function Wb(l,a,u){return o;function o(s,h,f,d){const y=Array.isArray(f.children)?u:a;return d?y(h,f,d):y(h,f)}}function tx(l,a){return u;function u(o,s,h,f){const d=Array.isArray(h.children),g=yf(o);return a(s,h,f,d,{columnNumber:g?g.column-1:void 0,fileName:l,lineNumber:g?g.line:void 0},void 0)}}function ex(l,a){const u={};let o,s;for(s in a.properties)if(s!=="children"&&vf.call(a.properties,s)){const h=lx(l,s,a.properties[s]);if(h){const[f,d]=h;l.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Qb.has(a.tagName)?o=d:u[f]=d}}if(o){const h=u.style||(u.style={});h[l.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return u}function nx(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 d=f.properties[0];d.type,Object.assign(u,l.evaluater.evaluateExpression(d.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 d=o.value.data.estree.body[0];d.type,h=l.evaluater.evaluateExpression(d.expression)}else fu(l,a.position);else h=o.value===null?!0:o.value;u[s]=h}return u}function xf(l,a){const u=[];let o=-1;const s=l.passKeys?new Map:Vb;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 d=by(l,h,f);d!==void 0&&u.push(d)}return u}function lx(l,a,u){const o=Nb(l.schema,a);if(!(u==null||typeof u=="number"&&Number.isNaN(u))){if(Array.isArray(u)&&(u=o.commaSeparated?vb(u):jb(u)),o.property==="style"){let s=typeof u=="object"?u:ix(l,String(u));return l.stylePropertyNameCase==="css"&&(s=ax(s)),["style",s]}return[l.elementAttributeNameCase==="react"&&o.space?wb[o.property]||o.property:o.attribute,u]}}function ix(l,a){try{return qb(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=vy+"#cannot-parse-style-attribute",s}}function Sy(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 d=dg(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(h&&d.type==="Literal"),optional:!1}:d}o=f}else o=dg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const s=o.value;return vf.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=vy+"#cannot-handle-mdx-estrees-without-createevaluater",u}function ax(l){const a={};let u;for(u in l)vf.call(l,u)&&(a[ux(u)]=l[u]);return a}function ux(l){let a=l.replace(Gb,rx);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function rx(l){return"-"+l.toLowerCase()}const Hs={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"]},ox={};function Sf(l,a){const u=ox,o=typeof u.includeImageAlt=="boolean"?u.includeImageAlt:!0,s=typeof u.includeHtml=="boolean"?u.includeHtml:!0;return Ey(l,o,s)}function Ey(l,a,u){if(cx(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 Cg(l.children,a,u)}return Array.isArray(l)?Cg(l,a,u):""}function Cg(l,a,u){const o=[];let s=-1;for(;++s<l.length;)o[s]=Ey(l[s],a,u);return o.join("")}function cx(l){return!!(l&&typeof l=="object")}const Ag=document.createElement("i");function Ef(l){const a="&"+l+";";Ag.innerHTML=a;const u=Ag.textContent;return u.charCodeAt(u.length-1)===59&&l!=="semi"||u===a?!1:u}function An(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 yn(l,a){return l.length>0?(An(l,l.length,0,a),l):a}const zg={}.hasOwnProperty;function Ty(l){const a={};let u=-1;for(;++u<l.length;)sx(a,l[u]);return a}function sx(l,a){let u;for(u in a){const s=(zg.call(l,u)?l[u]:void 0)||(l[u]={}),h=a[u];let f;if(h)for(f in h){zg.call(s,f)||(s[f]=[]);const d=h[f];fx(s[f],Array.isArray(d)?d:d?[d]:[])}}}function fx(l,a){let u=-1;const o=[];for(;++u<a.length;)(a[u].add==="after"?l:o).push(a[u]);An(l,0,0,o)}function Cy(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 zn(l){return l.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ue=Ll(/[A-Za-z]/),ke=Ll(/[\dA-Za-z]/),hx=Ll(/[#-'*+\--9=?A-Z^-~]/);function Ir(l){return l!==null&&(l<32||l===127)}const af=Ll(/\d/),mx=Ll(/[\dA-Fa-f]/),dx=Ll(/[!-/:-@[-`{-~]/);function bt(l){return l!==null&&l<-2}function Jt(l){return l!==null&&(l<0||l===32)}function Mt(l){return l===-2||l===-1||l===32}const Pr=Ll(new RegExp("\\p{P}|\\p{S}","u")),hi=Ll(/\s/);function Ll(l){return a;function a(u){return u!==null&&u>-1&&l.test(String.fromCharCode(u))}}function ua(l){const a=[];let u=-1,o=0,s=0;for(;++u<l.length;){const h=l.charCodeAt(u);let f="";if(h===37&&ke(l.charCodeAt(u+1))&&ke(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 d=l.charCodeAt(u+1);h<56320&&d>56319&&d<57344?(f=String.fromCharCode(h,d),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 qt(l,a,u,o){const s=o?o-1:1/0;let h=0;return f;function f(g){return Mt(g)?(l.enter(u),d(g)):a(g)}function d(g){return Mt(g)&&h++<s?(l.consume(g),d):(l.exit(u),a(g))}}function Ay(l,a,u,o,s,h){let f=0;return d;function d(v){return Mt(v)?(l.enter(o),g(v)):y(v)}function g(v){return Mt(v)&&f<h?(l.consume(v),f++,g):(l.exit(o),y(v))}function y(v){return f>=s?a(v):u(v)}}const px={tokenize:gx};function gx(l){const a=l.attempt(this.parser.constructs.contentInitial,o,s);let u;return a;function o(d){if(d===null){l.consume(d);return}return l.enter("lineEnding"),l.consume(d),l.exit("lineEnding"),qt(l,a,"linePrefix")}function s(d){return l.enter("paragraph"),h(d)}function h(d){const g=l.enter("chunkText",{contentType:"text",previous:u});return u&&(u.next=g),u=g,f(d)}function f(d){if(d===null){l.exit("chunkText"),l.exit("paragraph"),l.consume(d);return}return bt(d)?(l.consume(d),l.exit("chunkText"),h):(l.consume(d),f)}}let Kr=class{constructor(){this.index=new Map,this.map=[]}add(a,u,o){wg(this,a,u,o,!1)}addBefore(a,u,o){wg(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 wg(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 yx={tokenize:vx},kg={tokenize:bx};function vx(l){const a=this,u=[];let o=0,s,h,f;return d;function d(Z){if(o<u.length){const ft=u[o];return a.containerState=ft[1],l.attempt(ft[0].continuation,g,y)(Z)}return y(Z)}function g(Z){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&K();const ft=a.events.length;let I=ft,j;for(;I--;)if(a.events[I][0]==="exit"&&a.events[I][1].type==="chunkFlow"){j=a.events[I][1].end;break}N(o);let J=ft;for(;J<a.events.length;)a.events[J][1].end={...j},J++;const et=new Kr;return et.add(I+1,0,a.events.slice(ft)),et.add(ft,J-ft,[]),et.consume(a.events),y(Z)}return d(Z)}function y(Z){if(o===u.length){if(!s)return S(Z);if(s.currentConstruct&&s.currentConstruct.concrete)return k(Z);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},l.check(kg,v,p)(Z)}function v(Z){return s&&K(),N(o),S(Z)}function p(Z){return a.parser.lazy[a.now().line]=o!==u.length,f=a.now().offset,k(Z)}function S(Z){return a.containerState={},l.attempt(kg,b,k)(Z)}function b(Z){return o++,u.push([a.currentConstruct,a.containerState]),S(Z)}function k(Z){if(Z===null){s&&K(),N(0),l.consume(Z);return}return s=s||a.parser.flow(a.now()),l.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),H(Z)}function H(Z){if(Z===null){B(l.exit("chunkFlow"),!0),N(0),l.consume(Z);return}return bt(Z)?(l.consume(Z),B(l.exit("chunkFlow")),o=0,a.interrupt=void 0,d):(l.consume(Z),H)}function B(Z,ft){const I=a.sliceStream(Z);if(ft&&I.push(null),Z.previous=h,h&&(h.next=Z),h=Z,s.defineSkip(Z.start),s.write(I),a.parser.lazy[Z.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 J=a.events.length;let et=J,yt,R;for(;et--;)if(a.events[et][0]==="exit"&&a.events[et][1].type==="chunkFlow"){if(yt){R=a.events[et][1].end;break}yt=!0}for(N(o),j=J;j<a.events.length;)a.events[j][1].end={...R},j++;const q=new Kr;q.add(et+1,0,a.events.slice(J)),q.add(J,j-J,[]),q.consume(a.events)}}function N(Z){let ft=u.length;for(;ft-- >Z;){const I=u[ft];a.containerState=I[1],I[0].exit.call(a,l)}u.length=Z}function K(){s.write([null]),h=void 0,s=void 0,a.containerState._closeFlow=void 0}}function bx(l,a,u){return qt(l,l.attempt(this.parser.constructs.document,a,u),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fr(l){if(l===null||Jt(l)||hi(l))return 1;if(Pr(l))return 2}function Wr(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 uf={name:"attention",resolveAll:xx,tokenize:Sx};function xx(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},d={...l[u][1].start};_g(f,-h),_g(d,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:d},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=yn(o,[["enter",l[s][1],a],["exit",l[s][1],a]])),o=yn(o,[["enter",p,a],["enter",g,a],["exit",g,a],["enter",v,a]]),o=yn(o,Wr(a.parser.constructs.insideSpan.null,l.slice(s+1,u),a)),o=yn(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=yn(o,[["enter",l[u][1],a],["exit",l[u][1],a]])),An(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 Sx(l,a){const u=this.parser.constructs.attentionMarkers.null,o=this.previous,s=Fr(o);let h;return f;function f(g){return h=g,l.enter("attentionSequence"),d(g)}function d(g){if(g===h)return l.consume(g),d;const y=l.exit("attentionSequence"),v=Fr(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 Ex={name:"autolink",tokenize:Tx};function Tx(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||ke(b)?(o=1,d(b)):y(b)}function d(b){return b===58?(l.consume(b),o=0,g):(b===43||b===45||b===46||ke(b))&&o++<32?(l.consume(b),d):(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||Ir(b)?u(b):(l.consume(b),g)}function y(b){return b===64?(l.consume(b),v):hx(b)?(l.consume(b),y):u(b)}function v(b){return ke(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||ke(b))&&o++<63){const k=b===45?S:p;return l.consume(b),k}return u(b)}}const mu={partial:!0,tokenize:Cx};function Cx(l,a,u){return o;function o(h){return Mt(h)?qt(l,s,"linePrefix")(h):s(h)}function s(h){return h===null||bt(h)?a(h):u(h)}}const zy={continuation:{tokenize:zx},exit:wx,name:"blockQuote",tokenize:Ax};function Ax(l,a,u){const o=this;return s;function s(f){if(f===62){const d=o.containerState;return d.open||(l.enter("blockQuote",{_container:!0}),d.open=!0),l.enter("blockQuotePrefix"),l.enter("blockQuoteMarker"),l.consume(f),l.exit("blockQuoteMarker"),h}return u(f)}function h(f){return Mt(f)?(l.enter("blockQuotePrefixWhitespace"),l.consume(f),l.exit("blockQuotePrefixWhitespace"),l.exit("blockQuotePrefix"),a):(l.exit("blockQuotePrefix"),a(f))}}function zx(l,a,u){const o=this;return s;function s(f){return Mt(f)?qt(l,h,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return l.attempt(zy,a,u)(f)}}function wx(l){l.exit("blockQuote")}const wy={name:"characterEscape",tokenize:kx};function kx(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 dx(h)?(l.enter("characterEscapeValue"),l.consume(h),l.exit("characterEscapeValue"),l.exit("characterEscape"),a):u(h)}}const ky={name:"characterReference",tokenize:_x};function _x(l,a,u){const o=this;let s=0,h,f;return d;function d(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=ke,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=mx,v):(l.enter("characterReferenceValue"),h=7,f=af,v(p))}function v(p){if(p===59&&s){const S=l.exit("characterReferenceValue");return f===ke&&!Ef(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 rf={partial:!0,tokenize:Nx};function Nx(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 Ng={concrete:!0,name:"codeFenced",tokenize:Ox};function Ox(l,a,u){const o=this,s={partial:!0,tokenize:I};let h=0,f=0,d;return g;function g(j){return y(j)}function y(j){const J=o.events[o.events.length-1];return h=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,d=j,l.enter("codeFenced"),l.enter("codeFencedFence"),l.enter("codeFencedFenceSequence"),v(j)}function v(j){return j===d?(f++,l.consume(j),v):f<3?u(j):(l.exit("codeFencedFenceSequence"),Mt(j)?qt(l,p,"whitespace")(j):p(j))}function p(j){return j===null||bt(j)?(l.exit("codeFencedFence"),o.interrupt?a(j):l.check(rf,H,ft)(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)):Mt(j)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),qt(l,b,"whitespace")(j)):j===96&&j===d?u(j):(l.consume(j),S)}function b(j){return j===null||bt(j)?p(j):(l.enter("codeFencedFenceMeta"),l.enter("chunkString",{contentType:"string"}),k(j))}function k(j){return j===null||bt(j)?(l.exit("chunkString"),l.exit("codeFencedFenceMeta"),p(j)):j===96&&j===d?u(j):(l.consume(j),k)}function H(j){return l.attempt(s,ft,B)(j)}function B(j){return l.enter("lineEnding"),l.consume(j),l.exit("lineEnding"),N}function N(j){return h>0&&Mt(j)?qt(l,K,"linePrefix",h+1)(j):K(j)}function K(j){return j===null||bt(j)?l.check(rf,H,ft)(j):(l.enter("codeFlowValue"),Z(j))}function Z(j){return j===null||bt(j)?(l.exit("codeFlowValue"),K(j)):(l.consume(j),Z)}function ft(j){return l.exit("codeFenced"),a(j)}function I(j,J,et){let yt=0;return R;function R(W){return j.enter("lineEnding"),j.consume(W),j.exit("lineEnding"),q}function q(W){return j.enter("codeFencedFence"),Mt(W)?qt(j,F,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):F(W)}function F(W){return W===d?(j.enter("codeFencedFenceSequence"),dt(W)):et(W)}function dt(W){return W===d?(yt++,j.consume(W),dt):yt>=f?(j.exit("codeFencedFenceSequence"),Mt(W)?qt(j,at,"whitespace")(W):at(W)):et(W)}function at(W){return W===null||bt(W)?(j.exit("codeFencedFence"),J(W)):et(W)}}}const qs={name:"codeIndented",tokenize:Mx},Dx={partial:!0,tokenize:jx};function Mx(l,a,u){return o;function o(d){return l.enter("codeIndented"),Ay(l,s,u,"linePrefix",4,4)(d)}function s(d){return d===null?f(d):bt(d)?l.attempt(Dx,s,f)(d):(l.enter("codeFlowValue"),h(d))}function h(d){return d===null||bt(d)?(l.exit("codeFlowValue"),s(d)):(l.consume(d),h)}function f(d){return l.exit("codeIndented"),a(d)}}function jx(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):Ay(l,a,h,"linePrefix",4,4)(f)}function h(f){return bt(f)?s(f):u(f)}}const Rx={name:"codeText",previous:Lx,resolve:Ux,tokenize:Bx};function Ux(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 Lx(l){return l!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bx(l,a,u){let o=0,s,h;return f;function f(p){return l.enter("codeText"),l.enter("codeTextSequence"),d(p)}function d(p){return p===96?(l.consume(p),o++,d):(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 Hx{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&&iu(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),iu(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),iu(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);iu(this.right,u.reverse())}else{const u=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);iu(this.left,u.reverse())}}}function iu(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 _y(l){const a={};let u=-1,o,s,h,f,d,g,y;const v=new Hx(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,qx(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},d=v.slice(s,u),d.unshift(o),v.splice(s,u-s+1,d))}}return An(l,0,Number.POSITIVE_INFINITY,v.slice(0)),!y}function qx(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 d=f.events,g=[],y={};let v,p,S=-1,b=u,k=0,H=0;const B=[H];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<d.length;)d[S][0]==="exit"&&d[S-1][0]==="enter"&&d[S][1].type===d[S-1][1].type&&d[S][1].start.line!==d[S][1].end.line&&(H=S+1,B.push(H),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(f.events=[],b?(b._tokenizer=void 0,b.previous=void 0):B.pop(),S=B.length;S--;){const N=d.slice(B[S],B[S+1]),K=h.pop();g.push([K,K+N.length-1]),l.splice(K,2,N)}for(g.reverse(),S=-1;++S<g.length;)y[k+g[S][0]]=k+g[S][1],k+=g[S][1]-g[S][0]-1;return y}const Yx={resolve:Gx,tokenize:Xx},Vx={partial:!0,tokenize:Qx};function Gx(l){return _y(l),l}function Xx(l,a){let u;return o;function o(d){return l.enter("content"),u=l.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?h(d):bt(d)?l.check(Vx,f,h)(d):(l.consume(d),s)}function h(d){return l.exit("chunkContent"),l.exit("content"),a(d)}function f(d){return l.consume(d),l.exit("chunkContent"),u.next=l.enter("chunkContent",{contentType:"content",previous:u}),u=u.next,s}}function Qx(l,a,u){const o=this;return s;function s(f){return l.exit("chunkContent"),l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),qt(l,h,"linePrefix")}function h(f){if(f===null||bt(f))return u(f);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):l.interrupt(o.parser.constructs.flow,u,a)(f)}}function Ny(l,a,u,o,s,h,f,d,g){const y=g||Number.POSITIVE_INFINITY;let v=0;return p;function p(N){return N===60?(l.enter(o),l.enter(s),l.enter(h),l.consume(N),l.exit(h),S):N===null||N===32||N===41||Ir(N)?u(N):(l.enter(o),l.enter(f),l.enter(d),l.enter("chunkString",{contentType:"string"}),H(N))}function S(N){return N===62?(l.enter(h),l.consume(N),l.exit(h),l.exit(s),l.exit(o),a):(l.enter(d),l.enter("chunkString",{contentType:"string"}),b(N))}function b(N){return N===62?(l.exit("chunkString"),l.exit(d),S(N)):N===null||N===60||bt(N)?u(N):(l.consume(N),N===92?k:b)}function k(N){return N===60||N===62||N===92?(l.consume(N),b):b(N)}function H(N){return!v&&(N===null||N===41||Jt(N))?(l.exit("chunkString"),l.exit(d),l.exit(f),l.exit(o),a(N)):v<y&&N===40?(l.consume(N),v++,H):N===41?(l.consume(N),v--,H):N===null||N===32||N===40||Ir(N)?u(N):(l.consume(N),N===92?B:H)}function B(N){return N===40||N===41||N===92?(l.consume(N),H):H(N)}}function Oy(l,a,u,o,s,h){const f=this;let d=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 d>999||b===null||b===91||b===93&&!g||b===94&&!d&&"_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)||d++>999?(l.exit("chunkString"),v(b)):(l.consume(b),g||(g=!Mt(b)),b===92?S:p)}function S(b){return b===91||b===92||b===93?(l.consume(b),d++,p):p(b)}}function Dy(l,a,u,o,s,h){let f;return d;function d(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"),qt(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):Mt(s)?qt(l,o,u?"linePrefix":"lineSuffix")(s):a(s)}}const Zx={name:"definition",tokenize:Kx},Ix={partial:!0,tokenize:Fx};function Kx(l,a,u){const o=this;let s;return h;function h(b){return l.enter("definition"),f(b)}function f(b){return Oy.call(o,l,d,u,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return s=zn(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 Ny(l,v,u,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function v(b){return l.attempt(Ix,p,p)(b)}function p(b){return Mt(b)?qt(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 Fx(l,a,u){return o;function o(d){return Jt(d)?cu(l,s)(d):u(d)}function s(d){return Dy(l,h,u,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function h(d){return Mt(d)?qt(l,f,"whitespace")(d):f(d)}function f(d){return d===null||bt(d)?a(d):u(d)}}const Jx={name:"hardBreakEscape",tokenize:$x};function $x(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 Px={name:"headingAtx",resolve:Wx,tokenize:tS};function Wx(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"};An(l,o,u-o+1,[["enter",s,a],["enter",h,a],["exit",h,a],["exit",s,a]])}return l}function tS(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"),d(v)):u(v)}function d(v){return v===35?(l.enter("atxHeadingSequence"),g(v)):v===null||bt(v)?(l.exit("atxHeading"),a(v)):Mt(v)?qt(l,d,"whitespace")(v):(l.enter("atxHeadingText"),y(v))}function g(v){return v===35?(l.consume(v),g):(l.exit("atxHeadingSequence"),d(v))}function y(v){return v===null||v===35||Jt(v)?(l.exit("atxHeadingText"),d(v)):(l.consume(v),y)}}const eS=["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"],Og=["pre","script","style","textarea"],nS={concrete:!0,name:"htmlFlow",resolveTo:iS,tokenize:aS},lS={partial:!0,tokenize:uS};function iS(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 aS(l,a,u){const o=this;let s,h,f,d,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,H):T===63?(l.consume(T),s=3,o.interrupt?a:z):Ue(T)?(l.consume(T),f=String.fromCharCode(T),B):u(T)}function S(T){return T===45?(l.consume(T),s=2,b):T===91?(l.consume(T),s=5,d=0,k):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 k(T){const E="CDATA[";return T===E.charCodeAt(d++)?(l.consume(T),d===E.length?o.interrupt?a:F:k):u(T)}function H(T){return Ue(T)?(l.consume(T),f=String.fromCharCode(T),B):u(T)}function B(T){if(T===null||T===47||T===62||Jt(T)){const E=T===47,G=f.toLowerCase();return!E&&!h&&Og.includes(G)?(s=1,o.interrupt?a(T):F(T)):eS.includes(f.toLowerCase())?(s=6,E?(l.consume(T),N):o.interrupt?a(T):F(T)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?u(T):h?K(T):Z(T))}return T===45||ke(T)?(l.consume(T),f+=String.fromCharCode(T),B):u(T)}function N(T){return T===62?(l.consume(T),o.interrupt?a:F):u(T)}function K(T){return Mt(T)?(l.consume(T),K):R(T)}function Z(T){return T===47?(l.consume(T),R):T===58||T===95||Ue(T)?(l.consume(T),ft):Mt(T)?(l.consume(T),Z):R(T)}function ft(T){return T===45||T===46||T===58||T===95||ke(T)?(l.consume(T),ft):I(T)}function I(T){return T===61?(l.consume(T),j):Mt(T)?(l.consume(T),I):Z(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,J):Mt(T)?(l.consume(T),j):et(T)}function J(T){return T===g?(l.consume(T),g=null,yt):T===null||bt(T)?u(T):(l.consume(T),J)}function et(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Jt(T)?I(T):(l.consume(T),et)}function yt(T){return T===47||T===62||Mt(T)?Z(T):u(T)}function R(T){return T===62?(l.consume(T),q):u(T)}function q(T){return T===null||bt(T)?F(T):Mt(T)?(l.consume(T),q):u(T)}function F(T){return T===45&&s===2?(l.consume(T),$):T===60&&s===1?(l.consume(T),rt):T===62&&s===4?(l.consume(T),P):T===63&&s===3?(l.consume(T),z):T===93&&s===5?(l.consume(T),At):bt(T)&&(s===6||s===7)?(l.exit("htmlFlowData"),l.check(lS,ot,dt)(T)):T===null||bt(T)?(l.exit("htmlFlowData"),dt(T)):(l.consume(T),F)}function dt(T){return l.check(rf,at,ot)(T)}function at(T){return l.enter("lineEnding"),l.consume(T),l.exit("lineEnding"),W}function W(T){return T===null||bt(T)?dt(T):(l.enter("htmlFlowData"),F(T))}function $(T){return T===45?(l.consume(T),z):F(T)}function rt(T){return T===47?(l.consume(T),f="",mt):F(T)}function mt(T){if(T===62){const E=f.toLowerCase();return Og.includes(E)?(l.consume(T),P):F(T)}return Ue(T)&&f.length<8?(l.consume(T),f+=String.fromCharCode(T),mt):F(T)}function At(T){return T===93?(l.consume(T),z):F(T)}function z(T){return T===62?(l.consume(T),P):T===45&&s===2?(l.consume(T),z):F(T)}function P(T){return T===null||bt(T)?(l.exit("htmlFlowData"),ot(T)):(l.consume(T),P)}function ot(T){return l.exit("htmlFlow"),a(T)}}function uS(l,a,u){return o;function o(s){return l.enter("lineEnding"),l.consume(s),l.exit("lineEnding"),l.attempt(mu,a,u)}}const rS={name:"htmlText",tokenize:oS};function oS(l,a,u){const o=this;let s,h,f;return d;function d(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),I):z===63?(l.consume(z),Z):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,k):Ue(z)?(l.consume(z),K):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,rt(z)):(l.consume(z),p)}function S(z){return z===45?(l.consume(z),b):p(z)}function b(z){return z===62?$(z):z===45?S(z):p(z)}function k(z){const P="CDATA[";return z===P.charCodeAt(h++)?(l.consume(z),h===P.length?H:k):u(z)}function H(z){return z===null?u(z):z===93?(l.consume(z),B):bt(z)?(f=H,rt(z)):(l.consume(z),H)}function B(z){return z===93?(l.consume(z),N):H(z)}function N(z){return z===62?$(z):z===93?(l.consume(z),N):H(z)}function K(z){return z===null||z===62?$(z):bt(z)?(f=K,rt(z)):(l.consume(z),K)}function Z(z){return z===null?u(z):z===63?(l.consume(z),ft):bt(z)?(f=Z,rt(z)):(l.consume(z),Z)}function ft(z){return z===62?$(z):Z(z)}function I(z){return Ue(z)?(l.consume(z),j):u(z)}function j(z){return z===45||ke(z)?(l.consume(z),j):J(z)}function J(z){return bt(z)?(f=J,rt(z)):Mt(z)?(l.consume(z),J):$(z)}function et(z){return z===45||ke(z)?(l.consume(z),et):z===47||z===62||Jt(z)?yt(z):u(z)}function yt(z){return z===47?(l.consume(z),$):z===58||z===95||Ue(z)?(l.consume(z),R):bt(z)?(f=yt,rt(z)):Mt(z)?(l.consume(z),yt):$(z)}function R(z){return z===45||z===46||z===58||z===95||ke(z)?(l.consume(z),R):q(z)}function q(z){return z===61?(l.consume(z),F):bt(z)?(f=q,rt(z)):Mt(z)?(l.consume(z),q):yt(z)}function F(z){return z===null||z===60||z===61||z===62||z===96?u(z):z===34||z===39?(l.consume(z),s=z,dt):bt(z)?(f=F,rt(z)):Mt(z)?(l.consume(z),F):(l.consume(z),at)}function dt(z){return z===s?(l.consume(z),s=void 0,W):z===null?u(z):bt(z)?(f=dt,rt(z)):(l.consume(z),dt)}function at(z){return z===null||z===34||z===39||z===60||z===61||z===96?u(z):z===47||z===62||Jt(z)?yt(z):(l.consume(z),at)}function W(z){return z===47||z===62||Jt(z)?yt(z):u(z)}function $(z){return z===62?(l.consume(z),l.exit("htmlTextData"),l.exit("htmlText"),a):u(z)}function rt(z){return l.exit("htmlTextData"),l.enter("lineEnding"),l.consume(z),l.exit("lineEnding"),mt}function mt(z){return Mt(z)?qt(l,At,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):At(z)}function At(z){return l.enter("htmlTextData"),f(z)}}const Tf={name:"labelEnd",resolveAll:hS,resolveTo:mS,tokenize:dS},cS={tokenize:pS},sS={tokenize:gS},fS={tokenize:yS};function hS(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&&An(l,0,l.length,u),l}function mS(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 d={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",d,a],["enter",g,a]],f=yn(f,l.slice(s+1,s+o+3)),f=yn(f,[["enter",y,a]]),f=yn(f,Wr(a.parser.constructs.insideSpan.null,l.slice(s+o+4,h-3),a)),f=yn(f,[["exit",y,a],l[h-2],l[h-1],["exit",g,a]]),f=yn(f,l.slice(h+1)),f=yn(f,[["exit",d,a]]),An(l,s,l.length,f),l}function dS(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 d;function d(S){return h?h._inactive?p(S):(f=o.parser.defined.includes(zn(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(cS,v,f?v:p)(S):S===91?l.attempt(sS,v,f?y:p)(S):f?v(S):p(S)}function y(S){return l.attempt(fS,v,p)(S)}function v(S){return s.pop(),a(S)}function p(S){return h._balanced=!0,u(S)}}function pS(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):Ny(l,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function f(p){return Jt(p)?cu(l,g)(p):v(p)}function d(p){return u(p)}function g(p){return p===34||p===39||p===40?Dy(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 gS(l,a,u){const o=this;return s;function s(d){return Oy.call(o,l,h,f,"reference","referenceMarker","referenceString")(d)}function h(d){return o.parser.defined.includes(zn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(d):u(d)}function f(d){return u(d)}}function yS(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 vS={name:"labelStartImage",resolveAll:Tf.resolveAll,tokenize:bS};function bS(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"),d):u(g)}function d(g){return g===94&&"_hiddenFootnoteSupport"in o.parser.constructs?u(g):(o._labelStarts=o._labelStarts||[],o._labelStarts.push(s),a(g))}}const xS={name:"labelStartLink",resolveAll:Tf.resolveAll,tokenize:SS};function SS(l,a,u){const o=this;let s;return h;function h(d){return l.enter("labelLink"),l.enter("labelMarker"),l.consume(d),l.exit("labelMarker"),s=l.exit("labelLink"),f}function f(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?u(d):(o._labelStarts=o._labelStarts||[],o._labelStarts.push(s),a(d))}}const Ys={name:"lineEnding",tokenize:ES};function ES(l,a){return u;function u(o){return l.enter("lineEnding"),l.consume(o),l.exit("lineEnding"),qt(l,a,"linePrefix")}}const Zr={name:"thematicBreak",tokenize:TS};function TS(l,a,u){let o=0,s;return h;function h(y){return l.enter("thematicBreak"),f(y)}function f(y){return s=y,d(y)}function d(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"),Mt(y)?qt(l,d,"whitespace")(y):d(y))}}const Xe={continuation:{tokenize:wS},exit:_S,name:"list",tokenize:zS},CS={partial:!0,tokenize:NS},AS={partial:!0,tokenize:kS};function zS(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 d;function d(b){const k=o.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!o.containerState.marker||b===o.containerState.marker:af(b)){if(o.containerState.type||(o.containerState.type=k,l.enter(k,{_container:!0})),k==="listUnordered")return l.enter("listItemPrefix"),b===42||b===45?l.check(Zr,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 af(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(CS,S,p))}function v(b){return o.containerState.initialBlankLine=!0,h++,S(b)}function p(b){return Mt(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 wS(l,a,u){const o=this;return o.containerState._closeFlow=void 0,l.check(mu,s,h);function s(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,qt(l,a,"listItemIndent",o.containerState.size+1)(d)}function h(d){return o.containerState.furtherBlankLines||!Mt(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,f(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l.attempt(AS,a,f)(d))}function f(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,qt(l,l.attempt(Xe,a,u),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function kS(l,a,u){const o=this;return qt(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 _S(l){l.exit(this.containerState.type)}function NS(l,a,u){const o=this;return qt(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!Mt(h)&&f&&f[1].type==="listItemPrefixWhitespace"?a(h):u(h)}}const Dg={name:"setextUnderline",resolveTo:OS,tokenize:DS};function OS(l,a){const u=new Kr;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 d={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",d,a]]),u.add(f+1,0,[["exit",l[s][1],a]]),l[s][1].end={...l[f][1].end}):l[s][1]=d,u.add(l.length,0,[["exit",d,a]]),u.consume(l),l}function DS(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"),d(y)}function d(y){return y===s?(l.consume(y),d):(l.exit("setextHeadingLineSequence"),Mt(y)?qt(l,g,"lineSuffix")(y):g(y))}function g(y){return y===null||bt(y)?(l.exit("setextHeadingLine"),a(y)):u(y)}}const MS={tokenize:jS};function jS(l){const a=this,u=l.attempt(mu,o,l.attempt(this.parser.constructs.flowInitial,s,qt(l,l.attempt(this.parser.constructs.flow,s,l.attempt(Yx,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 RS={resolveAll:jy()},US=My("string"),LS=My("text");function My(l){return{resolveAll:jy(l==="text"?BS:void 0),tokenize:a};function a(u){const o=this,s=this.parser.constructs[l],h=u.attempt(s,f,d);return f;function f(v){return y(v)?h(v):d(v)}function d(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 jy(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 BS(l,a){const u=new Kr;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,d=-1,g=0,y;for(;f--;){const v=h[f];if(typeof v=="string"){for(d=v.length;v.charCodeAt(d-1)===32;)g++,d--;if(d)break;d=-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?d:s.start._bufferIndex+d,_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 HS={42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:zy},qS={91:Zx},YS={[-2]:qs,[-1]:qs,32:qs},VS={35:Px,42:Zr,45:[Dg,Zr],60:nS,61:Dg,95:Zr,96:Ng,126:Ng},GS={38:ky,92:wy},XS={[-5]:Ys,[-4]:Ys,[-3]:Ys,33:vS,38:ky,42:uf,60:[Ex,rS],91:xS,92:[Jx,wy],93:Tf,95:uf,96:Rx},QS={null:[uf,RS]},ZS={null:[42,95]},IS={null:[]},KS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ZS,contentInitial:qS,disable:IS,document:HS,flow:VS,flowInitial:YS,insideSpan:QS,string:GS,text:XS},Symbol.toStringTag,{value:"Module"}));function FS(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=[],d=[];const g={attempt:J(I),check:J(j),consume:K,enter:Z,exit:ft,interrupt:J(j,{interrupt:!0})},y={code:null,containerState:{},defineSkip:H,events:[],now:k,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(q){return f=yn(f,q),B(),f[f.length-1]!==null?[]:(et(a,0),y.events=Wr(h,y.events,y),y.events)}function S(q,F){return $S(b(q),F)}function b(q){return JS(f,q)}function k(){const{_bufferIndex:q,_index:F,line:dt,column:at,offset:W}=o;return{_bufferIndex:q,_index:F,line:dt,column:at,offset:W}}function H(q){s[q.line]=q.column,R()}function B(){for(;o._index<f.length;){const q=f[o._index];if(typeof q=="string"){const F=o._index;for(o._bufferIndex<0&&(o._bufferIndex=0);o._index===F&&o._bufferIndex<q.length;)N(q.charCodeAt(o._bufferIndex))}else N(q)}}function N(q){v=v(q)}function K(q){bt(q)?(o.line++,o.column=1,o.offset+=q===-3?2:1,R()):q!==-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=q}function Z(q,F){const dt=F||{};return dt.type=q,dt.start=k(),y.events.push(["enter",dt,y]),d.push(dt),dt}function ft(q){const F=d.pop();return F.end=k(),y.events.push(["exit",F,y]),F}function I(q,F){et(q,F.from)}function j(q,F){F.restore()}function J(q,F){return dt;function dt(at,W,$){let rt,mt,At,z;return Array.isArray(at)?ot(at):"tokenize"in at?ot([at]):P(at);function P(nt){return ut;function ut(St){const Et=St!==null&&nt[St],zt=St!==null&&nt.null,ct=[...Array.isArray(Et)?Et:Et?[Et]:[],...Array.isArray(zt)?zt:zt?[zt]:[]];return ot(ct)(St)}}function ot(nt){return rt=nt,mt=0,nt.length===0?$:T(nt[mt])}function T(nt){return ut;function ut(St){return z=yt(),At=nt,nt.partial||(y.currentConstruct=nt),nt.name&&y.parser.constructs.disable.null.includes(nt.name)?G():nt.tokenize.call(F?Object.assign(Object.create(y),F):y,g,E,G)(St)}}function E(nt){return q(At,z),W}function G(nt){return z.restore(),++mt<rt.length?T(rt[mt]):$}}}function et(q,F){q.resolveAll&&!h.includes(q)&&h.push(q),q.resolve&&An(y.events,F,y.events.length-F,q.resolve(y.events.slice(F),y)),q.resolveTo&&(y.events=q.resolveTo(y.events,y))}function yt(){const q=k(),F=y.previous,dt=y.currentConstruct,at=y.events.length,W=Array.from(d);return{from:at,restore:$};function $(){o=q,y.previous=F,y.currentConstruct=dt,y.events.length=at,d=W,R()}}function R(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function JS(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 d=f[0];typeof d=="string"?f[0]=d.slice(o):f.shift()}h>0&&f.push(l[s].slice(0,h))}return f}function $S(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 PS(l){const o={constructs:Ty([KS,...(l||{}).extensions||[]]),content:s(px),defined:[],document:s(yx),flow:s(MS),lazy:{},string:s(US),text:s(LS)};return o;function s(h){return f;function f(d){return FS(o,h,d)}}}function WS(l){for(;!_y(l););return l}const Mg=/[\0\t\n\r]/g;function tE(){let l=1,a="",u=!0,o;return s;function s(h,f,d){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;){Mg.lastIndex=y;const v=Mg.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 d&&(o&&g.push(-5),a&&g.push(a),g.push(null)),g}}const eE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nE(l){return l.replace(eE,lE)}function lE(l,a,u){if(a)return a;if(u.charCodeAt(0)===35){const s=u.charCodeAt(1),h=s===120||s===88;return Cy(u.slice(h?2:1),h?16:10)}return Ef(u)||l}const Ry={}.hasOwnProperty;function iE(l,a,u){return a&&typeof a=="object"&&(u=a,a=void 0),aE(u)(WS(PS(u).document().write(tE()(l,a,!0))))}function aE(l){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(Ot),autolinkProtocol:yt,autolinkEmail:yt,atxHeading:h(un),blockQuote:h(zt),characterEscape:yt,characterReference:yt,codeFenced:h(ct),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(ct,f),codeText:h(vt,f),codeTextData:yt,data:yt,codeFlowValue:yt,definition:h(Le),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(ul),hardBreakEscape:h(ze),hardBreakTrailing:h(ze),htmlFlow:h(te,f),htmlFlowData:yt,htmlText:h(te,f),htmlTextData:yt,image:h(Y),label:f,link:h(Ot),listItem:h(Ze),listItemValue:S,listOrdered:h(me,p),listUnordered:h(me),paragraph:h(rl),reference:T,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(un),strong:h(ae),thematicBreak:h(wn)},exit:{atxHeading:g(),atxHeadingSequence:I,autolink:g(),autolinkEmail:Et,autolinkProtocol:St,blockQuote:g(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:nt,characterReference:ut,codeFenced:g(B),codeFencedFence:H,codeFencedFenceInfo:b,codeFencedFenceMeta:k,codeFlowValue:R,codeIndented:g(N),codeText:g(W),codeTextData:R,data:R,definition:g(),definitionDestinationString:ft,definitionLabelString:K,definitionTitleString:Z,emphasis:g(),hardBreakEscape:g(F),hardBreakTrailing:g(F),htmlFlow:g(dt),htmlFlowData:R,htmlText:g(at),htmlTextData:R,image:g(rt),label:At,labelText:mt,lineEnding:q,link:g($),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:E,resourceDestinationString:z,resourceTitleString:P,resource:ot,setextHeading:g(et),setextHeadingLineSequence:J,setextHeadingText:j,strong:g(),thematicBreak:g()}};Uy(a,(l||{}).mdastExtensions||[]);const u={};return o;function o(V){let lt={type:"root",children:[]};const Tt={stack:[lt],tokenStack:[],config:a,enter:d,exit:y,buffer:f,resume:v,data:u},kt=[];let Yt=-1;for(;++Yt<V.length;)if(V[Yt][1].type==="listOrdered"||V[Yt][1].type==="listUnordered")if(V[Yt][0]==="enter")kt.push(Yt);else{const Ne=kt.pop();Yt=s(V,Ne,Yt)}for(Yt=-1;++Yt<V.length;){const Ne=a[V[Yt][0]];Ry.call(Ne,V[Yt][1].type)&&Ne[V[Yt][1].type].call(Object.assign({sliceSerialize:V[Yt][2].sliceSerialize},Tt),V[Yt][1])}if(Tt.tokenStack.length>0){const Ne=Tt.tokenStack[Tt.tokenStack.length-1];(Ne[1]||jg).call(Tt,void 0,Ne[0])}for(lt.position={start:Ul(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:Ul(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},Yt=-1;++Yt<a.transforms.length;)lt=a.transforms[Yt](lt)||lt;return lt}function s(V,lt,Tt){let kt=lt-1,Yt=-1,Ne=!1,Yn,rn,Vn,Gn;for(;++kt<=Tt;){const ve=V[kt];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ve[0]==="enter"?Yt++:Yt--,Gn=void 0;break}case"lineEndingBlank":{ve[0]==="enter"&&(Yn&&!Gn&&!Yt&&!Vn&&(Vn=kt),Gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gn=void 0}if(!Yt&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||Yt===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(Yn){let ol=kt;for(rn=void 0;ol--;){const vn=V[ol];if(vn[1].type==="lineEnding"||vn[1].type==="lineEndingBlank"){if(vn[0]==="exit")continue;rn&&(V[rn][1].type="lineEndingBlank",Ne=!0),vn[1].type="lineEnding",rn=ol}else if(!(vn[1].type==="linePrefix"||vn[1].type==="blockQuotePrefix"||vn[1].type==="blockQuotePrefixWhitespace"||vn[1].type==="blockQuoteMarker"||vn[1].type==="listItemIndent"))break}Vn&&(!rn||Vn<rn)&&(Yn._spread=!0),Yn.end=Object.assign({},rn?V[rn][1].start:ve[1].end),V.splice(rn||kt,0,["exit",Yn,ve[2]]),kt++,Tt++}if(ve[1].type==="listItemPrefix"){const ol={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};Yn=ol,V.splice(kt,0,["enter",ol,ve[2]]),kt++,Tt++,Vn=void 0,Gn=!0}}}return V[lt][1]._spread=Ne,Tt}function h(V,lt){return Tt;function Tt(kt){d.call(this,V(kt),kt),lt&&lt.call(this,kt)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(V,lt,Tt){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([lt,Tt||void 0]),V.position={start:Ul(lt.start),end:void 0}}function g(V){return lt;function lt(Tt){V&&V.call(this,Tt),y.call(this,Tt)}}function y(V,lt){const Tt=this.stack.pop(),kt=this.tokenStack.pop();if(kt)kt[0].type!==V.type&&(lt?lt.call(this,V,kt[0]):(kt[1]||jg).call(this,V,kt[0]));else throw new Error("Cannot close `"+V.type+"` ("+ou({start:V.start,end:V.end})+"): it’s not open");Tt.position.end=Ul(V.end)}function v(){return Sf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function S(V){if(this.data.expectingFirstListItemValue){const lt=this.stack[this.stack.length-2];lt.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function b(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.lang=V}function k(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.meta=V}function H(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.value=V.replace(/(\r?\n|\r)$/g,"")}function K(V){const lt=this.resume(),Tt=this.stack[this.stack.length-1];Tt.label=lt,Tt.identifier=zn(this.sliceSerialize(V)).toLowerCase()}function Z(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.title=V}function ft(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.url=V}function I(V){const lt=this.stack[this.stack.length-1];if(!lt.depth){const Tt=this.sliceSerialize(V).length;lt.depth=Tt}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function J(V){const lt=this.stack[this.stack.length-1];lt.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function et(){this.data.setextHeadingSlurpLineEnding=void 0}function yt(V){const Tt=this.stack[this.stack.length-1].children;let kt=Tt[Tt.length-1];(!kt||kt.type!=="text")&&(kt=ne(),kt.position={start:Ul(V.start),end:void 0},Tt.push(kt)),this.stack.push(kt)}function R(V){const lt=this.stack.pop();lt.value+=this.sliceSerialize(V),lt.position.end=Ul(V.end)}function q(V){const lt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Tt=lt.children[lt.children.length-1];Tt.position.end=Ul(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(lt.type)&&(yt.call(this,V),R.call(this,V))}function F(){this.data.atHardBreak=!0}function dt(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.value=V}function at(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.value=V}function W(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.value=V}function $(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const lt=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=lt,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function rt(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const lt=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=lt,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function mt(V){const lt=this.sliceSerialize(V),Tt=this.stack[this.stack.length-2];Tt.label=nE(lt),Tt.identifier=zn(lt).toLowerCase()}function At(){const V=this.stack[this.stack.length-1],lt=this.resume(),Tt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Tt.type==="link"){const kt=V.children;Tt.children=kt}else Tt.alt=lt}function z(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.url=V}function P(){const V=this.resume(),lt=this.stack[this.stack.length-1];lt.title=V}function ot(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function E(V){const lt=this.resume(),Tt=this.stack[this.stack.length-1];Tt.label=lt,Tt.identifier=zn(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function G(V){this.data.characterReferenceType=V.type}function nt(V){const lt=this.sliceSerialize(V),Tt=this.data.characterReferenceType;let kt;Tt?(kt=Cy(lt,Tt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):kt=Ef(lt);const Yt=this.stack[this.stack.length-1];Yt.value+=kt}function ut(V){const lt=this.stack.pop();lt.position.end=Ul(V.end)}function St(V){R.call(this,V);const lt=this.stack[this.stack.length-1];lt.url=this.sliceSerialize(V)}function Et(V){R.call(this,V);const lt=this.stack[this.stack.length-1];lt.url="mailto:"+this.sliceSerialize(V)}function zt(){return{type:"blockquote",children:[]}}function ct(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function Le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ul(){return{type:"emphasis",children:[]}}function un(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function te(){return{type:"html",value:""}}function Y(){return{type:"image",title:null,url:"",alt:null}}function Ot(){return{type:"link",title:null,url:"",children:[]}}function me(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function Ze(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function rl(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function wn(){return{type:"thematicBreak"}}}function Ul(l){return{line:l.line,column:l.column,offset:l.offset}}function Uy(l,a){let u=-1;for(;++u<a.length;){const o=a[u];Array.isArray(o)?Uy(l,o):uE(l,o)}}function uE(l,a){let u;for(u in a)if(Ry.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 jg(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 rE(l){const a=this;a.parser=u;function u(o){return iE(o,{...a.data("settings"),...l,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function oE(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 cE(l,a){const u={type:"element",tagName:"br",properties:{},children:[]};return l.patch(a,u),[l.applyData(a,u),{type:"text",value:`
53
+ `}]}function sE(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 fE(l,a){const u={type:"element",tagName:"del",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function hE(l,a){const u={type:"element",tagName:"em",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function mE(l,a){const u=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",o=String(a.identifier).toUpperCase(),s=ua(o.toLowerCase()),h=l.footnoteOrder.indexOf(o);let f,d=l.footnoteCounts.get(o);d===void 0?(d=0,l.footnoteOrder.push(o),f=l.footnoteOrder.length):f=h+1,d+=1,l.footnoteCounts.set(o,d);const g={type:"element",tagName:"a",properties:{href:"#"+u+"fn-"+s,id:u+"fnref-"+s+(d>1?"-"+d:""),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 dE(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 pE(l,a){if(l.options.allowDangerousHtml){const u={type:"raw",value:a.value};return l.patch(a,u),l.applyData(a,u)}}function Ly(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 gE(l,a){const u=String(a.identifier).toUpperCase(),o=l.definitionById.get(u);if(!o)return Ly(l,a);const s={src:ua(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 yE(l,a){const u={src:ua(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 vE(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 bE(l,a){const u=String(a.identifier).toUpperCase(),o=l.definitionById.get(u);if(!o)return Ly(l,a);const s={href:ua(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 xE(l,a){const u={href:ua(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 SE(l,a,u){const o=l.all(a),s=u?EE(u):By(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 d=-1;for(;++d<o.length;){const v=o[d];(s||d!==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 EE(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=By(u[o])}return a}function By(l){const a=l.spread;return a??l.children.length>1}function TE(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 CE(l,a){const u={type:"element",tagName:"p",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function AE(l,a){const u={type:"root",children:l.wrap(l.all(a))};return l.patch(a,u),l.applyData(a,u)}function zE(l,a){const u={type:"element",tagName:"strong",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}function wE(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)},d=yf(a.children[1]),g=gy(a.children[a.children.length-1]);d&&g&&(f.position={start:d,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 kE(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,d=f?f.length:a.children.length;let g=-1;const y=[];for(;++g<d;){const p=a.children[g],S={},b=f?f[g]:void 0;b&&(S.align=b);let k={type:"element",tagName:h,properties:S,children:[]};p&&(k.children=l.all(p),l.patch(p,k),k=l.applyData(p,k)),y.push(k)}const v={type:"element",tagName:"tr",properties:{},children:l.wrap(y,!0)};return l.patch(a,v),l.applyData(a,v)}function _E(l,a){const u={type:"element",tagName:"td",properties:{},children:l.all(a)};return l.patch(a,u),l.applyData(a,u)}const Rg=9,Ug=32;function NE(l){const a=String(l),u=/\r?\n|\r/g;let o=u.exec(a),s=0;const h=[];for(;o;)h.push(Lg(a.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=u.exec(a);return h.push(Lg(a.slice(s),s>0,!1)),h.join("")}function Lg(l,a,u){let o=0,s=l.length;if(a){let h=l.codePointAt(o);for(;h===Rg||h===Ug;)o++,h=l.codePointAt(o)}if(u){let h=l.codePointAt(s-1);for(;h===Rg||h===Ug;)s--,h=l.codePointAt(s-1)}return s>o?l.slice(o,s):""}function OE(l,a){const u={type:"text",value:NE(String(a.value))};return l.patch(a,u),l.applyData(a,u)}function DE(l,a){const u={type:"element",tagName:"hr",properties:{},children:[]};return l.patch(a,u),l.applyData(a,u)}const ME={blockquote:oE,break:cE,code:sE,delete:fE,emphasis:hE,footnoteReference:mE,heading:dE,html:pE,imageReference:gE,image:yE,inlineCode:vE,linkReference:bE,link:xE,listItem:SE,list:TE,paragraph:CE,root:AE,strong:zE,table:wE,tableCell:_E,tableRow:kE,text:OE,thematicBreak:DE,toml:Vr,yaml:Vr,definition:Vr,footnoteDefinition:Vr};function Vr(){}const Hy=-1,to=0,su=1,Jr=2,Cf=3,Af=4,zf=5,wf=6,qy=7,Yy=8,{defineProperty:jE}=Object,Vy=typeof self=="object"?self:globalThis,Bg=(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 Vy[l](a)},RE=(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 to:case Hy:return u(f,s);case su:{const d=u([],s);for(const g of f)d.push(o(g));return d}case Jr:{const d=u({},s);for(const[g,y]of f){const v=o(g),p=o(y);v==="__proto__"?jE(d,v,{value:p,configurable:!0,enumerable:!0,writable:!0}):d[v]=p}return d}case Cf:return u(new Date(f),s);case Af:{const{source:d,flags:g}=f;return u(new RegExp(d,g),s)}case zf:{const d=u(new Map,s);for(const[g,y]of f)d.set(o(g),o(y));return d}case wf:{const d=u(new Set,s);for(const g of f)d.add(o(g));return d}case qy:{const{name:d,message:g}=f;return u(typeof Vy[d]=="function"?Bg(d,g):new Error(g),s)}case Yy: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:d}=new Uint8Array(f);return u(new DataView(d),f)}case"-0":return-0}return u(Bg(h,f),s)};return o},Hg=l=>RE(new Map,l)(0),ci="",{toString:UE}={},{keys:LE,is:BE}=Object,au=l=>{const a=typeof l;if(a!=="object"||!l)return[to,a];const u=UE.call(l).slice(8,-1);switch(u){case"Array":return[su,ci];case"Object":return[Jr,ci];case"Date":return[Cf,ci];case"RegExp":return[Af,ci];case"Map":return[zf,ci];case"Set":return[wf,ci];case"DataView":return[su,u]}return u.includes("Array")?[su,u]:l instanceof Error?[qy,l.name||"Error"]:[Jr,u]},Gr=([l,a])=>l===to&&(a==="function"||a==="symbol"),HE=(l,a,u,o)=>{const s=(f,d)=>{const g=o.push(f)-1;return u.set(d,g),g},h=f=>{if(u.has(f))return u.get(f);let[d,g]=au(f);switch(d){case to:{let v=f;switch(g){case"bigint":d=Yy,v=f.toString();break;case"number":if(!f&&BE(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([Hy],f)}return s([d,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([d,v],f);for(const S of f)v.push(h(S));return p}case Jr:{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([d,v],f);for(const S of LE(f))(l||!Gr(au(f[S])))&&v.push([h(S),h(f[S])]);return p}case Cf:return s([d,isNaN(f.getTime())?ci:f.toISOString()],f);case Af:{const{source:v,flags:p}=f;return s([d,{source:v,flags:p}],f)}case zf:{const v=[],p=s([d,v],f);for(const[S,b]of f)(l||!(Gr(au(S))||Gr(au(b))))&&v.push([h(S),h(b)]);return p}case wf:{const v=[],p=s([d,v],f);for(const S of f)(l||!Gr(au(S)))&&v.push(h(S));return p}}const{message:y}=f;return s([d,{name:g,message:y}],f)};return h},qg=(l,{json:a,lossy:u}={})=>{const o=[];return HE(!(a||u),!!a,new Map,o)(l),o},$r=typeof structuredClone=="function"?(l,a)=>a&&("json"in a||"lossy"in a)?Hg(qg(l,a)):structuredClone(l):(l,a)=>Hg(qg(l,a));function qE(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 YE(l,a){return"Back to reference "+(l+1)+(a>1?"-"+a:"")}function VE(l){const a=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",u=l.options.footnoteBackContent||qE,o=l.options.footnoteBackLabel||YE,s=l.options.footnoteLabel||"Footnotes",h=l.options.footnoteLabelTagName||"h2",f=l.options.footnoteLabelProperties||{className:["sr-only"]},d=[];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=ua(p.toLowerCase());let b=0;const k=[],H=l.footnoteCounts.get(p);for(;H!==void 0&&++b<=H;){k.length>0&&k.push({type:"text",value:" "});let K=typeof u=="string"?u:u(g,b);typeof K=="string"&&(K={type:"text",value:K}),k.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(K)?K:[K]})}const B=v[v.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const K=B.children[B.children.length-1];K&&K.type==="text"?K.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...k)}else v.push(...k);const N={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:l.wrap(v,!0)};l.patch(y,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...$r(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
57
+ `},{type:"element",tagName:"ol",properties:{},children:l.wrap(d,!0)},{type:"text",value:`
58
+ `}]}}const eo=(function(l){if(l==null)return ZE;if(typeof l=="function")return no(l);if(typeof l=="object")return Array.isArray(l)?GE(l):XE(l);if(typeof l=="string")return QE(l);throw new Error("Expected function, string, or object as test")});function GE(l){const a=[];let u=-1;for(;++u<l.length;)a[u]=eo(l[u]);return no(o);function o(...s){let h=-1;for(;++h<a.length;)if(a[h].apply(this,s))return!0;return!1}}function XE(l){const a=l;return no(u);function u(o){const s=o;let h;for(h in l)if(s[h]!==a[h])return!1;return!0}}function QE(l){return no(a);function a(u){return u&&u.type===l}}function no(l){return a;function a(u,o,s){return!!(IE(u)&&l.call(this,u,typeof o=="number"?o:void 0,s||void 0))}}function ZE(){return!0}function IE(l){return l!==null&&typeof l=="object"&&"type"in l}const Gy=[],KE=!0,of=!1,FE="skip";function Xy(l,a,u,o){let s;typeof a=="function"&&typeof u!="function"?(o=u,u=a):s=a;const h=eo(s),f=o?-1:1;d(l,void 0,[])();function d(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=Gy,k,H,B;if((!a||h(g,y,v[v.length-1]||void 0))&&(b=JE(u(g,v)),b[0]===of))return b;if("children"in g&&g.children){const N=g;if(N.children&&b[0]!==FE)for(H=(o?N.children.length:-1)+f,B=v.concat(N);H>-1&&H<N.children.length;){const K=N.children[H];if(k=d(K,H,B)(),k[0]===of)return k;H=typeof k[1]=="number"?k[1]:H+f}}return b}}}function JE(l){return Array.isArray(l)?l:typeof l=="number"?[KE,l]:l==null?Gy:[l]}function kf(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),Xy(l,h,d,s);function d(g,y){const v=y[y.length-1],p=v?v.children.indexOf(g):void 0;return f(g,p,v)}}const cf={}.hasOwnProperty,$E={};function PE(l,a){const u=a||$E,o=new Map,s=new Map,h=new Map,f={...ME,...u.handlers},d={all:y,applyData:tT,definitionById:o,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:g,options:u,patch:WE,wrap:nT};return kf(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)}}),d;function g(v,p){const S=v.type,b=d.handlers[S];if(cf.call(d.handlers,S)&&b)return b(d,v,p);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in v){const{children:H,...B}=v,N=$r(B);return N.children=d.all(v),N}return $r(v)}return(d.options.unknownHandler||eT)(d,v,p)}function y(v){const p=[];if("children"in v){const S=v.children;let b=-1;for(;++b<S.length;){const k=d.one(S[b],v);if(k){if(b&&S[b-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=Yg(k.value)),!Array.isArray(k)&&k.type==="element")){const H=k.children[0];H&&H.type==="text"&&(H.value=Yg(H.value))}Array.isArray(k)?p.push(...k):p.push(k)}}}return p}}function WE(l,a){l.position&&(a.position=Yb(l))}function tT(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,$r(h)),"children"in u&&u.children&&s!==null&&s!==void 0&&(u.children=s)}return u}function eT(l,a){const u=a.data||{},o="value"in a&&!(cf.call(u,"hProperties")||cf.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 nT(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 Yg(l){let a=0,u=l.charCodeAt(a);for(;u===9||u===32;)a++,u=l.charCodeAt(a);return l.slice(a)}function Vg(l,a){const u=PE(l,a),o=u.one(l,void 0),s=VE(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 lT(l,a){return l&&"run"in l?async function(u,o){const s=Vg(u,{file:o,...a});await l.run(s,o)}:function(u,o){return Vg(u,{file:o,...l||a})}}function Gg(l){if(l)throw l}var Vs,Xg;function iT(){if(Xg)return Vs;Xg=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},d=function(y,v){if(v==="__proto__")if(l.call(y,v)){if(o)return o(y,v).value}else return;return y[v]};return Vs=function g(){var y,v,p,S,b,k,H=arguments[0],B=1,N=arguments.length,K=!1;for(typeof H=="boolean"&&(K=H,H=arguments[1]||{},B=2),(H==null||typeof H!="object"&&typeof H!="function")&&(H={});B<N;++B)if(y=arguments[B],y!=null)for(v in y)p=d(H,v),S=d(y,v),H!==S&&(K&&S&&(h(S)||(b=s(S)))?(b?(b=!1,k=p&&s(p)?p:[]):k=p&&h(p)?p:{},f(H,{name:v,newValue:g(K,k,S)})):typeof S<"u"&&f(H,{name:v,newValue:S}));return H},Vs}var aT=iT();const Gs=ry(aT);function sf(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 uT(){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);d(null,...s);function d(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?rT(v,d)(...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 rT(l,a){let u;return o;function o(...f){const d=l.length>f.length;let g;d&&f.push(s);try{g=l.apply(this,f)}catch(y){const v=y;if(d&&u)throw v;return s(v)}d||(g&&g.then&&typeof g.then=="function"?g.then(h,s):g instanceof Error?s(g):h(g))}function s(f,...d){u||(u=!0,a(f,...d))}function h(f){s(null,f)}}const Hn={basename:oT,dirname:cT,extname:sT,join:fT,sep:"/"};function oT(l,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');du(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,d=a.length-1;for(;s--;)if(l.codePointAt(s)===47){if(h){u=s+1;break}}else f<0&&(h=!0,f=s+1),d>-1&&(l.codePointAt(s)===a.codePointAt(d--)?d<0&&(o=s):(d=-1,o=f));return u===o?o=f:o<0&&(o=l.length),l.slice(u,o)}function cT(l){if(du(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 sT(l){du(l);let a=l.length,u=-1,o=0,s=-1,h=0,f;for(;a--;){const d=l.codePointAt(a);if(d===47){if(f){o=a+1;break}continue}u<0&&(f=!0,u=a+1),d===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 fT(...l){let a=-1,u;for(;++a<l.length;)du(l[a]),l[a]&&(u=u===void 0?l[a]:u+"/"+l[a]);return u===void 0?".":hT(u)}function hT(l){du(l);const a=l.codePointAt(0)===47;let u=mT(l,!a);return u.length===0&&!a&&(u="."),u.length>0&&l.codePointAt(l.length-1)===47&&(u+="/"),a?"/"+u:u}function mT(l,a){let u="",o=0,s=-1,h=0,f=-1,d,g;for(;++f<=l.length;){if(f<l.length)d=l.codePointAt(f);else{if(d===47)break;d=47}if(d===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 d===46&&h>-1?h++:h=-1}return u}function du(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}const dT={cwd:pT};function pT(){return"/"}function ff(l){return!!(l!==null&&typeof l=="object"&&"href"in l&&l.href&&"protocol"in l&&l.protocol&&l.auth===void 0)}function gT(l){if(typeof l=="string")l=new URL(l);else if(!ff(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 yT(l)}function yT(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 Xs=["history","path","basename","stem","extname","dirname"];class Qy{constructor(a){let u;a?ff(a)?u={path:a}:typeof a=="string"||vT(a)?u={value:a}:u=a:u={},this.cwd="cwd"in u?"":dT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Xs.length;){const h=Xs[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)Xs.includes(s)||(this[s]=u[s])}get basename(){return typeof this.path=="string"?Hn.basename(this.path):void 0}set basename(a){Zs(a,"basename"),Qs(a,"basename"),this.path=Hn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Hn.dirname(this.path):void 0}set dirname(a){Qg(this.basename,"dirname"),this.path=Hn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Hn.extname(this.path):void 0}set extname(a){if(Qs(a,"extname"),Qg(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=Hn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){ff(a)&&(a=gT(a)),Zs(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Hn.basename(this.path,this.extname):void 0}set stem(a){Zs(a,"stem"),Qs(a,"stem"),this.path=Hn.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 Qs(l,a){if(l&&l.includes(Hn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Hn.sep+"`")}function Zs(l,a){if(!l)throw new Error("`"+a+"` cannot be empty")}function Qg(l,a){if(!l)throw new Error("Setting `"+a+"` requires `path` to be set too")}function vT(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const bT=(function(l){const o=this.constructor.prototype,s=o[l],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,o),h}),xT={}.hasOwnProperty;class _f extends bT{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=uT()}copy(){const a=new _f;let u=-1;for(;++u<this.attachers.length;){const o=this.attachers[u];a.use(...o)}return a.data(Gs(!0,{},this.namespace)),a}data(a,u){return typeof a=="string"?arguments.length===2?(Fs("data",this.frozen),this.namespace[a]=u,this):xT.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Fs("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=Xr(a),o=this.parser||this.Parser;return Is("parse",o),o(String(u),u)}process(a,u){const o=this;return this.freeze(),Is("process",this.parser||this.Parser),Ks("process",this.compiler||this.Compiler),u?s(void 0,u):new Promise(s);function s(h,f){const d=Xr(a),g=o.parse(d);o.run(g,d,function(v,p,S){if(v||!p||!S)return y(v);const b=p,k=o.stringify(b,S);TT(k)?S.value=k:S.result=k,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(),Is("processSync",this.parser||this.Parser),Ks("processSync",this.compiler||this.Compiler),this.process(a,s),Ig("processSync","process",u),o;function s(h,f){u=!0,Gg(h),o=f}}run(a,u,o){Zg(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,d){const g=Xr(u);s.run(a,g,y);function y(v,p,S){const b=p||a;v?d(v):f?f(b):o(void 0,b,S)}}}runSync(a,u){let o=!1,s;return this.run(a,u,h),Ig("runSync","run",o),s;function h(f,d){Gg(f),s=d,o=!0}}stringify(a,u){this.freeze();const o=Xr(u),s=this.compiler||this.Compiler;return Ks("stringify",s),Zg(a),s(a,o)}use(a,...u){const o=this.attachers,s=this.namespace;if(Fs("use",this.frozen),a!=null)if(typeof a=="function")g(a,u);else if(typeof a=="object")Array.isArray(a)?d(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");d(y.plugins),y.settings&&(s.settings=Gs(!0,s.settings,y.settings))}function d(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,...k]=v;const H=o[S][1];sf(H)&&sf(b)&&(b=Gs(!0,H,b)),o[S]=[y,b,...k]}}}}const ST=new _f().freeze();function Is(l,a){if(typeof a!="function")throw new TypeError("Cannot `"+l+"` without `parser`")}function Ks(l,a){if(typeof a!="function")throw new TypeError("Cannot `"+l+"` without `compiler`")}function Fs(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 Zg(l){if(!sf(l)||typeof l.type!="string")throw new TypeError("Expected node, got `"+l+"`")}function Ig(l,a,u){if(!u)throw new Error("`"+l+"` finished async. Use `"+a+"` instead")}function Xr(l){return ET(l)?l:new Qy(l)}function ET(l){return!!(l&&typeof l=="object"&&"message"in l&&"messages"in l)}function TT(l){return typeof l=="string"||CT(l)}function CT(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const AT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kg=[],Fg={allowDangerousHtml:!0},zT=/^(https?|ircs?|mailto|xmpp)$/i,wT=[{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 kT(l){const a=_T(l),u=NT(l);return OT(a.runSync(a.parse(u),u),l)}function _T(l){const a=l.rehypePlugins||Kg,u=l.remarkPlugins||Kg,o=l.remarkRehypeOptions?{...l.remarkRehypeOptions,...Fg}:Fg;return ST().use(rE).use(u).use(lT,o).use(a)}function NT(l){const a=l.children||"",u=new Qy;return typeof a=="string"&&(u.value=a),u}function OT(l,a){const u=a.allowedElements,o=a.allowElement,s=a.components,h=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,g=a.urlTransform||DT;for(const v of wT)Object.hasOwn(a,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+AT+v.id,void 0);return kf(l,y),Zb(l,{Fragment:A.Fragment,components:s,ignoreInvalidStyle:!0,jsx:A.jsx,jsxs:A.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 Hs)if(Object.hasOwn(Hs,b)&&Object.hasOwn(v.properties,b)){const k=v.properties[b],H=Hs[b];(H===null||H.includes(v.tagName))&&(v.properties[b]=g(String(k||""),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 d&&v.children?S.children.splice(p,1,...v.children):S.children.splice(p,1),p}}}function DT(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||zT.test(l.slice(0,a))?l:""}function Jg(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 MT(l){if(typeof l!="string")throw new TypeError("Expected a string");return l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function jT(l,a,u){const s=eo((u||{}).ignore||[]),h=RT(a);let f=-1;for(;++f<h.length;)Xy(l,"text",d);function d(y,v){let p=-1,S;for(;++p<v.length;){const b=v[p],k=S?S.children:void 0;if(s(b,k?k.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 k=0;const B=p.children.indexOf(y);let N=!1,K=[];S.lastIndex=0;let Z=S.exec(y.value);for(;Z;){const ft=Z.index,I={index:Z.index,input:Z.input,stack:[...v,y]};let j=b(...Z,I);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?S.lastIndex=ft+1:(k!==ft&&K.push({type:"text",value:y.value.slice(k,ft)}),Array.isArray(j)?K.push(...j):j&&K.push(j),k=ft+Z[0].length,N=!0),!S.global)break;Z=S.exec(y.value)}return N?(k<y.value.length&&K.push({type:"text",value:y.value.slice(k)}),p.children.splice(B,1,...K)):K=[y],B+K.length}}function RT(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([UT(s[0]),LT(s[1])])}return a}function UT(l){return typeof l=="string"?new RegExp(MT(l),"g"):l}function LT(l){return typeof l=="function"?l:function(){return l}}const Js="phrasing",$s=["autolink","link","image","label"];function BT(){return{transforms:[QT],enter:{literalAutolink:qT,literalAutolinkEmail:Ps,literalAutolinkHttp:Ps,literalAutolinkWww:Ps},exit:{literalAutolink:XT,literalAutolinkEmail:GT,literalAutolinkHttp:YT,literalAutolinkWww:VT}}}function HT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Js,notInConstruct:$s},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Js,notInConstruct:$s},{character:":",before:"[ps]",after:"\\/",inConstruct:Js,notInConstruct:$s}]}}function qT(l){this.enter({type:"link",title:null,url:"",children:[]},l)}function Ps(l){this.config.enter.autolinkProtocol.call(this,l)}function YT(l){this.config.exit.autolinkProtocol.call(this,l)}function VT(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 GT(l){this.config.exit.autolinkEmail.call(this,l)}function XT(l){this.exit(l)}function QT(l){jT(l,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),IT]],{ignore:["link","linkReference"]})}function ZT(l,a,u,o,s){let h="";if(!Zy(s)||(/^w/i.test(a)&&(u=a+u,a="",h="http://"),!KT(u)))return!1;const f=FT(u+o);if(!f[0])return!1;const d={type:"link",title:null,url:h+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function IT(l,a,u,o){return!Zy(o,!0)||/[-\d_]$/.test(u)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+u,children:[{type:"text",value:a+"@"+u}]}}function KT(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 FT(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=Jg(l,"(");let h=Jg(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 Zy(l,a){const u=l.input.charCodeAt(l.index-1);return(l.index===0||hi(u)||Pr(u))&&(!a||u!==47)}Iy.peek=i2;function JT(){this.buffer()}function $T(l){this.enter({type:"footnoteReference",identifier:"",label:""},l)}function PT(){this.buffer()}function WT(l){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},l)}function t2(l){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=zn(this.sliceSerialize(l)).toLowerCase(),u.label=a}function e2(l){this.exit(l)}function n2(l){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=zn(this.sliceSerialize(l)).toLowerCase(),u.label=a}function l2(l){this.exit(l)}function i2(){return"["}function Iy(l,a,u,o){const s=u.createTracker(o);let h=s.move("[^");const f=u.enter("footnoteReference"),d=u.enter("reference");return h+=s.move(u.safe(u.associationId(l),{after:"]",before:h})),d(),f(),h+=s.move("]"),h}function a2(){return{enter:{gfmFootnoteCallString:JT,gfmFootnoteCall:$T,gfmFootnoteDefinitionLabelString:PT,gfmFootnoteDefinition:WT},exit:{gfmFootnoteCallString:t2,gfmFootnoteCall:e2,gfmFootnoteDefinitionLabelString:n2,gfmFootnoteDefinition:l2}}}function u2(l){let a=!1;return l&&l.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:u,footnoteReference:Iy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function u(o,s,h,f){const d=h.createTracker(f);let g=d.move("[^");const y=h.enter("footnoteDefinition"),v=h.enter("label");return g+=d.move(h.safe(h.associationId(o),{before:g,after:"]"})),v(),g+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),g+=d.move((a?`
63
+ `:" ")+h.indentLines(h.containerFlow(o,d.current()),a?Ky:r2))),y(),g}}function r2(l,a,u){return a===0?l:Ky(l,a,u)}function Ky(l,a,u){return(u?"":" ")+l}const o2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Nf.attention=m2;Nf.peek=d2;function c2(){return{canContainEols:["delete"],enter:{strikethrough:f2},exit:{strikethrough:h2}}}function s2(){return{handlers:{delete:Nf},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:o2}]}}function f2(l){this.enter({type:"delete",children:[],position:void 0},l)}function h2(l){this.exit(l)}function Nf(l,a,u,o){const s=u.createTracker(o),h=u.stack.includes("strikethrough")?"~":"~~",f=u.enter("strikethrough");let d=s.move(h);return d+=u.containerPhrasing(l,{...s.current(),before:d,after:"~"}),d+=s.move(h),f(),d}function m2(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function d2(){return"~"}function p2(l){return l.length}function g2(l,a){const u=a||{},o=(u.align||[]).concat(),s=u.stringLength||p2,h=[],f=[],d=[],g=[];let y=0,v=-1;for(;++v<l.length;){const H=[],B=[];let N=-1;for(l[v].length>y&&(y=l[v].length);++N<l[v].length;){const K=y2(l[v][N]);if(u.alignDelimiters!==!1){const Z=s(K);B[N]=Z,(g[N]===void 0||Z>g[N])&&(g[N]=Z)}H.push(K)}f[v]=H,d[v]=B}let p=-1;if(typeof o=="object"&&"length"in o)for(;++p<y;)h[p]=$g(o[p]);else{const H=$g(o);for(;++p<y;)h[p]=H}p=-1;const S=[],b=[];for(;++p<y;){const H=h[p];let B="",N="";H===99?(B=":",N=":"):H===108?B=":":H===114&&(N=":");let K=u.alignDelimiters===!1?1:Math.max(1,g[p]-B.length-N.length);const Z=B+"-".repeat(K)+N;u.alignDelimiters!==!1&&(K=B.length+K+N.length,K>g[p]&&(g[p]=K),b[p]=K),S[p]=Z}f.splice(1,0,S),d.splice(1,0,b),v=-1;const k=[];for(;++v<f.length;){const H=f[v],B=d[v];p=-1;const N=[];for(;++p<y;){const K=H[p]||"";let Z="",ft="";if(u.alignDelimiters!==!1){const I=g[p]-(B[p]||0),j=h[p];j===114?Z=" ".repeat(I):j===99?I%2?(Z=" ".repeat(I/2+.5),ft=" ".repeat(I/2-.5)):(Z=" ".repeat(I/2),ft=Z):ft=" ".repeat(I)}u.delimiterStart!==!1&&!p&&N.push("|"),u.padding!==!1&&!(u.alignDelimiters===!1&&K==="")&&(u.delimiterStart!==!1||p)&&N.push(" "),u.alignDelimiters!==!1&&N.push(Z),N.push(K),u.alignDelimiters!==!1&&N.push(ft),u.padding!==!1&&N.push(" "),(u.delimiterEnd!==!1||p!==y-1)&&N.push("|")}k.push(u.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return k.join(`
64
+ `)}function y2(l){return l==null?"":String(l)}function $g(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 v2=eo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function b2(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()),x2);return s(),f}function x2(l,a,u){return">"+(u?"":" ")+l}function S2(l,a){return Pg(l,a.inConstruct,!0)&&!Pg(l,a.notInConstruct,!1)}function Pg(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 Wg(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&&S2(u.stack,h))return/[\t ]/.test(o.before)?"":" "}return`\\
66
+ `}function E2(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 T2(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 C2(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 A2(l,a,u,o){const s=C2(u),h=l.value||"";if(T2(l,u)){const p=u.enter("codeIndented"),S=u.indentLines(h,z2);return p(),S}const f=u.createTracker(o),d=s.repeat(Math.max(E2(h,s)+1,3)),g=u.enter("codeFenced"),y=s==="`"?"GraveAccent":"Tilde";let v=f.move(d);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(d),g(),v}function z2(l,a,u){return(u?"":" ")+l}function Of(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 w2(l,a,u,o){const s=Of(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("definition");let d=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("]: "),d(),!l.url||/[\0- \u007F]/.test(l.url)?(d=u.enter("destinationLiteral"),y+=g.move("<"),y+=g.move(u.safe(l.url,{before:y,after:">",...g.current()})),y+=g.move(">")):(d=u.enter("destinationRaw"),y+=g.move(u.safe(l.url,{before:y,after:l.title?" ":`
70
+ `,...g.current()}))),d(),l.title&&(d=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),d()),f(),y}function k2(l){const a=l.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}Df.attention=_2;Df.peek=N2;function Df(l,a,u,o){const s=u.enter("phrasing"),h=u.containerPhrasing({type:"root",children:[l]},o);return s(),h}function _2(l,a){return{construct:"emphasis",markers:k2(a)==="*"?["*","_"]:["_","*"],sizes:[1]}}function N2(l,a,u){return u.options.emphasis||"*"}function O2(l){return"&#x"+l.toString(16).toUpperCase()+";"}function D2(l,a){let u=!1;return kf(l,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return u=!0,of}),!!((!l.depth||l.depth<3)&&Sf(l)&&(a.options.setext||u))}function M2(l,a,u,o){const s=Math.max(Math.min(6,l.depth||1),1),h=u.createTracker(o);if(D2(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),d=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=O2(v)+y.slice(1)),y=y?f+" "+y:f,u.options.closeAtx&&(y+=" "+f),g(),d(),y}Fy.peek=j2;function Fy(l){return l.value||""}function j2(){return"<"}Jy.peek=R2;function Jy(l,a,u,o){const s=Of(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("image");let d=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("]("),d(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(d=u.enter("destinationLiteral"),y+=g.move("<"),y+=g.move(u.safe(l.url,{before:y,after:">",...g.current()})),y+=g.move(">")):(d=u.enter("destinationRaw"),y+=g.move(u.safe(l.url,{before:y,after:l.title?" ":")",...g.current()}))),d(),l.title&&(d=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),d()),y+=g.move(")"),f(),y}function R2(){return"!"}$y.peek=U2;function $y(l,a,u,o){const s=l.referenceType,h=u.enter("imageReference");let f=u.enter("label");const d=u.createTracker(o);let g=d.move("![");const y=u.safe(l.alt,{before:g,after:"]",...d.current()});g+=d.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:"]",...d.current()});return f(),u.stack=v,h(),s==="full"||!y||y!==p?g+=d.move(p+"]"):s==="shortcut"?g=g.slice(0,-1):g+=d.move("]"),g}function U2(){return"!"}Py.peek=L2;function Py(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],d=u.compilePattern(f);if(!f.atBreak)continue;let g;for(;g=d.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 L2(){return"`"}function Wy(l,a){const u=Sf(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))}t1.peek=B2;function t1(l,a,u,o){const s=Of(u),h=s==='"'?"Quote":"Apostrophe",f=u.createTracker(o);if(Wy(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 d=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(")"),d(),y}function B2(l,a,u){return Wy(l,u)?"<":"["}e1.peek=H2;function e1(l,a,u,o){const s=l.referenceType,h=u.enter("linkReference");let f=u.enter("label");const d=u.createTracker(o);let g=d.move("[");const y=u.containerPhrasing(l,{before:g,after:"]",...d.current()});g+=d.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:"]",...d.current()});return f(),u.stack=v,h(),s==="full"||!y||y!==p?g+=d.move(p+"]"):s==="shortcut"?g=g.slice(0,-1):g+=d.move("]"),g}function H2(){return"["}function Mf(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 q2(l){const a=Mf(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 Y2(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 n1(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 V2(l,a,u,o){const s=u.enter("list"),h=u.bulletCurrent;let f=l.ordered?Y2(u):Mf(u);const d=l.ordered?f==="."?")":".":q2(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),n1(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=d),u.bulletCurrent=f;const y=u.containerFlow(l,o);return u.bulletLastUsed=f,u.bulletCurrent=h,s(),y}function G2(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 X2(l,a,u,o){const s=G2(u);let h=u.bulletCurrent||Mf(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 d=u.createTracker(o);d.move(h+" ".repeat(f-h.length)),d.shift(f);const g=u.enter("listItem"),y=u.indentLines(u.containerFlow(l,d.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 Q2(l,a,u,o){const s=u.enter("paragraph"),h=u.enter("phrasing"),f=u.containerPhrasing(l,o);return h(),s(),f}function Z2(l,a,u,o){if(!l.children.some(function(d){return v2(d)}))return u.containerFlow(l,o);const h=u.enter("phrasing"),f=u.containerPhrasing(l,o);return h(),f}function I2(l){const a=l.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}jf.attention=K2;jf.peek=F2;function jf(l,a,u,o){const s=u.enter("phrasing"),h=u.containerPhrasing({type:"root",children:[l]},o);return s(),h}function K2(l,a){return{construct:"strong",markers:I2(a)==="*"?["*","_"]:["_","*"],sizes:[2]}}function F2(l,a,u){return u.options.strong||"*"}function J2(l,a,u,o){return u.safe(l.value,o)}function $2(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 P2(l,a,u){const o=(n1(u)+(u.options.ruleSpaces?" ":"")).repeat($2(u));return u.options.ruleSpaces?o.slice(0,-1):o}const l1={blockquote:b2,break:Wg,code:A2,definition:w2,emphasis:Df,hardBreak:Wg,heading:M2,html:Fy,image:Jy,imageReference:$y,inlineCode:Py,link:t1,linkReference:e1,list:V2,listItem:X2,paragraph:Q2,root:Z2,strong:jf,text:J2,thematicBreak:P2};function W2(){return{enter:{table:tC,tableData:ty,tableHeader:ty,tableRow:nC},exit:{codeText:lC,table:eC,tableData:Ws,tableHeader:Ws,tableRow:Ws}}}function tC(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 eC(l){this.exit(l),this.data.inTable=void 0}function nC(l){this.enter({type:"tableRow",children:[]},l)}function Ws(l){this.exit(l)}function ty(l){this.enter({type:"tableCell",children:[]},l)}function lC(l){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,iC));const u=this.stack[this.stack.length-1];u.type,u.value=a,this.exit(l)}function iC(l,a){return a==="|"?a:l}function aC(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:d}};function f(b,k,H,B){return y(v(b,H,B),b.align)}function d(b,k,H,B){const N=p(b,H,B),K=y([N]);return K.slice(0,K.indexOf(`
77
+ `))}function g(b,k,H,B){const N=H.enter("tableCell"),K=H.enter("phrasing"),Z=H.containerPhrasing(b,{...B,before:h,after:h});return K(),N(),Z}function y(b,k){return g2(b,{align:k,alignDelimiters:o,padding:u,stringLength:s})}function v(b,k,H){const B=b.children;let N=-1;const K=[],Z=k.enter("table");for(;++N<B.length;)K[N]=p(B[N],k,H);return Z(),K}function p(b,k,H){const B=b.children;let N=-1;const K=[],Z=k.enter("tableRow");for(;++N<B.length;)K[N]=g(B[N],b,k,H);return Z(),K}function S(b,k,H){let B=l1.inlineCode(b,k,H);return H.stack.includes("tableCell")&&(B=B.replace(/\|/g,"\\$&")),B}}function uC(){return{exit:{taskListCheckValueChecked:ey,taskListCheckValueUnchecked:ey,paragraph:oC}}}function rC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cC}}}function ey(l){const a=this.stack[this.stack.length-2];a.type,a.checked=l.type==="taskListCheckValueChecked"}function oC(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 d=s[h];if(d.type==="paragraph"){f=d;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 cC(l,a,u,o){const s=l.children[0],h=typeof l.checked=="boolean"&&s&&s.type==="paragraph",f="["+(l.checked?"x":" ")+"] ",d=u.createTracker(o);h&&d.move(f);let g=l1.listItem(l,a,u,{...o,...d.current()});return h&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),g;function y(v){return v+f}}function sC(){return[BT(),a2(),c2(),W2(),uC()]}function fC(l){return{extensions:[HT(),u2(l),s2(),aC(l),rC()]}}const hC={tokenize:vC,partial:!0},i1={tokenize:bC,partial:!0},a1={tokenize:xC,partial:!0},u1={tokenize:SC,partial:!0},mC={tokenize:EC,partial:!0},r1={name:"wwwAutolink",tokenize:gC,previous:c1},o1={name:"protocolAutolink",tokenize:yC,previous:s1},al={name:"emailAutolink",tokenize:pC,previous:f1},qn={};function dC(){return{text:qn}}let ri=48;for(;ri<123;)qn[ri]=al,ri++,ri===58?ri=65:ri===91&&(ri=97);qn[43]=al;qn[45]=al;qn[46]=al;qn[95]=al;qn[72]=[al,o1];qn[104]=[al,o1];qn[87]=[al,r1];qn[119]=[al,r1];function pC(l,a,u){const o=this;let s,h;return f;function f(p){return!hf(p)||!f1.call(o,o.previous)||Rf(o.events)?u(p):(l.enter("literalAutolink"),l.enter("literalAutolinkEmail"),d(p))}function d(p){return hf(p)?(l.consume(p),d):p===64?(l.consume(p),g):u(p)}function g(p){return p===46?l.check(mC,v,y)(p):p===45||p===95||ke(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 gC(l,a,u){const o=this;return s;function s(f){return f!==87&&f!==119||!c1.call(o,o.previous)||Rf(o.events)?u(f):(l.enter("literalAutolink"),l.enter("literalAutolinkWww"),l.check(hC,l.attempt(i1,l.attempt(a1,h),u),u)(f))}function h(f){return l.exit("literalAutolinkWww"),l.exit("literalAutolink"),a(f)}}function yC(l,a,u){const o=this;let s="",h=!1;return f;function f(p){return(p===72||p===104)&&s1.call(o,o.previous)&&!Rf(o.events)?(l.enter("literalAutolink"),l.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),l.consume(p),d):u(p)}function d(p){if(Ue(p)&&s.length<5)return s+=String.fromCodePoint(p),l.consume(p),d;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||Ir(p)||Jt(p)||hi(p)||Pr(p)?u(p):l.attempt(i1,l.attempt(a1,v),u)(p)}function v(p){return l.exit("literalAutolinkHttp"),l.exit("literalAutolink"),a(p)}}function vC(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 bC(l,a,u){let o,s,h;return f;function f(y){return y===46||y===95?l.check(u1,g,d)(y):y===null||Jt(y)||hi(y)||y!==45&&Pr(y)?g(y):(h=!0,l.consume(y),f)}function d(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 xC(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(u1,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 SC(l,a,u){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(l.consume(d),o):d===38?(l.consume(d),h):d===93?(l.consume(d),s):d===60||d===null||Jt(d)||hi(d)?a(d):u(d)}function s(d){return d===null||d===40||d===91||Jt(d)||hi(d)?a(d):o(d)}function h(d){return Ue(d)?f(d):u(d)}function f(d){return d===59?(l.consume(d),o):Ue(d)?(l.consume(d),f):u(d)}}function EC(l,a,u){return o;function o(h){return l.consume(h),s}function s(h){return ke(h)?u(h):a(h)}}function c1(l){return l===null||l===40||l===42||l===95||l===91||l===93||l===126||Jt(l)}function s1(l){return!Ue(l)}function f1(l){return!(l===47||hf(l))}function hf(l){return l===43||l===45||l===46||l===95||ke(l)}function Rf(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 TC={tokenize:OC,partial:!0};function CC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:kC,continuation:{tokenize:_C},exit:NC}},text:{91:{name:"gfmFootnoteCall",tokenize:wC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:AC,resolveTo:zC}}}}function AC(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 d;function d(g){if(!f||!f._balanced)return u(g);const y=zn(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 zC(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)},d=[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,...d),l}function wC(l,a,u){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let h=0,f;return d;function d(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(zn(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 kC(l,a,u){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let h,f=0,d;return g;function g(k){return l.enter("gfmFootnoteDefinition")._container=!0,l.enter("gfmFootnoteDefinitionLabel"),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(k),l.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(k){return k===94?(l.enter("gfmFootnoteDefinitionMarker"),l.consume(k),l.exit("gfmFootnoteDefinitionMarker"),l.enter("gfmFootnoteDefinitionLabelString"),l.enter("chunkString").contentType="string",v):u(k)}function v(k){if(f>999||k===93&&!d||k===null||k===91||Jt(k))return u(k);if(k===93){l.exit("chunkString");const H=l.exit("gfmFootnoteDefinitionLabelString");return h=zn(o.sliceSerialize(H)),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(k),l.exit("gfmFootnoteDefinitionLabelMarker"),l.exit("gfmFootnoteDefinitionLabel"),S}return Jt(k)||(d=!0),f++,l.consume(k),k===92?p:v}function p(k){return k===91||k===92||k===93?(l.consume(k),f++,v):v(k)}function S(k){return k===58?(l.enter("definitionMarker"),l.consume(k),l.exit("definitionMarker"),s.includes(h)||s.push(h),qt(l,b,"gfmFootnoteDefinitionWhitespace")):u(k)}function b(k){return a(k)}}function _C(l,a,u){return l.check(mu,a,l.attempt(TC,a,u))}function NC(l){l.exit("gfmFootnoteDefinition")}function OC(l,a,u){const o=this;return qt(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 DC(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,d){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,d],["enter",f[y][1],d],["exit",f[y][1],d],["enter",p,d]],b=d.parser.constructs.insideSpan.null;b&&An(S,S.length,0,Wr(b,f.slice(y+1,g),d)),An(S,S.length,0,[["exit",p,d],["enter",f[g][1],d],["exit",f[g][1],d],["exit",v,d]]),An(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,d,g){const y=this.previous,v=this.events;let p=0;return S;function S(k){return y===126&&v[v.length-1][1].type!=="characterEscape"?g(k):(f.enter("strikethroughSequenceTemporary"),b(k))}function b(k){const H=Fr(y);if(k===126)return p>1?g(k):(f.consume(k),p++,b);if(p<2&&!u)return g(k);const B=f.exit("strikethroughSequenceTemporary"),N=Fr(k);return B._open=!N||N===2&&!!H,B._close=!H||H===2&&!!N,d(k)}}}class MC{constructor(){this.map=[],this.index=new Map}add(a,u,o){jC(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 jC(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 RC(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 UC(){return{flow:{null:{name:"table",tokenize:LC,resolveAll:BC}}}}function LC(l,a,u){const o=this;let s=0,h=0,f;return d;function d(R){let q=o.events.length-1;for(;q>-1;){const{type:at}=o.events[q][1];if(at==="lineEnding"||at==="linePrefix")q--;else break}const F=q>-1?o.events[q][1].type:null,dt=F==="tableHead"||F==="tableRow"?j:g;return dt===j&&o.parser.lazy[o.now().line]?u(R):dt(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):Mt(R)?qt(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,Mt(R)?qt(l,k,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):k(R))}function k(R){return R===45||R===58?B(R):R===124?(f=!0,l.enter("tableCellDivider"),l.consume(R),l.exit("tableCellDivider"),H):I(R)}function H(R){return Mt(R)?qt(l,B,"whitespace")(R):B(R)}function B(R){return R===58?(h+=1,f=!0,l.enter("tableDelimiterMarker"),l.consume(R),l.exit("tableDelimiterMarker"),N):R===45?(h+=1,N(R)):R===null||bt(R)?ft(R):I(R)}function N(R){return R===45?(l.enter("tableDelimiterFiller"),K(R)):I(R)}function K(R){return R===45?(l.consume(R),K):R===58?(f=!0,l.exit("tableDelimiterFiller"),l.enter("tableDelimiterMarker"),l.consume(R),l.exit("tableDelimiterMarker"),Z):(l.exit("tableDelimiterFiller"),Z(R))}function Z(R){return Mt(R)?qt(l,ft,"whitespace")(R):ft(R)}function ft(R){return R===124?k(R):R===null||bt(R)?!f||s!==h?I(R):(l.exit("tableDelimiterRow"),l.exit("tableHead"),a(R)):I(R)}function I(R){return u(R)}function j(R){return l.enter("tableRow"),J(R)}function J(R){return R===124?(l.enter("tableCellDivider"),l.consume(R),l.exit("tableCellDivider"),J):R===null||bt(R)?(l.exit("tableRow"),a(R)):Mt(R)?qt(l,J,"whitespace")(R):(l.enter("data"),et(R))}function et(R){return R===null||R===124||Jt(R)?(l.exit("data"),J(R)):(l.consume(R),R===92?yt:et)}function yt(R){return R===92||R===124?(l.consume(R),et):et(R)}}function BC(l,a){let u=-1,o=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],d=!1,g=0,y,v,p;const S=new MC;for(;++u<l.length;){const b=l[u],k=b[1];b[0]==="enter"?k.type==="tableHead"?(d=!1,g!==0&&(ny(S,a,g,y,v),v=void 0,g=0),y={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},S.add(u,0,[["enter",y,a]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(o=!0,p=void 0,h=[0,0,0,0],f=[0,u+1,0,0],d&&(d=!1,v={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},S.add(u,0,[["enter",v,a]])),s=k.type==="tableDelimiterRow"?2:v?3:1):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(o=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],p=Qr(S,a,h,s,void 0,p),h=[0,0,0,0]),f[2]=u)):k.type==="tableCellDivider"&&(o?o=!1:(h[1]!==0&&(f[0]=f[1],p=Qr(S,a,h,s,void 0,p)),h=f,f=[h[1],u,0,0])):k.type==="tableHead"?(d=!0,g=u):k.type==="tableRow"||k.type==="tableDelimiterRow"?(g=u,h[1]!==0?(f[0]=f[1],p=Qr(S,a,h,s,u,p)):f[1]!==0&&(p=Qr(S,a,f,s,u,p)),s=0):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(f[3]=u)}for(g!==0&&ny(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=RC(a.events,u))}return l}function Qr(l,a,u,o,s,h){const f=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="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:d,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 k=u[2]+1,H=u[3]-u[2]-1;l.add(k,H,[])}}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 ny(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 HC={name:"tasklistCheck",tokenize:YC};function qC(){return{text:{91:HC}}}function YC(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"),d):u(g)}function d(g){return bt(g)?a(g):Mt(g)?l.check({tokenize:VC},a,u)(g):u(g)}}function VC(l,a,u){return qt(l,o,"whitespace");function o(s){return s===null?u(s):a(s)}}function GC(l){return Ty([dC(),CC(),DC(l),UC(),qC()])}const XC={};function QC(l){const a=this,u=l||XC,o=a.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),h=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),f=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(GC(u)),h.push(sC()),f.push(fC(u))}function mf({src:l,platform:a,className:u,fallbackClassName:o}){const[s,h]=pt.useState(null);return l&&l!==s?A.jsx("img",{className:u,src:l,alt:`${a}应用图标`,onError:()=>h(l)}):A.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 ZC(l){const[a,u]=pt.useState("dingtalk");return A.jsxs("div",{className:"im-prototype",children:[A.jsxs("div",{className:"im-provider-tabs",role:"group","aria-label":"IM 平台",children:[A.jsx("button",{className:a==="dingtalk"?"active":"",onClick:()=>u("dingtalk"),children:"钉钉"}),A.jsx("button",{className:a==="feishu"?"active":"",onClick:()=>u("feishu"),children:"飞书"})]}),A.jsx(IC,{...l,provider:a},a)]})}function IC({projects:l,agents:a,projectLabel:u,provider:o}){const s=o==="feishu"?"飞书":"钉钉",[h,f]=pt.useState([]),[d,g]=pt.useState(null),[y,v]=pt.useState(!1),[p,S]=pt.useState(!1),[b,k]=pt.useState(null),[H,B]=pt.useState(null),[N,K]=pt.useState(""),Z=pt.useRef(0),[ft,I]=pt.useState("");pt.useEffect(()=>{let q=!0;const F=()=>{oi(`/api/${o}/apps`).then(at=>{q&&f(at)}).catch(at=>{q&&K(at.message)})};F();const dt=o==="feishu"?window.setInterval(F,5e3):void 0;return()=>{q=!1,window.clearInterval(dt)}},[l,o]),pt.useEffect(()=>()=>{Z.current++},[]),pt.useEffect(()=>{if(!y||!d)return;let q=!0,F;async function dt(){try{const at=await oi(`/api/${o}/registration/${d.id}`);if(!q)return;at.status==="SUCCESS"?(f(await oi(`/api/${o}/apps`)),v(!1),g(null)):at.status==="WAITING"?F=window.setTimeout(dt,d.interval*1e3):(I(at.status==="EXPIRED"?"二维码已过期,请重新发起扫码。":at.reason||"授权失败,请重试。"),g(null))}catch(at){q&&(I(at.message),g(null))}}return F=window.setTimeout(dt,d.interval*1e3),()=>{q=!1,window.clearTimeout(F)}},[y,d,o]),pt.useEffect(()=>{if(!(o!=="feishu"||!d))return()=>{fetch(`/api/feishu/registration/${d.id}`,{method:"DELETE"})}},[o,d]);function j(){Z.current++,v(!1),g(null)}async function J(){v(!0),S(!0),I(""),g(null);const q=++Z.current;try{const F=await oi(`/api/${o}/registration`,{method:"POST"});q===Z.current?g(F):o==="feishu"&&await fetch(`/api/feishu/registration/${F.id}`,{method:"DELETE"})}catch(F){q===Z.current&&I(F.message)}finally{q===Z.current&&S(!1)}}async function et(q,F){try{const dt=await oi(`/api/${o}/apps/${q}`,{method:"PATCH",body:JSON.stringify(F)});f(at=>at.map(W=>W.id===q?dt:W))}catch(dt){K(dt.message)}}async function yt(q){if(window.confirm(`删除“${q.name||q.clientId}”的 IM 接入?删除后将停止接收该应用的消息,已有对话记录会保留。${s}中的应用不会删除。`)){K(""),k(q.id);try{await oi(`/api/${o}/apps/${q.id}`,{method:"DELETE"}),f(F=>F.filter(dt=>dt.id!==q.id))}catch(F){K(F.message)}finally{k(null)}}}async function R(q){K(""),B(q);try{const F=await oi(`/api/${o}/apps/${q}/sync`,{method:"POST"});f(dt=>dt.map(at=>at.id===q?F:at))}catch(F){K(F.message)}finally{B(null)}}return A.jsxs("div",{children:[A.jsxs("div",{className:"im-intro",children:[A.jsxs("h1",{children:[s,"接入"]}),A.jsx("button",{className:"im-primary-button",onClick:()=>void J(),children:"扫码创建应用"})]}),N&&A.jsxs("div",{className:"im-error",role:"alert",children:[N,A.jsx("button",{onClick:()=>K(""),"aria-label":"关闭错误",children:"×"})]}),A.jsx("div",{className:"im-robot-list",children:h.length?h.map(q=>A.jsx("div",{className:"im-robot-entry",children:A.jsxs("div",{className:"im-robot-row",children:[A.jsx("div",{className:"im-robot-mark",children:A.jsx(mf,{src:q.icon,platform:s})}),A.jsxs("div",{className:"im-app-info",children:[A.jsx("strong",{children:q.name||q.clientId}),q.connectionStatus&&A.jsx("small",{className:"im-connection-status",children:{idle:"未连接",connecting:"连接中",connected:"消息监听已连接",reconnecting:"重新连接中",failed:"消息监听连接失败"}[q.connectionStatus]})]}),A.jsxs("label",{className:"im-binding",children:["项目",A.jsxs("select",{"aria-label":`绑定 ${q.name||q.clientId} 的项目`,value:q.project||"",onChange:F=>void et(q.id,{project:F.target.value||null}),children:[A.jsx("option",{value:"",children:"未绑定"}),l.map(F=>A.jsx("option",{value:F,children:u(F)},F))]})]}),A.jsxs("label",{className:"im-binding",children:["Agent",A.jsxs("select",{"aria-label":`选择 ${q.name||q.clientId} 的 Agent`,value:q.agent||"",onChange:F=>void et(q.id,{agent:F.target.value||null}),children:[A.jsx("option",{value:"",children:"未选择"}),a.map(F=>A.jsxs("option",{value:F.id,disabled:!F.installed,children:[F.name,F.installed?"":"(未安装)"]},F.id))]})]}),A.jsx("button",{className:"im-sync-button",disabled:H!==null,"aria-label":`同步 ${q.name||q.clientId} 的名称和图标`,onClick:()=>void R(q.id),children:H===q.id?"同步中…":"一键同步"}),A.jsx("button",{className:"im-delete-button",disabled:b!==null,"aria-label":`删除 ${q.name||q.clientId} 的 IM 接入`,onClick:()=>void yt(q),children:b===q.id?"删除中…":"删除"})]})},q.id)):A.jsxs("div",{className:"im-empty",children:["暂无",s,"应用"]})}),y&&A.jsxs("div",{className:"im-scan-layer",role:"presentation",children:[A.jsx("button",{className:"im-scan-backdrop","aria-label":"关闭扫码窗口",onClick:j}),A.jsxs("section",{className:"im-scan-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"im-scan-title",children:[A.jsx("button",{className:"im-scan-close","aria-label":"关闭",onClick:j,children:"×"}),A.jsxs("h2",{id:"im-scan-title",children:["使用",s,"扫码创建应用"]}),p&&A.jsx("p",{className:"im-scan-message",children:"正在获取授权二维码…"}),d&&A.jsxs(A.Fragment,{children:[A.jsx("img",{className:"im-qr-image",src:d.qrCode,alt:`${s}应用授权二维码`}),d.userCode&&A.jsxs("p",{className:"im-user-code",children:["授权码 ",A.jsx("strong",{children:d.userCode})]}),A.jsxs("p",{children:["请使用",s,"扫描二维码并完成授权"]}),A.jsx("a",{className:"im-open-link",href:d.verificationUrl,target:"_blank",rel:"noopener noreferrer",children:"在浏览器中打开授权页面"})]}),ft&&A.jsxs(A.Fragment,{children:[A.jsx("p",{className:"im-scan-error",role:"alert",children:ft}),A.jsx("button",{className:"im-primary-button",onClick:()=>void J(),children:"重新获取二维码"})]})]})]})]})}function uu({type:l}){return A.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"?A.jsx("path",{d:"M12 5v14M5 12h14"}):l==="edit"?A.jsx("path",{d:"m16 3 5 5M4 16 16 4a3.5 3.5 0 0 1 5 5L9 21H4v-5Z"}):A.jsx(A.Fragment,{children:A.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 Re(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 ly(l){return l.split(/[\\/]/).filter(Boolean).at(-1)||l}function si(l,a){const u=ly(l);return a.filter(o=>ly(o)===u).length>1?l.split(/[\\/]/).filter(Boolean).slice(-2).join("/"):u}function h1(l){return new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(l)}function iy(l){return l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}k`:String(l)}const ay={starting:"准备中",running:"运行中",waiting:"等待中",completed:"已完成",failed:"失败",stopped:"已停止"};function KC(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(`
78
+ `)[0];return u&&o.endsWith(u)?o.slice(0,-1):o}function FC(l){return/^diff --git /m.test(l)||/^@@ -\d/m.test(l)}function m1({text:l}){return A.jsx("pre",{className:"diff-content",children:l.split(`
79
+ `).map((a,u)=>{const o=a.startsWith("+++")||a.startsWith("---")||a.startsWith("diff --git")||a.startsWith("@@")?"meta":a.startsWith("+")?"added":a.startsWith("-")?"removed":"";return A.jsxs("span",{className:`diff-line ${o}`,children:[a||" ",`
80
+ `]},u)})})}function JC(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 d=l.events[o];if((d==null?void 0:d.type)!=="output"||d.text.startsWith("$ ")||d.timestamp-h.at(-1).timestamp>1e3)break;f.push(d),o++}h.forEach((d,g)=>{var y;return a.push({...d,type:"tool",detail:(y=f[g])==null?void 0:y.text})}),o--}return a}function d1(l){const a=[];for(const u of JC(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 $C(l){return d1(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"?"应用(已发送到钉钉)":"助手"}:
81
+ ${a.text.trim()}`]).join(`
82
+
83
+ `)}function PC(l,a){const u=a.replace(/[\\/]+$/,"");return l.startsWith(`${u}/`)||l.startsWith(`${u}\\`)?l.slice(u.length+1):l}function uy({event:l}){const a=KC(l.text);return A.jsxs("details",{className:"tool-call",children:[A.jsxs("summary",{children:[A.jsx("span",{className:"tool-call-label",children:"工具"}),A.jsx("strong",{title:l.text,children:a}),l.detail&&A.jsx("span",{className:"tool-call-chevron"})]}),l.detail&&(FC(l.detail)?A.jsx(m1,{text:l.detail}):A.jsx("pre",{children:l.detail}))]})}function WC({event:l,cwd:a}){const u=l.kind==="add"?"新增":l.kind==="delete"?"删除":l.kind==="move"?"移动":"修改",o=A.jsxs(A.Fragment,{children:[A.jsx("span",{className:`change-kind ${l.kind||"update"}`,children:u}),A.jsx("strong",{title:l.text,children:PC(l.text,a)}),l.comparison&&A.jsxs("small",{className:"change-baseline",children:["对比 ",l.comparison]}),l.detail&&A.jsx("span",{className:"tool-call-chevron"})]});return l.detail?A.jsxs("details",{className:"file-change",children:[A.jsx("summary",{children:o}),A.jsx(m1,{text:l.detail})]}):A.jsx("div",{className:"file-change file-change-summary",children:o})}function t3({index:l,pane:a,multi:u,active:o,agents:s,projects:h,sessions:f,feishuApps:d,onFocus:g,onProjectChange:y,onSessionCreated:v,onSessionUpdate:p}){var vt,Le,ul,un,ze,te;const S=a.sessionId,[b,k]=pt.useState(f.find(Y=>Y.id===S)||null),[H,B]=pt.useState(((vt=s.find(Y=>Y.installed))==null?void 0:vt.id)||""),[N,K]=pt.useState(((Le=f.find(Y=>Y.id===S))==null?void 0:Le.model)||""),[Z,ft]=pt.useState(""),[I,j]=pt.useState((ul=f.find(Y=>Y.id===S))!=null&&ul.dingtalkAppId||(un=f.find(Y=>Y.id===S))!=null&&un.feishuAppId?"dingtalk":"agent"),[J,et]=pt.useState(!1),[yt,R]=pt.useState(""),[q,F]=pt.useState(null),dt=pt.useRef(null),at=pt.useRef(null),W=pt.useRef(!0);pt.useEffect(()=>{var Y;H||B(((Y=s.find(Ot=>Ot.installed))==null?void 0:Y.id)||"")},[s,H]),pt.useEffect(()=>{K((b==null?void 0:b.model)||"")},[b==null?void 0:b.id,b==null?void 0:b.model]),pt.useEffect(()=>{if(!S){k(null);return}let Y=!0,Ot;return Re(`/api/sessions/${S}`).then(me=>{var Ze;Y&&(k(me),p(me),Ot=new EventSource(`/api/sessions/${S}/events?after=${((Ze=me.events.at(-1))==null?void 0:Ze.id)||0}`),Ot.onmessage=rl=>{const ae=JSON.parse(rl.data);k(ne=>!ne||ne.id!==S||ne.events.some(V=>V.id===ae.id)?ne:{...ne,...ae.feishuConversation?{feishuConversation:ae.feishuConversation}:{},...ae.dingtalkConversation?{dingtalkConversation:ae.dingtalkConversation}:{},status:ae.type==="status"?ae.text:ne.status,usage:ae.type==="usage"?JSON.parse(ae.text):ne.usage,updatedAt:ae.timestamp,events:[...ne.events,ae].slice(-500)}),ae.type==="status"&&(p({id:S,status:ae.text,updatedAt:ae.timestamp}),Re(`/api/sessions/${S}`).then(ne=>{Y&&k(wn=>{var V,lt;return wn&&(((V=wn.events.at(-1))==null?void 0:V.id)||0)>(((lt=ne.events.at(-1))==null?void 0:lt.id)||0)?{...wn,externalSessionId:ne.externalSessionId}:ne}),Y&&p(ne)}))})}).catch(me=>{Y&&R(me.message)}),()=>{Y=!1,Ot==null||Ot.close()}},[S]),pt.useEffect(()=>{W.current=!0,dt.current&&(dt.current.scrollTop=dt.current.scrollHeight)},[b==null?void 0:b.id]),pt.useEffect(()=>{W.current&&dt.current&&(dt.current.scrollTop=dt.current.scrollHeight)},[b==null?void 0:b.events.length]),pt.useEffect(()=>{if(q===null)return;const Y=window.setTimeout(()=>F(null),2e3);return()=>window.clearTimeout(Y)},[q]);async function $(Y,Ot){R("");try{await navigator.clipboard.writeText(Y),F(Ot)}catch(me){R(`复制失败:${me.message}`)}}async function rt(){const Y=Z.trim();if(Et){R(""),et(!0);try{if(b){const Ot=await Re(P?`/api/sessions/${b.id}/${b.feishuAppId?"feishu":"dingtalk"}/messages`:`/api/sessions/${b.id}/messages`,{method:"POST",body:JSON.stringify(P?{content:Y}:{content:Y,model:N})});p(Ot)}else{const Ot=await Re("/api/sessions",{method:"POST",body:JSON.stringify({agent:H,cwd:a.cwd,prompt:Y,model:N})});v(l,Ot)}ft("")}catch(Ot){R(Ot.message)}finally{et(!1)}}}async function mt(){if(b){R(""),et(!0);try{await Re(`/api/sessions/${b.id}/stop`,{method:"POST"})}catch(Y){R(Y.message)}finally{et(!1)}}}const At=(b==null?void 0:b.status)==="running"||(b==null?void 0:b.status)==="starting",z=b!=null&&b.feishuAppId?"飞书":"钉钉",P=!!((b!=null&&b.dingtalkAppId||b!=null&&b.feishuAppId)&&I==="dingtalk"),ot=(b==null?void 0:b.cwd)||(h.includes(a.cwd)?a.cwd:""),T=(b==null?void 0:b.agent)||H,E=s.find(Y=>Y.id===T),G=(E==null?void 0:E.models)||[],nt=(ze=G.find(Y=>Y.id===(N||(E==null?void 0:E.defaultModel))))==null?void 0:ze.contextWindow,ut=b!=null&&b.usage?b.usage.inputTokens+b.usage.outputTokens:void 0,St=!P&&!!(At||b&&!b.externalSessionId),Et=!!(Z.trim()&&!J&&!St&&(b?P||b.externalSessionId:ot&&H)),zt=Y=>{var Ot;return((Ot=s.find(me=>me.id===Y))==null?void 0:Ot.name)||Y},ct=(te=d.find(Y=>Y.id===(b==null?void 0:b.feishuAppId)))==null?void 0:te.icon;return A.jsx("div",{className:`pane-wrap ${o&&u?"focused":""}`,onPointerDown:()=>g(l),onFocusCapture:()=>g(l),children:A.jsxs("section",{className:"output-panel","aria-label":`对话窗口 ${l+1}`,children:[A.jsxs("div",{className:"chat-header",children:[(b==null?void 0:b.dingtalkAppId)&&A.jsx(mf,{className:"chat-app-icon",fallbackClassName:"feishu-app-mark",src:`/api/dingtalk/apps/${b.dingtalkAppId}/icon`,platform:"钉钉"}),(b==null?void 0:b.feishuAppId)&&A.jsx(mf,{className:"chat-app-icon",fallbackClassName:"feishu-app-mark",src:ct,platform:"飞书"}),A.jsxs("div",{className:"chat-heading",children:[b?u?A.jsxs(A.Fragment,{children:[A.jsx("strong",{title:b.prompt,children:b.prompt}),A.jsxs("p",{children:[si(b.cwd,h)," · ",zt(b.agent)," · ",ay[b.status]]})]}):A.jsxs("p",{children:[zt(b.agent)," · ",ay[b.status]]}):A.jsxs(A.Fragment,{children:[A.jsx("strong",{children:"新对话"}),u&&A.jsxs("p",{children:["窗口 ",l+1," · 从侧边栏选择对话"]})]}),(b==null?void 0:b.dingtalkConversation)&&A.jsxs("p",{className:"chat-source",children:[b.dingtalkConversation.type==="group"?"群聊":"单聊",b.dingtalkConversation.type==="group"&&b.dingtalkConversation.groupName&&` · 群名称:${b.dingtalkConversation.groupName}`," · 提问人:",A.jsx("span",{title:b.dingtalkConversation.senderStaffId,children:b.dingtalkConversation.senderName})]}),(b==null?void 0:b.feishuConversation)&&A.jsxs("p",{className:"chat-source",children:["飞书 · ",b.feishuConversation.type==="group"?"群聊":"单聊"," · 提问人:",b.feishuConversation.senderId]})]}),A.jsxs("div",{className:"output-actions",children:[b&&A.jsx("button",{className:"copy-button",onClick:()=>void $($C(b),"conversation"),"aria-label":q==="conversation"?"已复制对话":"复制对话",children:q==="conversation"?"已复制":"复制对话"}),b&&A.jsxs("details",{className:"run-log",children:[A.jsx("summary",{children:"运行日志"}),A.jsx("div",{className:"run-log-content",children:b.events.map(Y=>A.jsxs("div",{children:[A.jsxs("span",{children:[h1(Y.timestamp)," · ",Y.type]}),A.jsx("pre",{children:Y.text}),Y.detail&&A.jsx("pre",{children:Y.detail})]},Y.id))})]}),At&&A.jsx("button",{className:"stop-button",disabled:J,onClick:mt,children:"停止"})]})]}),yt&&A.jsxs("div",{className:"global-error",role:"alert",children:[A.jsx("span",{children:yt}),A.jsx("button",{onClick:()=>R(""),children:"关闭"})]}),A.jsx("div",{className:"conversation-scroll",ref:dt,role:"log","aria-label":`窗口 ${l+1} 对话记录`,onScroll:Y=>{const Ot=Y.currentTarget;W.current=Ot.scrollHeight-Ot.scrollTop-Ot.clientHeight<80},children:b?A.jsxs("div",{className:"chat-thread",children:[d1(b).map(Y=>Array.isArray(Y)?Y.length===1?A.jsx(uy,{event:Y[0]},Y[0].id):A.jsxs("details",{className:"tool-group",children:[A.jsxs("summary",{className:"tool-group-heading",children:["工具调用 · ",Y.length," 次",A.jsx("span",{className:"tool-call-chevron"})]}),A.jsx("div",{className:"tool-group-content",children:Y.map(Ot=>A.jsx(uy,{event:Ot},Ot.id))})]},Y[0].id):Y.type==="message"?A.jsx("div",{className:"chat-turn user-turn",children:A.jsx("div",{className:"user-bubble",children:Y.text})},Y.id):Y.type==="file_change"?A.jsx(WC,{event:Y,cwd:b.cwd},Y.id):Y.type==="error"?A.jsx("div",{className:"chat-notice",children:Y.text},Y.id):A.jsxs("div",{className:"chat-turn assistant-turn",children:[(Y.type==="dingtalk_message"||Y.type==="feishu_message")&&A.jsxs("div",{className:"dingtalk-sent-label",children:["应用 · 已发送到",Y.type==="feishu_message"?"飞书":"钉钉"]}),A.jsx("div",{className:"assistant-copy",children:Y.type==="dingtalk_message"||Y.type==="feishu_message"?A.jsx("div",{className:"dingtalk-sent-content",children:Y.text}):A.jsx(kT,{remarkPlugins:[QC],children:Y.text})}),A.jsx("div",{className:"reply-actions",children:A.jsx("button",{className:"reply-copy","aria-label":q===Y.id?"已复制这条回复":"复制这条回复",onClick:()=>void $(Y.text,Y.id),children:A.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:q===Y.id?A.jsx("path",{d:"m5 12 4 4L19 6"}):A.jsxs(A.Fragment,{children:[A.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),A.jsx("path",{d:"M16 8V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4"})]})})})})]},Y.id)),At&&A.jsxs("div",{className:"chat-progress",children:[A.jsx("span",{}),zt(b.agent)," 正在处理…"]})]}):A.jsx("div",{className:"chat-empty",children:A.jsx("strong",{children:"描述你想完成的任务"})})},b==null?void 0:b.id),A.jsxs("div",{className:"chat-compose-wrap",children:[!b&&A.jsxs("div",{className:"composer-project-row",children:[A.jsxs("span",{className:"project-select",children:[A.jsx("span",{className:"project-folder","aria-hidden":"true"}),A.jsxs(ru,{"aria-label":`窗口 ${l+1} 选择项目`,value:ot,disabled:J,onChange:Y=>y(l,Y),children:[!ot&&A.jsx("option",{value:"",children:"选择项目"}),h.map(Y=>A.jsx("option",{value:Y,children:si(Y,h)},Y))]})]}),A.jsx("span",{className:"agent-select",children:A.jsxs(ru,{"aria-label":`窗口 ${l+1} 选择 Agent`,value:T,disabled:J,onChange:Y=>{B(Y),K("")},children:[!T&&A.jsx("option",{value:"",children:"选择 Agent"}),s.map(Y=>A.jsxs("option",{value:Y.id,disabled:!Y.installed,children:[Y.name,Y.installed?"":"(未安装)"]},Y.id))]})})]}),A.jsxs("div",{className:"chat-composer",children:[A.jsx("textarea",{ref:at,"aria-label":`窗口 ${l+1} 消息`,value:Z,onChange:Y=>ft(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&!Y.shiftKey&&(Y.preventDefault(),rt())},placeholder:P?`以应用身份发送到此${z}对话`:At?"等待 Agent 完成当前任务…":b?"继续输入任务要求":"描述要完成的任务",disabled:J||St,rows:2}),A.jsxs("div",{className:"composer-footer",children:[A.jsxs("div",{className:"composer-actions",children:[((b==null?void 0:b.dingtalkAppId)||(b==null?void 0:b.feishuAppId))&&A.jsx("label",{className:"model-select",children:A.jsxs(ru,{"aria-label":`窗口 ${l+1} 发送方式`,value:I,disabled:J,onChange:Y=>j(Y),children:[A.jsxs("option",{value:"dingtalk",children:["发送到",z]}),A.jsx("option",{value:"agent",children:"交给 Agent"})]})}),!P&&A.jsx("label",{className:"model-select",children:A.jsxs(ru,{"aria-label":`窗口 ${l+1} 选择模型`,value:N,disabled:!T||J||!!At,onChange:Y=>K(Y),children:[A.jsx("option",{value:"",children:E!=null&&E.defaultModel?`默认 · ${E.defaultModel}`:"Agent 默认"}),N&&!G.some(Y=>Y.id===N)&&A.jsx("option",{value:N,disabled:T==="codex"&&N==="gpt-6.1-sol",children:N}),G.map(Y=>A.jsx("option",{value:Y.id,children:Y.name},Y.id))]})})]}),A.jsx("button",{className:"composer-send","aria-label":P?`发送到${z}`:b?"发送消息":"创建对话并发送",disabled:!Et,onClick:rt,children:"↑"})]})]}),b&&A.jsx("div",{className:"context-status",title:b.usage?`累计输入 ${b.usage.inputTokens.toLocaleString()} Token,累计输出 ${b.usage.outputTokens.toLocaleString()} Token`:"Agent 尚未返回 Token 用量",children:ut===void 0&&!nt?"上下文数据未提供":`累计消耗 ${ut===void 0?"暂无用量":`${iy(ut)} Token`} · 单次窗口 ${nt?`${iy(nt)} Token`:"未提供"}`})]})]})})}function e3(){const[l,a]=pt.useState([]),[u,o]=pt.useState([]),[s,h]=pt.useState([]),[f,d]=pt.useState([]),[g,y]=pt.useState(null),[v,p]=pt.useState(Array.from({length:4},()=>({sessionId:null,cwd:"",revision:0}))),[S,b]=pt.useState(0),[k,H]=pt.useState("single"),[B,N]=pt.useState(!1),[K,Z]=pt.useState(!1),[ft,I]=pt.useState(""),[j,J]=pt.useState(()=>new URLSearchParams(window.location.search).get("im-view")==="robots"),et=k==="single"?1:k==="double"?2:4,yt=v[S];pt.useEffect(()=>{Promise.all([Re("/api/agents"),Re("/api/sessions"),Re("/api/projects"),Re("/api/directories"),Re("/api/feishu/apps")]).then(([P,ot,T,E,G])=>{var St;const nt=[...new Set([...T,...ot.map(Et=>Et.cwd)])],ut=((St=ot[0])==null?void 0:St.cwd)||T[0]||E.path;a(P),o(ot),d(nt),y(ut),h(G),p(Et=>Et.map((zt,ct)=>{var vt;return ct===0?{sessionId:((vt=ot[0])==null?void 0:vt.id)||null,cwd:ut,revision:zt.revision+1}:zt}))}).catch(P=>I(P.message))},[]),pt.useEffect(()=>{const P=window.setInterval(()=>{Re("/api/sessions").then(o).catch(ot=>I(ot.message)),Re("/api/feishu/apps").then(h).catch(ot=>I(ot.message))},5e3);return()=>window.clearInterval(P)},[]),pt.useEffect(()=>{if(!B)return;const P=ot=>{ot.key==="Escape"&&N(!1)};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[B]);function R(P,ot,T){p(E=>E.map((G,nt)=>nt===P?{sessionId:ot,cwd:T,revision:G.revision+1}:G)),b(P)}function q(P,ot=S){J(!1),N(!1),y(P||null),R(ot,null,P)}function F(P){J(!1),N(!1),y(P.cwd),R(S,P.id,P.cwd)}async function dt(P=S){if(!K){I(""),Z(!0);try{const ot=await Re("/api/projects/pick",{method:"POST"});if(!ot.path)return;const T=ot.path;d(E=>E.includes(T)?E:[...E,T]),q(T,P)}catch(ot){I(ot.message)}finally{Z(!1)}}}async function at(P){const ot=u.filter(T=>T.cwd===P).length;if(window.confirm(`删除项目“${si(P,f)}”及其 ${ot} 个对话记录?本地项目文件不会删除。`)){I("");try{await Re("/api/projects",{method:"DELETE",body:JSON.stringify({path:P})});const T=f.filter(E=>E!==P);d(T),o(E=>E.filter(G=>G.cwd!==P)),y(E=>E===P?T[0]||null:E),p(E=>E.map(G=>G.cwd===P?{sessionId:null,cwd:T[0]||"",revision:G.revision+1}:G))}catch(T){I(T.message)}}}async function W(P){if(window.confirm(`删除对话“${P.prompt}”?此操作会删除对话记录。`)){I("");try{await Re(`/api/sessions/${P.id}`,{method:"DELETE"}),o(ot=>ot.filter(T=>T.id!==P.id)),p(ot=>ot.map(T=>T.sessionId===P.id?{...T,sessionId:null,revision:T.revision+1}:T))}catch(ot){I(ot.message)}}}function $(P){const ot=P==="single"?1:P==="double"?2:4;b(T=>Math.min(T,ot-1)),H(P)}function rt(P){o(ot=>ot.map(T=>T.id===P.id?{...T,status:P.status,updatedAt:P.updatedAt,externalSessionId:P.externalSessionId??T.externalSessionId}:T))}function mt(P,ot){o(T=>[ot,...T]),y(ot.cwd),R(P,ot.id,ot.cwd)}const At=P=>{var ot;return((ot=l.find(T=>T.id===P))==null?void 0:ot.name)||P},z=yt.sessionId;return A.jsxs("div",{className:"app-shell",children:[A.jsx("button",{className:`mobile-menu-backdrop ${B?"open":""}`,"aria-label":"关闭菜单",onClick:()=>N(!1)}),A.jsxs("aside",{className:`sidebar ${B?"open":""}`,id:"project-menu",children:[A.jsxs("div",{className:"brand",children:[A.jsxs("div",{className:"brand-symbol",children:[A.jsx("span",{}),A.jsx("span",{}),A.jsx("span",{})]}),A.jsx("strong",{children:"Agent Muster"}),A.jsx("button",{className:"menu-close","aria-label":"关闭菜单",onClick:()=>N(!1),children:"×"})]}),A.jsxs("nav",{className:"sidebar-menu","aria-label":"快捷菜单",children:[A.jsxs("button",{className:"sidebar-create",disabled:K,onClick:()=>void dt(),children:[A.jsx(uu,{type:"add"}),A.jsx("span",{children:"创建项目"})]}),!j&&A.jsx("div",{className:"layout-switch",children:A.jsxs(ru,{"aria-label":"窗口模式",triggerLabel:A.jsxs(A.Fragment,{children:[A.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:[A.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),A.jsx("path",{d:"M12 3v18M12 12h9"})]}),A.jsx("span",{children:"窗口模式"})]}),value:k,onChange:P=>$(P),children:[A.jsx("option",{value:"single",children:"单窗"}),A.jsx("option",{value:"double",children:"1×2"}),A.jsx("option",{value:"quad",children:"2×2"})]})}),A.jsxs("button",{className:`im-sidebar-link ${j?"active":""}`,onClick:()=>{J(!0),N(!1)},children:[A.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:A.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"})}),A.jsx("span",{children:"IM 集成"})]})]}),A.jsxs("nav",{className:"sidebar-projects","aria-label":"项目和对话",children:[A.jsxs("div",{className:"section-title",children:[A.jsxs("span",{children:["项目 ",A.jsx("span",{className:"count",children:f.length})]}),A.jsx("button",{className:"add-project",disabled:K,onClick:()=>void dt(),"aria-label":"添加项目",title:"添加项目",children:A.jsx(uu,{type:"add"})})]}),f.map(P=>{const ot=u.filter(E=>E.cwd===P),T=g===P;return A.jsxs("div",{className:"project-group",children:[A.jsxs("div",{className:"project-row",children:[A.jsxs("button",{className:`project-item ${yt.cwd===P?"active":""}`,onClick:()=>{var E;J(!1),T?y(null):(y(P),R(S,((E=ot[0])==null?void 0:E.id)||null,P))},title:P,"aria-expanded":T,children:[A.jsx("span",{className:"project-folder"}),A.jsx("span",{className:"project-name",children:si(P,f)}),A.jsx("span",{className:"project-count",children:ot.length})]}),A.jsx("button",{className:"project-new",onClick:()=>q(P),"aria-label":`在 ${si(P,f)} 中新建对话`,title:"新建对话",children:A.jsx(uu,{type:"edit"})}),A.jsx("button",{className:"sidebar-delete",onClick:()=>void at(P),"aria-label":`删除项目 ${si(P,f)}`,title:"删除项目",children:A.jsx(uu,{type:"delete"})})]}),T&&A.jsx("div",{className:"project-conversations",children:ot.length?ot.map(E=>{var nt;const G=v.slice(0,et).findIndex(ut=>ut.sessionId===E.id);return(nt=s.find(ut=>ut.id===E.feishuAppId))==null||nt.icon,A.jsxs("div",{className:"conversation-row",children:[A.jsxs("button",{className:`conversation-item ${z===E.id?"selected":""}`,onClick:()=>F(E),title:E.prompt,children:[A.jsx("span",{className:`status-dot ${E.status}`}),E.dingtalkAppId&&A.jsx("img",{className:"conversation-app-icon",src:`/api/dingtalk/apps/${E.dingtalkAppId}/icon`,alt:"钉钉应用图标"}),E.feishuAppId&&A.jsx("span",{className:"feishu-app-mark","aria-label":"飞书应用",children:"飞"}),A.jsxs("span",{className:"conversation-text",children:[A.jsx("strong",{children:E.prompt}),A.jsxs("small",{children:[At(E.agent)," · ",h1(E.createdAt)]})]}),et>1&&G>=0&&A.jsx("span",{className:"pane-marker","aria-label":`窗口 ${G+1}`,children:G+1})]}),A.jsx("button",{className:"sidebar-delete conversation-delete",onClick:()=>void W(E),"aria-label":`删除对话 ${E.prompt}`,title:"删除对话",children:A.jsx(uu,{type:"delete"})})]},E.id)}):A.jsx("p",{className:"project-empty",children:"还没有对话"})})]},P)}),!f.length&&A.jsx("p",{className:"project-empty",children:"暂无项目。点击右侧加号选择本地目录。"})]})]}),A.jsxs("main",{className:"main-area",children:[A.jsx("header",{className:"topbar",children:A.jsx("div",{className:"topbar-left",children:A.jsxs("button",{className:"menu-toggle","aria-label":B?"关闭菜单":"打开菜单","aria-expanded":B,"aria-controls":"project-menu",onClick:()=>N(P=>!P),children:[A.jsx("span",{}),A.jsx("span",{}),A.jsx("span",{})]})})}),A.jsxs("div",{className:"content chat-content",children:[ft&&A.jsxs("div",{className:"global-error",role:"alert",children:[A.jsx("span",{children:ft}),A.jsx("button",{onClick:()=>I(""),children:"关闭"})]}),A.jsx("div",{className:`workspace-grid ${k}`,style:{display:j?"none":void 0},children:v.slice(0,et).map((P,ot)=>A.jsx(t3,{index:ot,pane:P,multi:et>1,active:S===ot,agents:l,projects:f,sessions:u,feishuApps:s,onFocus:b,onProjectChange:(T,E)=>{p(G=>G.map((nt,ut)=>ut===T?{...nt,cwd:E}:nt)),y(E)},onSessionCreated:mt,onSessionUpdate:rt},`${ot}-${P.revision}`))}),A.jsx("div",{hidden:!j,children:A.jsx(ZC,{projects:f,agents:l,projectLabel:P=>si(P,f)})})]})]})]})}yb.createRoot(document.getElementById("root")).render(A.jsx(e3,{}));