agentxl 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +409 -0
- package/bin/agentxl.js +377 -0
- package/dist/agent/auth.d.ts +2 -0
- package/dist/agent/auth.d.ts.map +1 -0
- package/dist/agent/auth.js +2 -0
- package/dist/agent/auth.js.map +1 -0
- package/dist/agent/models.d.ts +21 -0
- package/dist/agent/models.d.ts.map +1 -0
- package/dist/agent/models.js +46 -0
- package/dist/agent/models.js.map +1 -0
- package/dist/agent/provider/azure-provider.d.ts +2 -0
- package/dist/agent/provider/azure-provider.d.ts.map +1 -0
- package/dist/agent/provider/azure-provider.js +2 -0
- package/dist/agent/provider/azure-provider.js.map +1 -0
- package/dist/agent/session.d.ts +43 -0
- package/dist/agent/session.d.ts.map +1 -0
- package/dist/agent/session.js +145 -0
- package/dist/agent/session.js.map +1 -0
- package/dist/agent/tools/excel-tools.d.ts +2 -0
- package/dist/agent/tools/excel-tools.d.ts.map +1 -0
- package/dist/agent/tools/excel-tools.js +2 -0
- package/dist/agent/tools/excel-tools.js.map +1 -0
- package/dist/server/certs.d.ts +17 -0
- package/dist/server/certs.d.ts.map +1 -0
- package/dist/server/certs.js +38 -0
- package/dist/server/certs.js.map +1 -0
- package/dist/server/index.d.ts +15 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +376 -0
- package/dist/server/index.js.map +1 -0
- package/manifest/.gitkeep +0 -0
- package/manifest/manifest.xml +99 -0
- package/package.json +82 -0
- package/taskpane/dist/assets/icon-16.png +0 -0
- package/taskpane/dist/assets/icon-32.png +0 -0
- package/taskpane/dist/assets/icon-64.png +0 -0
- package/taskpane/dist/assets/icon-80.png +0 -0
- package/taskpane/dist/assets/index-6sMpIYxE.css +1 -0
- package/taskpane/dist/assets/index-DyLrQ3Aa.js +164 -0
- package/taskpane/dist/index.html +15 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(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 r(s){if(s.ep)return;s.ep=!0;const h=a(s);fetch(s.href,h)}})();function Ad(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Tc={exports:{}},da={};/**
|
|
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 Ep;function Q1(){if(Ep)return da;Ep=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function a(r,s,h){var f=null;if(h!==void 0&&(f=""+h),s.key!==void 0&&(f=""+s.key),"key"in s){h={};for(var p in s)p!=="key"&&(h[p]=s[p])}else h=s;return s=h.ref,{$$typeof:l,type:r,key:f,ref:s!==void 0?s:null,props:h}}return da.Fragment=u,da.jsx=a,da.jsxs=a,da}var kp;function Z1(){return kp||(kp=1,Tc.exports=Q1()),Tc.exports}var W=Z1(),zc={exports:{}},pt={};/**
|
|
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 Ap;function K1(){if(Ap)return pt;Ap=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,X={};function _(T,H,E){this.props=T,this.context=H,this.refs=X,this.updater=E||C}_.prototype.isReactComponent={},_.prototype.setState=function(T,H){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,H,"setState")},_.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Q(){}Q.prototype=_.prototype;function G(T,H,E){this.props=T,this.context=H,this.refs=X,this.updater=E||C}var at=G.prototype=new Q;at.constructor=G,L(at,_.prototype),at.isPureReactComponent=!0;var ot=Array.isArray;function B(){}var $={H:null,A:null,T:null,S:null},mt=Object.prototype.hasOwnProperty;function dt(T,H,E){var I=E.ref;return{$$typeof:l,type:T,key:H,ref:I!==void 0?I:null,props:E}}function U(T,H){return dt(T.type,H,T.props)}function tt(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function P(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(E){return H[E]})}var xt=/\/+/g;function nt(T,H){return typeof T=="object"&&T!==null&&T.key!=null?P(""+T.key):H.toString(36)}function J(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(B,B):(T.status="pending",T.then(function(H){T.status==="pending"&&(T.status="fulfilled",T.value=H)},function(H){T.status==="pending"&&(T.status="rejected",T.reason=H)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,H,E,I,ft){var ut=typeof T;(ut==="undefined"||ut==="boolean")&&(T=null);var Tt=!1;if(T===null)Tt=!0;else switch(ut){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(T.$$typeof){case l:case u:Tt=!0;break;case b:return Tt=T._init,R(Tt(T._payload),H,E,I,ft)}}if(Tt)return ft=ft(T),Tt=I===""?"."+nt(T,0):I,ot(ft)?(E="",Tt!=null&&(E=Tt.replace(xt,"$&/")+"/"),R(ft,H,E,"",function(qe){return qe})):ft!=null&&(tt(ft)&&(ft=U(ft,E+(ft.key==null||T&&T.key===ft.key?"":(""+ft.key).replace(xt,"$&/")+"/")+Tt)),H.push(ft)),1;Tt=0;var Kt=I===""?".":I+":";if(ot(T))for(var Bt=0;Bt<T.length;Bt++)I=T[Bt],ut=Kt+nt(I,Bt),Tt+=R(I,H,E,ut,ft);else if(Bt=x(T),typeof Bt=="function")for(T=Bt.call(T),Bt=0;!(I=T.next()).done;)I=I.value,ut=Kt+nt(I,Bt++),Tt+=R(I,H,E,ut,ft);else if(ut==="object"){if(typeof T.then=="function")return R(J(T),H,E,I,ft);throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function Z(T,H,E){if(T==null)return T;var I=[],ft=0;return R(T,I,"","",function(ut){return H.call(E,ut,ft++)}),I}function it(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(E){(T._status===0||T._status===-1)&&(T._status=1,T._result=E)},function(E){(T._status===0||T._status===-1)&&(T._status=2,T._result=E)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var vt=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},k={map:Z,forEach:function(T,H,E){Z(T,function(){H.apply(this,arguments)},E)},count:function(T){var H=0;return Z(T,function(){H++}),H},toArray:function(T){return Z(T,function(H){return H})||[]},only:function(T){if(!tt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pt.Activity=y,pt.Children=k,pt.Component=_,pt.Fragment=a,pt.Profiler=s,pt.PureComponent=G,pt.StrictMode=r,pt.Suspense=d,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,pt.__COMPILER_RUNTIME={__proto__:null,c:function(T){return $.H.useMemoCache(T)}},pt.cache=function(T){return function(){return T.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(T,H,E){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var I=L({},T.props),ft=T.key;if(H!=null)for(ut in H.key!==void 0&&(ft=""+H.key),H)!mt.call(H,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&H.ref===void 0||(I[ut]=H[ut]);var ut=arguments.length-2;if(ut===1)I.children=E;else if(1<ut){for(var Tt=Array(ut),Kt=0;Kt<ut;Kt++)Tt[Kt]=arguments[Kt+2];I.children=Tt}return dt(T.type,ft,I)},pt.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},pt.createElement=function(T,H,E){var I,ft={},ut=null;if(H!=null)for(I in H.key!==void 0&&(ut=""+H.key),H)mt.call(H,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ft[I]=H[I]);var Tt=arguments.length-2;if(Tt===1)ft.children=E;else if(1<Tt){for(var Kt=Array(Tt),Bt=0;Bt<Tt;Bt++)Kt[Bt]=arguments[Bt+2];ft.children=Kt}if(T&&T.defaultProps)for(I in Tt=T.defaultProps,Tt)ft[I]===void 0&&(ft[I]=Tt[I]);return dt(T,ut,ft)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(T){return{$$typeof:p,render:T}},pt.isValidElement=tt,pt.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:it}},pt.memo=function(T,H){return{$$typeof:m,type:T,compare:H===void 0?null:H}},pt.startTransition=function(T){var H=$.T,E={};$.T=E;try{var I=T(),ft=$.S;ft!==null&&ft(E,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(B,vt)}catch(ut){vt(ut)}finally{H!==null&&E.types!==null&&(H.types=E.types),$.T=H}},pt.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},pt.use=function(T){return $.H.use(T)},pt.useActionState=function(T,H,E){return $.H.useActionState(T,H,E)},pt.useCallback=function(T,H){return $.H.useCallback(T,H)},pt.useContext=function(T){return $.H.useContext(T)},pt.useDebugValue=function(){},pt.useDeferredValue=function(T,H){return $.H.useDeferredValue(T,H)},pt.useEffect=function(T,H){return $.H.useEffect(T,H)},pt.useEffectEvent=function(T){return $.H.useEffectEvent(T)},pt.useId=function(){return $.H.useId()},pt.useImperativeHandle=function(T,H,E){return $.H.useImperativeHandle(T,H,E)},pt.useInsertionEffect=function(T,H){return $.H.useInsertionEffect(T,H)},pt.useLayoutEffect=function(T,H){return $.H.useLayoutEffect(T,H)},pt.useMemo=function(T,H){return $.H.useMemo(T,H)},pt.useOptimistic=function(T,H){return $.H.useOptimistic(T,H)},pt.useReducer=function(T,H,E){return $.H.useReducer(T,H,E)},pt.useRef=function(T){return $.H.useRef(T)},pt.useState=function(T){return $.H.useState(T)},pt.useSyncExternalStore=function(T,H,E){return $.H.useSyncExternalStore(T,H,E)},pt.useTransition=function(){return $.H.useTransition()},pt.version="19.2.4",pt}var Tp;function us(){return Tp||(Tp=1,zc.exports=K1()),zc.exports}var Rt=us(),Cc={exports:{}},ga={},wc={exports:{}},_c={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var zp;function J1(){return zp||(zp=1,(function(l){function u(R,Z){var it=R.length;R.push(Z);t:for(;0<it;){var vt=it-1>>>1,k=R[vt];if(0<s(k,Z))R[vt]=Z,R[it]=k,it=vt;else break t}}function a(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var Z=R[0],it=R.pop();if(it!==Z){R[0]=it;t:for(var vt=0,k=R.length,T=k>>>1;vt<T;){var H=2*(vt+1)-1,E=R[H],I=H+1,ft=R[I];if(0>s(E,it))I<k&&0>s(ft,E)?(R[vt]=ft,R[I]=it,vt=I):(R[vt]=E,R[H]=it,vt=H);else if(I<k&&0>s(ft,it))R[vt]=ft,R[I]=it,vt=I;else break t}}return Z}function s(R,Z){var it=R.sortIndex-Z.sortIndex;return it!==0?it:R.id-Z.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,p=f.now();l.unstable_now=function(){return f.now()-p}}var d=[],m=[],b=1,y=null,S=3,x=!1,C=!1,L=!1,X=!1,_=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function at(R){for(var Z=a(m);Z!==null;){if(Z.callback===null)r(m);else if(Z.startTime<=R)r(m),Z.sortIndex=Z.expirationTime,u(d,Z);else break;Z=a(m)}}function ot(R){if(L=!1,at(R),!C)if(a(d)!==null)C=!0,B||(B=!0,P());else{var Z=a(m);Z!==null&&J(ot,Z.startTime-R)}}var B=!1,$=-1,mt=5,dt=-1;function U(){return X?!0:!(l.unstable_now()-dt<mt)}function tt(){if(X=!1,B){var R=l.unstable_now();dt=R;var Z=!0;try{t:{C=!1,L&&(L=!1,Q($),$=-1),x=!0;var it=S;try{e:{for(at(R),y=a(d);y!==null&&!(y.expirationTime>R&&U());){var vt=y.callback;if(typeof vt=="function"){y.callback=null,S=y.priorityLevel;var k=vt(y.expirationTime<=R);if(R=l.unstable_now(),typeof k=="function"){y.callback=k,at(R),Z=!0;break e}y===a(d)&&r(d),at(R)}else r(d);y=a(d)}if(y!==null)Z=!0;else{var T=a(m);T!==null&&J(ot,T.startTime-R),Z=!1}}break t}finally{y=null,S=it,x=!1}Z=void 0}}finally{Z?P():B=!1}}}var P;if(typeof G=="function")P=function(){G(tt)};else if(typeof MessageChannel<"u"){var xt=new MessageChannel,nt=xt.port2;xt.port1.onmessage=tt,P=function(){nt.postMessage(null)}}else P=function(){_(tt,0)};function J(R,Z){$=_(function(){R(l.unstable_now())},Z)}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(R){R.callback=null},l.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):mt=0<R?Math.floor(1e3/R):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(R){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var it=S;S=Z;try{return R()}finally{S=it}},l.unstable_requestPaint=function(){X=!0},l.unstable_runWithPriority=function(R,Z){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var it=S;S=R;try{return Z()}finally{S=it}},l.unstable_scheduleCallback=function(R,Z,it){var vt=l.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?vt+it:vt):it=vt,R){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=it+k,R={id:b++,callback:Z,priorityLevel:R,startTime:it,expirationTime:k,sortIndex:-1},it>vt?(R.sortIndex=it,u(m,R),a(d)===null&&R===a(m)&&(L?(Q($),$=-1):L=!0,J(ot,it-vt))):(R.sortIndex=k,u(d,R),C||x||(C=!0,B||(B=!0,P()))),R},l.unstable_shouldYield=U,l.unstable_wrapCallback=function(R){var Z=S;return function(){var it=S;S=Z;try{return R.apply(this,arguments)}finally{S=it}}}})(_c)),_c}var Cp;function F1(){return Cp||(Cp=1,wc.exports=J1()),wc.exports}var Dc={exports:{}},me={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var wp;function I1(){if(wp)return me;wp=1;var l=us();function u(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(u(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function h(d,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:d,containerInfo:m,implementation:b}}var f=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(d,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return h(d,m,null,b)},me.flushSync=function(d){var m=f.T,b=r.p;try{if(f.T=null,r.p=2,d)return d()}finally{f.T=m,r.p=b,r.d.f()}},me.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(d,m))},me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},me.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?r.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:x}):b==="script"&&r.d.X(d,{crossOrigin:y,integrity:S,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);r.d.M(d,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(d)},me.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin);r.d.L(d,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(d,m){if(typeof d=="string")if(m){var b=p(m.as,m.crossOrigin);r.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(d)},me.requestFormReset=function(d){r.d.r(d)},me.unstable_batchedUpdates=function(d,m){return d(m)},me.useFormState=function(d,m,b){return f.H.useFormState(d,m,b)},me.useFormStatus=function(){return f.H.useHostTransitionStatus()},me.version="19.2.4",me}var _p;function $1(){if(_p)return Dc.exports;_p=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(u){console.error(u)}}return l(),Dc.exports=I1(),Dc.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 Dp;function W1(){if(Dp)return ga;Dp=1;var l=F1(),u=us(),a=$1();function r(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){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n: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 p(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 d(t){if(h(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return d(o),t;if(c===i)return d(o),e;c=c.sibling}throw Error(r(188))}if(n.return!==i.return)n=o,i=c;else{for(var g=!1,v=o.child;v;){if(v===n){g=!0,n=o,i=c;break}if(v===i){g=!0,i=o,n=c;break}v=v.sibling}if(!g){for(v=c.child;v;){if(v===n){g=!0,n=c,i=o;break}if(v===i){g=!0,i=c,n=o;break}v=v.sibling}if(!g)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),ot=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),dt=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),tt=Symbol.iterator;function P(t){return t===null||typeof t!="object"?null:(t=tt&&t[tt]||t["@@iterator"],typeof t=="function"?t:null)}var xt=Symbol.for("react.client.reference");function nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===xt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case _:return"Profiler";case X:return"StrictMode";case ot:return"Suspense";case B:return"SuspenseList";case dt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case G:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case at:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:nt(t.type)||"Memo";case mt:e=t._payload,t=t._init;try{return nt(t(e))}catch{}}return null}var J=Array.isArray,R=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},vt=[],k=-1;function T(t){return{current:t}}function H(t){0>k||(t.current=vt[k],vt[k]=null,k--)}function E(t,e){k++,vt[k]=t.current,t.current=e}var I=T(null),ft=T(null),ut=T(null),Tt=T(null);function Kt(t,e){switch(E(ut,e),E(ft,t),E(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Qm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Qm(e),t=Zm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(I),E(I,t)}function Bt(){H(I),H(ft),H(ut)}function qe(t){t.memoizedState!==null&&E(Tt,t);var e=I.current,n=Zm(e,t.type);e!==n&&(E(ft,t),E(I,n))}function sn(t){ft.current===t&&(H(I),H(ft)),Tt.current===t&&(H(Tt),fa._currentValue=it)}var Ei,_a;function fn(t){if(Ei===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ei=e&&e[1]||"",_a=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ei+t+_a}var Cl=!1;function wl(t,e){if(!t||Cl)return"";Cl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(N){var O=N}Reflect.construct(t,[],V)}else{try{V.call()}catch(N){O=N}t.call(V.prototype)}}else{try{throw Error()}catch(N){O=N}(V=t())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(N){if(N&&O&&typeof N.stack=="string")return[N.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),g=c[0],v=c[1];if(g&&v){var A=g.split(`
|
|
44
|
+
`),M=v.split(`
|
|
45
|
+
`);for(o=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;if(i===A.length||o===M.length)for(i=A.length-1,o=M.length-1;1<=i&&0<=o&&A[i]!==M[o];)o--;for(;1<=i&&0<=o;i--,o--)if(A[i]!==M[o]){if(i!==1||o!==1)do if(i--,o--,0>o||A[i]!==M[o]){var j=`
|
|
46
|
+
`+A[i].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=i&&0<=o);break}}}finally{Cl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?fn(n):""}function Da(t,e){switch(t.tag){case 26:case 27:case 5:return fn(t.type);case 16:return fn("Lazy");case 13:return t.child!==e&&e!==null?fn("Suspense Fallback"):fn("Suspense");case 19:return fn("SuspenseList");case 0:case 15:return wl(t.type,!1);case 11:return wl(t.type.render,!1);case 1:return wl(t.type,!0);case 31:return fn("Activity");default:return""}}function Ma(t){try{var e="",n=null;do e+=Da(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var _l=Object.prototype.hasOwnProperty,Dl=l.unstable_scheduleCallback,ki=l.unstable_cancelCallback,cr=l.unstable_shouldYield,sr=l.unstable_requestPaint,ge=l.unstable_now,fr=l.unstable_getCurrentPriorityLevel,q=l.unstable_ImmediatePriority,F=l.unstable_UserBlockingPriority,ht=l.unstable_NormalPriority,St=l.unstable_LowPriority,Nt=l.unstable_IdlePriority,De=l.log,hn=l.unstable_setDisableYieldValue,ye=null,ie=null;function xe(t){if(typeof De=="function"&&hn(t),ie&&typeof ie.setStrictMode=="function")try{ie.setStrictMode(ye,t)}catch{}}var Yt=Math.clz32?Math.clz32:Mg,Rn=Math.log,We=Math.LN2;function Mg(t){return t>>>=0,t===0?32:31-(Rn(t)/We|0)|0}var Oa=256,Ra=262144,Na=4194304;function ul(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&261888;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 Ua(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?o=ul(i):(g&=v,g!==0?o=ul(g):n||(n=v&~t,n!==0&&(o=ul(n))))):(v=i&~c,v!==0?o=ul(v):g!==0?o=ul(g):n||(n=i&~t,n!==0&&(o=ul(n)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:o}function Ai(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Og(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 Ts(){var t=Na;return Na<<=1,(Na&62914560)===0&&(Na=4194304),t}function hr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ti(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Rg(t,e,n,i,o,c){var g=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 v=t.entanglements,A=t.expirationTimes,M=t.hiddenUpdates;for(n=g&~n;0<n;){var j=31-Yt(n),V=1<<j;v[j]=0,A[j]=-1;var O=M[j];if(O!==null)for(M[j]=null,j=0;j<O.length;j++){var N=O[j];N!==null&&(N.lane&=-536870913)}n&=~V}i!==0&&zs(t,i,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function zs(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Yt(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Cs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Yt(n),o=1<<i;o&e|t[i]&e&&(t[i]|=e),n&=~o}}function ws(t,e){var n=e&-e;return n=(n&42)!==0?1:mr(n),(n&(t.suspendedLanes|e))!==0?0:n}function mr(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 pr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function _s(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:dp(t.type))}function Ds(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var Nn=Math.random().toString(36).slice(2),oe="__reactFiber$"+Nn,Se="__reactProps$"+Nn,Ml="__reactContainer$"+Nn,dr="__reactEvents$"+Nn,Ng="__reactListeners$"+Nn,Ug="__reactHandles$"+Nn,Ms="__reactResources$"+Nn,zi="__reactMarker$"+Nn;function gr(t){delete t[oe],delete t[Se],delete t[dr],delete t[Ng],delete t[Ug]}function Ol(t){var e=t[oe];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ml]||n[oe]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Pm(t);t!==null;){if(n=t[oe])return n;t=Pm(t)}return e}t=n,n=t.parentNode}return null}function Rl(t){if(t=t[oe]||t[Ml]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ci(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Nl(t){var e=t[Ms];return e||(e=t[Ms]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[zi]=!0}var Os=new Set,Rs={};function rl(t,e){Ul(t,e),Ul(t+"Capture",e)}function Ul(t,e){for(Rs[t]=e,t=0;t<e.length;t++)Os.add(e[t])}var Lg=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]*$"),Ns={},Us={};function Bg(t){return _l.call(Us,t)?!0:_l.call(Ns,t)?!1:Lg.test(t)?Us[t]=!0:(Ns[t]=!0,!1)}function La(t,e,n){if(Bg(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 Ba(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 mn(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 Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ls(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function jg(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 o=i.get,c=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(g){n=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function yr(t){if(!t._valueTracker){var e=Ls(t)?"checked":"value";t._valueTracker=jg(t,e,""+t[e])}}function Bs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Ls(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function ja(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}}var Hg=/[\n"\\]/g;function Ve(t){return t.replace(Hg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function br(t,e,n,i,o,c,g,v){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?vr(t,g,Ye(e)):n!=null?vr(t,g,Ye(n)):i!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Ye(v):t.removeAttribute("name")}function js(t,e,n,i,o,c,g,v){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)){yr(t);return}n=n!=null?""+Ye(n):"",e=e!=null?""+Ye(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=v?t.checked:!!i,t.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),yr(t)}function vr(t,e,n){e==="number"&&ja(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ll(t,e,n,i){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Ye(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Hs(t,e,n){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ye(n):""}function qs(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(J(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Ye(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),yr(t)}function Bl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var qg=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 Ys(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||qg.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Vs(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(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]="");for(var o in e)i=e[o],e.hasOwnProperty(o)&&n[o]!==i&&Ys(t,o,i)}else for(var c in e)e.hasOwnProperty(c)&&Ys(t,c,e[c])}function xr(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 Yg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Vg=/^[\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 Ha(t){return Vg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function pn(){}var Sr=null;function Er(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var jl=null,Hl=null;function Xs(t){var e=Rl(t);if(e&&(t=e.stateNode)){var n=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(br(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="'+Ve(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var o=i[Se]||null;if(!o)throw Error(r(90));br(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Bs(i)}break t;case"textarea":Hs(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ll(t,!!n.multiple,e,!1)}}}var kr=!1;function Gs(t,e,n){if(kr)return t(e,n);kr=!0;try{var i=t(e);return i}finally{if(kr=!1,(jl!==null||Hl!==null)&&(zu(),jl&&(e=jl,t=Hl,Hl=jl=null,Xs(e),t)))for(e=0;e<t.length;e++)Xs(t[e])}}function wi(t,e){var n=t.stateNode;if(n===null)return null;var i=n[Se]||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(r(231,e,typeof n));return n}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ar=!1;if(dn)try{var _i={};Object.defineProperty(_i,"passive",{get:function(){Ar=!0}}),window.addEventListener("test",_i,_i),window.removeEventListener("test",_i,_i)}catch{Ar=!1}var Un=null,Tr=null,qa=null;function Qs(){if(qa)return qa;var t,e=Tr,n=e.length,i,o="value"in Un?Un.value:Un.textContent,c=o.length;for(t=0;t<n&&e[t]===o[t];t++);var g=n-t;for(i=1;i<=g&&e[n-i]===o[c-i];i++);return qa=o.slice(t,1<i?1-i:void 0)}function Ya(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 Va(){return!0}function Zs(){return!1}function Ee(t){function e(n,i,o,c,g){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Va:Zs,this.isPropagationStopped=Zs,this}return y(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=Va)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Va)},persist:function(){},isPersistent:Va}),e}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xa=Ee(ol),Di=y({},ol,{view:0,detail:0}),Xg=Ee(Di),zr,Cr,Mi,Ga=y({},Di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,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!==Mi&&(Mi&&t.type==="mousemove"?(zr=t.screenX-Mi.screenX,Cr=t.screenY-Mi.screenY):Cr=zr=0,Mi=t),zr)},movementY:function(t){return"movementY"in t?t.movementY:Cr}}),Ks=Ee(Ga),Gg=y({},Ga,{dataTransfer:0}),Qg=Ee(Gg),Zg=y({},Di,{relatedTarget:0}),wr=Ee(Zg),Kg=y({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Jg=Ee(Kg),Fg=y({},ol,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ig=Ee(Fg),$g=y({},ol,{data:0}),Js=Ee($g),Wg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pg={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"},ty={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ty[t])?!!e[t]:!1}function _r(){return ey}var ny=y({},Di,{key:function(t){if(t.key){var e=Wg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ya(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Pg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(t){return t.type==="keypress"?Ya(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ya(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ly=Ee(ny),iy=y({},Ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fs=Ee(iy),ay=y({},Di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r}),uy=Ee(ay),ry=y({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),oy=Ee(ry),cy=y({},Ga,{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}),sy=Ee(cy),fy=y({},ol,{newState:0,oldState:0}),hy=Ee(fy),my=[9,13,27,32],Dr=dn&&"CompositionEvent"in window,Oi=null;dn&&"documentMode"in document&&(Oi=document.documentMode);var py=dn&&"TextEvent"in window&&!Oi,Is=dn&&(!Dr||Oi&&8<Oi&&11>=Oi),$s=" ",Ws=!1;function Ps(t,e){switch(t){case"keyup":return my.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ql=!1;function dy(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:(Ws=!0,$s);case"textInput":return t=e.data,t===$s&&Ws?null:t;default:return null}}function gy(t,e){if(ql)return t==="compositionend"||!Dr&&Ps(t,e)?(t=Qs(),qa=Tr=Un=null,ql=!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 Is&&e.locale!=="ko"?null:e.data;default:return null}}var yy={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 ef(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!yy[t.type]:e==="textarea"}function nf(t,e,n,i){jl?Hl?Hl.push(i):Hl=[i]:jl=i,e=Ru(e,"onChange"),0<e.length&&(n=new Xa("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Ri=null,Ni=null;function by(t){Hm(t,0)}function Qa(t){var e=Ci(t);if(Bs(e))return t}function lf(t,e){if(t==="change")return e}var af=!1;if(dn){var Mr;if(dn){var Or="oninput"in document;if(!Or){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),Or=typeof uf.oninput=="function"}Mr=Or}else Mr=!1;af=Mr&&(!document.documentMode||9<document.documentMode)}function rf(){Ri&&(Ri.detachEvent("onpropertychange",of),Ni=Ri=null)}function of(t){if(t.propertyName==="value"&&Qa(Ni)){var e=[];nf(e,Ni,t,Er(t)),Gs(by,e)}}function vy(t,e,n){t==="focusin"?(rf(),Ri=e,Ni=n,Ri.attachEvent("onpropertychange",of)):t==="focusout"&&rf()}function xy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qa(Ni)}function Sy(t,e){if(t==="click")return Qa(e)}function Ey(t,e){if(t==="input"||t==="change")return Qa(e)}function ky(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Me=typeof Object.is=="function"?Object.is:ky;function Ui(t,e){if(Me(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 o=n[i];if(!_l.call(e,o)||!Me(t[o],e[o]))return!1}return!0}function cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function sf(t,e){var n=cf(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=cf(n)}}function ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ja(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=ja(t.document)}return e}function Rr(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 Ay=dn&&"documentMode"in document&&11>=document.documentMode,Yl=null,Nr=null,Li=null,Ur=!1;function mf(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ur||Yl==null||Yl!==ja(i)||(i=Yl,"selectionStart"in i&&Rr(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}),Li&&Ui(Li,i)||(Li=i,i=Ru(Nr,"onSelect"),0<i.length&&(e=new Xa("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Yl)))}function cl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Vl={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},Lr={},pf={};dn&&(pf=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function sl(t){if(Lr[t])return Lr[t];if(!Vl[t])return t;var e=Vl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in pf)return Lr[t]=e[n];return t}var df=sl("animationend"),gf=sl("animationiteration"),yf=sl("animationstart"),Ty=sl("transitionrun"),zy=sl("transitionstart"),Cy=sl("transitioncancel"),bf=sl("transitionend"),vf=new Map,Br="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Br.push("scrollEnd");function Pe(t,e){vf.set(t,e),rl(e,[t])}var Za=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)},Xe=[],Xl=0,jr=0;function Ka(){for(var t=Xl,e=jr=Xl=0;e<t;){var n=Xe[e];Xe[e++]=null;var i=Xe[e];Xe[e++]=null;var o=Xe[e];Xe[e++]=null;var c=Xe[e];if(Xe[e++]=null,i!==null&&o!==null){var g=i.pending;g===null?o.next=o:(o.next=g.next,g.next=o),i.pending=o}c!==0&&xf(n,o,c)}}function Ja(t,e,n,i){Xe[Xl++]=t,Xe[Xl++]=e,Xe[Xl++]=n,Xe[Xl++]=i,jr|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Hr(t,e,n,i){return Ja(t,e,n,i),Fa(t)}function fl(t,e){return Ja(t,null,null,e),Fa(t)}function xf(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var o=!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||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-Yt(n),t=c.hiddenUpdates,i=t[o],i===null?t[o]=[e]:i.push(e),e.lane=n|536870912),c):null}function Fa(t){if(50<ia)throw ia=0,Fo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Gl={};function wy(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 Oe(t,e,n,i){return new wy(t,e,n,i)}function qr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function gn(t,e){var n=t.alternate;return n===null?(n=Oe(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&65011712,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 Sf(t,e){t.flags&=65011714;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 Ia(t,e,n,i,o,c){var g=0;if(i=t,typeof t=="function")qr(t)&&(g=1);else if(typeof t=="string")g=R1(t,n,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case dt:return t=Oe(31,n,e,o),t.elementType=dt,t.lanes=c,t;case L:return hl(n.children,o,c,e);case X:g=8,o|=24;break;case _:return t=Oe(12,n,e,o|2),t.elementType=_,t.lanes=c,t;case ot:return t=Oe(13,n,e,o),t.elementType=ot,t.lanes=c,t;case B:return t=Oe(19,n,e,o),t.elementType=B,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:g=10;break t;case Q:g=9;break t;case at:g=11;break t;case $:g=14;break t;case mt:g=16,i=null;break t}g=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=Oe(g,n,e,o),e.elementType=t,e.type=i,e.lanes=c,e}function hl(t,e,n,i){return t=Oe(7,t,i,e),t.lanes=n,t}function Yr(t,e,n){return t=Oe(6,t,null,e),t.lanes=n,t}function Ef(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function Vr(t,e,n){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var kf=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var n=kf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ma(e)},kf.set(t,e),e)}return{value:t,source:e,stack:Ma(e)}}var Ql=[],Zl=0,$a=null,Bi=0,Qe=[],Ze=0,Ln=null,ln=1,an="";function yn(t,e){Ql[Zl++]=Bi,Ql[Zl++]=$a,$a=t,Bi=e}function Af(t,e,n){Qe[Ze++]=ln,Qe[Ze++]=an,Qe[Ze++]=Ln,Ln=t;var i=ln;t=an;var o=32-Yt(i)-1;i&=~(1<<o),n+=1;var c=32-Yt(e)+o;if(30<c){var g=o-o%5;c=(i&(1<<g)-1).toString(32),i>>=g,o-=g,ln=1<<32-Yt(e)+o|n<<o|i,an=c+t}else ln=1<<c|n<<o|i,an=t}function Xr(t){t.return!==null&&(yn(t,1),Af(t,1,0))}function Gr(t){for(;t===$a;)$a=Ql[--Zl],Ql[Zl]=null,Bi=Ql[--Zl],Ql[Zl]=null;for(;t===Ln;)Ln=Qe[--Ze],Qe[Ze]=null,an=Qe[--Ze],Qe[Ze]=null,ln=Qe[--Ze],Qe[Ze]=null}function Tf(t,e){Qe[Ze++]=ln,Qe[Ze++]=an,Qe[Ze++]=Ln,ln=e.id,an=e.overflow,Ln=t}var ce=null,Qt=null,wt=!1,Bn=null,Ke=!1,Qr=Error(r(519));function jn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ji(Ge(e,t)),Qr}function zf(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[oe]=t,e[Se]=i,n){case"dialog":kt("cancel",e),kt("close",e);break;case"iframe":case"object":case"embed":kt("load",e);break;case"video":case"audio":for(n=0;n<ua.length;n++)kt(ua[n],e);break;case"source":kt("error",e);break;case"img":case"image":case"link":kt("error",e),kt("load",e);break;case"details":kt("toggle",e);break;case"input":kt("invalid",e),js(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":kt("invalid",e);break;case"textarea":kt("invalid",e),qs(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||Xm(e.textContent,n)?(i.popover!=null&&(kt("beforetoggle",e),kt("toggle",e)),i.onScroll!=null&&kt("scroll",e),i.onScrollEnd!=null&&kt("scrollend",e),i.onClick!=null&&(e.onclick=pn),e=!0):e=!1,e||jn(t,!0)}function Cf(t){for(ce=t.return;ce;)switch(ce.tag){case 5:case 31:case 13:Ke=!1;return;case 27:case 3:Ke=!0;return;default:ce=ce.return}}function Kl(t){if(t!==ce)return!1;if(!wt)return Cf(t),wt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||sc(t.type,t.memoizedProps)),n=!n),n&&Qt&&jn(t),Cf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Qt=Wm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Qt=Wm(t)}else e===27?(e=Qt,Wn(t.type)?(t=dc,dc=null,Qt=t):Qt=e):Qt=ce?Fe(t.stateNode.nextSibling):null;return!0}function ml(){Qt=ce=null,wt=!1}function Zr(){var t=Bn;return t!==null&&(ze===null?ze=t:ze.push.apply(ze,t),Bn=null),t}function ji(t){Bn===null?Bn=[t]:Bn.push(t)}var Kr=T(null),pl=null,bn=null;function Hn(t,e,n){E(Kr,e._currentValue),e._currentValue=n}function vn(t){t._currentValue=Kr.current,H(Kr)}function Jr(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 Fr(t,e,n,i){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=o;for(var A=0;A<e.length;A++)if(v.context===e[A]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Jr(c.return,n,t),i||(g=null);break t}c=v.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=n,c=g.alternate,c!==null&&(c.lanes|=n),Jr(g,n,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Jl(t,e,n,i){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var v=o.type;Me(o.pendingProps.value,g.value)||(t!==null?t.push(v):t=[v])}}else if(o===Tt.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(fa):t=[fa])}o=o.return}t!==null&&Fr(e,t,n,i),e.flags|=262144}function Wa(t){for(t=t.firstContext;t!==null;){if(!Me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function dl(t){pl=t,bn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function se(t){return wf(pl,t)}function Pa(t,e){return pl===null&&dl(t),wf(t,e)}function wf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},bn===null){if(t===null)throw Error(r(308));bn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else bn=bn.next=e;return n}var _y=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()})}},Dy=l.unstable_scheduleCallback,My=l.unstable_NormalPriority,Pt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ir(){return{controller:new _y,data:new Map,refCount:0}}function Hi(t){t.refCount--,t.refCount===0&&Dy(My,function(){t.controller.abort()})}var qi=null,$r=0,Fl=0,Il=null;function Oy(t,e){if(qi===null){var n=qi=[];$r=0,Fl=ec(),Il={status:"pending",value:void 0,then:function(i){n.push(i)}}}return $r++,e.then(_f,_f),e}function _f(){if(--$r===0&&qi!==null){Il!==null&&(Il.status="fulfilled");var t=qi;qi=null,Fl=0,Il=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ry(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Df=R.S;R.S=function(t,e){mm=ge(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Oy(t,e),Df!==null&&Df(t,e)};var gl=T(null);function Wr(){var t=gl.current;return t!==null?t:Vt.pooledCache}function tu(t,e){e===null?E(gl,gl.current):E(gl,e.pool)}function Mf(){var t=Wr();return t===null?null:{parent:Pt._currentValue,pool:t}}var $l=Error(r(460)),Pr=Error(r(474)),eu=Error(r(542)),nu={then:function(){}};function Of(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Rf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(pn,pn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uf(t),t;default:if(typeof e.status=="string")e.then(pn,pn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=i}},function(i){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uf(t),t}throw bl=e,$l}}function yl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(bl=n,$l):n}}var bl=null;function Nf(){if(bl===null)throw Error(r(459));var t=bl;return bl=null,t}function Uf(t){if(t===$l||t===eu)throw Error(r(483))}var Wl=null,Yi=0;function lu(t){var e=Yi;return Yi+=1,Wl===null&&(Wl=[]),Rf(Wl,t,e)}function Vi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function iu(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Lf(t){function e(w,z){if(t){var D=w.deletions;D===null?(w.deletions=[z],w.flags|=16):D.push(z)}}function n(w,z){if(!t)return null;for(;z!==null;)e(w,z),z=z.sibling;return null}function i(w){for(var z=new Map;w!==null;)w.key!==null?z.set(w.key,w):z.set(w.index,w),w=w.sibling;return z}function o(w,z){return w=gn(w,z),w.index=0,w.sibling=null,w}function c(w,z,D){return w.index=D,t?(D=w.alternate,D!==null?(D=D.index,D<z?(w.flags|=67108866,z):D):(w.flags|=67108866,z)):(w.flags|=1048576,z)}function g(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function v(w,z,D,Y){return z===null||z.tag!==6?(z=Yr(D,w.mode,Y),z.return=w,z):(z=o(z,D),z.return=w,z)}function A(w,z,D,Y){var rt=D.type;return rt===L?j(w,z,D.props.children,Y,D.key):z!==null&&(z.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===mt&&yl(rt)===z.type)?(z=o(z,D.props),Vi(z,D),z.return=w,z):(z=Ia(D.type,D.key,D.props,null,w.mode,Y),Vi(z,D),z.return=w,z)}function M(w,z,D,Y){return z===null||z.tag!==4||z.stateNode.containerInfo!==D.containerInfo||z.stateNode.implementation!==D.implementation?(z=Vr(D,w.mode,Y),z.return=w,z):(z=o(z,D.children||[]),z.return=w,z)}function j(w,z,D,Y,rt){return z===null||z.tag!==7?(z=hl(D,w.mode,Y,rt),z.return=w,z):(z=o(z,D),z.return=w,z)}function V(w,z,D){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Yr(""+z,w.mode,D),z.return=w,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return D=Ia(z.type,z.key,z.props,null,w.mode,D),Vi(D,z),D.return=w,D;case C:return z=Vr(z,w.mode,D),z.return=w,z;case mt:return z=yl(z),V(w,z,D)}if(J(z)||P(z))return z=hl(z,w.mode,D,null),z.return=w,z;if(typeof z.then=="function")return V(w,lu(z),D);if(z.$$typeof===G)return V(w,Pa(w,z),D);iu(w,z)}return null}function O(w,z,D,Y){var rt=z!==null?z.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return rt!==null?null:v(w,z,""+D,Y);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===rt?A(w,z,D,Y):null;case C:return D.key===rt?M(w,z,D,Y):null;case mt:return D=yl(D),O(w,z,D,Y)}if(J(D)||P(D))return rt!==null?null:j(w,z,D,Y,null);if(typeof D.then=="function")return O(w,z,lu(D),Y);if(D.$$typeof===G)return O(w,z,Pa(w,D),Y);iu(w,D)}return null}function N(w,z,D,Y,rt){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return w=w.get(D)||null,v(z,w,""+Y,rt);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:return w=w.get(Y.key===null?D:Y.key)||null,A(z,w,Y,rt);case C:return w=w.get(Y.key===null?D:Y.key)||null,M(z,w,Y,rt);case mt:return Y=yl(Y),N(w,z,D,Y,rt)}if(J(Y)||P(Y))return w=w.get(D)||null,j(z,w,Y,rt,null);if(typeof Y.then=="function")return N(w,z,D,lu(Y),rt);if(Y.$$typeof===G)return N(w,z,D,Pa(z,Y),rt);iu(z,Y)}return null}function et(w,z,D,Y){for(var rt=null,Dt=null,lt=z,yt=z=0,Ct=null;lt!==null&&yt<D.length;yt++){lt.index>yt?(Ct=lt,lt=null):Ct=lt.sibling;var Mt=O(w,lt,D[yt],Y);if(Mt===null){lt===null&&(lt=Ct);break}t&<&&Mt.alternate===null&&e(w,lt),z=c(Mt,z,yt),Dt===null?rt=Mt:Dt.sibling=Mt,Dt=Mt,lt=Ct}if(yt===D.length)return n(w,lt),wt&&yn(w,yt),rt;if(lt===null){for(;yt<D.length;yt++)lt=V(w,D[yt],Y),lt!==null&&(z=c(lt,z,yt),Dt===null?rt=lt:Dt.sibling=lt,Dt=lt);return wt&&yn(w,yt),rt}for(lt=i(lt);yt<D.length;yt++)Ct=N(lt,w,yt,D[yt],Y),Ct!==null&&(t&&Ct.alternate!==null&<.delete(Ct.key===null?yt:Ct.key),z=c(Ct,z,yt),Dt===null?rt=Ct:Dt.sibling=Ct,Dt=Ct);return t&<.forEach(function(ll){return e(w,ll)}),wt&&yn(w,yt),rt}function st(w,z,D,Y){if(D==null)throw Error(r(151));for(var rt=null,Dt=null,lt=z,yt=z=0,Ct=null,Mt=D.next();lt!==null&&!Mt.done;yt++,Mt=D.next()){lt.index>yt?(Ct=lt,lt=null):Ct=lt.sibling;var ll=O(w,lt,Mt.value,Y);if(ll===null){lt===null&&(lt=Ct);break}t&<&&ll.alternate===null&&e(w,lt),z=c(ll,z,yt),Dt===null?rt=ll:Dt.sibling=ll,Dt=ll,lt=Ct}if(Mt.done)return n(w,lt),wt&&yn(w,yt),rt;if(lt===null){for(;!Mt.done;yt++,Mt=D.next())Mt=V(w,Mt.value,Y),Mt!==null&&(z=c(Mt,z,yt),Dt===null?rt=Mt:Dt.sibling=Mt,Dt=Mt);return wt&&yn(w,yt),rt}for(lt=i(lt);!Mt.done;yt++,Mt=D.next())Mt=N(lt,w,yt,Mt.value,Y),Mt!==null&&(t&&Mt.alternate!==null&<.delete(Mt.key===null?yt:Mt.key),z=c(Mt,z,yt),Dt===null?rt=Mt:Dt.sibling=Mt,Dt=Mt);return t&<.forEach(function(G1){return e(w,G1)}),wt&&yn(w,yt),rt}function qt(w,z,D,Y){if(typeof D=="object"&&D!==null&&D.type===L&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:t:{for(var rt=D.key;z!==null;){if(z.key===rt){if(rt=D.type,rt===L){if(z.tag===7){n(w,z.sibling),Y=o(z,D.props.children),Y.return=w,w=Y;break t}}else if(z.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===mt&&yl(rt)===z.type){n(w,z.sibling),Y=o(z,D.props),Vi(Y,D),Y.return=w,w=Y;break t}n(w,z);break}else e(w,z);z=z.sibling}D.type===L?(Y=hl(D.props.children,w.mode,Y,D.key),Y.return=w,w=Y):(Y=Ia(D.type,D.key,D.props,null,w.mode,Y),Vi(Y,D),Y.return=w,w=Y)}return g(w);case C:t:{for(rt=D.key;z!==null;){if(z.key===rt)if(z.tag===4&&z.stateNode.containerInfo===D.containerInfo&&z.stateNode.implementation===D.implementation){n(w,z.sibling),Y=o(z,D.children||[]),Y.return=w,w=Y;break t}else{n(w,z);break}else e(w,z);z=z.sibling}Y=Vr(D,w.mode,Y),Y.return=w,w=Y}return g(w);case mt:return D=yl(D),qt(w,z,D,Y)}if(J(D))return et(w,z,D,Y);if(P(D)){if(rt=P(D),typeof rt!="function")throw Error(r(150));return D=rt.call(D),st(w,z,D,Y)}if(typeof D.then=="function")return qt(w,z,lu(D),Y);if(D.$$typeof===G)return qt(w,z,Pa(w,D),Y);iu(w,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,z!==null&&z.tag===6?(n(w,z.sibling),Y=o(z,D),Y.return=w,w=Y):(n(w,z),Y=Yr(D,w.mode,Y),Y.return=w,w=Y),g(w)):n(w,z)}return function(w,z,D,Y){try{Yi=0;var rt=qt(w,z,D,Y);return Wl=null,rt}catch(lt){if(lt===$l||lt===eu)throw lt;var Dt=Oe(29,lt,null,w.mode);return Dt.lanes=Y,Dt.return=w,Dt}finally{}}}var vl=Lf(!0),Bf=Lf(!1),qn=!1;function to(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eo(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 Yn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Ot&2)!==0){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,e=Fa(t),xf(t,null,n),e}return Ja(t,i,e,n),Fa(t)}function Xi(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,Cs(t,n)}}function no(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,n=n.next}while(n!==null);c===null?o=c=e:c=c.next=e}else o=c=e;n={baseState:i.baseState,firstBaseUpdate:o,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 lo=!1;function Gi(){if(lo){var t=Il;if(t!==null)throw t}}function Qi(t,e,n,i){lo=!1;var o=t.updateQueue;qn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var A=v,M=A.next;A.next=null,g===null?c=M:g.next=M,g=A;var j=t.alternate;j!==null&&(j=j.updateQueue,v=j.lastBaseUpdate,v!==g&&(v===null?j.firstBaseUpdate=M:v.next=M,j.lastBaseUpdate=A))}if(c!==null){var V=o.baseState;g=0,j=M=A=null,v=c;do{var O=v.lane&-536870913,N=O!==v.lane;if(N?(zt&O)===O:(i&O)===O){O!==0&&O===Fl&&(lo=!0),j!==null&&(j=j.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var et=t,st=v;O=e;var qt=n;switch(st.tag){case 1:if(et=st.payload,typeof et=="function"){V=et.call(qt,V,O);break t}V=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=st.payload,O=typeof et=="function"?et.call(qt,V,O):et,O==null)break t;V=y({},V,O);break t;case 2:qn=!0}}O=v.callback,O!==null&&(t.flags|=64,N&&(t.flags|=8192),N=o.callbacks,N===null?o.callbacks=[O]:N.push(O))}else N={lane:O,tag:v.tag,payload:v.payload,callback:v.callback,next:null},j===null?(M=j=N,A=V):j=j.next=N,g|=O;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;N=v,v=N.next,N.next=null,o.lastBaseUpdate=N,o.shared.pending=null}}while(!0);j===null&&(A=V),o.baseState=A,o.firstBaseUpdate=M,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),Kn|=g,t.lanes=g,t.memoizedState=V}}function jf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Hf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)jf(n[t],e)}var Pl=T(null),au=T(0);function qf(t,e){t=wn,E(au,t),E(Pl,e),wn=t|e.baseLanes}function io(){E(au,wn),E(Pl,Pl.current)}function ao(){wn=au.current,H(Pl),H(au)}var Re=T(null),Je=null;function Xn(t){var e=t.alternate;E($t,$t.current&1),E(Re,t),Je===null&&(e===null||Pl.current!==null||e.memoizedState!==null)&&(Je=t)}function uo(t){E($t,$t.current),E(Re,t),Je===null&&(Je=t)}function Yf(t){t.tag===22?(E($t,$t.current),E(Re,t),Je===null&&(Je=t)):Gn()}function Gn(){E($t,$t.current),E(Re,Re.current)}function Ne(t){H(Re),Je===t&&(Je=null),H($t)}var $t=T(0);function uu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mc(n)||pc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){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 xn=0,gt=null,jt=null,te=null,ru=!1,ti=!1,xl=!1,ou=0,Zi=0,ei=null,Ny=0;function Ft(){throw Error(r(321))}function ro(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Me(t[n],e[n]))return!1;return!0}function oo(t,e,n,i,o,c){return xn=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Ah:Ao,xl=!1,c=n(i,o),xl=!1,ti&&(c=Xf(e,n,i,o)),Vf(t),c}function Vf(t){R.H=Fi;var e=jt!==null&&jt.next!==null;if(xn=0,te=jt=gt=null,ru=!1,Zi=0,ei=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&Wa(t)&&(ee=!0))}function Xf(t,e,n,i){gt=t;var o=0;do{if(ti&&(ei=null),Zi=0,ti=!1,25<=o)throw Error(r(301));if(o+=1,te=jt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=Th,c=e(n,i)}while(ti);return c}function Uy(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?Ki(e):e,t=t.useState()[0],(jt!==null?jt.memoizedState:null)!==t&&(gt.flags|=1024),e}function co(){var t=ou!==0;return ou=0,t}function so(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function fo(t){if(ru){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ru=!1}xn=0,te=jt=gt=null,ti=!1,Zi=ou=0,ei=null}function be(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?gt.memoizedState=te=t:te=te.next=t,te}function Wt(){if(jt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=jt.next;var e=te===null?gt.memoizedState:te.next;if(e!==null)te=e,jt=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));jt=t,t={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},te===null?gt.memoizedState=te=t:te=te.next=t}return te}function cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ki(t){var e=Zi;return Zi+=1,ei===null&&(ei=[]),t=Rf(ei,t,e),e=gt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Ah:Ao),t}function su(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ki(t);if(t.$$typeof===G)return se(t)}throw Error(r(438,String(t)))}function ho(t){var e=null,n=gt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=gt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=cu(),gt.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]=U;return e.index++,n}function Sn(t,e){return typeof e=="function"?e(t):e}function fu(t){var e=Wt();return mo(e,jt,t)}function mo(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var o=t.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}e.baseQueue=o=c,i.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var v=g=null,A=null,M=e,j=!1;do{var V=M.lane&-536870913;if(V!==M.lane?(zt&V)===V:(xn&V)===V){var O=M.revertLane;if(O===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),V===Fl&&(j=!0);else if((xn&O)===O){M=M.next,O===Fl&&(j=!0);continue}else V={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},A===null?(v=A=V,g=c):A=A.next=V,gt.lanes|=O,Kn|=O;V=M.action,xl&&n(c,V),c=M.hasEagerState?M.eagerState:n(c,V)}else O={lane:V,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},A===null?(v=A=O,g=c):A=A.next=O,gt.lanes|=V,Kn|=V;M=M.next}while(M!==null&&M!==e);if(A===null?g=c:A.next=v,!Me(c,t.memoizedState)&&(ee=!0,j&&(n=Il,n!==null)))throw n;t.memoizedState=c,t.baseState=g,t.baseQueue=A,i.lastRenderedState=c}return o===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function po(t){var e=Wt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,o=n.pending,c=e.memoizedState;if(o!==null){n.pending=null;var g=o=o.next;do c=t(c,g.action),g=g.next;while(g!==o);Me(c,e.memoizedState)||(ee=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,i]}function Gf(t,e,n){var i=gt,o=Wt(),c=wt;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=e();var g=!Me((jt||o).memoizedState,n);if(g&&(o.memoizedState=n,ee=!0),o=o.queue,bo(Kf.bind(null,i,o,t),[t]),o.getSnapshot!==e||g||te!==null&&te.memoizedState.tag&1){if(i.flags|=2048,ni(9,{destroy:void 0},Zf.bind(null,i,o,n,e),null),Vt===null)throw Error(r(349));c||(xn&127)!==0||Qf(i,e,n)}return n}function Qf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=gt.updateQueue,e===null?(e=cu(),gt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Zf(t,e,n,i){e.value=n,e.getSnapshot=i,Jf(e)&&Ff(t)}function Kf(t,e,n){return n(function(){Jf(e)&&Ff(t)})}function Jf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Me(t,n)}catch{return!0}}function Ff(t){var e=fl(t,2);e!==null&&Ce(e,t,2)}function go(t){var e=be();if(typeof t=="function"){var n=t;if(t=n(),xl){xe(!0);try{n()}finally{xe(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t},e}function If(t,e,n,i){return t.baseState=n,mo(t,jt,typeof i=="function"?i:Sn)}function Ly(t,e,n,i,o){if(pu(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};R.T!==null?n(!0):c.isTransition=!1,i(c),n=e.pending,n===null?(c.next=e.pending=c,$f(e,c)):(c.next=n.next,e.pending=n.next=c)}}function $f(t,e){var n=e.action,i=e.payload,o=t.state;if(e.isTransition){var c=R.T,g={};R.T=g;try{var v=n(o,i),A=R.S;A!==null&&A(g,v),Wf(t,e,v)}catch(M){yo(t,e,M)}finally{c!==null&&g.types!==null&&(c.types=g.types),R.T=c}}else try{c=n(o,i),Wf(t,e,c)}catch(M){yo(t,e,M)}}function Wf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Pf(t,e,i)},function(i){return yo(t,e,i)}):Pf(t,e,n)}function Pf(t,e,n){e.status="fulfilled",e.value=n,th(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$f(t,n)))}function yo(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,th(e),e=e.next;while(e!==i)}t.action=null}function th(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function eh(t,e){return e}function nh(t,e){if(wt){var n=Vt.formState;if(n!==null){t:{var i=gt;if(wt){if(Qt){e:{for(var o=Qt,c=Ke;o.nodeType!==8;){if(!c){o=null;break e}if(o=Fe(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qt=Fe(o.nextSibling),i=o.data==="F!";break t}}jn(i)}i=!1}i&&(e=n[0])}}return n=be(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eh,lastRenderedState:e},n.queue=i,n=Sh.bind(null,gt,i),i.dispatch=n,i=go(!1),c=ko.bind(null,gt,!1,i.queue),i=be(),o={state:e,dispatch:null,action:t,pending:null},i.queue=o,n=Ly.bind(null,gt,o,c,n),o.dispatch=n,i.memoizedState=t,[e,n,!1]}function lh(t){var e=Wt();return ih(e,jt,t)}function ih(t,e,n){if(e=mo(t,e,eh)[0],t=fu(Sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Ki(e)}catch(g){throw g===$l?eu:g}else i=e;e=Wt();var o=e.queue,c=o.dispatch;return n!==e.memoizedState&&(gt.flags|=2048,ni(9,{destroy:void 0},By.bind(null,o,n),null)),[i,c,t]}function By(t,e){t.action=e}function ah(t){var e=Wt(),n=jt;if(n!==null)return ih(e,n,t);Wt(),e=e.memoizedState,n=Wt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function ni(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=gt.updateQueue,e===null&&(e=cu(),gt.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 uh(){return Wt().memoizedState}function hu(t,e,n,i){var o=be();gt.flags|=t,o.memoizedState=ni(1|e,{destroy:void 0},n,i===void 0?null:i)}function mu(t,e,n,i){var o=Wt();i=i===void 0?null:i;var c=o.memoizedState.inst;jt!==null&&i!==null&&ro(i,jt.memoizedState.deps)?o.memoizedState=ni(e,c,n,i):(gt.flags|=t,o.memoizedState=ni(1|e,c,n,i))}function rh(t,e){hu(8390656,8,t,e)}function bo(t,e){mu(2048,8,t,e)}function jy(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=cu(),gt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function oh(t){var e=Wt().memoizedState;return jy({ref:e,nextImpl:t}),function(){if((Ot&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function ch(t,e){return mu(4,2,t,e)}function sh(t,e){return mu(4,4,t,e)}function fh(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 hh(t,e,n){n=n!=null?n.concat([t]):null,mu(4,4,fh.bind(null,e,t),n)}function vo(){}function mh(t,e){var n=Wt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&ro(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function ph(t,e){var n=Wt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&ro(e,i[1]))return i[0];if(i=t(),xl){xe(!0);try{t()}finally{xe(!1)}}return n.memoizedState=[i,e],i}function xo(t,e,n){return n===void 0||(xn&1073741824)!==0&&(zt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=dm(),gt.lanes|=t,Kn|=t,n)}function dh(t,e,n,i){return Me(n,e)?n:Pl.current!==null?(t=xo(t,n,i),Me(t,e)||(ee=!0),t):(xn&42)===0||(xn&1073741824)!==0&&(zt&261930)===0?(ee=!0,t.memoizedState=n):(t=dm(),gt.lanes|=t,Kn|=t,e)}function gh(t,e,n,i,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var g=R.T,v={};R.T=v,ko(t,!1,e,n);try{var A=o(),M=R.S;if(M!==null&&M(v,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var j=Ry(A,i);Ji(t,e,j,Be(t))}else Ji(t,e,i,Be(t))}catch(V){Ji(t,e,{then:function(){},status:"rejected",reason:V},Be())}finally{Z.p=c,g!==null&&v.types!==null&&(g.types=v.types),R.T=g}}function Hy(){}function So(t,e,n,i){if(t.tag!==5)throw Error(r(476));var o=yh(t).queue;gh(t,o,e,it,n===null?Hy:function(){return bh(t),n(i)})}function yh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function bh(t){var e=yh(t);e.next===null&&(e=t.alternate.memoizedState),Ji(t,e.next.queue,{},Be())}function Eo(){return se(fa)}function vh(){return Wt().memoizedState}function xh(){return Wt().memoizedState}function qy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Be();t=Yn(n);var i=Vn(e,t,n);i!==null&&(Ce(i,e,n),Xi(i,e,n)),e={cache:Ir()},t.payload=e;return}e=e.return}}function Yy(t,e,n){var i=Be();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pu(t)?Eh(e,n):(n=Hr(t,e,n,i),n!==null&&(Ce(n,t,i),kh(n,e,i)))}function Sh(t,e,n){var i=Be();Ji(t,e,n,i)}function Ji(t,e,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pu(t))Eh(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,v=c(g,n);if(o.hasEagerState=!0,o.eagerState=v,Me(v,g))return Ja(t,e,o,0),Vt===null&&Ka(),!1}catch{}finally{}if(n=Hr(t,e,o,i),n!==null)return Ce(n,t,i),kh(n,e,i),!0}return!1}function ko(t,e,n,i){if(i={lane:2,revertLane:ec(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},pu(t)){if(e)throw Error(r(479))}else e=Hr(t,n,i,2),e!==null&&Ce(e,t,2)}function pu(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function Eh(t,e){ti=ru=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function kh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Cs(t,n)}}var Fi={readContext:se,use:su,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useLayoutEffect:Ft,useInsertionEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useSyncExternalStore:Ft,useId:Ft,useHostTransitionStatus:Ft,useFormState:Ft,useActionState:Ft,useOptimistic:Ft,useMemoCache:Ft,useCacheRefresh:Ft};Fi.useEffectEvent=Ft;var Ah={readContext:se,use:su,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:rh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,hu(4194308,4,fh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return hu(4194308,4,t,e)},useInsertionEffect:function(t,e){hu(4,2,t,e)},useMemo:function(t,e){var n=be();e=e===void 0?null:e;var i=t();if(xl){xe(!0);try{t()}finally{xe(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=be();if(n!==void 0){var o=n(e);if(xl){xe(!0);try{n(e)}finally{xe(!1)}}}else o=e;return i.memoizedState=i.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},i.queue=t,t=t.dispatch=Yy.bind(null,gt,t),[i.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=go(t);var e=t.queue,n=Sh.bind(null,gt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vo,useDeferredValue:function(t,e){var n=be();return xo(n,t,e)},useTransition:function(){var t=go(!1);return t=gh.bind(null,gt,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=gt,o=be();if(wt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Vt===null)throw Error(r(349));(zt&127)!==0||Qf(i,e,n)}o.memoizedState=n;var c={value:n,getSnapshot:e};return o.queue=c,rh(Kf.bind(null,i,c,t),[t]),i.flags|=2048,ni(9,{destroy:void 0},Zf.bind(null,i,c,n,e),null),n},useId:function(){var t=be(),e=Vt.identifierPrefix;if(wt){var n=an,i=ln;n=(i&~(1<<32-Yt(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ou++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Ny++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Eo,useFormState:nh,useActionState:nh,useOptimistic:function(t){var e=be();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=ko.bind(null,gt,!0,n),n.dispatch=e,[t,e]},useMemoCache:ho,useCacheRefresh:function(){return be().memoizedState=qy.bind(null,gt)},useEffectEvent:function(t){var e=be(),n={impl:t};return e.memoizedState=n,function(){if((Ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Ao={readContext:se,use:su,useCallback:mh,useContext:se,useEffect:bo,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:sh,useMemo:ph,useReducer:fu,useRef:uh,useState:function(){return fu(Sn)},useDebugValue:vo,useDeferredValue:function(t,e){var n=Wt();return dh(n,jt.memoizedState,t,e)},useTransition:function(){var t=fu(Sn)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:Ki(t),e]},useSyncExternalStore:Gf,useId:vh,useHostTransitionStatus:Eo,useFormState:lh,useActionState:lh,useOptimistic:function(t,e){var n=Wt();return If(n,jt,t,e)},useMemoCache:ho,useCacheRefresh:xh};Ao.useEffectEvent=oh;var Th={readContext:se,use:su,useCallback:mh,useContext:se,useEffect:bo,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:sh,useMemo:ph,useReducer:po,useRef:uh,useState:function(){return po(Sn)},useDebugValue:vo,useDeferredValue:function(t,e){var n=Wt();return jt===null?xo(n,t,e):dh(n,jt.memoizedState,t,e)},useTransition:function(){var t=po(Sn)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:Ki(t),e]},useSyncExternalStore:Gf,useId:vh,useHostTransitionStatus:Eo,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var n=Wt();return jt!==null?If(n,jt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ho,useCacheRefresh:xh};Th.useEffectEvent=oh;function To(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:y({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var zo={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Be(),o=Yn(i);o.payload=e,n!=null&&(o.callback=n),e=Vn(t,o,i),e!==null&&(Ce(e,t,i),Xi(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Be(),o=Yn(i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Vn(t,o,i),e!==null&&(Ce(e,t,i),Xi(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Be(),i=Yn(n);i.tag=2,e!=null&&(i.callback=e),e=Vn(t,i,n),e!==null&&(Ce(e,t,n),Xi(e,t,n))}};function zh(t,e,n,i,o,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,c,g):e.prototype&&e.prototype.isPureReactComponent?!Ui(n,i)||!Ui(o,c):!0}function Ch(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&&zo.enqueueReplaceState(e,e.state,null)}function Sl(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=y({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function wh(t){Za(t)}function _h(t){console.error(t)}function Dh(t){Za(t)}function du(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Mh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Co(t,e,n){return n=Yn(n),n.tag=3,n.payload={element:null},n.callback=function(){du(t,e)},n}function Oh(t){return t=Yn(t),t.tag=3,t}function Rh(t,e,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;t.payload=function(){return o(c)},t.callback=function(){Mh(e,n,i)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Mh(e,n,i),typeof o!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Vy(t,e,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Jl(e,n,o,!0),n=Re.current,n!==null){switch(n.tag){case 31:case 13:return Je===null?Cu():n.alternate===null&&It===0&&(It=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===nu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Wo(t,i,o)),!1;case 22:return n.flags|=65536,i===nu?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)),Wo(t,i,o)),!1}throw Error(r(435,n.tag))}return Wo(t,i,o),Cu(),!1}if(wt)return e=Re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,i!==Qr&&(t=Error(r(422),{cause:i}),ji(Ge(t,n)))):(i!==Qr&&(e=Error(r(423),{cause:i}),ji(Ge(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,i=Ge(i,n),o=Co(t.stateNode,i,o),no(t,o),It!==4&&(It=2)),!1;var c=Error(r(520),{cause:i});if(c=Ge(c,n),la===null?la=[c]:la.push(c),It!==4&&(It=2),e===null)return!0;i=Ge(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=Co(n.stateNode,i,t),no(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"&&(Jn===null||!Jn.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Oh(o),Rh(o,t,n,i),no(n,o),!1}n=n.return}while(n!==null);return!1}var wo=Error(r(461)),ee=!1;function fe(t,e,n,i){e.child=t===null?Bf(e,null,n,i):vl(e,t.child,n,i)}function Nh(t,e,n,i,o){n=n.render;var c=e.ref;if("ref"in i){var g={};for(var v in i)v!=="ref"&&(g[v]=i[v])}else g=i;return dl(e),i=oo(t,e,n,g,c,o),v=co(),t!==null&&!ee?(so(t,e,o),En(t,e,o)):(wt&&v&&Xr(e),e.flags|=1,fe(t,e,i,o),e.child)}function Uh(t,e,n,i,o){if(t===null){var c=n.type;return typeof c=="function"&&!qr(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Lh(t,e,c,i,o)):(t=Ia(n.type,null,i,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Lo(t,o)){var g=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ui,n(g,i)&&t.ref===e.ref)return En(t,e,o)}return e.flags|=1,t=gn(c,i),t.ref=e.ref,t.return=e,e.child=t}function Lh(t,e,n,i,o){if(t!==null){var c=t.memoizedProps;if(Ui(c,i)&&t.ref===e.ref)if(ee=!1,e.pendingProps=i=c,Lo(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,En(t,e,o)}return _o(t,e,n,i,o)}function Bh(t,e,n,i){var o=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,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,e.child=null;return jh(t,e,c,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&tu(e,c!==null?c.cachePool:null),c!==null?qf(e,c):io(),Yf(e);else return i=e.lanes=536870912,jh(t,e,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(tu(e,c.cachePool),qf(e,c),Gn(),e.memoizedState=null):(t!==null&&tu(e,null),io(),Gn());return fe(t,e,o,n),e.child}function Ii(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function jh(t,e,n,i,o){var c=Wr();return c=c===null?null:{parent:Pt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&tu(e,null),io(),Yf(e),t!==null&&Jl(t,e,i,!0),e.childLanes=o,null}function gu(t,e){return e=bu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Hh(t,e,n){return vl(e,t.child,null,n),t=gu(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function Xy(t,e,n){var i=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(wt){if(i.mode==="hidden")return t=gu(e,i),e.lanes=536870912,Ii(null,t);if(uo(e),(t=Qt)?(t=$m(t,Ke),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ln!==null?{id:ln,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=Ef(t),n.return=e,e.child=n,ce=e,Qt=null)):t=null,t===null)throw jn(e);return e.lanes=536870912,null}return gu(e,i)}var c=t.memoizedState;if(c!==null){var g=c.dehydrated;if(uo(e),o)if(e.flags&256)e.flags&=-257,e=Hh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||Jl(t,e,n,!1),o=(n&t.childLanes)!==0,ee||o){if(i=Vt,i!==null&&(g=ws(i,n),g!==0&&g!==c.retryLane))throw c.retryLane=g,fl(t,g),Ce(i,t,g),wo;Cu(),e=Hh(t,e,n)}else t=c.treeContext,Qt=Fe(g.nextSibling),ce=e,wt=!0,Bn=null,Ke=!1,t!==null&&Tf(e,t),e=gu(e,i),e.flags|=4096;return e}return t=gn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function yu(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(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function _o(t,e,n,i,o){return dl(e),n=oo(t,e,n,i,void 0,o),i=co(),t!==null&&!ee?(so(t,e,o),En(t,e,o)):(wt&&i&&Xr(e),e.flags|=1,fe(t,e,n,o),e.child)}function qh(t,e,n,i,o,c){return dl(e),e.updateQueue=null,n=Xf(e,i,n,o),Vf(t),i=co(),t!==null&&!ee?(so(t,e,c),En(t,e,c)):(wt&&i&&Xr(e),e.flags|=1,fe(t,e,n,c),e.child)}function Yh(t,e,n,i,o){if(dl(e),e.stateNode===null){var c=Gl,g=n.contextType;typeof g=="object"&&g!==null&&(c=se(g)),c=new n(i,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=zo,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=i,c.state=e.memoizedState,c.refs={},to(e),g=n.contextType,c.context=typeof g=="object"&&g!==null?se(g):Gl,c.state=e.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(To(e,n,g,i),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&zo.enqueueReplaceState(c,c.state,null),Qi(e,i,c,o),Gi(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,A=Sl(n,v);c.props=A;var M=c.context,j=n.contextType;g=Gl,typeof j=="object"&&j!==null&&(g=se(j));var V=n.getDerivedStateFromProps;j=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||M!==g)&&Ch(e,c,i,g),qn=!1;var O=e.memoizedState;c.state=O,Qi(e,i,c,o),Gi(),M=e.memoizedState,v||O!==M||qn?(typeof V=="function"&&(To(e,n,V,i),M=e.memoizedState),(A=qn||zh(e,n,A,i,O,M,g))?(j||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=M),c.props=i,c.state=M,c.context=g,i=A):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{c=e.stateNode,eo(t,e),g=e.memoizedProps,j=Sl(n,g),c.props=j,V=e.pendingProps,O=c.context,M=n.contextType,A=Gl,typeof M=="object"&&M!==null&&(A=se(M)),v=n.getDerivedStateFromProps,(M=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==V||O!==A)&&Ch(e,c,i,A),qn=!1,O=e.memoizedState,c.state=O,Qi(e,i,c,o),Gi();var N=e.memoizedState;g!==V||O!==N||qn||t!==null&&t.dependencies!==null&&Wa(t.dependencies)?(typeof v=="function"&&(To(e,n,v,i),N=e.memoizedState),(j=qn||zh(e,n,j,i,O,N,A)||t!==null&&t.dependencies!==null&&Wa(t.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,N,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,N,A)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=N),c.props=i,c.state=N,c.context=A,i=j):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),i=!1)}return c=i,yu(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=vl(e,t.child,null,o),e.child=vl(e,null,n,o)):fe(t,e,n,o),e.memoizedState=c.state,t=e.child):t=En(t,e,o),t}function Vh(t,e,n,i){return ml(),e.flags|=256,fe(t,e,n,i),e.child}var Do={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mo(t){return{baseLanes:t,cachePool:Mf()}}function Oo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Le),t}function Xh(t,e,n){var i=e.pendingProps,o=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:($t.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(o?Xn(e):Gn(),(t=Qt)?(t=$m(t,Ke),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ln!==null?{id:ln,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=Ef(t),n.return=e,e.child=n,ce=e,Qt=null)):t=null,t===null)throw jn(e);return pc(t)?e.lanes=32:e.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(Gn(),o=e.mode,v=bu({mode:"hidden",children:v},o),i=hl(i,o,n,null),v.return=e,i.return=e,v.sibling=i,e.child=v,i=e.child,i.memoizedState=Mo(n),i.childLanes=Oo(t,g,n),e.memoizedState=Do,Ii(null,i)):(Xn(e),Ro(e,v))}var A=t.memoizedState;if(A!==null&&(v=A.dehydrated,v!==null)){if(c)e.flags&256?(Xn(e),e.flags&=-257,e=No(t,e,n)):e.memoizedState!==null?(Gn(),e.child=t.child,e.flags|=128,e=null):(Gn(),v=i.fallback,o=e.mode,i=bu({mode:"visible",children:i.children},o),v=hl(v,o,n,null),v.flags|=2,i.return=e,v.return=e,i.sibling=v,e.child=i,vl(e,t.child,null,n),i=e.child,i.memoizedState=Mo(n),i.childLanes=Oo(t,g,n),e.memoizedState=Do,e=Ii(null,i));else if(Xn(e),pc(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var M=g.dgst;g=M,i=Error(r(419)),i.stack="",i.digest=g,ji({value:i,source:null,stack:null}),e=No(t,e,n)}else if(ee||Jl(t,e,n,!1),g=(n&t.childLanes)!==0,ee||g){if(g=Vt,g!==null&&(i=ws(g,n),i!==0&&i!==A.retryLane))throw A.retryLane=i,fl(t,i),Ce(g,t,i),wo;mc(v)||Cu(),e=No(t,e,n)}else mc(v)?(e.flags|=192,e.child=t.child,e=null):(t=A.treeContext,Qt=Fe(v.nextSibling),ce=e,wt=!0,Bn=null,Ke=!1,t!==null&&Tf(e,t),e=Ro(e,i.children),e.flags|=4096);return e}return o?(Gn(),v=i.fallback,o=e.mode,A=t.child,M=A.sibling,i=gn(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,M!==null?v=gn(M,v):(v=hl(v,o,n,null),v.flags|=2),v.return=e,i.return=e,i.sibling=v,e.child=i,Ii(null,i),i=e.child,v=t.child.memoizedState,v===null?v=Mo(n):(o=v.cachePool,o!==null?(A=Pt._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=Mf(),v={baseLanes:v.baseLanes|n,cachePool:o}),i.memoizedState=v,i.childLanes=Oo(t,g,n),e.memoizedState=Do,Ii(t.child,i)):(Xn(e),n=t.child,t=n.sibling,n=gn(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=n,e.memoizedState=null,n)}function Ro(t,e){return e=bu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function bu(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function No(t,e,n){return vl(e,t.child,null,n),t=Ro(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gh(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Jr(t.return,e,n)}function Uo(t,e,n,i,o,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=n,g.tailMode=o,g.treeForkCount=c)}function Qh(t,e,n){var i=e.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var g=$t.current,v=(g&2)!==0;if(v?(g=g&1|2,e.flags|=128):g&=1,E($t,g),fe(t,e,i,n),i=wt?Bi:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gh(t,n,e);else if(t.tag===19)Gh(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(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&uu(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Uo(e,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&uu(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Uo(e,!0,n,null,c,i);break;case"together":Uo(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function En(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Kn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Jl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=gn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=gn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Lo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Wa(t)))}function Gy(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),Hn(e,Pt,t.memoizedState.cache),ml();break;case 27:case 5:qe(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:Hn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,uo(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(Xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Xh(t,e,n):(Xn(e),t=En(t,e,n),t!==null?t.sibling:null);Xn(e);break;case 19:var o=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Jl(t,e,n,!1),i=(n&e.childLanes)!==0),o){if(i)return Qh(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),E($t,$t.current),i)break;return null;case 22:return e.lanes=0,Bh(t,e,n,e.pendingProps);case 24:Hn(e,Pt,t.memoizedState.cache)}return En(t,e,n)}function Zh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Lo(t,n)&&(e.flags&128)===0)return ee=!1,Gy(t,e,n);ee=(t.flags&131072)!==0}else ee=!1,wt&&(e.flags&1048576)!==0&&Af(e,Bi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=yl(e.elementType),e.type=t,typeof t=="function")qr(t)?(i=Sl(t,i),e.tag=1,e=Yh(null,e,t,i,n)):(e.tag=0,e=_o(null,e,t,i,n));else{if(t!=null){var o=t.$$typeof;if(o===at){e.tag=11,e=Nh(null,e,t,i,n);break t}else if(o===$){e.tag=14,e=Uh(null,e,t,i,n);break t}}throw e=nt(t)||t,Error(r(306,e,""))}}return e;case 0:return _o(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,o=Sl(i,e.pendingProps),Yh(t,e,i,o,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var c=e.memoizedState;o=c.element,eo(t,e),Qi(e,i,null,n);var g=e.memoizedState;if(i=g.cache,Hn(e,Pt,i),i!==c.cache&&Fr(e,[Pt],n,!0),Gi(),i=g.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Vh(t,e,i,n);break t}else if(i!==o){o=Ge(Error(r(424)),e),ji(o),e=Vh(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(Qt=Fe(t.firstChild),ce=e,wt=!0,Bn=null,Ke=!0,n=Bf(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ml(),i===o){e=En(t,e,n);break t}fe(t,e,i,n)}e=e.child}return e;case 26:return yu(t,e),t===null?(n=lp(e.type,null,e.pendingProps,null))?e.memoizedState=n:wt||(n=e.type,t=e.pendingProps,i=Nu(ut.current).createElement(n),i[oe]=e,i[Se]=t,he(i,n,t),ue(i),e.stateNode=i):e.memoizedState=lp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return qe(e),t===null&&wt&&(i=e.stateNode=tp(e.type,e.pendingProps,ut.current),ce=e,Ke=!0,o=Qt,Wn(e.type)?(dc=o,Qt=Fe(i.firstChild)):Qt=o),fe(t,e,e.pendingProps.children,n),yu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((o=i=Qt)&&(i=x1(i,e.type,e.pendingProps,Ke),i!==null?(e.stateNode=i,ce=e,Qt=Fe(i.firstChild),Ke=!1,o=!0):o=!1),o||jn(e)),qe(e),o=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,i=c.children,sc(o,c)?i=null:g!==null&&sc(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=oo(t,e,Uy,null,null,n),fa._currentValue=o),yu(t,e),fe(t,e,i,n),e.child;case 6:return t===null&&wt&&((t=n=Qt)&&(n=S1(n,e.pendingProps,Ke),n!==null?(e.stateNode=n,ce=e,Qt=null,t=!0):t=!1),t||jn(e)),null;case 13:return Xh(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=vl(e,null,i,n):fe(t,e,i,n),e.child;case 11:return Nh(t,e,e.type,e.pendingProps,n);case 7:return fe(t,e,e.pendingProps,n),e.child;case 8:return fe(t,e,e.pendingProps.children,n),e.child;case 12:return fe(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Hn(e,e.type,i.value),fe(t,e,i.children,n),e.child;case 9:return o=e.type._context,i=e.pendingProps.children,dl(e),o=se(o),i=i(o),e.flags|=1,fe(t,e,i,n),e.child;case 14:return Uh(t,e,e.type,e.pendingProps,n);case 15:return Lh(t,e,e.type,e.pendingProps,n);case 19:return Qh(t,e,n);case 31:return Xy(t,e,n);case 22:return Bh(t,e,n,e.pendingProps);case 24:return dl(e),i=se(Pt),t===null?(o=Wr(),o===null&&(o=Vt,c=Ir(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),e.memoizedState={parent:i,cache:o},to(e),Hn(e,Pt,o)):((t.lanes&n)!==0&&(eo(t,e),Qi(e,null,null,n),Gi()),o=t.memoizedState,c=e.memoizedState,o.parent!==i?(o={parent:i,cache:i},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Hn(e,Pt,i)):(i=c.cache,Hn(e,Pt,i),i!==o.cache&&Fr(e,[Pt],n,!0))),fe(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function kn(t){t.flags|=4}function Bo(t,e,n,i,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(vm())t.flags|=8192;else throw bl=nu,Pr}else t.flags&=-16777217}function Kh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!op(e))if(vm())t.flags|=8192;else throw bl=nu,Pr}function vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ts():536870912,t.lanes|=e,ui|=e)}function $i(t,e){if(!wt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var 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}}function Zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function Qy(t,e,n){var i=e.pendingProps;switch(Gr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(e),null;case 1:return Zt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),vn(Pt),Bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Kl(e)?kn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Zr())),Zt(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(kn(e),c!==null?(Zt(e),Kh(e,c)):(Zt(e),Bo(e,o,null,i,n))):c?c!==t.memoizedState?(kn(e),Zt(e),Kh(e,c)):(Zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&kn(e),Zt(e),Bo(e,o,t,i,n)),null;case 27:if(sn(e),n=ut.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&kn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Zt(e),null}t=I.current,Kl(e)?zf(e):(t=tp(o,i,n),e.stateNode=t,kn(e))}return Zt(e),null;case 5:if(sn(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&kn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Zt(e),null}if(c=I.current,Kl(e))zf(e);else{var g=Nu(ut.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?g.createElement(o,{is:i.is}):g.createElement(o)}}c[oe]=e,c[Se]=i;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=c;t:switch(he(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&kn(e)}}return Zt(e),Bo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&kn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=ut.current,Kl(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,o=ce,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}t[oe]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Xm(t.nodeValue,n)),t||jn(e,!0)}else t=Nu(t).createTextNode(i),t[oe]=e,e.stateNode=t}return Zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Kl(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[oe]=e}else ml(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Zt(e),t=!1}else n=Zr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Zt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Kl(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[oe]=e}else ml(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Zt(e),o=!1}else o=Zr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),vu(e,e.updateQueue),Zt(e),null);case 4:return Bt(),t===null&&ac(e.stateNode.containerInfo),Zt(e),null;case 10:return vn(e.type),Zt(e),null;case 19:if(H($t),i=e.memoizedState,i===null)return Zt(e),null;if(o=(e.flags&128)!==0,c=i.rendering,c===null)if(o)$i(i,!1);else{if(It!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=uu(t),c!==null){for(e.flags|=128,$i(i,!1),t=c.updateQueue,e.updateQueue=t,vu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sf(n,t),n=n.sibling;return E($t,$t.current&1|2),wt&&yn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&ge()>Au&&(e.flags|=128,o=!0,$i(i,!1),e.lanes=4194304)}else{if(!o)if(t=uu(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,vu(e,t),$i(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!wt)return Zt(e),null}else 2*ge()-i.renderingStartTime>Au&&n!==536870912&&(e.flags|=128,o=!0,$i(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)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ge(),t.sibling=null,n=$t.current,E($t,o?n&1|2:n&1),wt&&yn(e,i.treeForkCount),t):(Zt(e),null);case 22:case 23:return Ne(e),ao(),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&&(Zt(e),e.subtreeFlags&6&&(e.flags|=8192)):Zt(e),n=e.updateQueue,n!==null&&vu(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&&H(gl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),vn(Pt),Zt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Zy(t,e){switch(Gr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Pt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return sn(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(r(340));ml()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ml()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H($t),null;case 4:return Bt(),null;case 10:return vn(e.type),null;case 22:case 23:return Ne(e),ao(),t!==null&&H(gl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Pt),null;case 25:return null;default:return null}}function Jh(t,e){switch(Gr(e),e.tag){case 3:vn(Pt),Bt();break;case 26:case 27:case 5:sn(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:H($t);break;case 10:vn(e.type);break;case 22:case 23:Ne(e),ao(),t!==null&&H(gl);break;case 24:vn(Pt)}}function Wi(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&t)===t){i=void 0;var c=n.create,g=n.inst;i=c(),g.destroy=i}n=n.next}while(n!==o)}}catch(v){Lt(e,e.return,v)}}function Qn(t,e,n){try{var i=e.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&t)===t){var g=i.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=e;var A=n,M=v;try{M()}catch(j){Lt(o,A,j)}}}i=i.next}while(i!==c)}}catch(j){Lt(e,e.return,j)}}function Fh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Hf(e,n)}catch(i){Lt(t,t.return,i)}}}function Ih(t,e,n){n.props=Sl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Lt(t,e,i)}}function Pi(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:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(o){Lt(t,e,o)}}function un(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){Lt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Lt(t,e,o)}else n.current=null}function $h(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(o){Lt(t,t.return,o)}}function jo(t,e,n){try{var i=t.stateNode;p1(i,t.type,n,e),i[Se]=e}catch(o){Lt(t,t.return,o)}}function Wh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wn(t.type)||t.tag===4}function Ho(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Wh(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&&Wn(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 qo(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=pn));else if(i!==4&&(i===27&&Wn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(qo(t,e,n),t=t.sibling;t!==null;)qo(t,e,n),t=t.sibling}function xu(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&Wn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(xu(t,e,n),t=t.sibling;t!==null;)xu(t,e,n),t=t.sibling}function Ph(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);he(e,i,n),e[oe]=t,e[Se]=n}catch(c){Lt(t,t.return,c)}}var An=!1,ne=!1,Yo=!1,tm=typeof WeakSet=="function"?WeakSet:Set,re=null;function Ky(t,e){if(t=t.containerInfo,oc=Yu,t=hf(t),Rr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var g=0,v=-1,A=-1,M=0,j=0,V=t,O=null;e:for(;;){for(var N;V!==n||o!==0&&V.nodeType!==3||(v=g+o),V!==c||i!==0&&V.nodeType!==3||(A=g+i),V.nodeType===3&&(g+=V.nodeValue.length),(N=V.firstChild)!==null;)O=V,V=N;for(;;){if(V===t)break e;if(O===n&&++M===o&&(v=g),O===c&&++j===i&&(A=g),(N=V.nextSibling)!==null)break;V=O,O=V.parentNode}V=N}n=v===-1||A===-1?null:{start:v,end:A}}else n=null}n=n||{start:0,end:0}}else n=null;for(cc={focusedElem:t,selectionRange:n},Yu=!1,re=e;re!==null;)if(e=re,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,re=t;else for(;re!==null;){switch(e=re,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)o=t[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var et=Sl(n.type,o);t=i.getSnapshotBeforeUpdate(et,c),i.__reactInternalSnapshotBeforeUpdate=t}catch(st){Lt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)hc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":hc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,re=t;break}re=e.return}}function em(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:zn(t,n),i&4&&Wi(5,n);break;case 1:if(zn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(g){Lt(n,n.return,g)}else{var o=Sl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Lt(n,n.return,g)}}i&64&&Fh(n),i&512&&Pi(n,n.return);break;case 3:if(zn(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{Hf(t,e)}catch(g){Lt(n,n.return,g)}}break;case 27:e===null&&i&4&&Ph(n);case 26:case 5:zn(t,n),e===null&&i&4&&$h(n),i&512&&Pi(n,n.return);break;case 12:zn(t,n);break;case 31:zn(t,n),i&4&&im(t,n);break;case 13:zn(t,n),i&4&&am(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=n1.bind(null,n),E1(t,n))));break;case 22:if(i=n.memoizedState!==null||An,!i){e=e!==null&&e.memoizedState!==null||ne,o=An;var c=ne;An=i,(ne=e)&&!c?Cn(t,n,(n.subtreeFlags&8772)!==0):zn(t,n),An=o,ne=c}break;case 30:break;default:zn(t,n)}}function nm(t){var e=t.alternate;e!==null&&(t.alternate=null,nm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&gr(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 Jt=null,ke=!1;function Tn(t,e,n){for(n=n.child;n!==null;)lm(t,e,n),n=n.sibling}function lm(t,e,n){if(ie&&typeof ie.onCommitFiberUnmount=="function")try{ie.onCommitFiberUnmount(ye,n)}catch{}switch(n.tag){case 26:ne||un(n,e),Tn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ne||un(n,e);var i=Jt,o=ke;Wn(n.type)&&(Jt=n.stateNode,ke=!1),Tn(t,e,n),oa(n.stateNode),Jt=i,ke=o;break;case 5:ne||un(n,e);case 6:if(i=Jt,o=ke,Jt=null,Tn(t,e,n),Jt=i,ke=o,Jt!==null)if(ke)try{(Jt.nodeType===9?Jt.body:Jt.nodeName==="HTML"?Jt.ownerDocument.body:Jt).removeChild(n.stateNode)}catch(c){Lt(n,e,c)}else try{Jt.removeChild(n.stateNode)}catch(c){Lt(n,e,c)}break;case 18:Jt!==null&&(ke?(t=Jt,Fm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),pi(t)):Fm(Jt,n.stateNode));break;case 4:i=Jt,o=ke,Jt=n.stateNode.containerInfo,ke=!0,Tn(t,e,n),Jt=i,ke=o;break;case 0:case 11:case 14:case 15:Qn(2,n,e),ne||Qn(4,n,e),Tn(t,e,n);break;case 1:ne||(un(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Ih(n,e,i)),Tn(t,e,n);break;case 21:Tn(t,e,n);break;case 22:ne=(i=ne)||n.memoizedState!==null,Tn(t,e,n),ne=i;break;default:Tn(t,e,n)}}function im(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{pi(t)}catch(n){Lt(e,e.return,n)}}}function am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{pi(t)}catch(n){Lt(e,e.return,n)}}function Jy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new tm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new tm),e;default:throw Error(r(435,t.tag))}}function Su(t,e){var n=Jy(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var o=l1.bind(null,t,i);i.then(o,o)}})}function Ae(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=t,g=e,v=g;t:for(;v!==null;){switch(v.tag){case 27:if(Wn(v.type)){Jt=v.stateNode,ke=!1;break t}break;case 5:Jt=v.stateNode,ke=!1;break t;case 3:case 4:Jt=v.stateNode.containerInfo,ke=!0;break t}v=v.return}if(Jt===null)throw Error(r(160));lm(c,g,o),Jt=null,ke=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)um(e,t),e=e.sibling}var tn=null;function um(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ae(e,t),Te(t),i&4&&(Qn(3,t,t.return),Wi(3,t),Qn(5,t,t.return));break;case 1:Ae(e,t),Te(t),i&512&&(ne||n===null||un(n,n.return)),i&64&&An&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=tn;if(Ae(e,t),Te(t),i&512&&(ne||n===null||un(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,o=o.ownerDocument||o;e:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[zi]||c[oe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),he(c,i,n),c[oe]=t,ue(c),i=c;break t;case"link":var g=up("link","href",o).get(i+(n.href||""));if(g){for(var v=0;v<g.length;v++)if(c=g[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(v,1);break e}}c=o.createElement(i),he(c,i,n),o.head.appendChild(c);break;case"meta":if(g=up("meta","content",o).get(i+(n.content||""))){for(v=0;v<g.length;v++)if(c=g[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(v,1);break e}}c=o.createElement(i),he(c,i,n),o.head.appendChild(c);break;default:throw Error(r(468,i))}c[oe]=t,ue(c),i=c}t.stateNode=i}else rp(o,t.type,t.stateNode);else t.stateNode=ap(o,i,t.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?rp(o,t.type,t.stateNode):ap(o,i,t.memoizedProps)):i===null&&t.stateNode!==null&&jo(t,t.memoizedProps,n.memoizedProps)}break;case 27:Ae(e,t),Te(t),i&512&&(ne||n===null||un(n,n.return)),n!==null&&i&4&&jo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Ae(e,t),Te(t),i&512&&(ne||n===null||un(n,n.return)),t.flags&32){o=t.stateNode;try{Bl(o,"")}catch(et){Lt(t,t.return,et)}}i&4&&t.stateNode!=null&&(o=t.memoizedProps,jo(t,o,n!==null?n.memoizedProps:o)),i&1024&&(Yo=!0);break;case 6:if(Ae(e,t),Te(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(et){Lt(t,t.return,et)}}break;case 3:if(Bu=null,o=tn,tn=Uu(e.containerInfo),Ae(e,t),tn=o,Te(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{pi(e.containerInfo)}catch(et){Lt(t,t.return,et)}Yo&&(Yo=!1,rm(t));break;case 4:i=tn,tn=Uu(t.stateNode.containerInfo),Ae(e,t),Te(t),tn=i;break;case 12:Ae(e,t),Te(t);break;case 31:Ae(e,t),Te(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Su(t,i)));break;case 13:Ae(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ku=ge()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Su(t,i)));break;case 22:o=t.memoizedState!==null;var A=n!==null&&n.memoizedState!==null,M=An,j=ne;if(An=M||o,ne=j||A,Ae(e,t),ne=j,An=M,Te(t),i&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(n===null||A||An||ne||El(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){A=n=e;try{if(c=A.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=A.stateNode;var V=A.memoizedProps.style,O=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(et){Lt(A,A.return,et)}}}else if(e.tag===6){if(n===null){A=e;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(et){Lt(A,A.return,et)}}}else if(e.tag===18){if(n===null){A=e;try{var N=A.stateNode;o?Im(N,!0):Im(A.stateNode,!1)}catch(et){Lt(A,A.return,et)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Su(t,n))));break;case 19:Ae(e,t),Te(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Su(t,i)));break;case 30:break;case 21:break;default:Ae(e,t),Te(t)}}function Te(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(Wh(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,c=Ho(t);xu(t,c,o);break;case 5:var g=n.stateNode;n.flags&32&&(Bl(g,""),n.flags&=-33);var v=Ho(t);xu(t,v,g);break;case 3:case 4:var A=n.stateNode.containerInfo,M=Ho(t);qo(t,M,A);break;default:throw Error(r(161))}}catch(j){Lt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function rm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;rm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function zn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)em(t,e.alternate,e),e=e.sibling}function El(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Qn(4,e,e.return),El(e);break;case 1:un(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Ih(e,e.return,n),El(e);break;case 27:oa(e.stateNode);case 26:case 5:un(e,e.return),El(e);break;case 22:e.memoizedState===null&&El(e);break;case 30:El(e);break;default:El(e)}t=t.sibling}}function Cn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,o=t,c=e,g=c.flags;switch(c.tag){case 0:case 11:case 15:Cn(o,c,n),Wi(4,c);break;case 1:if(Cn(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(M){Lt(i,i.return,M)}if(i=c,o=i.updateQueue,o!==null){var v=i.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)jf(A[o],v)}catch(M){Lt(i,i.return,M)}}n&&g&64&&Fh(c),Pi(c,c.return);break;case 27:Ph(c);case 26:case 5:Cn(o,c,n),n&&i===null&&g&4&&$h(c),Pi(c,c.return);break;case 12:Cn(o,c,n);break;case 31:Cn(o,c,n),n&&g&4&&im(o,c);break;case 13:Cn(o,c,n),n&&g&4&&am(o,c);break;case 22:c.memoizedState===null&&Cn(o,c,n),Pi(c,c.return);break;case 30:break;default:Cn(o,c,n)}e=e.sibling}}function Vo(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&&Hi(n))}function Xo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Hi(t))}function en(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)om(t,e,n,i),e=e.sibling}function om(t,e,n,i){var o=e.flags;switch(e.tag){case 0:case 11:case 15:en(t,e,n,i),o&2048&&Wi(9,e);break;case 1:en(t,e,n,i);break;case 3:en(t,e,n,i),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Hi(t)));break;case 12:if(o&2048){en(t,e,n,i),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,v=c.onPostCommit;typeof v=="function"&&v(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(A){Lt(e,e.return,A)}}else en(t,e,n,i);break;case 31:en(t,e,n,i);break;case 13:en(t,e,n,i);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?en(t,e,n,i):ta(t,e):c._visibility&2?en(t,e,n,i):(c._visibility|=2,li(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Vo(g,e);break;case 24:en(t,e,n,i),o&2048&&Xo(e.alternate,e);break;default:en(t,e,n,i)}}function li(t,e,n,i,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,g=e,v=n,A=i,M=g.flags;switch(g.tag){case 0:case 11:case 15:li(c,g,v,A,o),Wi(8,g);break;case 23:break;case 22:var j=g.stateNode;g.memoizedState!==null?j._visibility&2?li(c,g,v,A,o):ta(c,g):(j._visibility|=2,li(c,g,v,A,o)),o&&M&2048&&Vo(g.alternate,g);break;case 24:li(c,g,v,A,o),o&&M&2048&&Xo(g.alternate,g);break;default:li(c,g,v,A,o)}e=e.sibling}}function ta(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,o=i.flags;switch(i.tag){case 22:ta(n,i),o&2048&&Vo(i.alternate,i);break;case 24:ta(n,i),o&2048&&Xo(i.alternate,i);break;default:ta(n,i)}e=e.sibling}}var ea=8192;function ii(t,e,n){if(t.subtreeFlags&ea)for(t=t.child;t!==null;)cm(t,e,n),t=t.sibling}function cm(t,e,n){switch(t.tag){case 26:ii(t,e,n),t.flags&ea&&t.memoizedState!==null&&N1(n,tn,t.memoizedState,t.memoizedProps);break;case 5:ii(t,e,n);break;case 3:case 4:var i=tn;tn=Uu(t.stateNode.containerInfo),ii(t,e,n),tn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=ea,ea=16777216,ii(t,e,n),ea=i):ii(t,e,n));break;default:ii(t,e,n)}}function sm(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 na(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];re=i,hm(i,t)}sm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fm(t),t=t.sibling}function fm(t){switch(t.tag){case 0:case 11:case 15:na(t),t.flags&2048&&Qn(9,t,t.return);break;case 3:na(t);break;case 12:na(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Eu(t)):na(t);break;default:na(t)}}function Eu(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];re=i,hm(i,t)}sm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Qn(8,e,e.return),Eu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Eu(e));break;default:Eu(e)}t=t.sibling}}function hm(t,e){for(;re!==null;){var n=re;switch(n.tag){case 0:case 11:case 15:Qn(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:Hi(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,re=i;else t:for(n=t;re!==null;){i=re;var o=i.sibling,c=i.return;if(nm(i),i===n){re=null;break t}if(o!==null){o.return=c,re=o;break t}re=c}}}var Fy={getCacheForType:function(t){var e=se(Pt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return se(Pt).controller.signal}},Iy=typeof WeakMap=="function"?WeakMap:Map,Ot=0,Vt=null,Et=null,zt=0,Ut=0,Ue=null,Zn=!1,ai=!1,Go=!1,wn=0,It=0,Kn=0,kl=0,Qo=0,Le=0,ui=0,la=null,ze=null,Zo=!1,ku=0,mm=0,Au=1/0,Tu=null,Jn=null,ae=0,Fn=null,ri=null,_n=0,Ko=0,Jo=null,pm=null,ia=0,Fo=null;function Be(){return(Ot&2)!==0&&zt!==0?zt&-zt:R.T!==null?ec():_s()}function dm(){if(Le===0)if((zt&536870912)===0||wt){var t=Ra;Ra<<=1,(Ra&3932160)===0&&(Ra=262144),Le=t}else Le=536870912;return t=Re.current,t!==null&&(t.flags|=32),Le}function Ce(t,e,n){(t===Vt&&(Ut===2||Ut===9)||t.cancelPendingCommit!==null)&&(oi(t,0),In(t,zt,Le,!1)),Ti(t,n),((Ot&2)===0||t!==Vt)&&(t===Vt&&((Ot&2)===0&&(kl|=n),It===4&&In(t,zt,Le,!1)),rn(t))}function gm(t,e,n){if((Ot&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ai(t,e),o=i?Py(t,e):$o(t,e,!0),c=i;do{if(o===0){ai&&!i&&In(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!$y(n)){o=$o(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var v=t;o=la;var A=v.current.memoizedState.isDehydrated;if(A&&(oi(v,g).flags|=256),g=$o(v,g,!1),g!==2){if(Go&&!A){v.errorRecoveryDisabledLanes|=c,kl|=c,o=4;break t}c=ze,ze=o,c!==null&&(ze===null?ze=c:ze.push.apply(ze,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){oi(t,0),In(t,e,0,!0);break}t:{switch(i=t,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:In(i,e,Le,!Zn);break t;case 2:ze=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=ku+300-ge(),10<o)){if(In(i,e,Le,!Zn),Ua(i,0,!0)!==0)break t;_n=e,i.timeoutHandle=Km(ym.bind(null,i,n,ze,Tu,Zo,e,Le,kl,ui,Zn,c,"Throttled",-0,0),o);break t}ym(i,n,ze,Tu,Zo,e,Le,kl,ui,Zn,c,null,-0,0)}}break}while(!0);rn(t)}function ym(t,e,n,i,o,c,g,v,A,M,j,V,O,N){if(t.timeoutHandle=-1,V=e.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},cm(e,c,V);var et=(c&62914560)===c?ku-ge():(c&4194048)===c?mm-ge():0;if(et=U1(V,et),et!==null){_n=c,t.cancelPendingCommit=et(Tm.bind(null,t,e,c,n,i,o,g,v,A,j,V,null,O,N)),In(t,c,g,!M);return}}Tm(t,e,c,n,i,o,g,v,A)}function $y(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 o=n[i],c=o.getSnapshot;o=o.value;try{if(!Me(c(),o))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 In(t,e,n,i){e&=~Qo,e&=~kl,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var o=e;0<o;){var c=31-Yt(o),g=1<<c;i[c]=-1,o&=~g}n!==0&&zs(t,n,e)}function zu(){return(Ot&6)===0?(aa(0),!1):!0}function Io(){if(Et!==null){if(Ut===0)var t=Et.return;else t=Et,bn=pl=null,fo(t),Wl=null,Yi=0,t=Et;for(;t!==null;)Jh(t.alternate,t),t=t.return;Et=null}}function oi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,y1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),_n=0,Io(),Vt=t,Et=n=gn(t.current,null),zt=e,Ut=0,Ue=null,Zn=!1,ai=Ai(t,e),Go=!1,ui=Le=Qo=kl=Kn=It=0,ze=la=null,Zo=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var o=31-Yt(i),c=1<<o;e|=t[o],i&=~c}return wn=e,Ka(),n}function bm(t,e){gt=null,R.H=Fi,e===$l||e===eu?(e=Nf(),Ut=3):e===Pr?(e=Nf(),Ut=4):Ut=e===wo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,Et===null&&(It=1,du(t,Ge(e,t.current)))}function vm(){var t=Re.current;return t===null?!0:(zt&4194048)===zt?Je===null:(zt&62914560)===zt||(zt&536870912)!==0?t===Je:!1}function xm(){var t=R.H;return R.H=Fi,t===null?Fi:t}function Sm(){var t=R.A;return R.A=Fy,t}function Cu(){It=4,Zn||(zt&4194048)!==zt&&Re.current!==null||(ai=!0),(Kn&134217727)===0&&(kl&134217727)===0||Vt===null||In(Vt,zt,Le,!1)}function $o(t,e,n){var i=Ot;Ot|=2;var o=xm(),c=Sm();(Vt!==t||zt!==e)&&(Tu=null,oi(t,e)),e=!1;var g=It;t:do try{if(Ut!==0&&Et!==null){var v=Et,A=Ue;switch(Ut){case 8:Io(),g=6;break t;case 3:case 2:case 9:case 6:Re.current===null&&(e=!0);var M=Ut;if(Ut=0,Ue=null,ci(t,v,A,M),n&&ai){g=0;break t}break;default:M=Ut,Ut=0,Ue=null,ci(t,v,A,M)}}Wy(),g=It;break}catch(j){bm(t,j)}while(!0);return e&&t.shellSuspendCounter++,bn=pl=null,Ot=i,R.H=o,R.A=c,Et===null&&(Vt=null,zt=0,Ka()),g}function Wy(){for(;Et!==null;)Em(Et)}function Py(t,e){var n=Ot;Ot|=2;var i=xm(),o=Sm();Vt!==t||zt!==e?(Tu=null,Au=ge()+500,oi(t,e)):ai=Ai(t,e);t:do try{if(Ut!==0&&Et!==null){e=Et;var c=Ue;e:switch(Ut){case 1:Ut=0,Ue=null,ci(t,e,c,1);break;case 2:case 9:if(Of(c)){Ut=0,Ue=null,km(e);break}e=function(){Ut!==2&&Ut!==9||Vt!==t||(Ut=7),rn(t)},c.then(e,e);break t;case 3:Ut=7;break t;case 4:Ut=5;break t;case 7:Of(c)?(Ut=0,Ue=null,km(e)):(Ut=0,Ue=null,ci(t,e,c,7));break;case 5:var g=null;switch(Et.tag){case 26:g=Et.memoizedState;case 5:case 27:var v=Et;if(g?op(g):v.stateNode.complete){Ut=0,Ue=null;var A=v.sibling;if(A!==null)Et=A;else{var M=v.return;M!==null?(Et=M,wu(M)):Et=null}break e}}Ut=0,Ue=null,ci(t,e,c,5);break;case 6:Ut=0,Ue=null,ci(t,e,c,6);break;case 8:Io(),It=6;break t;default:throw Error(r(462))}}t1();break}catch(j){bm(t,j)}while(!0);return bn=pl=null,R.H=i,R.A=o,Ot=n,Et!==null?0:(Vt=null,zt=0,Ka(),It)}function t1(){for(;Et!==null&&!cr();)Em(Et)}function Em(t){var e=Zh(t.alternate,t,wn);t.memoizedProps=t.pendingProps,e===null?wu(t):Et=e}function km(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=qh(n,e,e.pendingProps,e.type,void 0,zt);break;case 11:e=qh(n,e,e.pendingProps,e.type.render,e.ref,zt);break;case 5:fo(e);default:Jh(n,e),e=Et=Sf(e,wn),e=Zh(n,e,wn)}t.memoizedProps=t.pendingProps,e===null?wu(t):Et=e}function ci(t,e,n,i){bn=pl=null,fo(e),Wl=null,Yi=0;var o=e.return;try{if(Vy(t,o,e,n,zt)){It=1,du(t,Ge(n,t.current)),Et=null;return}}catch(c){if(o!==null)throw Et=o,c;It=1,du(t,Ge(n,t.current)),Et=null;return}e.flags&32768?(wt||i===1?t=!0:ai||(zt&536870912)!==0?t=!1:(Zn=t=!0,(i===2||i===9||i===3||i===6)&&(i=Re.current,i!==null&&i.tag===13&&(i.flags|=16384))),Am(e,t)):wu(e)}function wu(t){var e=t;do{if((e.flags&32768)!==0){Am(e,Zn);return}t=e.return;var n=Qy(e.alternate,e,wn);if(n!==null){Et=n;return}if(e=e.sibling,e!==null){Et=e;return}Et=e=t}while(e!==null);It===0&&(It=5)}function Am(t,e){do{var n=Zy(t.alternate,t);if(n!==null){n.flags&=32767,Et=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Et=t;return}Et=t=n}while(t!==null);It=6,Et=null}function Tm(t,e,n,i,o,c,g,v,A){t.cancelPendingCommit=null;do _u();while(ae!==0);if((Ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=jr,Rg(t,n,c,g,v,A),t===Vt&&(Et=Vt=null,zt=0),ri=e,Fn=t,_n=n,Ko=c,Jo=o,pm=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,i1(ht,function(){return Dm(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,o=Z.p,Z.p=2,g=Ot,Ot|=4;try{Ky(t,e,n)}finally{Ot=g,Z.p=o,R.T=i}}ae=1,zm(),Cm(),wm()}}function zm(){if(ae===1){ae=0;var t=Fn,e=ri,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var i=Z.p;Z.p=2;var o=Ot;Ot|=4;try{um(e,t);var c=cc,g=hf(t.containerInfo),v=c.focusedElem,A=c.selectionRange;if(g!==v&&v&&v.ownerDocument&&ff(v.ownerDocument.documentElement,v)){if(A!==null&&Rr(v)){var M=A.start,j=A.end;if(j===void 0&&(j=M),"selectionStart"in v)v.selectionStart=M,v.selectionEnd=Math.min(j,v.value.length);else{var V=v.ownerDocument||document,O=V&&V.defaultView||window;if(O.getSelection){var N=O.getSelection(),et=v.textContent.length,st=Math.min(A.start,et),qt=A.end===void 0?st:Math.min(A.end,et);!N.extend&&st>qt&&(g=qt,qt=st,st=g);var w=sf(v,st),z=sf(v,qt);if(w&&z&&(N.rangeCount!==1||N.anchorNode!==w.node||N.anchorOffset!==w.offset||N.focusNode!==z.node||N.focusOffset!==z.offset)){var D=V.createRange();D.setStart(w.node,w.offset),N.removeAllRanges(),st>qt?(N.addRange(D),N.extend(z.node,z.offset)):(D.setEnd(z.node,z.offset),N.addRange(D))}}}}for(V=[],N=v;N=N.parentNode;)N.nodeType===1&&V.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var Y=V[v];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Yu=!!oc,cc=oc=null}finally{Ot=o,Z.p=i,R.T=n}}t.current=e,ae=2}}function Cm(){if(ae===2){ae=0;var t=Fn,e=ri,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var i=Z.p;Z.p=2;var o=Ot;Ot|=4;try{em(t,e.alternate,e)}finally{Ot=o,Z.p=i,R.T=n}}ae=3}}function wm(){if(ae===4||ae===3){ae=0,sr();var t=Fn,e=ri,n=_n,i=pm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ae=5:(ae=0,ri=Fn=null,_m(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Jn=null),pr(n),e=e.stateNode,ie&&typeof ie.onCommitFiberRoot=="function")try{ie.onCommitFiberRoot(ye,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=R.T,o=Z.p,Z.p=2,R.T=null;try{for(var c=t.onRecoverableError,g=0;g<i.length;g++){var v=i[g];c(v.value,{componentStack:v.stack})}}finally{R.T=e,Z.p=o}}(_n&3)!==0&&_u(),rn(t),o=t.pendingLanes,(n&261930)!==0&&(o&42)!==0?t===Fo?ia++:(ia=0,Fo=t):ia=0,aa(0)}}function _m(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Hi(e)))}function _u(){return zm(),Cm(),wm(),Dm()}function Dm(){if(ae!==5)return!1;var t=Fn,e=Ko;Ko=0;var n=pr(_n),i=R.T,o=Z.p;try{Z.p=32>n?32:n,R.T=null,n=Jo,Jo=null;var c=Fn,g=_n;if(ae=0,ri=Fn=null,_n=0,(Ot&6)!==0)throw Error(r(331));var v=Ot;if(Ot|=4,fm(c.current),om(c,c.current,g,n),Ot=v,aa(0,!1),ie&&typeof ie.onPostCommitFiberRoot=="function")try{ie.onPostCommitFiberRoot(ye,c)}catch{}return!0}finally{Z.p=o,R.T=i,_m(t,e)}}function Mm(t,e,n){e=Ge(n,e),e=Co(t.stateNode,e,2),t=Vn(t,e,2),t!==null&&(Ti(t,2),rn(t))}function Lt(t,e,n){if(t.tag===3)Mm(t,t,n);else for(;e!==null;){if(e.tag===3){Mm(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Jn===null||!Jn.has(i))){t=Ge(n,t),n=Oh(2),i=Vn(e,n,2),i!==null&&(Rh(n,i,e,t),Ti(i,2),rn(i));break}}e=e.return}}function Wo(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new Iy;var o=new Set;i.set(e,o)}else o=i.get(e),o===void 0&&(o=new Set,i.set(e,o));o.has(n)||(Go=!0,o.add(n),t=e1.bind(null,t,e,n),e.then(t,t))}function e1(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Vt===t&&(zt&n)===n&&(It===4||It===3&&(zt&62914560)===zt&&300>ge()-ku?(Ot&2)===0&&oi(t,0):Qo|=n,ui===zt&&(ui=0)),rn(t)}function Om(t,e){e===0&&(e=Ts()),t=fl(t,e),t!==null&&(Ti(t,e),rn(t))}function n1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Om(t,n)}function l1(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),Om(t,n)}function i1(t,e){return Dl(t,e)}var Du=null,si=null,Po=!1,Mu=!1,tc=!1,$n=0;function rn(t){t!==si&&t.next===null&&(si===null?Du=si=t:si=si.next=t),Mu=!0,Po||(Po=!0,u1())}function aa(t,e){if(!tc&&Mu){tc=!0;do for(var n=!1,i=Du;i!==null;){if(t!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var g=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-Yt(42|t)+1)-1,c&=o&~(g&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Lm(i,c))}else c=zt,c=Ua(i,i===Vt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Ai(i,c)||(n=!0,Lm(i,c));i=i.next}while(n);tc=!1}}function a1(){Rm()}function Rm(){Mu=Po=!1;var t=0;$n!==0&&g1()&&(t=$n);for(var e=ge(),n=null,i=Du;i!==null;){var o=i.next,c=Nm(i,e);c===0?(i.next=null,n===null?Du=o:n.next=o,o===null&&(si=n)):(n=i,(t!==0||(c&3)!==0)&&(Mu=!0)),i=o}ae!==0&&ae!==5||aa(t),$n!==0&&($n=0)}function Nm(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-Yt(c),v=1<<g,A=o[g];A===-1?((v&n)===0||(v&i)!==0)&&(o[g]=Og(v,e)):A<=e&&(t.expiredLanes|=v),c&=~v}if(e=Vt,n=zt,n=Ua(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Ut===2||Ut===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&ki(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ai(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&ki(i),pr(n)){case 2:case 8:n=F;break;case 32:n=ht;break;case 268435456:n=Nt;break;default:n=ht}return i=Um.bind(null,t),n=Dl(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&ki(i),t.callbackPriority=2,t.callbackNode=null,2}function Um(t,e){if(ae!==0&&ae!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(_u()&&t.callbackNode!==n)return null;var i=zt;return i=Ua(t,t===Vt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(gm(t,i,e),Nm(t,ge()),t.callbackNode!=null&&t.callbackNode===n?Um.bind(null,t):null)}function Lm(t,e){if(_u())return null;gm(t,e,!0)}function u1(){b1(function(){(Ot&6)!==0?Dl(q,a1):Rm()})}function ec(){if($n===0){var t=Fl;t===0&&(t=Oa,Oa<<=1,(Oa&261888)===0&&(Oa=256)),$n=t}return $n}function Bm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ha(""+t)}function jm(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function r1(t,e,n,i,o){if(e==="submit"&&n&&n.stateNode===o){var c=Bm((o[Se]||null).action),g=i.submitter;g&&(e=(e=g[Se]||null)?Bm(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var v=new Xa("action","action",null,i,o);t.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var A=g?jm(o,g):new FormData(o);So(n,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(v.preventDefault(),A=g?jm(o,g):new FormData(o),So(n,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var nc=0;nc<Br.length;nc++){var lc=Br[nc],o1=lc.toLowerCase(),c1=lc[0].toUpperCase()+lc.slice(1);Pe(o1,"on"+c1)}Pe(df,"onAnimationEnd"),Pe(gf,"onAnimationIteration"),Pe(yf,"onAnimationStart"),Pe("dblclick","onDoubleClick"),Pe("focusin","onFocus"),Pe("focusout","onBlur"),Pe(Ty,"onTransitionRun"),Pe(zy,"onTransitionStart"),Pe(Cy,"onTransitionCancel"),Pe(bf,"onTransitionEnd"),Ul("onMouseEnter",["mouseout","mouseover"]),Ul("onMouseLeave",["mouseout","mouseover"]),Ul("onPointerEnter",["pointerout","pointerover"]),Ul("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ua="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(" "),s1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ua));function Hm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],o=i.event;i=i.listeners;t:{var c=void 0;if(e)for(var g=i.length-1;0<=g;g--){var v=i[g],A=v.instance,M=v.currentTarget;if(v=v.listener,A!==c&&o.isPropagationStopped())break t;c=v,o.currentTarget=M;try{c(o)}catch(j){Za(j)}o.currentTarget=null,c=A}else for(g=0;g<i.length;g++){if(v=i[g],A=v.instance,M=v.currentTarget,v=v.listener,A!==c&&o.isPropagationStopped())break t;c=v,o.currentTarget=M;try{c(o)}catch(j){Za(j)}o.currentTarget=null,c=A}}}}function kt(t,e){var n=e[dr];n===void 0&&(n=e[dr]=new Set);var i=t+"__bubble";n.has(i)||(qm(e,t,2,!1),n.add(i))}function ic(t,e,n){var i=0;e&&(i|=4),qm(n,t,i,e)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function ac(t){if(!t[Ou]){t[Ou]=!0,Os.forEach(function(n){n!=="selectionchange"&&(s1.has(n)||ic(n,!1,t),ic(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ou]||(e[Ou]=!0,ic("selectionchange",!1,e))}}function qm(t,e,n,i){switch(dp(e)){case 2:var o=j1;break;case 8:o=H1;break;default:o=xc}n=o.bind(null,e,n,t),o=void 0,!Ar||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function uc(t,e,n,i,o){var c=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var v=i.stateNode.containerInfo;if(v===o)break;if(g===4)for(g=i.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;v!==null;){if(g=Ol(v),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){i=c=g;continue t}v=v.parentNode}}i=i.return}Gs(function(){var M=c,j=Er(n),V=[];t:{var O=vf.get(t);if(O!==void 0){var N=Xa,et=t;switch(t){case"keypress":if(Ya(n)===0)break t;case"keydown":case"keyup":N=ly;break;case"focusin":et="focus",N=wr;break;case"focusout":et="blur",N=wr;break;case"beforeblur":case"afterblur":N=wr;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":N=Ks;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Qg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=uy;break;case df:case gf:case yf:N=Jg;break;case bf:N=oy;break;case"scroll":case"scrollend":N=Xg;break;case"wheel":N=sy;break;case"copy":case"cut":case"paste":N=Ig;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Fs;break;case"toggle":case"beforetoggle":N=hy}var st=(e&4)!==0,qt=!st&&(t==="scroll"||t==="scrollend"),w=st?O!==null?O+"Capture":null:O;st=[];for(var z=M,D;z!==null;){var Y=z;if(D=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||D===null||w===null||(Y=wi(z,w),Y!=null&&st.push(ra(z,Y,D))),qt)break;z=z.return}0<st.length&&(O=new N(O,et,null,n,j),V.push({event:O,listeners:st}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",O&&n!==Sr&&(et=n.relatedTarget||n.fromElement)&&(Ol(et)||et[Ml]))break t;if((N||O)&&(O=j.window===j?j:(O=j.ownerDocument)?O.defaultView||O.parentWindow:window,N?(et=n.relatedTarget||n.toElement,N=M,et=et?Ol(et):null,et!==null&&(qt=h(et),st=et.tag,et!==qt||st!==5&&st!==27&&st!==6)&&(et=null)):(N=null,et=M),N!==et)){if(st=Ks,Y="onMouseLeave",w="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(st=Fs,Y="onPointerLeave",w="onPointerEnter",z="pointer"),qt=N==null?O:Ci(N),D=et==null?O:Ci(et),O=new st(Y,z+"leave",N,n,j),O.target=qt,O.relatedTarget=D,Y=null,Ol(j)===M&&(st=new st(w,z+"enter",et,n,j),st.target=D,st.relatedTarget=qt,Y=st),qt=Y,N&&et)e:{for(st=f1,w=N,z=et,D=0,Y=w;Y;Y=st(Y))D++;Y=0;for(var rt=z;rt;rt=st(rt))Y++;for(;0<D-Y;)w=st(w),D--;for(;0<Y-D;)z=st(z),Y--;for(;D--;){if(w===z||z!==null&&w===z.alternate){st=w;break e}w=st(w),z=st(z)}st=null}else st=null;N!==null&&Ym(V,O,N,st,!1),et!==null&&qt!==null&&Ym(V,qt,et,st,!0)}}t:{if(O=M?Ci(M):window,N=O.nodeName&&O.nodeName.toLowerCase(),N==="select"||N==="input"&&O.type==="file")var Dt=lf;else if(ef(O))if(af)Dt=Ey;else{Dt=xy;var lt=vy}else N=O.nodeName,!N||N.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?M&&xr(M.elementType)&&(Dt=lf):Dt=Sy;if(Dt&&(Dt=Dt(t,M))){nf(V,Dt,n,j);break t}lt&<(t,O,M),t==="focusout"&&M&&O.type==="number"&&M.memoizedProps.value!=null&&vr(O,"number",O.value)}switch(lt=M?Ci(M):window,t){case"focusin":(ef(lt)||lt.contentEditable==="true")&&(Yl=lt,Nr=M,Li=null);break;case"focusout":Li=Nr=Yl=null;break;case"mousedown":Ur=!0;break;case"contextmenu":case"mouseup":case"dragend":Ur=!1,mf(V,n,j);break;case"selectionchange":if(Ay)break;case"keydown":case"keyup":mf(V,n,j)}var yt;if(Dr)t:{switch(t){case"compositionstart":var Ct="onCompositionStart";break t;case"compositionend":Ct="onCompositionEnd";break t;case"compositionupdate":Ct="onCompositionUpdate";break t}Ct=void 0}else ql?Ps(t,n)&&(Ct="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Ct="onCompositionStart");Ct&&(Is&&n.locale!=="ko"&&(ql||Ct!=="onCompositionStart"?Ct==="onCompositionEnd"&&ql&&(yt=Qs()):(Un=j,Tr="value"in Un?Un.value:Un.textContent,ql=!0)),lt=Ru(M,Ct),0<lt.length&&(Ct=new Js(Ct,t,null,n,j),V.push({event:Ct,listeners:lt}),yt?Ct.data=yt:(yt=tf(n),yt!==null&&(Ct.data=yt)))),(yt=py?dy(t,n):gy(t,n))&&(Ct=Ru(M,"onBeforeInput"),0<Ct.length&&(lt=new Js("onBeforeInput","beforeinput",null,n,j),V.push({event:lt,listeners:Ct}),lt.data=yt)),r1(V,t,M,n,j)}Hm(V,e)})}function ra(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ru(t,e){for(var n=e+"Capture",i=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=wi(t,n),o!=null&&i.unshift(ra(t,o,c)),o=wi(t,e),o!=null&&i.push(ra(t,o,c))),t.tag===3)return i;t=t.return}return[]}function f1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ym(t,e,n,i,o){for(var c=e._reactName,g=[];n!==null&&n!==i;){var v=n,A=v.alternate,M=v.stateNode;if(v=v.tag,A!==null&&A===i)break;v!==5&&v!==26&&v!==27||M===null||(A=M,o?(M=wi(n,c),M!=null&&g.unshift(ra(n,M,A))):o||(M=wi(n,c),M!=null&&g.push(ra(n,M,A)))),n=n.return}g.length!==0&&t.push({event:e,listeners:g})}var h1=/\r\n?/g,m1=/\u0000|\uFFFD/g;function Vm(t){return(typeof t=="string"?t:""+t).replace(h1,`
|
|
49
|
+
`).replace(m1,"")}function Xm(t,e){return e=Vm(e),Vm(t)===e}function Ht(t,e,n,i,o,c){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Bl(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Bl(t,""+i);break;case"className":Ba(t,"class",i);break;case"tabIndex":Ba(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ba(t,n,i);break;case"style":Vs(t,i,c);break;case"data":if(e!=="object"){Ba(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=Ha(""+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"&&Ht(t,e,"name",o.name,o,null),Ht(t,e,"formEncType",o.formEncType,o,null),Ht(t,e,"formMethod",o.formMethod,o,null),Ht(t,e,"formTarget",o.formTarget,o,null)):(Ht(t,e,"encType",o.encType,o,null),Ht(t,e,"method",o.method,o,null),Ht(t,e,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Ha(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=pn);break;case"onScroll":i!=null&&kt("scroll",t);break;case"onScrollEnd":i!=null&&kt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(r(60));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=Ha(""+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"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":kt("beforetoggle",t),kt("toggle",t),La(t,"popover",i);break;case"xlinkActuate":mn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":mn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":mn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":mn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":mn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":mn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":mn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":mn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":mn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":La(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Yg.get(n)||n,La(t,n,i))}}function rc(t,e,n,i,o,c){switch(n){case"style":Vs(t,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?Bl(t,i):(typeof i=="number"||typeof i=="bigint")&&Bl(t,""+i);break;case"onScroll":i!=null&&kt("scroll",t);break;case"onScrollEnd":i!=null&&kt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rs.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),e=n.slice(2,o?n.length-7:void 0),c=t[Se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,o);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):La(t,n,i)}}}function he(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",t),kt("load",t);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var g=n[c];if(g!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ht(t,e,c,g,n,null)}}o&&Ht(t,e,"srcSet",n.srcSet,n,null),i&&Ht(t,e,"src",n.src,n,null);return;case"input":kt("invalid",t);var v=c=g=o=null,A=null,M=null;for(i in n)if(n.hasOwnProperty(i)){var j=n[i];if(j!=null)switch(i){case"name":o=j;break;case"type":g=j;break;case"checked":A=j;break;case"defaultChecked":M=j;break;case"value":c=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:Ht(t,e,i,j,n,null)}}js(t,c,v,A,M,g,o,!1);return;case"select":kt("invalid",t),i=g=c=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":g=v;break;case"multiple":i=v;default:Ht(t,e,o,v,n,null)}e=c,n=g,t.multiple=!!i,e!=null?Ll(t,!!i,e,!1):n!=null&&Ll(t,!!i,n,!0);return;case"textarea":kt("invalid",t),c=o=i=null;for(g in n)if(n.hasOwnProperty(g)&&(v=n[g],v!=null))switch(g){case"value":i=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Ht(t,e,g,v,n,null)}qs(t,i,o,c);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(i=n[A],i!=null))switch(A){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ht(t,e,A,i,n,null)}return;case"dialog":kt("beforetoggle",t),kt("toggle",t),kt("cancel",t),kt("close",t);break;case"iframe":case"object":kt("load",t);break;case"video":case"audio":for(i=0;i<ua.length;i++)kt(ua[i],t);break;case"image":kt("error",t),kt("load",t);break;case"details":kt("toggle",t);break;case"embed":case"source":case"link":kt("error",t),kt("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(M in n)if(n.hasOwnProperty(M)&&(i=n[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ht(t,e,M,i,n,null)}return;default:if(xr(e)){for(j in n)n.hasOwnProperty(j)&&(i=n[j],i!==void 0&&rc(t,e,j,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&Ht(t,e,v,i,n,null))}function p1(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 o=null,c=null,g=null,v=null,A=null,M=null,j=null;for(N in n){var V=n[N];if(n.hasOwnProperty(N)&&V!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":A=V;default:i.hasOwnProperty(N)||Ht(t,e,N,null,i,V)}}for(var O in i){var N=i[O];if(V=n[O],i.hasOwnProperty(O)&&(N!=null||V!=null))switch(O){case"type":c=N;break;case"name":o=N;break;case"checked":M=N;break;case"defaultChecked":j=N;break;case"value":g=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:N!==V&&Ht(t,e,O,N,i,V)}}br(t,g,v,A,M,j,c,o);return;case"select":N=g=v=O=null;for(c in n)if(A=n[c],n.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":N=A;default:i.hasOwnProperty(c)||Ht(t,e,c,null,i,A)}for(o in i)if(c=i[o],A=n[o],i.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":O=c;break;case"defaultValue":v=c;break;case"multiple":g=c;default:c!==A&&Ht(t,e,o,c,i,A)}e=v,n=g,i=N,O!=null?Ll(t,!!n,O,!1):!!i!=!!n&&(e!=null?Ll(t,!!n,e,!0):Ll(t,!!n,n?[]:"",!1));return;case"textarea":N=O=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ht(t,e,v,null,i,o)}for(g in i)if(o=i[g],c=n[g],i.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":O=o;break;case"defaultValue":N=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&Ht(t,e,g,o,i,c)}Hs(t,O,N);return;case"option":for(var et in n)if(O=n[et],n.hasOwnProperty(et)&&O!=null&&!i.hasOwnProperty(et))switch(et){case"selected":t.selected=!1;break;default:Ht(t,e,et,null,i,O)}for(A in i)if(O=i[A],N=n[A],i.hasOwnProperty(A)&&O!==N&&(O!=null||N!=null))switch(A){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ht(t,e,A,O,i,N)}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 st in n)O=n[st],n.hasOwnProperty(st)&&O!=null&&!i.hasOwnProperty(st)&&Ht(t,e,st,null,i,O);for(M in i)if(O=i[M],N=n[M],i.hasOwnProperty(M)&&O!==N&&(O!=null||N!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:Ht(t,e,M,O,i,N)}return;default:if(xr(e)){for(var qt in n)O=n[qt],n.hasOwnProperty(qt)&&O!==void 0&&!i.hasOwnProperty(qt)&&rc(t,e,qt,void 0,i,O);for(j in i)O=i[j],N=n[j],!i.hasOwnProperty(j)||O===N||O===void 0&&N===void 0||rc(t,e,j,O,i,N);return}}for(var w in n)O=n[w],n.hasOwnProperty(w)&&O!=null&&!i.hasOwnProperty(w)&&Ht(t,e,w,null,i,O);for(V in i)O=i[V],N=n[V],!i.hasOwnProperty(V)||O===N||O==null&&N==null||Ht(t,e,V,O,i,N)}function Gm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,g=o.initiatorType,v=o.duration;if(c&&v&&Gm(g)){for(g=0,v=o.responseEnd,i+=1;i<n.length;i++){var A=n[i],M=A.startTime;if(M>v)break;var j=A.transferSize,V=A.initiatorType;j&&Gm(V)&&(A=A.responseEnd,g+=j*(A<v?1:(v-M)/(A-M)))}if(--i,e+=8*(c+g)/(o.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 oc=null,cc=null;function Nu(t){return t.nodeType===9?t:t.ownerDocument}function Qm(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 Zm(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 sc(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 fc=null;function g1(){var t=window.event;return t&&t.type==="popstate"?t===fc?!1:(fc=t,!0):(fc=null,!1)}var Km=typeof setTimeout=="function"?setTimeout:void 0,y1=typeof clearTimeout=="function"?clearTimeout:void 0,Jm=typeof Promise=="function"?Promise:void 0,b1=typeof queueMicrotask=="function"?queueMicrotask:typeof Jm<"u"?function(t){return Jm.resolve(null).then(t).catch(v1)}:Km;function v1(t){setTimeout(function(){throw t})}function Wn(t){return t==="head"}function Fm(t,e){var n=e,i=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(o),pi(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")oa(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,oa(n);for(var c=n.firstChild;c;){var g=c.nextSibling,v=c.nodeName;c[zi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=g}}else n==="body"&&oa(t.ownerDocument.body);n=o}while(n);pi(e)}function Im(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 hc(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":hc(n),gr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function x1(t,e,n,i){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[zi])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!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Fe(t.nextSibling),t===null)break}return null}function S1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Fe(t.nextSibling),t===null))return null;return t}function $m(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Fe(t.nextSibling),t===null))return null;return t}function mc(t){return t.data==="$?"||t.data==="$~"}function pc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function E1(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 Fe(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 dc=null;function Wm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Fe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Pm(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 tp(t,e,n){switch(e=Nu(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function oa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);gr(t)}var Ie=new Map,ep=new Set;function Uu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Dn=Z.d;Z.d={f:k1,r:A1,D:T1,C:z1,L:C1,m:w1,X:D1,S:_1,M:M1};function k1(){var t=Dn.f(),e=zu();return t||e}function A1(t){var e=Rl(t);e!==null&&e.tag===5&&e.type==="form"?bh(e):Dn.r(t)}var fi=typeof document>"u"?null:document;function np(t,e,n){var i=fi;if(i&&typeof e=="string"&&e){var o=Ve(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),ep.has(o)||(ep.add(o),t={rel:t,crossOrigin:n,href:e},i.querySelector(o)===null&&(e=i.createElement("link"),he(e,"link",t),ue(e),i.head.appendChild(e)))}}function T1(t){Dn.D(t),np("dns-prefetch",t,null)}function z1(t,e){Dn.C(t,e),np("preconnect",t,e)}function C1(t,e,n){Dn.L(t,e,n);var i=fi;if(i&&t&&e){var o='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Ve(n.imageSizes)+'"]')):o+='[href="'+Ve(t)+'"]';var c=o;switch(e){case"style":c=hi(t);break;case"script":c=mi(t)}Ie.has(c)||(t=y({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ie.set(c,t),i.querySelector(o)!==null||e==="style"&&i.querySelector(ca(c))||e==="script"&&i.querySelector(sa(c))||(e=i.createElement("link"),he(e,"link",t),ue(e),i.head.appendChild(e)))}}function w1(t,e){Dn.m(t,e);var n=fi;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Ve(i)+'"][href="'+Ve(t)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=mi(t)}if(!Ie.has(c)&&(t=y({rel:"modulepreload",href:t},e),Ie.set(c,t),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(sa(c)))return}i=n.createElement("link"),he(i,"link",t),ue(i),n.head.appendChild(i)}}}function _1(t,e,n){Dn.S(t,e,n);var i=fi;if(i&&t){var o=Nl(i).hoistableStyles,c=hi(t);e=e||"default";var g=o.get(c);if(!g){var v={loading:0,preload:null};if(g=i.querySelector(ca(c)))v.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ie.get(c))&&gc(t,n);var A=g=i.createElement("link");ue(A),he(A,"link",t),A._p=new Promise(function(M,j){A.onload=M,A.onerror=j}),A.addEventListener("load",function(){v.loading|=1}),A.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Lu(g,e,i)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(c,g)}}}function D1(t,e){Dn.X(t,e);var n=fi;if(n&&t){var i=Nl(n).hoistableScripts,o=mi(t),c=i.get(o);c||(c=n.querySelector(sa(o)),c||(t=y({src:t,async:!0},e),(e=Ie.get(o))&&yc(t,e),c=n.createElement("script"),ue(c),he(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function M1(t,e){Dn.M(t,e);var n=fi;if(n&&t){var i=Nl(n).hoistableScripts,o=mi(t),c=i.get(o);c||(c=n.querySelector(sa(o)),c||(t=y({src:t,async:!0,type:"module"},e),(e=Ie.get(o))&&yc(t,e),c=n.createElement("script"),ue(c),he(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function lp(t,e,n,i){var o=(o=ut.current)?Uu(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=hi(n.href),n=Nl(o).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,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=hi(n.href);var c=Nl(o).hoistableStyles,g=c.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=o.querySelector(ca(t)))&&!c._p&&(g.instance=c,g.state.loading=5),Ie.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ie.set(t,n),c||O1(o,t,n,g.state))),e&&i===null)throw Error(r(528,""));return g}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=mi(n),n=Nl(o).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function hi(t){return'href="'+Ve(t)+'"'}function ca(t){return'link[rel="stylesheet"]['+t+"]"}function ip(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function O1(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),he(e,"link",n),ue(e),t.head.appendChild(e))}function mi(t){return'[src="'+Ve(t)+'"]'}function sa(t){return"script[async]"+t}function ap(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(i)return e.instance=i,ue(i),i;var o=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),ue(i),he(i,"style",o),Lu(i,n.precedence,t),e.instance=i;case"stylesheet":o=hi(n.href);var c=t.querySelector(ca(o));if(c)return e.state.loading|=4,e.instance=c,ue(c),c;i=ip(n),(o=Ie.get(o))&&gc(i,o),c=(t.ownerDocument||t).createElement("link"),ue(c);var g=c;return g._p=new Promise(function(v,A){g.onload=v,g.onerror=A}),he(c,"link",i),e.state.loading|=4,Lu(c,n.precedence,t),e.instance=c;case"script":return c=mi(n.src),(o=t.querySelector(sa(c)))?(e.instance=o,ue(o),o):(i=n,(o=Ie.get(c))&&(i=y({},n),yc(i,o)),t=t.ownerDocument||t,o=t.createElement("script"),ue(o),he(o,"link",i),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Lu(i,n.precedence,t));return e.instance}function Lu(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,g=0;g<i.length;g++){var v=i[g];if(v.dataset.precedence===e)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function gc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Bu=null;function up(t,e,n){if(Bu===null){var i=new Map,o=Bu=new Map;o.set(n,i)}else o=Bu,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var c=n[o];if(!(c[zi]||c[oe]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var v=i.get(g);v?v.push(c):i.set(g,[c])}}return i}function rp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function R1(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 op(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function N1(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 o=hi(i.href),c=e.querySelector(ca(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ju.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,ue(c);return}c=e.ownerDocument||e,i=ip(i),(o=Ie.get(o))&&gc(i,o),c=c.createElement("link"),ue(c);var g=c;g._p=new Promise(function(v,A){g.onload=v,g.onerror=A}),he(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=ju.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var bc=0;function U1(t,e){return t.stylesheets&&t.count===0&&qu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&bc===0&&(bc=62500*d1());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>bc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hu=null;function qu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hu=new Map,e.forEach(L1,t),Hu=null,ju.call(t))}function L1(t,e){if(!(e.state.loading&4)){var n=Hu.get(t);if(n)var i=n.get(null);else{n=new Map,Hu.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),i=g)}i&&n.set(null,i)}o=e.instance,g=o.getAttribute("data-precedence"),c=n.get(g)||i,c===i&&n.set(null,o),n.set(g,o),this.count++,i=ju.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var fa={$$typeof:G,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function B1(t,e,n,i,o,c,g,v,A){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hr(0),this.hiddenUpdates=hr(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function cp(t,e,n,i,o,c,g,v,A,M,j,V){return t=new B1(t,e,n,g,A,M,j,V,v),e=1,c===!0&&(e|=24),c=Oe(3,null,null,e),t.current=c,c.stateNode=t,e=Ir(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:e},to(c),t}function sp(t){return t?(t=Gl,t):Gl}function fp(t,e,n,i,o,c){o=sp(o),i.context===null?i.context=o:i.pendingContext=o,i=Yn(e),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Vn(t,i,e),n!==null&&(Ce(n,t,e),Xi(n,t,e))}function hp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vc(t,e){hp(t,e),(t=t.alternate)&&hp(t,e)}function mp(t){if(t.tag===13||t.tag===31){var e=fl(t,67108864);e!==null&&Ce(e,t,67108864),vc(t,67108864)}}function pp(t){if(t.tag===13||t.tag===31){var e=Be();e=mr(e);var n=fl(t,e);n!==null&&Ce(n,t,e),vc(t,e)}}var Yu=!0;function j1(t,e,n,i){var o=R.T;R.T=null;var c=Z.p;try{Z.p=2,xc(t,e,n,i)}finally{Z.p=c,R.T=o}}function H1(t,e,n,i){var o=R.T;R.T=null;var c=Z.p;try{Z.p=8,xc(t,e,n,i)}finally{Z.p=c,R.T=o}}function xc(t,e,n,i){if(Yu){var o=Sc(i);if(o===null)uc(t,e,i,Vu,n),gp(t,i);else if(Y1(o,t,e,n,i))i.stopPropagation();else if(gp(t,i),e&4&&-1<q1.indexOf(t)){for(;o!==null;){var c=Rl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=ul(c.pendingLanes);if(g!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var A=1<<31-Yt(g);v.entanglements[1]|=A,g&=~A}rn(c),(Ot&6)===0&&(Au=ge()+500,aa(0))}}break;case 31:case 13:v=fl(c,2),v!==null&&Ce(v,c,2),zu(),vc(c,2)}if(c=Sc(i),c===null&&uc(t,e,i,Vu,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else uc(t,e,i,null,n)}}function Sc(t){return t=Er(t),Ec(t)}var Vu=null;function Ec(t){if(Vu=null,t=Ol(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=p(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 Vu=t,null}function dp(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"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fr()){case q:return 2;case F:return 8;case ht:case St:return 32;case Nt:return 268435456;default:return 32}default:return 32}}var kc=!1,Pn=null,tl=null,el=null,ha=new Map,ma=new Map,nl=[],q1="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 gp(t,e){switch(t){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":tl=null;break;case"mouseover":case"mouseout":el=null;break;case"pointerover":case"pointerout":ha.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ma.delete(e.pointerId)}}function pa(t,e,n,i,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},e!==null&&(e=Rl(e),e!==null&&mp(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Y1(t,e,n,i,o){switch(e){case"focusin":return Pn=pa(Pn,t,e,n,i,o),!0;case"dragenter":return tl=pa(tl,t,e,n,i,o),!0;case"mouseover":return el=pa(el,t,e,n,i,o),!0;case"pointerover":var c=o.pointerId;return ha.set(c,pa(ha.get(c)||null,t,e,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,ma.set(c,pa(ma.get(c)||null,t,e,n,i,o)),!0}return!1}function yp(t){var e=Ol(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,Ds(t.priority,function(){pp(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,Ds(t.priority,function(){pp(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 Xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Sc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Sr=i,n.target.dispatchEvent(i),Sr=null}else return e=Rl(n),e!==null&&mp(e),t.blockedOn=n,!1;e.shift()}return!0}function bp(t,e,n){Xu(t)&&n.delete(e)}function V1(){kc=!1,Pn!==null&&Xu(Pn)&&(Pn=null),tl!==null&&Xu(tl)&&(tl=null),el!==null&&Xu(el)&&(el=null),ha.forEach(bp),ma.forEach(bp)}function Gu(t,e){t.blockedOn===e&&(t.blockedOn=null,kc||(kc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,V1)))}var Qu=null;function vp(t){Qu!==t&&(Qu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qu===t&&(Qu=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],o=t[e+2];if(typeof i!="function"){if(Ec(i||n)===null)continue;break}var c=Rl(n);c!==null&&(t.splice(e,3),e-=3,So(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function pi(t){function e(A){return Gu(A,t)}Pn!==null&&Gu(Pn,t),tl!==null&&Gu(tl,t),el!==null&&Gu(el,t),ha.forEach(e),ma.forEach(e);for(var n=0;n<nl.length;n++){var i=nl[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<nl.length&&(n=nl[0],n.blockedOn===null);)yp(n),n.blockedOn===null&&nl.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],g=o[Se]||null;if(typeof c=="function")g||vp(n);else if(g){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[Se]||null)v=g.formAction;else if(Ec(o)!==null)continue}else v=g.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),vp(n)}}}function xp(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=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,o=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),o!==null&&(o(),o=null)}}}function Ac(t){this._internalRoot=t}Zu.prototype.render=Ac.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=Be();fp(n,i,t,e,null,null)},Zu.prototype.unmount=Ac.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fp(t.current,2,null,t,null,null),zu(),e[Ml]=null}};function Zu(t){this._internalRoot=t}Zu.prototype.unstable_scheduleHydration=function(t){if(t){var e=_s();t={blockedOn:null,target:t,priority:e};for(var n=0;n<nl.length&&e!==0&&e<nl[n].priority;n++);nl.splice(n,0,t),n===0&&yp(t)}};var Sp=u.version;if(Sp!=="19.2.4")throw Error(r(527,Sp,"19.2.4"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var X1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{ye=Ku.inject(X1),ie=Ku}catch{}}return ga.createRoot=function(t,e){if(!s(t))throw Error(r(299));var n=!1,i="",o=wh,c=_h,g=Dh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError)),e=cp(t,1,!1,null,null,n,i,null,o,c,g,xp),t[Ml]=e.current,ac(t),new Ac(e)},ga.hydrateRoot=function(t,e,n){if(!s(t))throw Error(r(299));var i=!1,o="",c=wh,g=_h,v=Dh,A=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(A=n.formState)),e=cp(t,1,!0,e,n??null,i,o,A,c,g,v,xp),e.context=sp(null),n=e.current,i=Be(),i=mr(i),o=Yn(i),o.callback=null,Vn(n,o,i),n=i,e.current.lanes=n,Ti(e,n),rn(e),t[Ml]=e.current,ac(t),new Zu(e)},ga.version="19.2.4",ga}var Mp;function P1(){if(Mp)return Cc.exports;Mp=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(u){console.error(u)}}return l(),Cc.exports=W1(),Cc.exports}var t0=P1();const Td=window.location.origin;async function Op(){const l=await fetch(`${Td}/api/config/status`);if(!l.ok)throw new Error(`Status check failed: ${l.status}`);return l.json()}const e0={anthropic:"Claude","openai-codex":"ChatGPT",openrouter:"OpenRouter",openai:"OpenAI","github-copilot":"GitHub Copilot","google-gemini-cli":"Gemini","google-antigravity":"Antigravity"};function n0(l){return l?e0[l]??l:"AI"}async function l0(){try{const l=window;return typeof l.Excel>"u"?void 0:await l.Excel.run(async u=>{const a=u.workbook.worksheets.getActiveWorksheet(),r=u.workbook.getSelectedRange();return a.load("name"),r.load("address"),await u.sync(),{activeSheet:a.name,selectedRange:r.address}})}catch{return}}async function i0(l,u,a,r){const s=await fetch(`${Td}/api/agent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:l,context:u}),signal:r});if(!s.ok){const d=await s.json().catch(()=>({error:"Request failed"}));throw new Error(d.error||`HTTP ${s.status}`)}if(!s.body)throw new Error("No response body");const h=s.body.getReader(),f=new TextDecoder;let p="";for(;;){const{done:d,value:m}=await h.read();if(d)break;p+=f.decode(m,{stream:!0});const b=p.split(`
|
|
50
|
+
`);p=b.pop()??"";for(const y of b){const S=y.trim();if(S.startsWith("data: "))try{const x=JSON.parse(S.slice(6));a(x)}catch{}}}if(p.trim().startsWith("data: "))try{const d=JSON.parse(p.trim().slice(6));a(d)}catch{}}const Mc=2e3;function a0(){const[l,u]=Rt.useState(null),[a,r]=Rt.useState(null),[s,h]=Rt.useState(!1),f=Rt.useRef(null),p=Rt.useCallback(async()=>{try{const m=await Op();return u(m),r(null),h(!1),!0}catch{return!1}},[]);Rt.useEffect(()=>{let m=!1,b;async function y(){const S=await p();!m&&!S&&(r("Cannot connect to AgentXL server"),b=setTimeout(y,Mc))}return y(),()=>{m=!0,clearTimeout(b)}},[p]),Rt.useEffect(()=>{if(!l||l.authenticated)return;const m=setInterval(async()=>{const b=await Op().catch(()=>null);b!=null&&b.authenticated&&u(b)},Mc);return()=>clearInterval(m)},[l]);const d=Rt.useCallback(()=>{h(!0),!f.current&&(f.current=setInterval(async()=>{await p()&&(clearInterval(f.current),f.current=null,h(!1))},Mc))},[p]);return Rt.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]),{status:l,connectionError:a,serverDown:s,markServerDown:d}}function u0(){return{assistantId:crypto.randomUUID(),content:"",thinking:[],currentThinkingIdx:-1}}function r0(l,u){switch(l.type){case"message_update":{const a=l.assistantMessageEvent;if(!a)return{action:"none"};switch(a.type){case"text_delta":return u.content+=a.delta,{action:"update_assistant",message:Ju(u)};case"thinking_start":return u.currentThinkingIdx=u.thinking.length,u.thinking.push({content:"",isStreaming:!0}),{action:"update_assistant",message:Ju(u)};case"thinking_delta":return u.currentThinkingIdx>=0?(u.thinking[u.currentThinkingIdx].content+=a.delta,{action:"update_assistant",message:Ju(u)}):{action:"none"};case"thinking_end":return u.currentThinkingIdx>=0?(u.thinking[u.currentThinkingIdx].isStreaming=!1,a.content&&(u.thinking[u.currentThinkingIdx].content=a.content),u.currentThinkingIdx=-1,{action:"update_assistant",message:Ju(u)}):{action:"none"};default:return{action:"none"}}}case"error":return{action:"add_system_error",message:{id:crypto.randomUUID(),role:"system",content:l.error||"An error occurred",timestamp:Date.now()}};case"agent_end":return{action:"agent_end"};default:return{action:"none"}}}function Ju(l){return{id:l.assistantId,role:"assistant",content:l.content,thinking:l.thinking.length>0?[...l.thinking]:void 0,timestamp:Date.now()}}function o0(l){const[u,a]=Rt.useState([]),[r,s]=Rt.useState(!1),h=Rt.useRef(null),f=Rt.useCallback(async d=>{var L,X;const m=d.trim();if(!m||r)return;const b={id:crypto.randomUUID(),role:"user",content:m,timestamp:Date.now()};a(_=>[..._,b]),s(!0);const y=u0(),S=_=>{switch(_.action){case"update_assistant":a(Q=>Q.find(at=>at.id===_.message.id)?Q.map(at=>at.id===_.message.id?_.message:at):[...Q,_.message]);break;case"add_system_error":a(Q=>[...Q,_.message]);break}},x=await l0(),C=new AbortController;h.current=C;try{await i0(m,x,_=>{const Q=r0(_,y);S(Q)},C.signal)}catch(_){_.name==="AbortError"||((L=_.message)!=null&&L.includes("fetch")||(X=_.message)!=null&&X.includes("network")||_.name==="TypeError"?l():a(Q=>[...Q,{id:crypto.randomUUID(),role:"system",content:_.message||"Failed to get response",timestamp:Date.now()}]))}finally{s(!1),h.current=null}},[r,l]),p=Rt.useCallback(()=>{var d;(d=h.current)==null||d.abort()},[]);return{messages:u,isStreaming:r,sendMessage:f,stopStreaming:p}}function c0(){return W.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[W.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center mb-4",children:W.jsx("span",{className:"text-red-500 text-lg",children:"!"})}),W.jsx("p",{className:"text-sm text-gray-700 font-medium mb-2",children:"Can't connect to server"}),W.jsxs("p",{className:"text-xs text-gray-500",children:["Make sure"," ",W.jsx("code",{className:"bg-gray-100 px-1.5 py-0.5 rounded",children:"agentxl start"})," ","is running in your terminal."]}),W.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-gray-400",children:[W.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full animate-pulse"}),"Reconnecting…"]})]})}/**
|
|
51
|
+
* @license lucide-react v0.564.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const zd=(...l)=>l.filter((u,a,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===a).join(" ").trim();/**
|
|
56
|
+
* @license lucide-react v0.564.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const s0=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
61
|
+
* @license lucide-react v0.564.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const f0=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
|
|
66
|
+
* @license lucide-react v0.564.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const Rp=l=>{const u=f0(l);return u.charAt(0).toUpperCase()+u.slice(1)};/**
|
|
71
|
+
* @license lucide-react v0.564.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var h0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
76
|
+
* @license lucide-react v0.564.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const m0=l=>{for(const u in l)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};/**
|
|
81
|
+
* @license lucide-react v0.564.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const p0=Rt.forwardRef(({color:l="currentColor",size:u=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:s="",children:h,iconNode:f,...p},d)=>Rt.createElement("svg",{ref:d,...h0,width:u,height:u,stroke:l,strokeWidth:r?Number(a)*24/Number(u):a,className:zd("lucide",s),...!h&&!m0(p)&&{"aria-hidden":"true"},...p},[...f.map(([m,b])=>Rt.createElement(m,b)),...Array.isArray(h)?h:[h]]));/**
|
|
86
|
+
* @license lucide-react v0.564.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Mn=(l,u)=>{const a=Rt.forwardRef(({className:r,...s},h)=>Rt.createElement(p0,{ref:h,iconNode:u,className:zd(`lucide-${s0(Rp(l))}`,`lucide-${l}`,r),...s}));return a.displayName=Rp(l),a};/**
|
|
91
|
+
* @license lucide-react v0.564.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const d0=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],g0=Mn("brain",d0);/**
|
|
96
|
+
* @license lucide-react v0.564.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const y0=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],b0=Mn("calculator",y0);/**
|
|
101
|
+
* @license lucide-react v0.564.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const v0=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],x0=Mn("chart-column",v0);/**
|
|
106
|
+
* @license lucide-react v0.564.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const S0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],E0=Mn("chevron-down",S0);/**
|
|
111
|
+
* @license lucide-react v0.564.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const k0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],A0=Mn("chevron-right",k0);/**
|
|
116
|
+
* @license lucide-react v0.564.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const T0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],z0=Mn("file-spreadsheet",T0);/**
|
|
121
|
+
* @license lucide-react v0.564.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const C0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],w0=Mn("refresh-cw",C0);/**
|
|
126
|
+
* @license lucide-react v0.564.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const _0=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],D0=Mn("send",_0);/**
|
|
131
|
+
* @license lucide-react v0.564.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const M0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],O0=Mn("square",M0);function R0(){return W.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[W.jsx("div",{className:"w-14 h-14 bg-amber-100 rounded-xl flex items-center justify-center mb-4",children:W.jsx("span",{className:"text-amber-600 text-xl",children:"🔑"})}),W.jsx("p",{className:"text-sm text-gray-700 font-medium mb-2",children:"Authentication required"}),W.jsxs("p",{className:"text-xs text-gray-500 leading-relaxed mb-4",children:["Run"," ",W.jsx("code",{className:"bg-gray-100 px-1.5 py-0.5 rounded text-gray-700",children:"agentxl login"})," ","in your terminal to set up credentials."]}),W.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400",children:[W.jsx(w0,{size:12,className:"animate-spin"}),"Waiting for credentials…"]})]})}const N0=[{icon:z0,label:"Summarize data",prompt:"Summarize the data in this spreadsheet"},{icon:x0,label:"Create chart",prompt:"Create a chart from the selected data"},{icon:b0,label:"Write formula",prompt:"Help me write a formula"}];function U0({status:l,onQuickAction:u}){return W.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[W.jsx("div",{className:"w-14 h-14 bg-emerald-600 rounded-2xl flex items-center justify-center mb-4",children:W.jsx("span",{className:"text-white text-xl font-bold",children:"AX"})}),W.jsx("h1",{className:"text-base font-semibold text-gray-900 mb-1",children:"AgentXL"}),W.jsx("p",{className:"text-xs text-gray-500 mb-6",children:"Your AI assistant for Excel"}),W.jsx("div",{className:"flex flex-col gap-2 w-full max-w-xs",children:N0.map(a=>W.jsxs("button",{onClick:()=>u(a.prompt),className:"flex items-center gap-3 px-4 py-2.5 rounded-lg border border-gray-200 text-left hover:bg-gray-50 hover:border-gray-300 transition-colors",children:[W.jsx(a.icon,{size:16,className:"text-gray-400 shrink-0"}),W.jsx("span",{className:"text-sm text-gray-700",children:a.label})]},a.label))}),W.jsxs("p",{className:"text-[11px] text-gray-400 mt-6",children:[n0(l.provider)," • v",l.version]})]})}function L0(l,u){const a={};return(l[l.length-1]===""?[...l,""]:l).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const B0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,j0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,H0={};function Np(l,u){return(H0.jsx?j0:B0).test(l)}const q0=/[ \t\n\f\r]/g;function Y0(l){return typeof l=="object"?l.type==="text"?Up(l.value):!1:Up(l)}function Up(l){return l.replace(q0,"")===""}class za{constructor(u,a,r){this.normal=a,this.property=u,r&&(this.space=r)}}za.prototype.normal={};za.prototype.property={};za.prototype.space=void 0;function Cd(l,u){const a={},r={};for(const s of l)Object.assign(a,s.property),Object.assign(r,s.normal);return new za(a,r,u)}function Fc(l){return l.toLowerCase()}class _e{constructor(u,a){this.attribute=a,this.property=u}}_e.prototype.attribute="";_e.prototype.booleanish=!1;_e.prototype.boolean=!1;_e.prototype.commaOrSpaceSeparated=!1;_e.prototype.commaSeparated=!1;_e.prototype.defined=!1;_e.prototype.mustUseProperty=!1;_e.prototype.number=!1;_e.prototype.overloadedBoolean=!1;_e.prototype.property="";_e.prototype.spaceSeparated=!1;_e.prototype.space=void 0;let V0=0;const bt=zl(),le=zl(),Ic=zl(),K=zl(),Gt=zl(),bi=zl(),je=zl();function zl(){return 2**++V0}const $c=Object.freeze(Object.defineProperty({__proto__:null,boolean:bt,booleanish:le,commaOrSpaceSeparated:je,commaSeparated:bi,number:K,overloadedBoolean:Ic,spaceSeparated:Gt},Symbol.toStringTag,{value:"Module"})),Oc=Object.keys($c);class rs extends _e{constructor(u,a,r,s){let h=-1;if(super(u,a),Lp(this,"space",s),typeof r=="number")for(;++h<Oc.length;){const f=Oc[h];Lp(this,Oc[h],(r&$c[f])===$c[f])}}}rs.prototype.defined=!0;function Lp(l,u,a){a&&(l[u]=a)}function xi(l){const u={},a={};for(const[r,s]of Object.entries(l.properties)){const h=new rs(r,l.transform(l.attributes||{},r),s,l.space);l.mustUseProperty&&l.mustUseProperty.includes(r)&&(h.mustUseProperty=!0),u[r]=h,a[Fc(r)]=r,a[Fc(h.attribute)]=r}return new za(u,a,l.space)}const wd=xi({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Gt,ariaCurrent:null,ariaDescribedBy:Gt,ariaDetails:null,ariaDisabled:le,ariaDropEffect:Gt,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:Gt,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gt,ariaLevel:K,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:Gt,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:Gt,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:le,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(l,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()}});function _d(l,u){return u in l?l[u]:u}function Dd(l,u){return _d(l,u.toLowerCase())}const X0=xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bi,acceptCharset:Gt,accessKey:Gt,action:null,allow:null,allowFullScreen:bt,allowPaymentRequest:bt,allowUserMedia:bt,alt:null,as:null,async:bt,autoCapitalize:null,autoComplete:Gt,autoFocus:bt,autoPlay:bt,blocking:Gt,capture:null,charSet:null,checked:bt,cite:null,className:Gt,cols:K,colSpan:null,content:null,contentEditable:le,controls:bt,controlsList:Gt,coords:K|bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bt,defer:bt,dir:null,dirName:null,disabled:bt,download:Ic,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bt,formTarget:null,headers:Gt,height:K,hidden:Ic,high:K,href:null,hrefLang:null,htmlFor:Gt,httpEquiv:Gt,id:null,imageSizes:null,imageSrcSet:null,inert:bt,inputMode:null,integrity:null,is:null,isMap:bt,itemId:null,itemProp:Gt,itemRef:Gt,itemScope:bt,itemType:Gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bt,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:bt,muted:bt,name:null,nonce:null,noModule:bt,noValidate:bt,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:bt,optimum:K,pattern:null,ping:Gt,placeholder:null,playsInline:bt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bt,referrerPolicy:null,rel:Gt,required:bt,reversed:bt,rows:K,rowSpan:K,sandbox:Gt,scope:null,scoped:bt,seamless:bt,selected:bt,shadowRootClonable:bt,shadowRootDelegatesFocus:bt,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:bt,useMap:null,value:le,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Gt,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bt,declare:bt,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:bt,noHref:bt,noShade:bt,noWrap:bt,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bt,disableRemotePlayback:bt,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:Dd}),G0=xi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:je,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Gt,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:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:bt,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,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:bi,g2:bi,glyphName:bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,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:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:je,rev:je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:je,requiredFeatures:je,requiredFonts:je,requiredFormats:je,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:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:je,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_d}),Md=xi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(l,u){return"xlink:"+u.slice(5).toLowerCase()}}),Od=xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Dd}),Rd=xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(l,u){return"xml:"+u.slice(3).toLowerCase()}}),Q0={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"},Z0=/[A-Z]/g,Bp=/-[a-z]/g,K0=/^data[-\w.:]+$/i;function J0(l,u){const a=Fc(u);let r=u,s=_e;if(a in l.normal)return l.property[l.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&K0.test(u)){if(u.charAt(4)==="-"){const h=u.slice(5).replace(Bp,I0);r="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=u.slice(4);if(!Bp.test(h)){let f=h.replace(Z0,F0);f.charAt(0)!=="-"&&(f="-"+f),u="data"+f}}s=rs}return new s(r,u)}function F0(l){return"-"+l.toLowerCase()}function I0(l){return l.charAt(1).toUpperCase()}const $0=Cd([wd,X0,Md,Od,Rd],"html"),os=Cd([wd,G0,Md,Od,Rd],"svg");function W0(l){return l.join(" ").trim()}var di={},Rc,jp;function P0(){if(jp)return Rc;jp=1;var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,u=/\n/g,a=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,p=/^\s+|\s+$/g,d=`
|
|
136
|
+
`,m="/",b="*",y="",S="comment",x="declaration";function C(X,_){if(typeof X!="string")throw new TypeError("First argument must be a string");if(!X)return[];_=_||{};var Q=1,G=1;function at(nt){var J=nt.match(u);J&&(Q+=J.length);var R=nt.lastIndexOf(d);G=~R?nt.length-R:G+nt.length}function ot(){var nt={line:Q,column:G};return function(J){return J.position=new B(nt),dt(),J}}function B(nt){this.start=nt,this.end={line:Q,column:G},this.source=_.source}B.prototype.content=X;function $(nt){var J=new Error(_.source+":"+Q+":"+G+": "+nt);if(J.reason=nt,J.filename=_.source,J.line=Q,J.column=G,J.source=X,!_.silent)throw J}function mt(nt){var J=nt.exec(X);if(J){var R=J[0];return at(R),X=X.slice(R.length),J}}function dt(){mt(a)}function U(nt){var J;for(nt=nt||[];J=tt();)J!==!1&&nt.push(J);return nt}function tt(){var nt=ot();if(!(m!=X.charAt(0)||b!=X.charAt(1))){for(var J=2;y!=X.charAt(J)&&(b!=X.charAt(J)||m!=X.charAt(J+1));)++J;if(J+=2,y===X.charAt(J-1))return $("End of comment missing");var R=X.slice(2,J-2);return G+=2,at(R),X=X.slice(J),G+=2,nt({type:S,comment:R})}}function P(){var nt=ot(),J=mt(r);if(J){if(tt(),!mt(s))return $("property missing ':'");var R=mt(h),Z=nt({type:x,property:L(J[0].replace(l,y)),value:R?L(R[0].replace(l,y)):y});return mt(f),Z}}function xt(){var nt=[];U(nt);for(var J;J=P();)J!==!1&&(nt.push(J),U(nt));return nt}return dt(),xt()}function L(X){return X?X.replace(p,y):y}return Rc=C,Rc}var Hp;function tb(){if(Hp)return di;Hp=1;var l=di&&di.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(di,"__esModule",{value:!0}),di.default=a;const u=l(P0());function a(r,s){let h=null;if(!r||typeof r!="string")return h;const f=(0,u.default)(r),p=typeof s=="function";return f.forEach(d=>{if(d.type!=="declaration")return;const{property:m,value:b}=d;p?s(m,b,d):b&&(h=h||{},h[m]=b)}),h}return di}var ya={},qp;function eb(){if(qp)return ya;qp=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.camelCase=void 0;var l=/^--[a-zA-Z0-9_-]+$/,u=/-([a-z])/g,a=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,h=function(m){return!m||a.test(m)||l.test(m)},f=function(m,b){return b.toUpperCase()},p=function(m,b){return"".concat(b,"-")},d=function(m,b){return b===void 0&&(b={}),h(m)?m:(m=m.toLowerCase(),b.reactCompat?m=m.replace(s,p):m=m.replace(r,p),m.replace(u,f))};return ya.camelCase=d,ya}var ba,Yp;function nb(){if(Yp)return ba;Yp=1;var l=ba&&ba.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},u=l(tb()),a=eb();function r(s,h){var f={};return!s||typeof s!="string"||(0,u.default)(s,function(p,d){p&&d&&(f[(0,a.camelCase)(p,h)]=d)}),f}return r.default=r,ba=r,ba}var lb=nb();const ib=Ad(lb),Nd=Ud("end"),cs=Ud("start");function Ud(l){return u;function u(a){const r=a&&a.position&&a.position[l]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ab(l){const u=cs(l),a=Nd(l);if(u&&a)return{start:u,end:a}}function Sa(l){return!l||typeof l!="object"?"":"position"in l||"type"in l?Vp(l.position):"start"in l||"end"in l?Vp(l):"line"in l||"column"in l?Wc(l):""}function Wc(l){return Xp(l&&l.line)+":"+Xp(l&&l.column)}function Vp(l){return Wc(l&&l.start)+"-"+Wc(l&&l.end)}function Xp(l){return l&&typeof l=="number"?l:1}class de extends Error{constructor(u,a,r){super(),typeof a=="string"&&(r=a,a=void 0);let s="",h={},f=!1;if(a&&("line"in a&&"column"in a?h={place:a}:"start"in a&&"end"in a?h={place:a}:"type"in a?h={ancestors:[a],place:a.position}:h={...a}),typeof u=="string"?s=u:!h.cause&&u&&(f=!0,s=u.message,h.cause=u),!h.ruleId&&!h.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?h.ruleId=r:(h.source=r.slice(0,d),h.ruleId=r.slice(d+1))}if(!h.place&&h.ancestors&&h.ancestors){const d=h.ancestors[h.ancestors.length-1];d&&(h.place=d.position)}const p=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=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=Sa(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}}de.prototype.file="";de.prototype.name="";de.prototype.reason="";de.prototype.message="";de.prototype.stack="";de.prototype.column=void 0;de.prototype.line=void 0;de.prototype.ancestors=void 0;de.prototype.cause=void 0;de.prototype.fatal=void 0;de.prototype.place=void 0;de.prototype.ruleId=void 0;de.prototype.source=void 0;const ss={}.hasOwnProperty,ub=new Map,rb=/[A-Z]/g,ob=new Set(["table","tbody","thead","tfoot","tr"]),cb=new Set(["td","th"]),Ld="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sb(l,u){if(!u||u.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=u.filePath||void 0;let r;if(u.development){if(typeof u.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bb(a,u.jsxDEV)}else{if(typeof u.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof u.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yb(a,u.jsx,u.jsxs)}const s={Fragment:u.Fragment,ancestors:[],components:u.components||{},create:r,elementAttributeNameCase:u.elementAttributeNameCase||"react",evaluater:u.createEvaluater?u.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:u.ignoreInvalidStyle||!1,passKeys:u.passKeys!==!1,passNode:u.passNode||!1,schema:u.space==="svg"?os:$0,stylePropertyNameCase:u.stylePropertyNameCase||"dom",tableCellAlignToStyle:u.tableCellAlignToStyle!==!1},h=Bd(s,l,void 0);return h&&typeof h!="string"?h:s.create(l,s.Fragment,{children:h||void 0},void 0)}function Bd(l,u,a){if(u.type==="element")return fb(l,u,a);if(u.type==="mdxFlowExpression"||u.type==="mdxTextExpression")return hb(l,u);if(u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement")return pb(l,u,a);if(u.type==="mdxjsEsm")return mb(l,u);if(u.type==="root")return db(l,u,a);if(u.type==="text")return gb(l,u)}function fb(l,u,a){const r=l.schema;let s=r;u.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=os,l.schema=s),l.ancestors.push(u);const h=Hd(l,u.tagName,!1),f=vb(l,u);let p=hs(l,u);return ob.has(u.tagName)&&(p=p.filter(function(d){return typeof d=="string"?!Y0(d):!0})),jd(l,f,h,u),fs(f,p),l.ancestors.pop(),l.schema=r,l.create(u,h,f,a)}function hb(l,u){if(u.data&&u.data.estree&&l.evaluater){const r=u.data.estree.body[0];return r.type,l.evaluater.evaluateExpression(r.expression)}Aa(l,u.position)}function mb(l,u){if(u.data&&u.data.estree&&l.evaluater)return l.evaluater.evaluateProgram(u.data.estree);Aa(l,u.position)}function pb(l,u,a){const r=l.schema;let s=r;u.name==="svg"&&r.space==="html"&&(s=os,l.schema=s),l.ancestors.push(u);const h=u.name===null?l.Fragment:Hd(l,u.name,!0),f=xb(l,u),p=hs(l,u);return jd(l,f,h,u),fs(f,p),l.ancestors.pop(),l.schema=r,l.create(u,h,f,a)}function db(l,u,a){const r={};return fs(r,hs(l,u)),l.create(u,l.Fragment,r,a)}function gb(l,u){return u.value}function jd(l,u,a,r){typeof a!="string"&&a!==l.Fragment&&l.passNode&&(u.node=r)}function fs(l,u){if(u.length>0){const a=u.length>1?u:u[0];a&&(l.children=a)}}function yb(l,u,a){return r;function r(s,h,f,p){const m=Array.isArray(f.children)?a:u;return p?m(h,f,p):m(h,f)}}function bb(l,u){return a;function a(r,s,h,f){const p=Array.isArray(h.children),d=cs(r);return u(s,h,f,p,{columnNumber:d?d.column-1:void 0,fileName:l,lineNumber:d?d.line:void 0},void 0)}}function vb(l,u){const a={};let r,s;for(s in u.properties)if(s!=="children"&&ss.call(u.properties,s)){const h=Sb(l,s,u.properties[s]);if(h){const[f,p]=h;l.tableCellAlignToStyle&&f==="align"&&typeof p=="string"&&cb.has(u.tagName)?r=p:a[f]=p}}if(r){const h=a.style||(a.style={});h[l.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return a}function xb(l,u){const a={};for(const r of u.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&l.evaluater){const h=r.data.estree.body[0];h.type;const f=h.expression;f.type;const p=f.properties[0];p.type,Object.assign(a,l.evaluater.evaluateExpression(p.argument))}else Aa(l,u.position);else{const s=r.name;let h;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&l.evaluater){const p=r.value.data.estree.body[0];p.type,h=l.evaluater.evaluateExpression(p.expression)}else Aa(l,u.position);else h=r.value===null?!0:r.value;a[s]=h}return a}function hs(l,u){const a=[];let r=-1;const s=l.passKeys?new Map:ub;for(;++r<u.children.length;){const h=u.children[r];let f;if(l.passKeys){const d=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(d){const m=s.get(d)||0;f=d+"-"+m,s.set(d,m+1)}}const p=Bd(l,h,f);p!==void 0&&a.push(p)}return a}function Sb(l,u,a){const r=J0(l.schema,u);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=r.commaSeparated?L0(a):W0(a)),r.property==="style"){let s=typeof a=="object"?a:Eb(l,String(a));return l.stylePropertyNameCase==="css"&&(s=kb(s)),["style",s]}return[l.elementAttributeNameCase==="react"&&r.space?Q0[r.property]||r.property:r.attribute,a]}}function Eb(l,u){try{return ib(u,{reactCompat:!0})}catch(a){if(l.ignoreInvalidStyle)return{};const r=a,s=new de("Cannot parse `style` attribute",{ancestors:l.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=l.filePath||void 0,s.url=Ld+"#cannot-parse-style-attribute",s}}function Hd(l,u,a){let r;if(!a)r={type:"Literal",value:u};else if(u.includes(".")){const s=u.split(".");let h=-1,f;for(;++h<s.length;){const p=Np(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:p,computed:!!(h&&p.type==="Literal"),optional:!1}:p}r=f}else r=Np(u)&&!/^[a-z]/.test(u)?{type:"Identifier",name:u}:{type:"Literal",value:u};if(r.type==="Literal"){const s=r.value;return ss.call(l.components,s)?l.components[s]:s}if(l.evaluater)return l.evaluater.evaluateExpression(r);Aa(l)}function Aa(l,u){const a=new de("Cannot handle MDX estrees without `createEvaluater`",{ancestors:l.ancestors,place:u,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=l.filePath||void 0,a.url=Ld+"#cannot-handle-mdx-estrees-without-createevaluater",a}function kb(l){const u={};let a;for(a in l)ss.call(l,a)&&(u[Ab(a)]=l[a]);return u}function Ab(l){let u=l.replace(rb,Tb);return u.slice(0,3)==="ms-"&&(u="-"+u),u}function Tb(l){return"-"+l.toLowerCase()}const Nc={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"]},zb={};function ms(l,u){const a=zb,r=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return qd(l,r,s)}function qd(l,u,a){if(Cb(l)){if("value"in l)return l.type==="html"&&!a?"":l.value;if(u&&"alt"in l&&l.alt)return l.alt;if("children"in l)return Gp(l.children,u,a)}return Array.isArray(l)?Gp(l,u,a):""}function Gp(l,u,a){const r=[];let s=-1;for(;++s<l.length;)r[s]=qd(l[s],u,a);return r.join("")}function Cb(l){return!!(l&&typeof l=="object")}const Qp=document.createElement("i");function ps(l){const u="&"+l+";";Qp.innerHTML=u;const a=Qp.textContent;return a.charCodeAt(a.length-1)===59&&l!=="semi"||a===u?!1:a}function He(l,u,a,r){const s=l.length;let h=0,f;if(u<0?u=-u>s?0:s+u:u=u>s?s:u,a=a>0?a:0,r.length<1e4)f=Array.from(r),f.unshift(u,a),l.splice(...f);else for(a&&l.splice(u,a);h<r.length;)f=r.slice(h,h+1e4),f.unshift(u,0),l.splice(...f),h+=1e4,u+=1e4}function $e(l,u){return l.length>0?(He(l,l.length,0,u),l):u}const Zp={}.hasOwnProperty;function Yd(l){const u={};let a=-1;for(;++a<l.length;)wb(u,l[a]);return u}function wb(l,u){let a;for(a in u){const s=(Zp.call(l,a)?l[a]:void 0)||(l[a]={}),h=u[a];let f;if(h)for(f in h){Zp.call(s,f)||(s[f]=[]);const p=h[f];_b(s[f],Array.isArray(p)?p:p?[p]:[])}}}function _b(l,u){let a=-1;const r=[];for(;++a<u.length;)(u[a].add==="after"?l:r).push(u[a]);He(l,0,0,r)}function Vd(l,u){const a=Number.parseInt(l,u);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function nn(l){return l.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ve=al(/[A-Za-z]/),pe=al(/[\dA-Za-z]/),Db=al(/[#-'*+\--9=?A-Z^-~]/);function tr(l){return l!==null&&(l<32||l===127)}const Pc=al(/\d/),Mb=al(/[\dA-Fa-f]/),Ob=al(/[!-/:-@[-`{-~]/);function ct(l){return l!==null&&l<-2}function Xt(l){return l!==null&&(l<0||l===32)}function At(l){return l===-2||l===-1||l===32}const ir=al(new RegExp("\\p{P}|\\p{S}","u")),Tl=al(/\s/);function al(l){return u;function u(a){return a!==null&&a>-1&&l.test(String.fromCharCode(a))}}function Si(l){const u=[];let a=-1,r=0,s=0;for(;++a<l.length;){const h=l.charCodeAt(a);let f="";if(h===37&&pe(l.charCodeAt(a+1))&&pe(l.charCodeAt(a+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 p=l.charCodeAt(a+1);h<56320&&p>56319&&p<57344?(f=String.fromCharCode(h,p),s=1):f="�"}else f=String.fromCharCode(h);f&&(u.push(l.slice(r,a),encodeURIComponent(f)),r=a+s+1,f=""),s&&(a+=s,s=0)}return u.join("")+l.slice(r)}function _t(l,u,a,r){const s=r?r-1:Number.POSITIVE_INFINITY;let h=0;return f;function f(d){return At(d)?(l.enter(a),p(d)):u(d)}function p(d){return At(d)&&h++<s?(l.consume(d),p):(l.exit(a),u(d))}}const Rb={tokenize:Nb};function Nb(l){const u=l.attempt(this.parser.constructs.contentInitial,r,s);let a;return u;function r(p){if(p===null){l.consume(p);return}return l.enter("lineEnding"),l.consume(p),l.exit("lineEnding"),_t(l,u,"linePrefix")}function s(p){return l.enter("paragraph"),h(p)}function h(p){const d=l.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=d),a=d,f(p)}function f(p){if(p===null){l.exit("chunkText"),l.exit("paragraph"),l.consume(p);return}return ct(p)?(l.consume(p),l.exit("chunkText"),h):(l.consume(p),f)}}const Ub={tokenize:Lb},Kp={tokenize:Bb};function Lb(l){const u=this,a=[];let r=0,s,h,f;return p;function p(G){if(r<a.length){const at=a[r];return u.containerState=at[1],l.attempt(at[0].continuation,d,m)(G)}return m(G)}function d(G){if(r++,u.containerState._closeFlow){u.containerState._closeFlow=void 0,s&&Q();const at=u.events.length;let ot=at,B;for(;ot--;)if(u.events[ot][0]==="exit"&&u.events[ot][1].type==="chunkFlow"){B=u.events[ot][1].end;break}_(r);let $=at;for(;$<u.events.length;)u.events[$][1].end={...B},$++;return He(u.events,ot+1,0,u.events.slice(at)),u.events.length=$,m(G)}return p(G)}function m(G){if(r===a.length){if(!s)return S(G);if(s.currentConstruct&&s.currentConstruct.concrete)return C(G);u.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return u.containerState={},l.check(Kp,b,y)(G)}function b(G){return s&&Q(),_(r),S(G)}function y(G){return u.parser.lazy[u.now().line]=r!==a.length,f=u.now().offset,C(G)}function S(G){return u.containerState={},l.attempt(Kp,x,C)(G)}function x(G){return r++,a.push([u.currentConstruct,u.containerState]),S(G)}function C(G){if(G===null){s&&Q(),_(0),l.consume(G);return}return s=s||u.parser.flow(u.now()),l.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),L(G)}function L(G){if(G===null){X(l.exit("chunkFlow"),!0),_(0),l.consume(G);return}return ct(G)?(l.consume(G),X(l.exit("chunkFlow")),r=0,u.interrupt=void 0,p):(l.consume(G),L)}function X(G,at){const ot=u.sliceStream(G);if(at&&ot.push(null),G.previous=h,h&&(h.next=G),h=G,s.defineSkip(G.start),s.write(ot),u.parser.lazy[G.start.line]){let B=s.events.length;for(;B--;)if(s.events[B][1].start.offset<f&&(!s.events[B][1].end||s.events[B][1].end.offset>f))return;const $=u.events.length;let mt=$,dt,U;for(;mt--;)if(u.events[mt][0]==="exit"&&u.events[mt][1].type==="chunkFlow"){if(dt){U=u.events[mt][1].end;break}dt=!0}for(_(r),B=$;B<u.events.length;)u.events[B][1].end={...U},B++;He(u.events,mt+1,0,u.events.slice($)),u.events.length=B}}function _(G){let at=a.length;for(;at-- >G;){const ot=a[at];u.containerState=ot[1],ot[0].exit.call(u,l)}a.length=G}function Q(){s.write([null]),h=void 0,s=void 0,u.containerState._closeFlow=void 0}}function Bb(l,u,a){return _t(l,l.attempt(this.parser.constructs.document,u,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vi(l){if(l===null||Xt(l)||Tl(l))return 1;if(ir(l))return 2}function ar(l,u,a){const r=[];let s=-1;for(;++s<l.length;){const h=l[s].resolveAll;h&&!r.includes(h)&&(u=h(u,a),r.push(h))}return u}const ts={name:"attention",resolveAll:jb,tokenize:Hb};function jb(l,u){let a=-1,r,s,h,f,p,d,m,b;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="attentionSequence"&&l[a][1]._close){for(r=a;r--;)if(l[r][0]==="exit"&&l[r][1].type==="attentionSequence"&&l[r][1]._open&&u.sliceSerialize(l[r][1]).charCodeAt(0)===u.sliceSerialize(l[a][1]).charCodeAt(0)){if((l[r][1]._close||l[a][1]._open)&&(l[a][1].end.offset-l[a][1].start.offset)%3&&!((l[r][1].end.offset-l[r][1].start.offset+l[a][1].end.offset-l[a][1].start.offset)%3))continue;d=l[r][1].end.offset-l[r][1].start.offset>1&&l[a][1].end.offset-l[a][1].start.offset>1?2:1;const y={...l[r][1].end},S={...l[a][1].start};Jp(y,-d),Jp(S,d),f={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...l[r][1].end}},p={type:d>1?"strongSequence":"emphasisSequence",start:{...l[a][1].start},end:S},h={type:d>1?"strongText":"emphasisText",start:{...l[r][1].end},end:{...l[a][1].start}},s={type:d>1?"strong":"emphasis",start:{...f.start},end:{...p.end}},l[r][1].end={...f.start},l[a][1].start={...p.end},m=[],l[r][1].end.offset-l[r][1].start.offset&&(m=$e(m,[["enter",l[r][1],u],["exit",l[r][1],u]])),m=$e(m,[["enter",s,u],["enter",f,u],["exit",f,u],["enter",h,u]]),m=$e(m,ar(u.parser.constructs.insideSpan.null,l.slice(r+1,a),u)),m=$e(m,[["exit",h,u],["enter",p,u],["exit",p,u],["exit",s,u]]),l[a][1].end.offset-l[a][1].start.offset?(b=2,m=$e(m,[["enter",l[a][1],u],["exit",l[a][1],u]])):b=0,He(l,r-1,a-r+3,m),a=r+m.length-b-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="attentionSequence"&&(l[a][1].type="data");return l}function Hb(l,u){const a=this.parser.constructs.attentionMarkers.null,r=this.previous,s=vi(r);let h;return f;function f(d){return h=d,l.enter("attentionSequence"),p(d)}function p(d){if(d===h)return l.consume(d),p;const m=l.exit("attentionSequence"),b=vi(d),y=!b||b===2&&s||a.includes(d),S=!s||s===2&&b||a.includes(r);return m._open=!!(h===42?y:y&&(s||!S)),m._close=!!(h===42?S:S&&(b||!y)),u(d)}}function Jp(l,u){l.column+=u,l.offset+=u,l._bufferIndex+=u}const qb={name:"autolink",tokenize:Yb};function Yb(l,u,a){let r=0;return s;function s(x){return l.enter("autolink"),l.enter("autolinkMarker"),l.consume(x),l.exit("autolinkMarker"),l.enter("autolinkProtocol"),h}function h(x){return ve(x)?(l.consume(x),f):x===64?a(x):m(x)}function f(x){return x===43||x===45||x===46||pe(x)?(r=1,p(x)):m(x)}function p(x){return x===58?(l.consume(x),r=0,d):(x===43||x===45||x===46||pe(x))&&r++<32?(l.consume(x),p):(r=0,m(x))}function d(x){return x===62?(l.exit("autolinkProtocol"),l.enter("autolinkMarker"),l.consume(x),l.exit("autolinkMarker"),l.exit("autolink"),u):x===null||x===32||x===60||tr(x)?a(x):(l.consume(x),d)}function m(x){return x===64?(l.consume(x),b):Db(x)?(l.consume(x),m):a(x)}function b(x){return pe(x)?y(x):a(x)}function y(x){return x===46?(l.consume(x),r=0,b):x===62?(l.exit("autolinkProtocol").type="autolinkEmail",l.enter("autolinkMarker"),l.consume(x),l.exit("autolinkMarker"),l.exit("autolink"),u):S(x)}function S(x){if((x===45||pe(x))&&r++<63){const C=x===45?S:y;return l.consume(x),C}return a(x)}}const Ca={partial:!0,tokenize:Vb};function Vb(l,u,a){return r;function r(h){return At(h)?_t(l,s,"linePrefix")(h):s(h)}function s(h){return h===null||ct(h)?u(h):a(h)}}const Xd={continuation:{tokenize:Gb},exit:Qb,name:"blockQuote",tokenize:Xb};function Xb(l,u,a){const r=this;return s;function s(f){if(f===62){const p=r.containerState;return p.open||(l.enter("blockQuote",{_container:!0}),p.open=!0),l.enter("blockQuotePrefix"),l.enter("blockQuoteMarker"),l.consume(f),l.exit("blockQuoteMarker"),h}return a(f)}function h(f){return At(f)?(l.enter("blockQuotePrefixWhitespace"),l.consume(f),l.exit("blockQuotePrefixWhitespace"),l.exit("blockQuotePrefix"),u):(l.exit("blockQuotePrefix"),u(f))}}function Gb(l,u,a){const r=this;return s;function s(f){return At(f)?_t(l,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return l.attempt(Xd,u,a)(f)}}function Qb(l){l.exit("blockQuote")}const Gd={name:"characterEscape",tokenize:Zb};function Zb(l,u,a){return r;function r(h){return l.enter("characterEscape"),l.enter("escapeMarker"),l.consume(h),l.exit("escapeMarker"),s}function s(h){return Ob(h)?(l.enter("characterEscapeValue"),l.consume(h),l.exit("characterEscapeValue"),l.exit("characterEscape"),u):a(h)}}const Qd={name:"characterReference",tokenize:Kb};function Kb(l,u,a){const r=this;let s=0,h,f;return p;function p(y){return l.enter("characterReference"),l.enter("characterReferenceMarker"),l.consume(y),l.exit("characterReferenceMarker"),d}function d(y){return y===35?(l.enter("characterReferenceMarkerNumeric"),l.consume(y),l.exit("characterReferenceMarkerNumeric"),m):(l.enter("characterReferenceValue"),h=31,f=pe,b(y))}function m(y){return y===88||y===120?(l.enter("characterReferenceMarkerHexadecimal"),l.consume(y),l.exit("characterReferenceMarkerHexadecimal"),l.enter("characterReferenceValue"),h=6,f=Mb,b):(l.enter("characterReferenceValue"),h=7,f=Pc,b(y))}function b(y){if(y===59&&s){const S=l.exit("characterReferenceValue");return f===pe&&!ps(r.sliceSerialize(S))?a(y):(l.enter("characterReferenceMarker"),l.consume(y),l.exit("characterReferenceMarker"),l.exit("characterReference"),u)}return f(y)&&s++<h?(l.consume(y),b):a(y)}}const Fp={partial:!0,tokenize:Fb},Ip={concrete:!0,name:"codeFenced",tokenize:Jb};function Jb(l,u,a){const r=this,s={partial:!0,tokenize:ot};let h=0,f=0,p;return d;function d(B){return m(B)}function m(B){const $=r.events[r.events.length-1];return h=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,p=B,l.enter("codeFenced"),l.enter("codeFencedFence"),l.enter("codeFencedFenceSequence"),b(B)}function b(B){return B===p?(f++,l.consume(B),b):f<3?a(B):(l.exit("codeFencedFenceSequence"),At(B)?_t(l,y,"whitespace")(B):y(B))}function y(B){return B===null||ct(B)?(l.exit("codeFencedFence"),r.interrupt?u(B):l.check(Fp,L,at)(B)):(l.enter("codeFencedFenceInfo"),l.enter("chunkString",{contentType:"string"}),S(B))}function S(B){return B===null||ct(B)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),y(B)):At(B)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),_t(l,x,"whitespace")(B)):B===96&&B===p?a(B):(l.consume(B),S)}function x(B){return B===null||ct(B)?y(B):(l.enter("codeFencedFenceMeta"),l.enter("chunkString",{contentType:"string"}),C(B))}function C(B){return B===null||ct(B)?(l.exit("chunkString"),l.exit("codeFencedFenceMeta"),y(B)):B===96&&B===p?a(B):(l.consume(B),C)}function L(B){return l.attempt(s,at,X)(B)}function X(B){return l.enter("lineEnding"),l.consume(B),l.exit("lineEnding"),_}function _(B){return h>0&&At(B)?_t(l,Q,"linePrefix",h+1)(B):Q(B)}function Q(B){return B===null||ct(B)?l.check(Fp,L,at)(B):(l.enter("codeFlowValue"),G(B))}function G(B){return B===null||ct(B)?(l.exit("codeFlowValue"),Q(B)):(l.consume(B),G)}function at(B){return l.exit("codeFenced"),u(B)}function ot(B,$,mt){let dt=0;return U;function U(J){return B.enter("lineEnding"),B.consume(J),B.exit("lineEnding"),tt}function tt(J){return B.enter("codeFencedFence"),At(J)?_t(B,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):P(J)}function P(J){return J===p?(B.enter("codeFencedFenceSequence"),xt(J)):mt(J)}function xt(J){return J===p?(dt++,B.consume(J),xt):dt>=f?(B.exit("codeFencedFenceSequence"),At(J)?_t(B,nt,"whitespace")(J):nt(J)):mt(J)}function nt(J){return J===null||ct(J)?(B.exit("codeFencedFence"),$(J)):mt(J)}}}function Fb(l,u,a){const r=this;return s;function s(f){return f===null?a(f):(l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),h)}function h(f){return r.parser.lazy[r.now().line]?a(f):u(f)}}const Uc={name:"codeIndented",tokenize:$b},Ib={partial:!0,tokenize:Wb};function $b(l,u,a){const r=this;return s;function s(m){return l.enter("codeIndented"),_t(l,h,"linePrefix",5)(m)}function h(m){const b=r.events[r.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?f(m):a(m)}function f(m){return m===null?d(m):ct(m)?l.attempt(Ib,f,d)(m):(l.enter("codeFlowValue"),p(m))}function p(m){return m===null||ct(m)?(l.exit("codeFlowValue"),f(m)):(l.consume(m),p)}function d(m){return l.exit("codeIndented"),u(m)}}function Wb(l,u,a){const r=this;return s;function s(f){return r.parser.lazy[r.now().line]?a(f):ct(f)?(l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),s):_t(l,h,"linePrefix",5)(f)}function h(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(f):ct(f)?s(f):a(f)}}const Pb={name:"codeText",previous:ev,resolve:tv,tokenize:nv};function tv(l){let u=l.length-4,a=3,r,s;if((l[a][1].type==="lineEnding"||l[a][1].type==="space")&&(l[u][1].type==="lineEnding"||l[u][1].type==="space")){for(r=a;++r<u;)if(l[r][1].type==="codeTextData"){l[a][1].type="codeTextPadding",l[u][1].type="codeTextPadding",a+=2,u-=2;break}}for(r=a-1,u++;++r<=u;)s===void 0?r!==u&&l[r][1].type!=="lineEnding"&&(s=r):(r===u||l[r][1].type==="lineEnding")&&(l[s][1].type="codeTextData",r!==s+2&&(l[s][1].end=l[r-1][1].end,l.splice(s+2,r-s-2),u-=r-s-2,r=s+2),s=void 0);return l}function ev(l){return l!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nv(l,u,a){let r=0,s,h;return f;function f(y){return l.enter("codeText"),l.enter("codeTextSequence"),p(y)}function p(y){return y===96?(l.consume(y),r++,p):(l.exit("codeTextSequence"),d(y))}function d(y){return y===null?a(y):y===32?(l.enter("space"),l.consume(y),l.exit("space"),d):y===96?(h=l.enter("codeTextSequence"),s=0,b(y)):ct(y)?(l.enter("lineEnding"),l.consume(y),l.exit("lineEnding"),d):(l.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||ct(y)?(l.exit("codeTextData"),d(y)):(l.consume(y),m)}function b(y){return y===96?(l.consume(y),s++,b):s===r?(l.exit("codeTextSequence"),l.exit("codeText"),u(y)):(h.type="codeTextData",m(y))}}class lv{constructor(u){this.left=u?[...u]:[],this.right=[]}get(u){if(u<0||u>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+u+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return u<this.left.length?this.left[u]:this.right[this.right.length-u+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(u,a){const r=a??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(u,r):u>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-u+this.left.length).reverse():this.left.slice(u).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(u,a,r){const s=a||0;this.setCursor(Math.trunc(u));const h=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&va(this.left,r),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(u){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(u)}pushMany(u){this.setCursor(Number.POSITIVE_INFINITY),va(this.left,u)}unshift(u){this.setCursor(0),this.right.push(u)}unshiftMany(u){this.setCursor(0),va(this.right,u.reverse())}setCursor(u){if(!(u===this.left.length||u>this.left.length&&this.right.length===0||u<0&&this.left.length===0))if(u<this.left.length){const a=this.left.splice(u,Number.POSITIVE_INFINITY);va(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-u,Number.POSITIVE_INFINITY);va(this.left,a.reverse())}}}function va(l,u){let a=0;if(u.length<1e4)l.push(...u);else for(;a<u.length;)l.push(...u.slice(a,a+1e4)),a+=1e4}function Zd(l){const u={};let a=-1,r,s,h,f,p,d,m;const b=new lv(l);for(;++a<b.length;){for(;a in u;)a=u[a];if(r=b.get(a),a&&r[1].type==="chunkFlow"&&b.get(a-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,h=0,h<d.length&&d[h][1].type==="lineEndingBlank"&&(h+=2),h<d.length&&d[h][1].type==="content"))for(;++h<d.length&&d[h][1].type!=="content";)d[h][1].type==="chunkText"&&(d[h][1]._isInFirstContentOfListItem=!0,h++);if(r[0]==="enter")r[1].contentType&&(Object.assign(u,iv(b,a)),a=u[a],m=!0);else if(r[1]._container){for(h=a,s=void 0;h--;)if(f=b.get(h),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=h);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(r[1].end={...b.get(s)[1].start},p=b.slice(s,a),p.unshift(r),b.splice(s,a-s+1,p))}}return He(l,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function iv(l,u){const a=l.get(u)[1],r=l.get(u)[2];let s=u-1;const h=[];let f=a._tokenizer;f||(f=r.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const p=f.events,d=[],m={};let b,y,S=-1,x=a,C=0,L=0;const X=[L];for(;x;){for(;l.get(++s)[1]!==x;);h.push(s),x._tokenizer||(b=r.sliceStream(x),x.next||b.push(null),y&&f.defineSkip(x.start),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(b),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=a;++S<p.length;)p[S][0]==="exit"&&p[S-1][0]==="enter"&&p[S][1].type===p[S-1][1].type&&p[S][1].start.line!==p[S][1].end.line&&(L=S+1,X.push(L),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(f.events=[],x?(x._tokenizer=void 0,x.previous=void 0):X.pop(),S=X.length;S--;){const _=p.slice(X[S],X[S+1]),Q=h.pop();d.push([Q,Q+_.length-1]),l.splice(Q,2,_)}for(d.reverse(),S=-1;++S<d.length;)m[C+d[S][0]]=C+d[S][1],C+=d[S][1]-d[S][0]-1;return m}const av={resolve:rv,tokenize:ov},uv={partial:!0,tokenize:cv};function rv(l){return Zd(l),l}function ov(l,u){let a;return r;function r(p){return l.enter("content"),a=l.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?h(p):ct(p)?l.check(uv,f,h)(p):(l.consume(p),s)}function h(p){return l.exit("chunkContent"),l.exit("content"),u(p)}function f(p){return l.consume(p),l.exit("chunkContent"),a.next=l.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,s}}function cv(l,u,a){const r=this;return s;function s(f){return l.exit("chunkContent"),l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),_t(l,h,"linePrefix")}function h(f){if(f===null||ct(f))return a(f);const p=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(f):l.interrupt(r.parser.constructs.flow,a,u)(f)}}function Kd(l,u,a,r,s,h,f,p,d){const m=d||Number.POSITIVE_INFINITY;let b=0;return y;function y(_){return _===60?(l.enter(r),l.enter(s),l.enter(h),l.consume(_),l.exit(h),S):_===null||_===32||_===41||tr(_)?a(_):(l.enter(r),l.enter(f),l.enter(p),l.enter("chunkString",{contentType:"string"}),L(_))}function S(_){return _===62?(l.enter(h),l.consume(_),l.exit(h),l.exit(s),l.exit(r),u):(l.enter(p),l.enter("chunkString",{contentType:"string"}),x(_))}function x(_){return _===62?(l.exit("chunkString"),l.exit(p),S(_)):_===null||_===60||ct(_)?a(_):(l.consume(_),_===92?C:x)}function C(_){return _===60||_===62||_===92?(l.consume(_),x):x(_)}function L(_){return!b&&(_===null||_===41||Xt(_))?(l.exit("chunkString"),l.exit(p),l.exit(f),l.exit(r),u(_)):b<m&&_===40?(l.consume(_),b++,L):_===41?(l.consume(_),b--,L):_===null||_===32||_===40||tr(_)?a(_):(l.consume(_),_===92?X:L)}function X(_){return _===40||_===41||_===92?(l.consume(_),L):L(_)}}function Jd(l,u,a,r,s,h){const f=this;let p=0,d;return m;function m(x){return l.enter(r),l.enter(s),l.consume(x),l.exit(s),l.enter(h),b}function b(x){return p>999||x===null||x===91||x===93&&!d||x===94&&!p&&"_hiddenFootnoteSupport"in f.parser.constructs?a(x):x===93?(l.exit(h),l.enter(s),l.consume(x),l.exit(s),l.exit(r),u):ct(x)?(l.enter("lineEnding"),l.consume(x),l.exit("lineEnding"),b):(l.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||ct(x)||p++>999?(l.exit("chunkString"),b(x)):(l.consume(x),d||(d=!At(x)),x===92?S:y)}function S(x){return x===91||x===92||x===93?(l.consume(x),p++,y):y(x)}}function Fd(l,u,a,r,s,h){let f;return p;function p(S){return S===34||S===39||S===40?(l.enter(r),l.enter(s),l.consume(S),l.exit(s),f=S===40?41:S,d):a(S)}function d(S){return S===f?(l.enter(s),l.consume(S),l.exit(s),l.exit(r),u):(l.enter(h),m(S))}function m(S){return S===f?(l.exit(h),d(f)):S===null?a(S):ct(S)?(l.enter("lineEnding"),l.consume(S),l.exit("lineEnding"),_t(l,m,"linePrefix")):(l.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===f||S===null||ct(S)?(l.exit("chunkString"),m(S)):(l.consume(S),S===92?y:b)}function y(S){return S===f||S===92?(l.consume(S),b):b(S)}}function Ea(l,u){let a;return r;function r(s){return ct(s)?(l.enter("lineEnding"),l.consume(s),l.exit("lineEnding"),a=!0,r):At(s)?_t(l,r,a?"linePrefix":"lineSuffix")(s):u(s)}}const sv={name:"definition",tokenize:hv},fv={partial:!0,tokenize:mv};function hv(l,u,a){const r=this;let s;return h;function h(x){return l.enter("definition"),f(x)}function f(x){return Jd.call(r,l,p,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function p(x){return s=nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),x===58?(l.enter("definitionMarker"),l.consume(x),l.exit("definitionMarker"),d):a(x)}function d(x){return Xt(x)?Ea(l,m)(x):m(x)}function m(x){return Kd(l,b,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return l.attempt(fv,y,y)(x)}function y(x){return At(x)?_t(l,S,"whitespace")(x):S(x)}function S(x){return x===null||ct(x)?(l.exit("definition"),r.parser.defined.push(s),u(x)):a(x)}}function mv(l,u,a){return r;function r(p){return Xt(p)?Ea(l,s)(p):a(p)}function s(p){return Fd(l,h,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function h(p){return At(p)?_t(l,f,"whitespace")(p):f(p)}function f(p){return p===null||ct(p)?u(p):a(p)}}const pv={name:"hardBreakEscape",tokenize:dv};function dv(l,u,a){return r;function r(h){return l.enter("hardBreakEscape"),l.consume(h),s}function s(h){return ct(h)?(l.exit("hardBreakEscape"),u(h)):a(h)}}const gv={name:"headingAtx",resolve:yv,tokenize:bv};function yv(l,u){let a=l.length-2,r=3,s,h;return l[r][1].type==="whitespace"&&(r+=2),a-2>r&&l[a][1].type==="whitespace"&&(a-=2),l[a][1].type==="atxHeadingSequence"&&(r===a-1||a-4>r&&l[a-2][1].type==="whitespace")&&(a-=r+1===a?2:4),a>r&&(s={type:"atxHeadingText",start:l[r][1].start,end:l[a][1].end},h={type:"chunkText",start:l[r][1].start,end:l[a][1].end,contentType:"text"},He(l,r,a-r+1,[["enter",s,u],["enter",h,u],["exit",h,u],["exit",s,u]])),l}function bv(l,u,a){let r=0;return s;function s(b){return l.enter("atxHeading"),h(b)}function h(b){return l.enter("atxHeadingSequence"),f(b)}function f(b){return b===35&&r++<6?(l.consume(b),f):b===null||Xt(b)?(l.exit("atxHeadingSequence"),p(b)):a(b)}function p(b){return b===35?(l.enter("atxHeadingSequence"),d(b)):b===null||ct(b)?(l.exit("atxHeading"),u(b)):At(b)?_t(l,p,"whitespace")(b):(l.enter("atxHeadingText"),m(b))}function d(b){return b===35?(l.consume(b),d):(l.exit("atxHeadingSequence"),p(b))}function m(b){return b===null||b===35||Xt(b)?(l.exit("atxHeadingText"),p(b)):(l.consume(b),m)}}const vv=["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"],$p=["pre","script","style","textarea"],xv={concrete:!0,name:"htmlFlow",resolveTo:kv,tokenize:Av},Sv={partial:!0,tokenize:zv},Ev={partial:!0,tokenize:Tv};function kv(l){let u=l.length;for(;u--&&!(l[u][0]==="enter"&&l[u][1].type==="htmlFlow"););return u>1&&l[u-2][1].type==="linePrefix"&&(l[u][1].start=l[u-2][1].start,l[u+1][1].start=l[u-2][1].start,l.splice(u-2,2)),l}function Av(l,u,a){const r=this;let s,h,f,p,d;return m;function m(E){return b(E)}function b(E){return l.enter("htmlFlow"),l.enter("htmlFlowData"),l.consume(E),y}function y(E){return E===33?(l.consume(E),S):E===47?(l.consume(E),h=!0,L):E===63?(l.consume(E),s=3,r.interrupt?u:k):ve(E)?(l.consume(E),f=String.fromCharCode(E),X):a(E)}function S(E){return E===45?(l.consume(E),s=2,x):E===91?(l.consume(E),s=5,p=0,C):ve(E)?(l.consume(E),s=4,r.interrupt?u:k):a(E)}function x(E){return E===45?(l.consume(E),r.interrupt?u:k):a(E)}function C(E){const I="CDATA[";return E===I.charCodeAt(p++)?(l.consume(E),p===I.length?r.interrupt?u:P:C):a(E)}function L(E){return ve(E)?(l.consume(E),f=String.fromCharCode(E),X):a(E)}function X(E){if(E===null||E===47||E===62||Xt(E)){const I=E===47,ft=f.toLowerCase();return!I&&!h&&$p.includes(ft)?(s=1,r.interrupt?u(E):P(E)):vv.includes(f.toLowerCase())?(s=6,I?(l.consume(E),_):r.interrupt?u(E):P(E)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?a(E):h?Q(E):G(E))}return E===45||pe(E)?(l.consume(E),f+=String.fromCharCode(E),X):a(E)}function _(E){return E===62?(l.consume(E),r.interrupt?u:P):a(E)}function Q(E){return At(E)?(l.consume(E),Q):U(E)}function G(E){return E===47?(l.consume(E),U):E===58||E===95||ve(E)?(l.consume(E),at):At(E)?(l.consume(E),G):U(E)}function at(E){return E===45||E===46||E===58||E===95||pe(E)?(l.consume(E),at):ot(E)}function ot(E){return E===61?(l.consume(E),B):At(E)?(l.consume(E),ot):G(E)}function B(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(l.consume(E),d=E,$):At(E)?(l.consume(E),B):mt(E)}function $(E){return E===d?(l.consume(E),d=null,dt):E===null||ct(E)?a(E):(l.consume(E),$)}function mt(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Xt(E)?ot(E):(l.consume(E),mt)}function dt(E){return E===47||E===62||At(E)?G(E):a(E)}function U(E){return E===62?(l.consume(E),tt):a(E)}function tt(E){return E===null||ct(E)?P(E):At(E)?(l.consume(E),tt):a(E)}function P(E){return E===45&&s===2?(l.consume(E),R):E===60&&s===1?(l.consume(E),Z):E===62&&s===4?(l.consume(E),T):E===63&&s===3?(l.consume(E),k):E===93&&s===5?(l.consume(E),vt):ct(E)&&(s===6||s===7)?(l.exit("htmlFlowData"),l.check(Sv,H,xt)(E)):E===null||ct(E)?(l.exit("htmlFlowData"),xt(E)):(l.consume(E),P)}function xt(E){return l.check(Ev,nt,H)(E)}function nt(E){return l.enter("lineEnding"),l.consume(E),l.exit("lineEnding"),J}function J(E){return E===null||ct(E)?xt(E):(l.enter("htmlFlowData"),P(E))}function R(E){return E===45?(l.consume(E),k):P(E)}function Z(E){return E===47?(l.consume(E),f="",it):P(E)}function it(E){if(E===62){const I=f.toLowerCase();return $p.includes(I)?(l.consume(E),T):P(E)}return ve(E)&&f.length<8?(l.consume(E),f+=String.fromCharCode(E),it):P(E)}function vt(E){return E===93?(l.consume(E),k):P(E)}function k(E){return E===62?(l.consume(E),T):E===45&&s===2?(l.consume(E),k):P(E)}function T(E){return E===null||ct(E)?(l.exit("htmlFlowData"),H(E)):(l.consume(E),T)}function H(E){return l.exit("htmlFlow"),u(E)}}function Tv(l,u,a){const r=this;return s;function s(f){return ct(f)?(l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),h):a(f)}function h(f){return r.parser.lazy[r.now().line]?a(f):u(f)}}function zv(l,u,a){return r;function r(s){return l.enter("lineEnding"),l.consume(s),l.exit("lineEnding"),l.attempt(Ca,u,a)}}const Cv={name:"htmlText",tokenize:wv};function wv(l,u,a){const r=this;let s,h,f;return p;function p(k){return l.enter("htmlText"),l.enter("htmlTextData"),l.consume(k),d}function d(k){return k===33?(l.consume(k),m):k===47?(l.consume(k),ot):k===63?(l.consume(k),G):ve(k)?(l.consume(k),mt):a(k)}function m(k){return k===45?(l.consume(k),b):k===91?(l.consume(k),h=0,C):ve(k)?(l.consume(k),Q):a(k)}function b(k){return k===45?(l.consume(k),x):a(k)}function y(k){return k===null?a(k):k===45?(l.consume(k),S):ct(k)?(f=y,Z(k)):(l.consume(k),y)}function S(k){return k===45?(l.consume(k),x):y(k)}function x(k){return k===62?R(k):k===45?S(k):y(k)}function C(k){const T="CDATA[";return k===T.charCodeAt(h++)?(l.consume(k),h===T.length?L:C):a(k)}function L(k){return k===null?a(k):k===93?(l.consume(k),X):ct(k)?(f=L,Z(k)):(l.consume(k),L)}function X(k){return k===93?(l.consume(k),_):L(k)}function _(k){return k===62?R(k):k===93?(l.consume(k),_):L(k)}function Q(k){return k===null||k===62?R(k):ct(k)?(f=Q,Z(k)):(l.consume(k),Q)}function G(k){return k===null?a(k):k===63?(l.consume(k),at):ct(k)?(f=G,Z(k)):(l.consume(k),G)}function at(k){return k===62?R(k):G(k)}function ot(k){return ve(k)?(l.consume(k),B):a(k)}function B(k){return k===45||pe(k)?(l.consume(k),B):$(k)}function $(k){return ct(k)?(f=$,Z(k)):At(k)?(l.consume(k),$):R(k)}function mt(k){return k===45||pe(k)?(l.consume(k),mt):k===47||k===62||Xt(k)?dt(k):a(k)}function dt(k){return k===47?(l.consume(k),R):k===58||k===95||ve(k)?(l.consume(k),U):ct(k)?(f=dt,Z(k)):At(k)?(l.consume(k),dt):R(k)}function U(k){return k===45||k===46||k===58||k===95||pe(k)?(l.consume(k),U):tt(k)}function tt(k){return k===61?(l.consume(k),P):ct(k)?(f=tt,Z(k)):At(k)?(l.consume(k),tt):dt(k)}function P(k){return k===null||k===60||k===61||k===62||k===96?a(k):k===34||k===39?(l.consume(k),s=k,xt):ct(k)?(f=P,Z(k)):At(k)?(l.consume(k),P):(l.consume(k),nt)}function xt(k){return k===s?(l.consume(k),s=void 0,J):k===null?a(k):ct(k)?(f=xt,Z(k)):(l.consume(k),xt)}function nt(k){return k===null||k===34||k===39||k===60||k===61||k===96?a(k):k===47||k===62||Xt(k)?dt(k):(l.consume(k),nt)}function J(k){return k===47||k===62||Xt(k)?dt(k):a(k)}function R(k){return k===62?(l.consume(k),l.exit("htmlTextData"),l.exit("htmlText"),u):a(k)}function Z(k){return l.exit("htmlTextData"),l.enter("lineEnding"),l.consume(k),l.exit("lineEnding"),it}function it(k){return At(k)?_t(l,vt,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):vt(k)}function vt(k){return l.enter("htmlTextData"),f(k)}}const ds={name:"labelEnd",resolveAll:Ov,resolveTo:Rv,tokenize:Nv},_v={tokenize:Uv},Dv={tokenize:Lv},Mv={tokenize:Bv};function Ov(l){let u=-1;const a=[];for(;++u<l.length;){const r=l[u][1];if(a.push(l[u]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",u+=s}}return l.length!==a.length&&He(l,0,l.length,a),l}function Rv(l,u){let a=l.length,r=0,s,h,f,p;for(;a--;)if(s=l[a][1],h){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;l[a][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(l[a][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(h=a,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(f=a);const d={type:l[h][1].type==="labelLink"?"link":"image",start:{...l[h][1].start},end:{...l[l.length-1][1].end}},m={type:"label",start:{...l[h][1].start},end:{...l[f][1].end}},b={type:"labelText",start:{...l[h+r+2][1].end},end:{...l[f-2][1].start}};return p=[["enter",d,u],["enter",m,u]],p=$e(p,l.slice(h+1,h+r+3)),p=$e(p,[["enter",b,u]]),p=$e(p,ar(u.parser.constructs.insideSpan.null,l.slice(h+r+4,f-3),u)),p=$e(p,[["exit",b,u],l[f-2],l[f-1],["exit",m,u]]),p=$e(p,l.slice(f+1)),p=$e(p,[["exit",d,u]]),He(l,h,l.length,p),l}function Nv(l,u,a){const r=this;let s=r.events.length,h,f;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){h=r.events[s][1];break}return p;function p(S){return h?h._inactive?y(S):(f=r.parser.defined.includes(nn(r.sliceSerialize({start:h.end,end:r.now()}))),l.enter("labelEnd"),l.enter("labelMarker"),l.consume(S),l.exit("labelMarker"),l.exit("labelEnd"),d):a(S)}function d(S){return S===40?l.attempt(_v,b,f?b:y)(S):S===91?l.attempt(Dv,b,f?m:y)(S):f?b(S):y(S)}function m(S){return l.attempt(Mv,b,y)(S)}function b(S){return u(S)}function y(S){return h._balanced=!0,a(S)}}function Uv(l,u,a){return r;function r(y){return l.enter("resource"),l.enter("resourceMarker"),l.consume(y),l.exit("resourceMarker"),s}function s(y){return Xt(y)?Ea(l,h)(y):h(y)}function h(y){return y===41?b(y):Kd(l,f,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Xt(y)?Ea(l,d)(y):b(y)}function p(y){return a(y)}function d(y){return y===34||y===39||y===40?Fd(l,m,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):b(y)}function m(y){return Xt(y)?Ea(l,b)(y):b(y)}function b(y){return y===41?(l.enter("resourceMarker"),l.consume(y),l.exit("resourceMarker"),l.exit("resource"),u):a(y)}}function Lv(l,u,a){const r=this;return s;function s(p){return Jd.call(r,l,h,f,"reference","referenceMarker","referenceString")(p)}function h(p){return r.parser.defined.includes(nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?u(p):a(p)}function f(p){return a(p)}}function Bv(l,u,a){return r;function r(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"),u):a(h)}}const jv={name:"labelStartImage",resolveAll:ds.resolveAll,tokenize:Hv};function Hv(l,u,a){const r=this;return s;function s(p){return l.enter("labelImage"),l.enter("labelImageMarker"),l.consume(p),l.exit("labelImageMarker"),h}function h(p){return p===91?(l.enter("labelMarker"),l.consume(p),l.exit("labelMarker"),l.exit("labelImage"),f):a(p)}function f(p){return p===94&&"_hiddenFootnoteSupport"in r.parser.constructs?a(p):u(p)}}const qv={name:"labelStartLink",resolveAll:ds.resolveAll,tokenize:Yv};function Yv(l,u,a){const r=this;return s;function s(f){return l.enter("labelLink"),l.enter("labelMarker"),l.consume(f),l.exit("labelMarker"),l.exit("labelLink"),h}function h(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?a(f):u(f)}}const Lc={name:"lineEnding",tokenize:Vv};function Vv(l,u){return a;function a(r){return l.enter("lineEnding"),l.consume(r),l.exit("lineEnding"),_t(l,u,"linePrefix")}}const Pu={name:"thematicBreak",tokenize:Xv};function Xv(l,u,a){let r=0,s;return h;function h(m){return l.enter("thematicBreak"),f(m)}function f(m){return s=m,p(m)}function p(m){return m===s?(l.enter("thematicBreakSequence"),d(m)):r>=3&&(m===null||ct(m))?(l.exit("thematicBreak"),u(m)):a(m)}function d(m){return m===s?(l.consume(m),r++,d):(l.exit("thematicBreakSequence"),At(m)?_t(l,p,"whitespace")(m):p(m))}}const we={continuation:{tokenize:Kv},exit:Fv,name:"list",tokenize:Zv},Gv={partial:!0,tokenize:Iv},Qv={partial:!0,tokenize:Jv};function Zv(l,u,a){const r=this,s=r.events[r.events.length-1];let h=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return p;function p(x){const C=r.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!r.containerState.marker||x===r.containerState.marker:Pc(x)){if(r.containerState.type||(r.containerState.type=C,l.enter(C,{_container:!0})),C==="listUnordered")return l.enter("listItemPrefix"),x===42||x===45?l.check(Pu,a,m)(x):m(x);if(!r.interrupt||x===49)return l.enter("listItemPrefix"),l.enter("listItemValue"),d(x)}return a(x)}function d(x){return Pc(x)&&++f<10?(l.consume(x),d):(!r.interrupt||f<2)&&(r.containerState.marker?x===r.containerState.marker:x===41||x===46)?(l.exit("listItemValue"),m(x)):a(x)}function m(x){return l.enter("listItemMarker"),l.consume(x),l.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||x,l.check(Ca,r.interrupt?a:b,l.attempt(Gv,S,y))}function b(x){return r.containerState.initialBlankLine=!0,h++,S(x)}function y(x){return At(x)?(l.enter("listItemPrefixWhitespace"),l.consume(x),l.exit("listItemPrefixWhitespace"),S):a(x)}function S(x){return r.containerState.size=h+r.sliceSerialize(l.exit("listItemPrefix"),!0).length,u(x)}}function Kv(l,u,a){const r=this;return r.containerState._closeFlow=void 0,l.check(Ca,s,h);function s(p){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_t(l,u,"listItemIndent",r.containerState.size+1)(p)}function h(p){return r.containerState.furtherBlankLines||!At(p)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,f(p)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l.attempt(Qv,u,f)(p))}function f(p){return r.containerState._closeFlow=!0,r.interrupt=void 0,_t(l,l.attempt(we,u,a),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function Jv(l,u,a){const r=this;return _t(l,s,"listItemIndent",r.containerState.size+1);function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===r.containerState.size?u(h):a(h)}}function Fv(l){l.exit(this.containerState.type)}function Iv(l,u,a){const r=this;return _t(l,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(h){const f=r.events[r.events.length-1];return!At(h)&&f&&f[1].type==="listItemPrefixWhitespace"?u(h):a(h)}}const Wp={name:"setextUnderline",resolveTo:$v,tokenize:Wv};function $v(l,u){let a=l.length,r,s,h;for(;a--;)if(l[a][0]==="enter"){if(l[a][1].type==="content"){r=a;break}l[a][1].type==="paragraph"&&(s=a)}else l[a][1].type==="content"&&l.splice(a,1),!h&&l[a][1].type==="definition"&&(h=a);const f={type:"setextHeading",start:{...l[r][1].start},end:{...l[l.length-1][1].end}};return l[s][1].type="setextHeadingText",h?(l.splice(s,0,["enter",f,u]),l.splice(h+1,0,["exit",l[r][1],u]),l[r][1].end={...l[h][1].end}):l[r][1]=f,l.push(["exit",f,u]),l}function Wv(l,u,a){const r=this;let s;return h;function h(m){let b=r.events.length,y;for(;b--;)if(r.events[b][1].type!=="lineEnding"&&r.events[b][1].type!=="linePrefix"&&r.events[b][1].type!=="content"){y=r.events[b][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(l.enter("setextHeadingLine"),s=m,f(m)):a(m)}function f(m){return l.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===s?(l.consume(m),p):(l.exit("setextHeadingLineSequence"),At(m)?_t(l,d,"lineSuffix")(m):d(m))}function d(m){return m===null||ct(m)?(l.exit("setextHeadingLine"),u(m)):a(m)}}const Pv={tokenize:tx};function tx(l){const u=this,a=l.attempt(Ca,r,l.attempt(this.parser.constructs.flowInitial,s,_t(l,l.attempt(this.parser.constructs.flow,s,l.attempt(av,s)),"linePrefix")));return a;function r(h){if(h===null){l.consume(h);return}return l.enter("lineEndingBlank"),l.consume(h),l.exit("lineEndingBlank"),u.currentConstruct=void 0,a}function s(h){if(h===null){l.consume(h);return}return l.enter("lineEnding"),l.consume(h),l.exit("lineEnding"),u.currentConstruct=void 0,a}}const ex={resolveAll:$d()},nx=Id("string"),lx=Id("text");function Id(l){return{resolveAll:$d(l==="text"?ix:void 0),tokenize:u};function u(a){const r=this,s=this.parser.constructs[l],h=a.attempt(s,f,p);return f;function f(b){return m(b)?h(b):p(b)}function p(b){if(b===null){a.consume(b);return}return a.enter("data"),a.consume(b),d}function d(b){return m(b)?(a.exit("data"),h(b)):(a.consume(b),d)}function m(b){if(b===null)return!0;const y=s[b];let S=-1;if(y)for(;++S<y.length;){const x=y[S];if(!x.previous||x.previous.call(r,r.previous))return!0}return!1}}}function $d(l){return u;function u(a,r){let s=-1,h;for(;++s<=a.length;)h===void 0?a[s]&&a[s][1].type==="data"&&(h=s,s++):(!a[s]||a[s][1].type!=="data")&&(s!==h+2&&(a[h][1].end=a[s-1][1].end,a.splice(h+2,s-h-2),s=h+2),h=void 0);return l?l(a,r):a}}function ix(l,u){let a=0;for(;++a<=l.length;)if((a===l.length||l[a][1].type==="lineEnding")&&l[a-1][1].type==="data"){const r=l[a-1][1],s=u.sliceStream(r);let h=s.length,f=-1,p=0,d;for(;h--;){const m=s[h];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)p++,f--;if(f)break;f=-1}else if(m===-2)d=!0,p++;else if(m!==-1){h++;break}}if(u._contentTypeTextTrailing&&a===l.length&&(p=0),p){const m={type:a===l.length||d||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?f:r.start._bufferIndex+f,_index:r.start._index+h,line:r.end.line,column:r.end.column-p,offset:r.end.offset-p},end:{...r.end}};r.end={...m.start},r.start.offset===r.end.offset?Object.assign(r,m):(l.splice(a,0,["enter",m,u],["exit",m,u]),a+=2)}a++}return l}const ax={42:we,43:we,45:we,48:we,49:we,50:we,51:we,52:we,53:we,54:we,55:we,56:we,57:we,62:Xd},ux={91:sv},rx={[-2]:Uc,[-1]:Uc,32:Uc},ox={35:gv,42:Pu,45:[Wp,Pu],60:xv,61:Wp,95:Pu,96:Ip,126:Ip},cx={38:Qd,92:Gd},sx={[-5]:Lc,[-4]:Lc,[-3]:Lc,33:jv,38:Qd,42:ts,60:[qb,Cv],91:qv,92:[pv,Gd],93:ds,95:ts,96:Pb},fx={null:[ts,ex]},hx={null:[42,95]},mx={null:[]},px=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hx,contentInitial:ux,disable:mx,document:ax,flow:ox,flowInitial:rx,insideSpan:fx,string:cx,text:sx},Symbol.toStringTag,{value:"Module"}));function dx(l,u,a){let r={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const s={},h=[];let f=[],p=[];const d={attempt:$(ot),check:$(B),consume:Q,enter:G,exit:at,interrupt:$(B,{interrupt:!0})},m={code:null,containerState:{},defineSkip:L,events:[],now:C,parser:l,previous:null,sliceSerialize:S,sliceStream:x,write:y};let b=u.tokenize.call(m,d);return u.resolveAll&&h.push(u),m;function y(tt){return f=$e(f,tt),X(),f[f.length-1]!==null?[]:(mt(u,0),m.events=ar(h,m.events,m),m.events)}function S(tt,P){return yx(x(tt),P)}function x(tt){return gx(f,tt)}function C(){const{_bufferIndex:tt,_index:P,line:xt,column:nt,offset:J}=r;return{_bufferIndex:tt,_index:P,line:xt,column:nt,offset:J}}function L(tt){s[tt.line]=tt.column,U()}function X(){let tt;for(;r._index<f.length;){const P=f[r._index];if(typeof P=="string")for(tt=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===tt&&r._bufferIndex<P.length;)_(P.charCodeAt(r._bufferIndex));else _(P)}}function _(tt){b=b(tt)}function Q(tt){ct(tt)?(r.line++,r.column=1,r.offset+=tt===-3?2:1,U()):tt!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===f[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=tt}function G(tt,P){const xt=P||{};return xt.type=tt,xt.start=C(),m.events.push(["enter",xt,m]),p.push(xt),xt}function at(tt){const P=p.pop();return P.end=C(),m.events.push(["exit",P,m]),P}function ot(tt,P){mt(tt,P.from)}function B(tt,P){P.restore()}function $(tt,P){return xt;function xt(nt,J,R){let Z,it,vt,k;return Array.isArray(nt)?H(nt):"tokenize"in nt?H([nt]):T(nt);function T(ut){return Tt;function Tt(Kt){const Bt=Kt!==null&&ut[Kt],qe=Kt!==null&&ut.null,sn=[...Array.isArray(Bt)?Bt:Bt?[Bt]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return H(sn)(Kt)}}function H(ut){return Z=ut,it=0,ut.length===0?R:E(ut[it])}function E(ut){return Tt;function Tt(Kt){return k=dt(),vt=ut,ut.partial||(m.currentConstruct=ut),ut.name&&m.parser.constructs.disable.null.includes(ut.name)?ft():ut.tokenize.call(P?Object.assign(Object.create(m),P):m,d,I,ft)(Kt)}}function I(ut){return tt(vt,k),J}function ft(ut){return k.restore(),++it<Z.length?E(Z[it]):R}}}function mt(tt,P){tt.resolveAll&&!h.includes(tt)&&h.push(tt),tt.resolve&&He(m.events,P,m.events.length-P,tt.resolve(m.events.slice(P),m)),tt.resolveTo&&(m.events=tt.resolveTo(m.events,m))}function dt(){const tt=C(),P=m.previous,xt=m.currentConstruct,nt=m.events.length,J=Array.from(p);return{from:nt,restore:R};function R(){r=tt,m.previous=P,m.currentConstruct=xt,m.events.length=nt,p=J,U()}}function U(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function gx(l,u){const a=u.start._index,r=u.start._bufferIndex,s=u.end._index,h=u.end._bufferIndex;let f;if(a===s)f=[l[a].slice(r,h)];else{if(f=l.slice(a,s),r>-1){const p=f[0];typeof p=="string"?f[0]=p.slice(r):f.shift()}h>0&&f.push(l[s].slice(0,h))}return f}function yx(l,u){let a=-1;const r=[];let s;for(;++a<l.length;){const h=l[a];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
|
|
137
|
+
`;break}case-3:{f=`\r
|
|
138
|
+
`;break}case-2:{f=u?" ":" ";break}case-1:{if(!u&&s)continue;f=" ";break}default:f=String.fromCharCode(h)}s=h===-2,r.push(f)}return r.join("")}function bx(l){const r={constructs:Yd([px,...(l||{}).extensions||[]]),content:s(Rb),defined:[],document:s(Ub),flow:s(Pv),lazy:{},string:s(nx),text:s(lx)};return r;function s(h){return f;function f(p){return dx(r,h,p)}}}function vx(l){for(;!Zd(l););return l}const Pp=/[\0\t\n\r]/g;function xx(){let l=1,u="",a=!0,r;return s;function s(h,f,p){const d=[];let m,b,y,S,x;for(h=u+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h)),y=0,u="",a&&(h.charCodeAt(0)===65279&&y++,a=void 0);y<h.length;){if(Pp.lastIndex=y,m=Pp.exec(h),S=m&&m.index!==void 0?m.index:h.length,x=h.charCodeAt(S),!m){u=h.slice(y);break}if(x===10&&y===S&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),y<S&&(d.push(h.slice(y,S)),l+=S-y),x){case 0:{d.push(65533),l++;break}case 9:{for(b=Math.ceil(l/4)*4,d.push(-2);l++<b;)d.push(-1);break}case 10:{d.push(-4),l=1;break}default:r=!0,l=1}y=S+1}return p&&(r&&d.push(-5),u&&d.push(u),d.push(null)),d}}const Sx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ex(l){return l.replace(Sx,kx)}function kx(l,u,a){if(u)return u;if(a.charCodeAt(0)===35){const s=a.charCodeAt(1),h=s===120||s===88;return Vd(a.slice(h?2:1),h?16:10)}return ps(a)||l}const Wd={}.hasOwnProperty;function Ax(l,u,a){return u&&typeof u=="object"&&(a=u,u=void 0),Tx(a)(vx(bx(a).document().write(xx()(l,u,!0))))}function Tx(l){const u={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(_l),autolinkProtocol:dt,autolinkEmail:dt,atxHeading:h(Cl),blockQuote:h(qe),characterEscape:dt,characterReference:dt,codeFenced:h(sn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(sn,f),codeText:h(Ei,f),codeTextData:dt,data:dt,codeFlowValue:dt,definition:h(_a),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(fn),hardBreakEscape:h(wl),hardBreakTrailing:h(wl),htmlFlow:h(Da,f),htmlFlowData:dt,htmlText:h(Da,f),htmlTextData:dt,image:h(Ma),label:f,link:h(_l),listItem:h(ki),listItemValue:S,listOrdered:h(Dl,y),listUnordered:h(Dl),paragraph:h(cr),reference:E,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(Cl),strong:h(sr),thematicBreak:h(fr)},exit:{atxHeading:d(),atxHeadingSequence:ot,autolink:d(),autolinkEmail:Bt,autolinkProtocol:Kt,blockQuote:d(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:ut,characterReference:Tt,codeFenced:d(X),codeFencedFence:L,codeFencedFenceInfo:x,codeFencedFenceMeta:C,codeFlowValue:U,codeIndented:d(_),codeText:d(J),codeTextData:U,data:U,definition:d(),definitionDestinationString:at,definitionLabelString:Q,definitionTitleString:G,emphasis:d(),hardBreakEscape:d(P),hardBreakTrailing:d(P),htmlFlow:d(xt),htmlFlowData:U,htmlText:d(nt),htmlTextData:U,image:d(Z),label:vt,labelText:it,lineEnding:tt,link:d(R),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:I,resourceDestinationString:k,resourceTitleString:T,resource:H,setextHeading:d(mt),setextHeadingLineSequence:$,setextHeadingText:B,strong:d(),thematicBreak:d()}};Pd(u,(l||{}).mdastExtensions||[]);const a={};return r;function r(q){let F={type:"root",children:[]};const ht={stack:[F],tokenStack:[],config:u,enter:p,exit:m,buffer:f,resume:b,data:a},St=[];let Nt=-1;for(;++Nt<q.length;)if(q[Nt][1].type==="listOrdered"||q[Nt][1].type==="listUnordered")if(q[Nt][0]==="enter")St.push(Nt);else{const De=St.pop();Nt=s(q,De,Nt)}for(Nt=-1;++Nt<q.length;){const De=u[q[Nt][0]];Wd.call(De,q[Nt][1].type)&&De[q[Nt][1].type].call(Object.assign({sliceSerialize:q[Nt][2].sliceSerialize},ht),q[Nt][1])}if(ht.tokenStack.length>0){const De=ht.tokenStack[ht.tokenStack.length-1];(De[1]||td).call(ht,void 0,De[0])}for(F.position={start:il(q.length>0?q[0][1].start:{line:1,column:1,offset:0}),end:il(q.length>0?q[q.length-2][1].end:{line:1,column:1,offset:0})},Nt=-1;++Nt<u.transforms.length;)F=u.transforms[Nt](F)||F;return F}function s(q,F,ht){let St=F-1,Nt=-1,De=!1,hn,ye,ie,xe;for(;++St<=ht;){const Yt=q[St];switch(Yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Yt[0]==="enter"?Nt++:Nt--,xe=void 0;break}case"lineEndingBlank":{Yt[0]==="enter"&&(hn&&!xe&&!Nt&&!ie&&(ie=St),xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xe=void 0}if(!Nt&&Yt[0]==="enter"&&Yt[1].type==="listItemPrefix"||Nt===-1&&Yt[0]==="exit"&&(Yt[1].type==="listUnordered"||Yt[1].type==="listOrdered")){if(hn){let Rn=St;for(ye=void 0;Rn--;){const We=q[Rn];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;ye&&(q[ye][1].type="lineEndingBlank",De=!0),We[1].type="lineEnding",ye=Rn}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}ie&&(!ye||ie<ye)&&(hn._spread=!0),hn.end=Object.assign({},ye?q[ye][1].start:Yt[1].end),q.splice(ye||St,0,["exit",hn,Yt[2]]),St++,ht++}if(Yt[1].type==="listItemPrefix"){const Rn={type:"listItem",_spread:!1,start:Object.assign({},Yt[1].start),end:void 0};hn=Rn,q.splice(St,0,["enter",Rn,Yt[2]]),St++,ht++,ie=void 0,xe=!0}}}return q[F][1]._spread=De,ht}function h(q,F){return ht;function ht(St){p.call(this,q(St),St),F&&F.call(this,St)}}function f(){this.stack.push({type:"fragment",children:[]})}function p(q,F,ht){this.stack[this.stack.length-1].children.push(q),this.stack.push(q),this.tokenStack.push([F,ht||void 0]),q.position={start:il(F.start),end:void 0}}function d(q){return F;function F(ht){q&&q.call(this,ht),m.call(this,ht)}}function m(q,F){const ht=this.stack.pop(),St=this.tokenStack.pop();if(St)St[0].type!==q.type&&(F?F.call(this,q,St[0]):(St[1]||td).call(this,q,St[0]));else throw new Error("Cannot close `"+q.type+"` ("+Sa({start:q.start,end:q.end})+"): it’s not open");ht.position.end=il(q.end)}function b(){return ms(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(q){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(q),10),this.data.expectingFirstListItemValue=void 0}}function x(){const q=this.resume(),F=this.stack[this.stack.length-1];F.lang=q}function C(){const q=this.resume(),F=this.stack[this.stack.length-1];F.meta=q}function L(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function X(){const q=this.resume(),F=this.stack[this.stack.length-1];F.value=q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const q=this.resume(),F=this.stack[this.stack.length-1];F.value=q.replace(/(\r?\n|\r)$/g,"")}function Q(q){const F=this.resume(),ht=this.stack[this.stack.length-1];ht.label=F,ht.identifier=nn(this.sliceSerialize(q)).toLowerCase()}function G(){const q=this.resume(),F=this.stack[this.stack.length-1];F.title=q}function at(){const q=this.resume(),F=this.stack[this.stack.length-1];F.url=q}function ot(q){const F=this.stack[this.stack.length-1];if(!F.depth){const ht=this.sliceSerialize(q).length;F.depth=ht}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function $(q){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(q).codePointAt(0)===61?1:2}function mt(){this.data.setextHeadingSlurpLineEnding=void 0}function dt(q){const ht=this.stack[this.stack.length-1].children;let St=ht[ht.length-1];(!St||St.type!=="text")&&(St=ge(),St.position={start:il(q.start),end:void 0},ht.push(St)),this.stack.push(St)}function U(q){const F=this.stack.pop();F.value+=this.sliceSerialize(q),F.position.end=il(q.end)}function tt(q){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ht=F.children[F.children.length-1];ht.position.end=il(q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&u.canContainEols.includes(F.type)&&(dt.call(this,q),U.call(this,q))}function P(){this.data.atHardBreak=!0}function xt(){const q=this.resume(),F=this.stack[this.stack.length-1];F.value=q}function nt(){const q=this.resume(),F=this.stack[this.stack.length-1];F.value=q}function J(){const q=this.resume(),F=this.stack[this.stack.length-1];F.value=q}function R(){const q=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";q.type+="Reference",q.referenceType=F,delete q.url,delete q.title}else delete q.identifier,delete q.label;this.data.referenceType=void 0}function Z(){const q=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";q.type+="Reference",q.referenceType=F,delete q.url,delete q.title}else delete q.identifier,delete q.label;this.data.referenceType=void 0}function it(q){const F=this.sliceSerialize(q),ht=this.stack[this.stack.length-2];ht.label=Ex(F),ht.identifier=nn(F).toLowerCase()}function vt(){const q=this.stack[this.stack.length-1],F=this.resume(),ht=this.stack[this.stack.length-1];if(this.data.inReference=!0,ht.type==="link"){const St=q.children;ht.children=St}else ht.alt=F}function k(){const q=this.resume(),F=this.stack[this.stack.length-1];F.url=q}function T(){const q=this.resume(),F=this.stack[this.stack.length-1];F.title=q}function H(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function I(q){const F=this.resume(),ht=this.stack[this.stack.length-1];ht.label=F,ht.identifier=nn(this.sliceSerialize(q)).toLowerCase(),this.data.referenceType="full"}function ft(q){this.data.characterReferenceType=q.type}function ut(q){const F=this.sliceSerialize(q),ht=this.data.characterReferenceType;let St;ht?(St=Vd(F,ht==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):St=ps(F);const Nt=this.stack[this.stack.length-1];Nt.value+=St}function Tt(q){const F=this.stack.pop();F.position.end=il(q.end)}function Kt(q){U.call(this,q);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(q)}function Bt(q){U.call(this,q);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(q)}function qe(){return{type:"blockquote",children:[]}}function sn(){return{type:"code",lang:null,meta:null,value:""}}function Ei(){return{type:"inlineCode",value:""}}function _a(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fn(){return{type:"emphasis",children:[]}}function Cl(){return{type:"heading",depth:0,children:[]}}function wl(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Ma(){return{type:"image",title:null,url:"",alt:null}}function _l(){return{type:"link",title:null,url:"",children:[]}}function Dl(q){return{type:"list",ordered:q.type==="listOrdered",start:null,spread:q._spread,children:[]}}function ki(q){return{type:"listItem",spread:q._spread,checked:null,children:[]}}function cr(){return{type:"paragraph",children:[]}}function sr(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function fr(){return{type:"thematicBreak"}}}function il(l){return{line:l.line,column:l.column,offset:l.offset}}function Pd(l,u){let a=-1;for(;++a<u.length;){const r=u[a];Array.isArray(r)?Pd(l,r):zx(l,r)}}function zx(l,u){let a;for(a in u)if(Wd.call(u,a))switch(a){case"canContainEols":{const r=u[a];r&&l[a].push(...r);break}case"transforms":{const r=u[a];r&&l[a].push(...r);break}case"enter":case"exit":{const r=u[a];r&&Object.assign(l[a],r);break}}}function td(l,u){throw l?new Error("Cannot close `"+l.type+"` ("+Sa({start:l.start,end:l.end})+"): a different token (`"+u.type+"`, "+Sa({start:u.start,end:u.end})+") is open"):new Error("Cannot close document, a token (`"+u.type+"`, "+Sa({start:u.start,end:u.end})+") is still open")}function Cx(l){const u=this;u.parser=a;function a(r){return Ax(r,{...u.data("settings"),...l,extensions:u.data("micromarkExtensions")||[],mdastExtensions:u.data("fromMarkdownExtensions")||[]})}}function wx(l,u){const a={type:"element",tagName:"blockquote",properties:{},children:l.wrap(l.all(u),!0)};return l.patch(u,a),l.applyData(u,a)}function _x(l,u){const a={type:"element",tagName:"br",properties:{},children:[]};return l.patch(u,a),[l.applyData(u,a),{type:"text",value:`
|
|
139
|
+
`}]}function Dx(l,u){const a=u.value?u.value+`
|
|
140
|
+
`:"",r={},s=u.lang?u.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let h={type:"element",tagName:"code",properties:r,children:[{type:"text",value:a}]};return u.meta&&(h.data={meta:u.meta}),l.patch(u,h),h=l.applyData(u,h),h={type:"element",tagName:"pre",properties:{},children:[h]},l.patch(u,h),h}function Mx(l,u){const a={type:"element",tagName:"del",properties:{},children:l.all(u)};return l.patch(u,a),l.applyData(u,a)}function Ox(l,u){const a={type:"element",tagName:"em",properties:{},children:l.all(u)};return l.patch(u,a),l.applyData(u,a)}function Rx(l,u){const a=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",r=String(u.identifier).toUpperCase(),s=Si(r.toLowerCase()),h=l.footnoteOrder.indexOf(r);let f,p=l.footnoteCounts.get(r);p===void 0?(p=0,l.footnoteOrder.push(r),f=l.footnoteOrder.length):f=h+1,p+=1,l.footnoteCounts.set(r,p);const d={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};l.patch(u,d);const m={type:"element",tagName:"sup",properties:{},children:[d]};return l.patch(u,m),l.applyData(u,m)}function Nx(l,u){const a={type:"element",tagName:"h"+u.depth,properties:{},children:l.all(u)};return l.patch(u,a),l.applyData(u,a)}function Ux(l,u){if(l.options.allowDangerousHtml){const a={type:"raw",value:u.value};return l.patch(u,a),l.applyData(u,a)}}function tg(l,u){const a=u.referenceType;let r="]";if(a==="collapsed"?r+="[]":a==="full"&&(r+="["+(u.label||u.identifier)+"]"),u.type==="imageReference")return[{type:"text",value:"!["+u.alt+r}];const s=l.all(u),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+=r:s.push({type:"text",value:r}),s}function Lx(l,u){const a=String(u.identifier).toUpperCase(),r=l.definitionById.get(a);if(!r)return tg(l,u);const s={src:Si(r.url||""),alt:u.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const h={type:"element",tagName:"img",properties:s,children:[]};return l.patch(u,h),l.applyData(u,h)}function Bx(l,u){const a={src:Si(u.url)};u.alt!==null&&u.alt!==void 0&&(a.alt=u.alt),u.title!==null&&u.title!==void 0&&(a.title=u.title);const r={type:"element",tagName:"img",properties:a,children:[]};return l.patch(u,r),l.applyData(u,r)}function jx(l,u){const a={type:"text",value:u.value.replace(/\r?\n|\r/g," ")};l.patch(u,a);const r={type:"element",tagName:"code",properties:{},children:[a]};return l.patch(u,r),l.applyData(u,r)}function Hx(l,u){const a=String(u.identifier).toUpperCase(),r=l.definitionById.get(a);if(!r)return tg(l,u);const s={href:Si(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const h={type:"element",tagName:"a",properties:s,children:l.all(u)};return l.patch(u,h),l.applyData(u,h)}function qx(l,u){const a={href:Si(u.url)};u.title!==null&&u.title!==void 0&&(a.title=u.title);const r={type:"element",tagName:"a",properties:a,children:l.all(u)};return l.patch(u,r),l.applyData(u,r)}function Yx(l,u,a){const r=l.all(u),s=a?Vx(a):eg(u),h={},f=[];if(typeof u.checked=="boolean"){const b=r[0];let y;b&&b.type==="element"&&b.tagName==="p"?y=b:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:u.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let p=-1;for(;++p<r.length;){const b=r[p];(s||p!==0||b.type!=="element"||b.tagName!=="p")&&f.push({type:"text",value:`
|
|
141
|
+
`}),b.type==="element"&&b.tagName==="p"&&!s?f.push(...b.children):f.push(b)}const d=r[r.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&f.push({type:"text",value:`
|
|
142
|
+
`});const m={type:"element",tagName:"li",properties:h,children:f};return l.patch(u,m),l.applyData(u,m)}function Vx(l){let u=!1;if(l.type==="list"){u=l.spread||!1;const a=l.children;let r=-1;for(;!u&&++r<a.length;)u=eg(a[r])}return u}function eg(l){const u=l.spread;return u??l.children.length>1}function Xx(l,u){const a={},r=l.all(u);let s=-1;for(typeof u.start=="number"&&u.start!==1&&(a.start=u.start);++s<r.length;){const f=r[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const h={type:"element",tagName:u.ordered?"ol":"ul",properties:a,children:l.wrap(r,!0)};return l.patch(u,h),l.applyData(u,h)}function Gx(l,u){const a={type:"element",tagName:"p",properties:{},children:l.all(u)};return l.patch(u,a),l.applyData(u,a)}function Qx(l,u){const a={type:"root",children:l.wrap(l.all(u))};return l.patch(u,a),l.applyData(u,a)}function Zx(l,u){const a={type:"element",tagName:"strong",properties:{},children:l.all(u)};return l.patch(u,a),l.applyData(u,a)}function Kx(l,u){const a=l.all(u),r=a.shift(),s=[];if(r){const f={type:"element",tagName:"thead",properties:{},children:l.wrap([r],!0)};l.patch(u.children[0],f),s.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:l.wrap(a,!0)},p=cs(u.children[1]),d=Nd(u.children[u.children.length-1]);p&&d&&(f.position={start:p,end:d}),s.push(f)}const h={type:"element",tagName:"table",properties:{},children:l.wrap(s,!0)};return l.patch(u,h),l.applyData(u,h)}function Jx(l,u,a){const r=a?a.children:void 0,h=(r?r.indexOf(u):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,p=f?f.length:u.children.length;let d=-1;const m=[];for(;++d<p;){const y=u.children[d],S={},x=f?f[d]:void 0;x&&(S.align=x);let C={type:"element",tagName:h,properties:S,children:[]};y&&(C.children=l.all(y),l.patch(y,C),C=l.applyData(y,C)),m.push(C)}const b={type:"element",tagName:"tr",properties:{},children:l.wrap(m,!0)};return l.patch(u,b),l.applyData(u,b)}function Fx(l,u){const a={type:"element",tagName:"td",properties:{},children:l.all(u)};return l.patch(u,a),l.applyData(u,a)}const ed=9,nd=32;function Ix(l){const u=String(l),a=/\r?\n|\r/g;let r=a.exec(u),s=0;const h=[];for(;r;)h.push(ld(u.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=a.exec(u);return h.push(ld(u.slice(s),s>0,!1)),h.join("")}function ld(l,u,a){let r=0,s=l.length;if(u){let h=l.codePointAt(r);for(;h===ed||h===nd;)r++,h=l.codePointAt(r)}if(a){let h=l.codePointAt(s-1);for(;h===ed||h===nd;)s--,h=l.codePointAt(s-1)}return s>r?l.slice(r,s):""}function $x(l,u){const a={type:"text",value:Ix(String(u.value))};return l.patch(u,a),l.applyData(u,a)}function Wx(l,u){const a={type:"element",tagName:"hr",properties:{},children:[]};return l.patch(u,a),l.applyData(u,a)}const Px={blockquote:wx,break:_x,code:Dx,delete:Mx,emphasis:Ox,footnoteReference:Rx,heading:Nx,html:Ux,imageReference:Lx,image:Bx,inlineCode:jx,linkReference:Hx,link:qx,listItem:Yx,list:Xx,paragraph:Gx,root:Qx,strong:Zx,table:Kx,tableCell:Fx,tableRow:Jx,text:$x,thematicBreak:Wx,toml:Fu,yaml:Fu,definition:Fu,footnoteDefinition:Fu};function Fu(){}const ng=-1,ur=0,ka=1,er=2,gs=3,ys=4,bs=5,vs=6,lg=7,ig=8,id=typeof self=="object"?self:globalThis,tS=(l,u)=>{const a=(s,h)=>(l.set(h,s),s),r=s=>{if(l.has(s))return l.get(s);const[h,f]=u[s];switch(h){case ur:case ng:return a(f,s);case ka:{const p=a([],s);for(const d of f)p.push(r(d));return p}case er:{const p=a({},s);for(const[d,m]of f)p[r(d)]=r(m);return p}case gs:return a(new Date(f),s);case ys:{const{source:p,flags:d}=f;return a(new RegExp(p,d),s)}case bs:{const p=a(new Map,s);for(const[d,m]of f)p.set(r(d),r(m));return p}case vs:{const p=a(new Set,s);for(const d of f)p.add(r(d));return p}case lg:{const{name:p,message:d}=f;return a(new id[p](d),s)}case ig:return a(BigInt(f),s);case"BigInt":return a(Object(BigInt(f)),s);case"ArrayBuffer":return a(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:p}=new Uint8Array(f);return a(new DataView(p),f)}}return a(new id[h](f),s)};return r},ad=l=>tS(new Map,l)(0),gi="",{toString:eS}={},{keys:nS}=Object,xa=l=>{const u=typeof l;if(u!=="object"||!l)return[ur,u];const a=eS.call(l).slice(8,-1);switch(a){case"Array":return[ka,gi];case"Object":return[er,gi];case"Date":return[gs,gi];case"RegExp":return[ys,gi];case"Map":return[bs,gi];case"Set":return[vs,gi];case"DataView":return[ka,a]}return a.includes("Array")?[ka,a]:a.includes("Error")?[lg,a]:[er,a]},Iu=([l,u])=>l===ur&&(u==="function"||u==="symbol"),lS=(l,u,a,r)=>{const s=(f,p)=>{const d=r.push(f)-1;return a.set(p,d),d},h=f=>{if(a.has(f))return a.get(f);let[p,d]=xa(f);switch(p){case ur:{let b=f;switch(d){case"bigint":p=ig,b=f.toString();break;case"function":case"symbol":if(l)throw new TypeError("unable to serialize "+d);b=null;break;case"undefined":return s([ng],f)}return s([p,b],f)}case ka:{if(d){let S=f;return d==="DataView"?S=new Uint8Array(f.buffer):d==="ArrayBuffer"&&(S=new Uint8Array(f)),s([d,[...S]],f)}const b=[],y=s([p,b],f);for(const S of f)b.push(h(S));return y}case er:{if(d)switch(d){case"BigInt":return s([d,f.toString()],f);case"Boolean":case"Number":case"String":return s([d,f.valueOf()],f)}if(u&&"toJSON"in f)return h(f.toJSON());const b=[],y=s([p,b],f);for(const S of nS(f))(l||!Iu(xa(f[S])))&&b.push([h(S),h(f[S])]);return y}case gs:return s([p,f.toISOString()],f);case ys:{const{source:b,flags:y}=f;return s([p,{source:b,flags:y}],f)}case bs:{const b=[],y=s([p,b],f);for(const[S,x]of f)(l||!(Iu(xa(S))||Iu(xa(x))))&&b.push([h(S),h(x)]);return y}case vs:{const b=[],y=s([p,b],f);for(const S of f)(l||!Iu(xa(S)))&&b.push(h(S));return y}}const{message:m}=f;return s([p,{name:d,message:m}],f)};return h},ud=(l,{json:u,lossy:a}={})=>{const r=[];return lS(!(u||a),!!u,new Map,r)(l),r},nr=typeof structuredClone=="function"?(l,u)=>u&&("json"in u||"lossy"in u)?ad(ud(l,u)):structuredClone(l):(l,u)=>ad(ud(l,u));function iS(l,u){const a=[{type:"text",value:"↩"}];return u>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(u)}]}),a}function aS(l,u){return"Back to reference "+(l+1)+(u>1?"-"+u:"")}function uS(l){const u=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",a=l.options.footnoteBackContent||iS,r=l.options.footnoteBackLabel||aS,s=l.options.footnoteLabel||"Footnotes",h=l.options.footnoteLabelTagName||"h2",f=l.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let d=-1;for(;++d<l.footnoteOrder.length;){const m=l.footnoteById.get(l.footnoteOrder[d]);if(!m)continue;const b=l.all(m),y=String(m.identifier).toUpperCase(),S=Si(y.toLowerCase());let x=0;const C=[],L=l.footnoteCounts.get(y);for(;L!==void 0&&++x<=L;){C.length>0&&C.push({type:"text",value:" "});let Q=typeof a=="string"?a:a(d,x);typeof Q=="string"&&(Q={type:"text",value:Q}),C.push({type:"element",tagName:"a",properties:{href:"#"+u+"fnref-"+S+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,x),className:["data-footnote-backref"]},children:Array.isArray(Q)?Q:[Q]})}const X=b[b.length-1];if(X&&X.type==="element"&&X.tagName==="p"){const Q=X.children[X.children.length-1];Q&&Q.type==="text"?Q.value+=" ":X.children.push({type:"text",value:" "}),X.children.push(...C)}else b.push(...C);const _={type:"element",tagName:"li",properties:{id:u+"fn-"+S},children:l.wrap(b,!0)};l.patch(m,_),p.push(_)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...nr(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
143
|
+
`},{type:"element",tagName:"ol",properties:{},children:l.wrap(p,!0)},{type:"text",value:`
|
|
144
|
+
`}]}}const rr=(function(l){if(l==null)return sS;if(typeof l=="function")return or(l);if(typeof l=="object")return Array.isArray(l)?rS(l):oS(l);if(typeof l=="string")return cS(l);throw new Error("Expected function, string, or object as test")});function rS(l){const u=[];let a=-1;for(;++a<l.length;)u[a]=rr(l[a]);return or(r);function r(...s){let h=-1;for(;++h<u.length;)if(u[h].apply(this,s))return!0;return!1}}function oS(l){const u=l;return or(a);function a(r){const s=r;let h;for(h in l)if(s[h]!==u[h])return!1;return!0}}function cS(l){return or(u);function u(a){return a&&a.type===l}}function or(l){return u;function u(a,r,s){return!!(fS(a)&&l.call(this,a,typeof r=="number"?r:void 0,s||void 0))}}function sS(){return!0}function fS(l){return l!==null&&typeof l=="object"&&"type"in l}const ag=[],hS=!0,es=!1,mS="skip";function ug(l,u,a,r){let s;typeof u=="function"&&typeof a!="function"?(r=a,a=u):s=u;const h=rr(s),f=r?-1:1;p(l,void 0,[])();function p(d,m,b){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(d.type+(x?"<"+x+">":""))+")"})}return S;function S(){let x=ag,C,L,X;if((!u||h(d,m,b[b.length-1]||void 0))&&(x=pS(a(d,b)),x[0]===es))return x;if("children"in d&&d.children){const _=d;if(_.children&&x[0]!==mS)for(L=(r?_.children.length:-1)+f,X=b.concat(_);L>-1&&L<_.children.length;){const Q=_.children[L];if(C=p(Q,L,X)(),C[0]===es)return C;L=typeof C[1]=="number"?C[1]:L+f}}return x}}}function pS(l){return Array.isArray(l)?l:typeof l=="number"?[hS,l]:l==null?ag:[l]}function xs(l,u,a,r){let s,h,f;typeof u=="function"&&typeof a!="function"?(h=void 0,f=u,s=a):(h=u,f=a,s=r),ug(l,h,p,s);function p(d,m){const b=m[m.length-1],y=b?b.children.indexOf(d):void 0;return f(d,y,b)}}const ns={}.hasOwnProperty,dS={};function gS(l,u){const a=u||dS,r=new Map,s=new Map,h=new Map,f={...Px,...a.handlers},p={all:m,applyData:bS,definitionById:r,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:d,options:a,patch:yS,wrap:xS};return xs(l,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const y=b.type==="definition"?r:s,S=String(b.identifier).toUpperCase();y.has(S)||y.set(S,b)}}),p;function d(b,y){const S=b.type,x=p.handlers[S];if(ns.call(p.handlers,S)&&x)return x(p,b,y);if(p.options.passThrough&&p.options.passThrough.includes(S)){if("children"in b){const{children:L,...X}=b,_=nr(X);return _.children=p.all(b),_}return nr(b)}return(p.options.unknownHandler||vS)(p,b,y)}function m(b){const y=[];if("children"in b){const S=b.children;let x=-1;for(;++x<S.length;){const C=p.one(S[x],b);if(C){if(x&&S[x-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=rd(C.value)),!Array.isArray(C)&&C.type==="element")){const L=C.children[0];L&&L.type==="text"&&(L.value=rd(L.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function yS(l,u){l.position&&(u.position=ab(l))}function bS(l,u){let a=u;if(l&&l.data){const r=l.data.hName,s=l.data.hChildren,h=l.data.hProperties;if(typeof r=="string")if(a.type==="element")a.tagName=r;else{const f="children"in a?a.children:[a];a={type:"element",tagName:r,properties:{},children:f}}a.type==="element"&&h&&Object.assign(a.properties,nr(h)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function vS(l,u){const a=u.data||{},r="value"in u&&!(ns.call(a,"hProperties")||ns.call(a,"hChildren"))?{type:"text",value:u.value}:{type:"element",tagName:"div",properties:{},children:l.all(u)};return l.patch(u,r),l.applyData(u,r)}function xS(l,u){const a=[];let r=-1;for(u&&a.push({type:"text",value:`
|
|
145
|
+
`});++r<l.length;)r&&a.push({type:"text",value:`
|
|
146
|
+
`}),a.push(l[r]);return u&&l.length>0&&a.push({type:"text",value:`
|
|
147
|
+
`}),a}function rd(l){let u=0,a=l.charCodeAt(u);for(;a===9||a===32;)u++,a=l.charCodeAt(u);return l.slice(u)}function od(l,u){const a=gS(l,u),r=a.one(l,void 0),s=uS(a),h=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&h.children.push({type:"text",value:`
|
|
148
|
+
`},s),h}function SS(l,u){return l&&"run"in l?async function(a,r){const s=od(a,{file:r,...u});await l.run(s,r)}:function(a,r){return od(a,{file:r,...l||u})}}function cd(l){if(l)throw l}var Bc,sd;function ES(){if(sd)return Bc;sd=1;var l=Object.prototype.hasOwnProperty,u=Object.prototype.toString,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):u.call(m)==="[object Array]"},h=function(m){if(!m||u.call(m)!=="[object Object]")return!1;var b=l.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&l.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!y)return!1;var S;for(S in m);return typeof S>"u"||l.call(m,S)},f=function(m,b){a&&b.name==="__proto__"?a(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},p=function(m,b){if(b==="__proto__")if(l.call(m,b)){if(r)return r(m,b).value}else return;return m[b]};return Bc=function d(){var m,b,y,S,x,C,L=arguments[0],X=1,_=arguments.length,Q=!1;for(typeof L=="boolean"&&(Q=L,L=arguments[1]||{},X=2),(L==null||typeof L!="object"&&typeof L!="function")&&(L={});X<_;++X)if(m=arguments[X],m!=null)for(b in m)y=p(L,b),S=p(m,b),L!==S&&(Q&&S&&(h(S)||(x=s(S)))?(x?(x=!1,C=y&&s(y)?y:[]):C=y&&h(y)?y:{},f(L,{name:b,newValue:d(Q,C,S)})):typeof S<"u"&&f(L,{name:b,newValue:S}));return L},Bc}var kS=ES();const jc=Ad(kS);function ls(l){if(typeof l!="object"||l===null)return!1;const u=Object.getPrototypeOf(l);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function AS(){const l=[],u={run:a,use:r};return u;function a(...s){let h=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);p(null,...s);function p(d,...m){const b=l[++h];let y=-1;if(d){f(d);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,b?TS(b,p)(...m):f(null,...m)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return l.push(s),u}}function TS(l,u){let a;return r;function r(...f){const p=l.length>f.length;let d;p&&f.push(s);try{d=l.apply(this,f)}catch(m){const b=m;if(p&&a)throw b;return s(b)}p||(d&&d.then&&typeof d.then=="function"?d.then(h,s):d instanceof Error?s(d):h(d))}function s(f,...p){a||(a=!0,u(f,...p))}function h(f){s(null,f)}}const on={basename:zS,dirname:CS,extname:wS,join:_S,sep:"/"};function zS(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');wa(l);let a=0,r=-1,s=l.length,h;if(u===void 0||u.length===0||u.length>l.length){for(;s--;)if(l.codePointAt(s)===47){if(h){a=s+1;break}}else r<0&&(h=!0,r=s+1);return r<0?"":l.slice(a,r)}if(u===l)return"";let f=-1,p=u.length-1;for(;s--;)if(l.codePointAt(s)===47){if(h){a=s+1;break}}else f<0&&(h=!0,f=s+1),p>-1&&(l.codePointAt(s)===u.codePointAt(p--)?p<0&&(r=s):(p=-1,r=f));return a===r?r=f:r<0&&(r=l.length),l.slice(a,r)}function CS(l){if(wa(l),l.length===0)return".";let u=-1,a=l.length,r;for(;--a;)if(l.codePointAt(a)===47){if(r){u=a;break}}else r||(r=!0);return u<0?l.codePointAt(0)===47?"/":".":u===1&&l.codePointAt(0)===47?"//":l.slice(0,u)}function wS(l){wa(l);let u=l.length,a=-1,r=0,s=-1,h=0,f;for(;u--;){const p=l.codePointAt(u);if(p===47){if(f){r=u+1;break}continue}a<0&&(f=!0,a=u+1),p===46?s<0?s=u:h!==1&&(h=1):s>-1&&(h=-1)}return s<0||a<0||h===0||h===1&&s===a-1&&s===r+1?"":l.slice(s,a)}function _S(...l){let u=-1,a;for(;++u<l.length;)wa(l[u]),l[u]&&(a=a===void 0?l[u]:a+"/"+l[u]);return a===void 0?".":DS(a)}function DS(l){wa(l);const u=l.codePointAt(0)===47;let a=MS(l,!u);return a.length===0&&!u&&(a="."),a.length>0&&l.codePointAt(l.length-1)===47&&(a+="/"),u?"/"+a:a}function MS(l,u){let a="",r=0,s=-1,h=0,f=-1,p,d;for(;++f<=l.length;){if(f<l.length)p=l.codePointAt(f);else{if(p===47)break;p=47}if(p===47){if(!(s===f-1||h===1))if(s!==f-1&&h===2){if(a.length<2||r!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(d=a.lastIndexOf("/"),d!==a.length-1){d<0?(a="",r=0):(a=a.slice(0,d),r=a.length-1-a.lastIndexOf("/")),s=f,h=0;continue}}else if(a.length>0){a="",r=0,s=f,h=0;continue}}u&&(a=a.length>0?a+"/..":"..",r=2)}else a.length>0?a+="/"+l.slice(s+1,f):a=l.slice(s+1,f),r=f-s-1;s=f,h=0}else p===46&&h>-1?h++:h=-1}return a}function wa(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}const OS={cwd:RS};function RS(){return"/"}function is(l){return!!(l!==null&&typeof l=="object"&&"href"in l&&l.href&&"protocol"in l&&l.protocol&&l.auth===void 0)}function NS(l){if(typeof l=="string")l=new URL(l);else if(!is(l)){const u=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+l+"`");throw u.code="ERR_INVALID_ARG_TYPE",u}if(l.protocol!=="file:"){const u=new TypeError("The URL must be of scheme file");throw u.code="ERR_INVALID_URL_SCHEME",u}return US(l)}function US(l){if(l.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const u=l.pathname;let a=-1;for(;++a<u.length;)if(u.codePointAt(a)===37&&u.codePointAt(a+1)===50){const r=u.codePointAt(a+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(u)}const Hc=["history","path","basename","stem","extname","dirname"];class rg{constructor(u){let a;u?is(u)?a={path:u}:typeof u=="string"||LS(u)?a={value:u}:a=u:a={},this.cwd="cwd"in a?"":OS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Hc.length;){const h=Hc[r];h in a&&a[h]!==void 0&&a[h]!==null&&(this[h]=h==="history"?[...a[h]]:a[h])}let s;for(s in a)Hc.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?on.basename(this.path):void 0}set basename(u){Yc(u,"basename"),qc(u,"basename"),this.path=on.join(this.dirname||"",u)}get dirname(){return typeof this.path=="string"?on.dirname(this.path):void 0}set dirname(u){fd(this.basename,"dirname"),this.path=on.join(u||"",this.basename)}get extname(){return typeof this.path=="string"?on.extname(this.path):void 0}set extname(u){if(qc(u,"extname"),fd(this.dirname,"extname"),u){if(u.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(u.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=on.join(this.dirname,this.stem+(u||""))}get path(){return this.history[this.history.length-1]}set path(u){is(u)&&(u=NS(u)),Yc(u,"path"),this.path!==u&&this.history.push(u)}get stem(){return typeof this.path=="string"?on.basename(this.path,this.extname):void 0}set stem(u){Yc(u,"stem"),qc(u,"stem"),this.path=on.join(this.dirname||"",u+(this.extname||""))}fail(u,a,r){const s=this.message(u,a,r);throw s.fatal=!0,s}info(u,a,r){const s=this.message(u,a,r);return s.fatal=void 0,s}message(u,a,r){const s=new de(u,a,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(u){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(u||void 0).decode(this.value)}}function qc(l,u){if(l&&l.includes(on.sep))throw new Error("`"+u+"` cannot be a path: did not expect `"+on.sep+"`")}function Yc(l,u){if(!l)throw new Error("`"+u+"` cannot be empty")}function fd(l,u){if(!l)throw new Error("Setting `"+u+"` requires `path` to be set too")}function LS(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const BS=(function(l){const r=this.constructor.prototype,s=r[l],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,r),h}),jS={}.hasOwnProperty;class Ss extends BS{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=AS()}copy(){const u=new Ss;let a=-1;for(;++a<this.attachers.length;){const r=this.attachers[a];u.use(...r)}return u.data(jc(!0,{},this.namespace)),u}data(u,a){return typeof u=="string"?arguments.length===2?(Gc("data",this.frozen),this.namespace[u]=a,this):jS.call(this.namespace,u)&&this.namespace[u]||void 0:u?(Gc("data",this.frozen),this.namespace=u,this):this.namespace}freeze(){if(this.frozen)return this;const u=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=a.call(u,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(u){this.freeze();const a=$u(u),r=this.parser||this.Parser;return Vc("parse",r),r(String(a),a)}process(u,a){const r=this;return this.freeze(),Vc("process",this.parser||this.Parser),Xc("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(h,f){const p=$u(u),d=r.parse(p);r.run(d,p,function(b,y,S){if(b||!y||!S)return m(b);const x=y,C=r.stringify(x,S);YS(C)?S.value=C:S.result=C,m(b,S)});function m(b,y){b||!y?f(b):h?h(y):a(void 0,y)}}}processSync(u){let a=!1,r;return this.freeze(),Vc("processSync",this.parser||this.Parser),Xc("processSync",this.compiler||this.Compiler),this.process(u,s),md("processSync","process",a),r;function s(h,f){a=!0,cd(h),r=f}}run(u,a,r){hd(u),this.freeze();const s=this.transformers;return!r&&typeof a=="function"&&(r=a,a=void 0),r?h(void 0,r):new Promise(h);function h(f,p){const d=$u(a);s.run(u,d,m);function m(b,y,S){const x=y||u;b?p(b):f?f(x):r(void 0,x,S)}}}runSync(u,a){let r=!1,s;return this.run(u,a,h),md("runSync","run",r),s;function h(f,p){cd(f),s=p,r=!0}}stringify(u,a){this.freeze();const r=$u(a),s=this.compiler||this.Compiler;return Xc("stringify",s),hd(u),s(u,r)}use(u,...a){const r=this.attachers,s=this.namespace;if(Gc("use",this.frozen),u!=null)if(typeof u=="function")d(u,a);else if(typeof u=="object")Array.isArray(u)?p(u):f(u);else throw new TypeError("Expected usable value, not `"+u+"`");return this;function h(m){if(typeof m=="function")d(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...y]=m;d(b,y)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))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");p(m.plugins),m.settings&&(s.settings=jc(!0,s.settings,m.settings))}function p(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const y=m[b];h(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function d(m,b){let y=-1,S=-1;for(;++y<r.length;)if(r[y][0]===m){S=y;break}if(S===-1)r.push([m,...b]);else if(b.length>0){let[x,...C]=b;const L=r[S][1];ls(L)&&ls(x)&&(x=jc(!0,L,x)),r[S]=[m,x,...C]}}}}const HS=new Ss().freeze();function Vc(l,u){if(typeof u!="function")throw new TypeError("Cannot `"+l+"` without `parser`")}function Xc(l,u){if(typeof u!="function")throw new TypeError("Cannot `"+l+"` without `compiler`")}function Gc(l,u){if(u)throw new Error("Cannot call `"+l+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hd(l){if(!ls(l)||typeof l.type!="string")throw new TypeError("Expected node, got `"+l+"`")}function md(l,u,a){if(!a)throw new Error("`"+l+"` finished async. Use `"+u+"` instead")}function $u(l){return qS(l)?l:new rg(l)}function qS(l){return!!(l&&typeof l=="object"&&"message"in l&&"messages"in l)}function YS(l){return typeof l=="string"||VS(l)}function VS(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const XS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pd=[],dd={allowDangerousHtml:!0},GS=/^(https?|ircs?|mailto|xmpp)$/i,QS=[{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 ZS(l){const u=KS(l),a=JS(l);return FS(u.runSync(u.parse(a),a),l)}function KS(l){const u=l.rehypePlugins||pd,a=l.remarkPlugins||pd,r=l.remarkRehypeOptions?{...l.remarkRehypeOptions,...dd}:dd;return HS().use(Cx).use(a).use(SS,r).use(u)}function JS(l){const u=l.children||"",a=new rg;return typeof u=="string"&&(a.value=u),a}function FS(l,u){const a=u.allowedElements,r=u.allowElement,s=u.components,h=u.disallowedElements,f=u.skipHtml,p=u.unwrapDisallowed,d=u.urlTransform||IS;for(const b of QS)Object.hasOwn(u,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+XS+b.id,void 0);return xs(l,m),sb(l,{Fragment:W.Fragment,components:s,ignoreInvalidStyle:!0,jsx:W.jsx,jsxs:W.jsxs,passKeys:!0,passNode:!0});function m(b,y,S){if(b.type==="raw"&&S&&typeof y=="number")return f?S.children.splice(y,1):S.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let x;for(x in Nc)if(Object.hasOwn(Nc,x)&&Object.hasOwn(b.properties,x)){const C=b.properties[x],L=Nc[x];(L===null||L.includes(b.tagName))&&(b.properties[x]=d(String(C||""),x,b))}}if(b.type==="element"){let x=a?!a.includes(b.tagName):h?h.includes(b.tagName):!1;if(!x&&r&&typeof y=="number"&&(x=!r(b,y,S)),x&&S&&typeof y=="number")return p&&b.children?S.children.splice(y,1,...b.children):S.children.splice(y,1),y}}}function IS(l){const u=l.indexOf(":"),a=l.indexOf("?"),r=l.indexOf("#"),s=l.indexOf("/");return u===-1||s!==-1&&u>s||a!==-1&&u>a||r!==-1&&u>r||GS.test(l.slice(0,u))?l:""}function gd(l,u){const a=String(l);if(typeof u!="string")throw new TypeError("Expected character");let r=0,s=a.indexOf(u);for(;s!==-1;)r++,s=a.indexOf(u,s+u.length);return r}function $S(l){if(typeof l!="string")throw new TypeError("Expected a string");return l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function WS(l,u,a){const s=rr((a||{}).ignore||[]),h=PS(u);let f=-1;for(;++f<h.length;)ug(l,"text",p);function p(m,b){let y=-1,S;for(;++y<b.length;){const x=b[y],C=S?S.children:void 0;if(s(x,C?C.indexOf(x):void 0,S))return;S=x}if(S)return d(m,b)}function d(m,b){const y=b[b.length-1],S=h[f][0],x=h[f][1];let C=0;const X=y.children.indexOf(m);let _=!1,Q=[];S.lastIndex=0;let G=S.exec(m.value);for(;G;){const at=G.index,ot={index:G.index,input:G.input,stack:[...b,m]};let B=x(...G,ot);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?S.lastIndex=at+1:(C!==at&&Q.push({type:"text",value:m.value.slice(C,at)}),Array.isArray(B)?Q.push(...B):B&&Q.push(B),C=at+G[0].length,_=!0),!S.global)break;G=S.exec(m.value)}return _?(C<m.value.length&&Q.push({type:"text",value:m.value.slice(C)}),y.children.splice(X,1,...Q)):Q=[m],X+Q.length}}function PS(l){const u=[];if(!Array.isArray(l))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!l[0]||Array.isArray(l[0])?l:[l];let r=-1;for(;++r<a.length;){const s=a[r];u.push([t2(s[0]),e2(s[1])])}return u}function t2(l){return typeof l=="string"?new RegExp($S(l),"g"):l}function e2(l){return typeof l=="function"?l:function(){return l}}const Qc="phrasing",Zc=["autolink","link","image","label"];function n2(){return{transforms:[c2],enter:{literalAutolink:i2,literalAutolinkEmail:Kc,literalAutolinkHttp:Kc,literalAutolinkWww:Kc},exit:{literalAutolink:o2,literalAutolinkEmail:r2,literalAutolinkHttp:a2,literalAutolinkWww:u2}}}function l2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qc,notInConstruct:Zc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qc,notInConstruct:Zc},{character:":",before:"[ps]",after:"\\/",inConstruct:Qc,notInConstruct:Zc}]}}function i2(l){this.enter({type:"link",title:null,url:"",children:[]},l)}function Kc(l){this.config.enter.autolinkProtocol.call(this,l)}function a2(l){this.config.exit.autolinkProtocol.call(this,l)}function u2(l){this.config.exit.data.call(this,l);const u=this.stack[this.stack.length-1];u.type,u.url="http://"+this.sliceSerialize(l)}function r2(l){this.config.exit.autolinkEmail.call(this,l)}function o2(l){this.exit(l)}function c2(l){WS(l,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,s2],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),f2]],{ignore:["link","linkReference"]})}function s2(l,u,a,r,s){let h="";if(!og(s)||(/^w/i.test(u)&&(a=u+a,u="",h="http://"),!h2(a)))return!1;const f=m2(a+r);if(!f[0])return!1;const p={type:"link",title:null,url:h+u+f[0],children:[{type:"text",value:u+f[0]}]};return f[1]?[p,{type:"text",value:f[1]}]:p}function f2(l,u,a,r){return!og(r,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+u+"@"+a,children:[{type:"text",value:u+"@"+a}]}}function h2(l){const u=l.split(".");return!(u.length<2||u[u.length-1]&&(/_/.test(u[u.length-1])||!/[a-zA-Z\d]/.test(u[u.length-1]))||u[u.length-2]&&(/_/.test(u[u.length-2])||!/[a-zA-Z\d]/.test(u[u.length-2])))}function m2(l){const u=/[!"&'),.:;<>?\]}]+$/.exec(l);if(!u)return[l,void 0];l=l.slice(0,u.index);let a=u[0],r=a.indexOf(")");const s=gd(l,"(");let h=gd(l,")");for(;r!==-1&&s>h;)l+=a.slice(0,r+1),a=a.slice(r+1),r=a.indexOf(")"),h++;return[l,a]}function og(l,u){const a=l.input.charCodeAt(l.index-1);return(l.index===0||Tl(a)||ir(a))&&(!u||a!==47)}cg.peek=E2;function p2(){this.buffer()}function d2(l){this.enter({type:"footnoteReference",identifier:"",label:""},l)}function g2(){this.buffer()}function y2(l){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},l)}function b2(l){const u=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=nn(this.sliceSerialize(l)).toLowerCase(),a.label=u}function v2(l){this.exit(l)}function x2(l){const u=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=nn(this.sliceSerialize(l)).toLowerCase(),a.label=u}function S2(l){this.exit(l)}function E2(){return"["}function cg(l,u,a,r){const s=a.createTracker(r);let h=s.move("[^");const f=a.enter("footnoteReference"),p=a.enter("reference");return h+=s.move(a.safe(a.associationId(l),{after:"]",before:h})),p(),f(),h+=s.move("]"),h}function k2(){return{enter:{gfmFootnoteCallString:p2,gfmFootnoteCall:d2,gfmFootnoteDefinitionLabelString:g2,gfmFootnoteDefinition:y2},exit:{gfmFootnoteCallString:b2,gfmFootnoteCall:v2,gfmFootnoteDefinitionLabelString:x2,gfmFootnoteDefinition:S2}}}function A2(l){let u=!1;return l&&l.firstLineBlank&&(u=!0),{handlers:{footnoteDefinition:a,footnoteReference:cg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(r,s,h,f){const p=h.createTracker(f);let d=p.move("[^");const m=h.enter("footnoteDefinition"),b=h.enter("label");return d+=p.move(h.safe(h.associationId(r),{before:d,after:"]"})),b(),d+=p.move("]:"),r.children&&r.children.length>0&&(p.shift(4),d+=p.move((u?`
|
|
149
|
+
`:" ")+h.indentLines(h.containerFlow(r,p.current()),u?sg:T2))),m(),d}}function T2(l,u,a){return u===0?l:sg(l,u,a)}function sg(l,u,a){return(a?"":" ")+l}const z2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];fg.peek=M2;function C2(){return{canContainEols:["delete"],enter:{strikethrough:_2},exit:{strikethrough:D2}}}function w2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:z2}],handlers:{delete:fg}}}function _2(l){this.enter({type:"delete",children:[]},l)}function D2(l){this.exit(l)}function fg(l,u,a,r){const s=a.createTracker(r),h=a.enter("strikethrough");let f=s.move("~~");return f+=a.containerPhrasing(l,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),h(),f}function M2(){return"~"}function O2(l){return l.length}function R2(l,u){const a=u||{},r=(a.align||[]).concat(),s=a.stringLength||O2,h=[],f=[],p=[],d=[];let m=0,b=-1;for(;++b<l.length;){const L=[],X=[];let _=-1;for(l[b].length>m&&(m=l[b].length);++_<l[b].length;){const Q=N2(l[b][_]);if(a.alignDelimiters!==!1){const G=s(Q);X[_]=G,(d[_]===void 0||G>d[_])&&(d[_]=G)}L.push(Q)}f[b]=L,p[b]=X}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<m;)h[y]=yd(r[y]);else{const L=yd(r);for(;++y<m;)h[y]=L}y=-1;const S=[],x=[];for(;++y<m;){const L=h[y];let X="",_="";L===99?(X=":",_=":"):L===108?X=":":L===114&&(_=":");let Q=a.alignDelimiters===!1?1:Math.max(1,d[y]-X.length-_.length);const G=X+"-".repeat(Q)+_;a.alignDelimiters!==!1&&(Q=X.length+Q+_.length,Q>d[y]&&(d[y]=Q),x[y]=Q),S[y]=G}f.splice(1,0,S),p.splice(1,0,x),b=-1;const C=[];for(;++b<f.length;){const L=f[b],X=p[b];y=-1;const _=[];for(;++y<m;){const Q=L[y]||"";let G="",at="";if(a.alignDelimiters!==!1){const ot=d[y]-(X[y]||0),B=h[y];B===114?G=" ".repeat(ot):B===99?ot%2?(G=" ".repeat(ot/2+.5),at=" ".repeat(ot/2-.5)):(G=" ".repeat(ot/2),at=G):at=" ".repeat(ot)}a.delimiterStart!==!1&&!y&&_.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&Q==="")&&(a.delimiterStart!==!1||y)&&_.push(" "),a.alignDelimiters!==!1&&_.push(G),_.push(Q),a.alignDelimiters!==!1&&_.push(at),a.padding!==!1&&_.push(" "),(a.delimiterEnd!==!1||y!==m-1)&&_.push("|")}C.push(a.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return C.join(`
|
|
150
|
+
`)}function N2(l){return l==null?"":String(l)}function yd(l){const u=typeof l=="string"?l.codePointAt(0):0;return u===67||u===99?99:u===76||u===108?108:u===82||u===114?114:0}function U2(l,u,a,r){const s=a.enter("blockquote"),h=a.createTracker(r);h.move("> "),h.shift(2);const f=a.indentLines(a.containerFlow(l,h.current()),L2);return s(),f}function L2(l,u,a){return">"+(a?"":" ")+l}function B2(l,u){return bd(l,u.inConstruct,!0)&&!bd(l,u.notInConstruct,!1)}function bd(l,u,a){if(typeof u=="string"&&(u=[u]),!u||u.length===0)return a;let r=-1;for(;++r<u.length;)if(l.includes(u[r]))return!0;return!1}function vd(l,u,a,r){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
|
|
151
|
+
`&&B2(a.stack,a.unsafe[s]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
152
|
+
`}function j2(l,u){const a=String(l);let r=a.indexOf(u),s=r,h=0,f=0;if(typeof u!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===s?++h>f&&(f=h):h=1,s=r+u.length,r=a.indexOf(u,s);return f}function H2(l,u){return!!(u.options.fences===!1&&l.value&&!l.lang&&/[^ \r\n]/.test(l.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(l.value))}function q2(l){const u=l.options.fence||"`";if(u!=="`"&&u!=="~")throw new Error("Cannot serialize code with `"+u+"` for `options.fence`, expected `` ` `` or `~`");return u}function Y2(l,u,a,r){const s=q2(a),h=l.value||"",f=s==="`"?"GraveAccent":"Tilde";if(H2(l,a)){const y=a.enter("codeIndented"),S=a.indentLines(h,V2);return y(),S}const p=a.createTracker(r),d=s.repeat(Math.max(j2(h,s)+1,3)),m=a.enter("codeFenced");let b=p.move(d);if(l.lang){const y=a.enter(`codeFencedLang${f}`);b+=p.move(a.safe(l.lang,{before:b,after:" ",encode:["`"],...p.current()})),y()}if(l.lang&&l.meta){const y=a.enter(`codeFencedMeta${f}`);b+=p.move(" "),b+=p.move(a.safe(l.meta,{before:b,after:`
|
|
153
|
+
`,encode:["`"],...p.current()})),y()}return b+=p.move(`
|
|
154
|
+
`),h&&(b+=p.move(h+`
|
|
155
|
+
`)),b+=p.move(d),m(),b}function V2(l,u,a){return(a?"":" ")+l}function Es(l){const u=l.options.quote||'"';if(u!=='"'&&u!=="'")throw new Error("Cannot serialize title with `"+u+"` for `options.quote`, expected `\"`, or `'`");return u}function X2(l,u,a,r){const s=Es(a),h=s==='"'?"Quote":"Apostrophe",f=a.enter("definition");let p=a.enter("label");const d=a.createTracker(r);let m=d.move("[");return m+=d.move(a.safe(a.associationId(l),{before:m,after:"]",...d.current()})),m+=d.move("]: "),p(),!l.url||/[\0- \u007F]/.test(l.url)?(p=a.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(a.safe(l.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=a.enter("destinationRaw"),m+=d.move(a.safe(l.url,{before:m,after:l.title?" ":`
|
|
156
|
+
`,...d.current()}))),p(),l.title&&(p=a.enter(`title${h}`),m+=d.move(" "+s),m+=d.move(a.safe(l.title,{before:m,after:s,...d.current()})),m+=d.move(s),p()),f(),m}function G2(l){const u=l.options.emphasis||"*";if(u!=="*"&&u!=="_")throw new Error("Cannot serialize emphasis with `"+u+"` for `options.emphasis`, expected `*`, or `_`");return u}function Ta(l){return"&#x"+l.toString(16).toUpperCase()+";"}function lr(l,u,a){const r=vi(l),s=vi(u);return r===void 0?s===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}hg.peek=Q2;function hg(l,u,a,r){const s=G2(a),h=a.enter("emphasis"),f=a.createTracker(r),p=f.move(s);let d=f.move(a.containerPhrasing(l,{after:s,before:p,...f.current()}));const m=d.charCodeAt(0),b=lr(r.before.charCodeAt(r.before.length-1),m,s);b.inside&&(d=Ta(m)+d.slice(1));const y=d.charCodeAt(d.length-1),S=lr(r.after.charCodeAt(0),y,s);S.inside&&(d=d.slice(0,-1)+Ta(y));const x=f.move(s);return h(),a.attentionEncodeSurroundingInfo={after:S.outside,before:b.outside},p+d+x}function Q2(l,u,a){return a.options.emphasis||"*"}function Z2(l,u){let a=!1;return xs(l,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return a=!0,es}),!!((!l.depth||l.depth<3)&&ms(l)&&(u.options.setext||a))}function K2(l,u,a,r){const s=Math.max(Math.min(6,l.depth||1),1),h=a.createTracker(r);if(Z2(l,a)){const b=a.enter("headingSetext"),y=a.enter("phrasing"),S=a.containerPhrasing(l,{...h.current(),before:`
|
|
157
|
+
`,after:`
|
|
158
|
+
`});return y(),b(),S+`
|
|
159
|
+
`+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
|
|
160
|
+
`))+1))}const f="#".repeat(s),p=a.enter("headingAtx"),d=a.enter("phrasing");h.move(f+" ");let m=a.containerPhrasing(l,{before:"# ",after:`
|
|
161
|
+
`,...h.current()});return/^[\t ]/.test(m)&&(m=Ta(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,a.options.closeAtx&&(m+=" "+f),d(),p(),m}mg.peek=J2;function mg(l){return l.value||""}function J2(){return"<"}pg.peek=F2;function pg(l,u,a,r){const s=Es(a),h=s==='"'?"Quote":"Apostrophe",f=a.enter("image");let p=a.enter("label");const d=a.createTracker(r);let m=d.move("![");return m+=d.move(a.safe(l.alt,{before:m,after:"]",...d.current()})),m+=d.move("]("),p(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(p=a.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(a.safe(l.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=a.enter("destinationRaw"),m+=d.move(a.safe(l.url,{before:m,after:l.title?" ":")",...d.current()}))),p(),l.title&&(p=a.enter(`title${h}`),m+=d.move(" "+s),m+=d.move(a.safe(l.title,{before:m,after:s,...d.current()})),m+=d.move(s),p()),m+=d.move(")"),f(),m}function F2(){return"!"}dg.peek=I2;function dg(l,u,a,r){const s=l.referenceType,h=a.enter("imageReference");let f=a.enter("label");const p=a.createTracker(r);let d=p.move("![");const m=a.safe(l.alt,{before:d,after:"]",...p.current()});d+=p.move(m+"]["),f();const b=a.stack;a.stack=[],f=a.enter("reference");const y=a.safe(a.associationId(l),{before:d,after:"]",...p.current()});return f(),a.stack=b,h(),s==="full"||!m||m!==y?d+=p.move(y+"]"):s==="shortcut"?d=d.slice(0,-1):d+=p.move("]"),d}function I2(){return"!"}gg.peek=$2;function gg(l,u,a){let r=l.value||"",s="`",h=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++h<a.unsafe.length;){const f=a.unsafe[h],p=a.compilePattern(f);let d;if(f.atBreak)for(;d=p.exec(r);){let m=d.index;r.charCodeAt(m)===10&&r.charCodeAt(m-1)===13&&m--,r=r.slice(0,m)+" "+r.slice(d.index+1)}}return s+r+s}function $2(){return"`"}function yg(l,u){const a=ms(l);return!!(!u.options.resourceLink&&l.url&&!l.title&&l.children&&l.children.length===1&&l.children[0].type==="text"&&(a===l.url||"mailto:"+a===l.url)&&/^[a-z][a-z+.-]+:/i.test(l.url)&&!/[\0- <>\u007F]/.test(l.url))}bg.peek=W2;function bg(l,u,a,r){const s=Es(a),h=s==='"'?"Quote":"Apostrophe",f=a.createTracker(r);let p,d;if(yg(l,a)){const b=a.stack;a.stack=[],p=a.enter("autolink");let y=f.move("<");return y+=f.move(a.containerPhrasing(l,{before:y,after:">",...f.current()})),y+=f.move(">"),p(),a.stack=b,y}p=a.enter("link"),d=a.enter("label");let m=f.move("[");return m+=f.move(a.containerPhrasing(l,{before:m,after:"](",...f.current()})),m+=f.move("]("),d(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(d=a.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(a.safe(l.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(d=a.enter("destinationRaw"),m+=f.move(a.safe(l.url,{before:m,after:l.title?" ":")",...f.current()}))),d(),l.title&&(d=a.enter(`title${h}`),m+=f.move(" "+s),m+=f.move(a.safe(l.title,{before:m,after:s,...f.current()})),m+=f.move(s),d()),m+=f.move(")"),p(),m}function W2(l,u,a){return yg(l,a)?"<":"["}vg.peek=P2;function vg(l,u,a,r){const s=l.referenceType,h=a.enter("linkReference");let f=a.enter("label");const p=a.createTracker(r);let d=p.move("[");const m=a.containerPhrasing(l,{before:d,after:"]",...p.current()});d+=p.move(m+"]["),f();const b=a.stack;a.stack=[],f=a.enter("reference");const y=a.safe(a.associationId(l),{before:d,after:"]",...p.current()});return f(),a.stack=b,h(),s==="full"||!m||m!==y?d+=p.move(y+"]"):s==="shortcut"?d=d.slice(0,-1):d+=p.move("]"),d}function P2(){return"["}function ks(l){const u=l.options.bullet||"*";if(u!=="*"&&u!=="+"&&u!=="-")throw new Error("Cannot serialize items with `"+u+"` for `options.bullet`, expected `*`, `+`, or `-`");return u}function tE(l){const u=ks(l),a=l.options.bulletOther;if(!a)return u==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===u)throw new Error("Expected `bullet` (`"+u+"`) and `bulletOther` (`"+a+"`) to be different");return a}function eE(l){const u=l.options.bulletOrdered||".";if(u!=="."&&u!==")")throw new Error("Cannot serialize items with `"+u+"` for `options.bulletOrdered`, expected `.` or `)`");return u}function xg(l){const u=l.options.rule||"*";if(u!=="*"&&u!=="-"&&u!=="_")throw new Error("Cannot serialize rules with `"+u+"` for `options.rule`, expected `*`, `-`, or `_`");return u}function nE(l,u,a,r){const s=a.enter("list"),h=a.bulletCurrent;let f=l.ordered?eE(a):ks(a);const p=l.ordered?f==="."?")":".":tE(a);let d=u&&a.bulletLastUsed?f===a.bulletLastUsed:!1;if(!l.ordered){const b=l.children?l.children[0]:void 0;if((f==="*"||f==="-")&&b&&(!b.children||!b.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(d=!0),xg(a)===f&&b){let y=-1;for(;++y<l.children.length;){const S=l.children[y];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(f=p),a.bulletCurrent=f;const m=a.containerFlow(l,r);return a.bulletLastUsed=f,a.bulletCurrent=h,s(),m}function lE(l){const u=l.options.listItemIndent||"one";if(u!=="tab"&&u!=="one"&&u!=="mixed")throw new Error("Cannot serialize items with `"+u+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return u}function iE(l,u,a,r){const s=lE(a);let h=a.bulletCurrent||ks(a);u&&u.type==="list"&&u.ordered&&(h=(typeof u.start=="number"&&u.start>-1?u.start:1)+(a.options.incrementListMarker===!1?0:u.children.indexOf(l))+h);let f=h.length+1;(s==="tab"||s==="mixed"&&(u&&u.type==="list"&&u.spread||l.spread))&&(f=Math.ceil(f/4)*4);const p=a.createTracker(r);p.move(h+" ".repeat(f-h.length)),p.shift(f);const d=a.enter("listItem"),m=a.indentLines(a.containerFlow(l,p.current()),b);return d(),m;function b(y,S,x){return S?(x?"":" ".repeat(f))+y:(x?h:h+" ".repeat(f-h.length))+y}}function aE(l,u,a,r){const s=a.enter("paragraph"),h=a.enter("phrasing"),f=a.containerPhrasing(l,r);return h(),s(),f}const uE=rr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rE(l,u,a,r){return(l.children.some(function(f){return uE(f)})?a.containerPhrasing:a.containerFlow).call(a,l,r)}function oE(l){const u=l.options.strong||"*";if(u!=="*"&&u!=="_")throw new Error("Cannot serialize strong with `"+u+"` for `options.strong`, expected `*`, or `_`");return u}Sg.peek=cE;function Sg(l,u,a,r){const s=oE(a),h=a.enter("strong"),f=a.createTracker(r),p=f.move(s+s);let d=f.move(a.containerPhrasing(l,{after:s,before:p,...f.current()}));const m=d.charCodeAt(0),b=lr(r.before.charCodeAt(r.before.length-1),m,s);b.inside&&(d=Ta(m)+d.slice(1));const y=d.charCodeAt(d.length-1),S=lr(r.after.charCodeAt(0),y,s);S.inside&&(d=d.slice(0,-1)+Ta(y));const x=f.move(s+s);return h(),a.attentionEncodeSurroundingInfo={after:S.outside,before:b.outside},p+d+x}function cE(l,u,a){return a.options.strong||"*"}function sE(l,u,a,r){return a.safe(l.value,r)}function fE(l){const u=l.options.ruleRepetition||3;if(u<3)throw new Error("Cannot serialize rules with repetition `"+u+"` for `options.ruleRepetition`, expected `3` or more");return u}function hE(l,u,a){const r=(xg(a)+(a.options.ruleSpaces?" ":"")).repeat(fE(a));return a.options.ruleSpaces?r.slice(0,-1):r}const Eg={blockquote:U2,break:vd,code:Y2,definition:X2,emphasis:hg,hardBreak:vd,heading:K2,html:mg,image:pg,imageReference:dg,inlineCode:gg,link:bg,linkReference:vg,list:nE,listItem:iE,paragraph:aE,root:rE,strong:Sg,text:sE,thematicBreak:hE};function mE(){return{enter:{table:pE,tableData:xd,tableHeader:xd,tableRow:gE},exit:{codeText:yE,table:dE,tableData:Jc,tableHeader:Jc,tableRow:Jc}}}function pE(l){const u=l._align;this.enter({type:"table",align:u.map(function(a){return a==="none"?null:a}),children:[]},l),this.data.inTable=!0}function dE(l){this.exit(l),this.data.inTable=void 0}function gE(l){this.enter({type:"tableRow",children:[]},l)}function Jc(l){this.exit(l)}function xd(l){this.enter({type:"tableCell",children:[]},l)}function yE(l){let u=this.resume();this.data.inTable&&(u=u.replace(/\\([\\|])/g,bE));const a=this.stack[this.stack.length-1];a.type,a.value=u,this.exit(l)}function bE(l,u){return u==="|"?u:l}function vE(l){const u=l||{},a=u.tableCellPadding,r=u.tablePipeAlign,s=u.stringLength,h=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
162
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:d,tableRow:p}};function f(x,C,L,X){return m(b(x,L,X),x.align)}function p(x,C,L,X){const _=y(x,L,X),Q=m([_]);return Q.slice(0,Q.indexOf(`
|
|
163
|
+
`))}function d(x,C,L,X){const _=L.enter("tableCell"),Q=L.enter("phrasing"),G=L.containerPhrasing(x,{...X,before:h,after:h});return Q(),_(),G}function m(x,C){return R2(x,{align:C,alignDelimiters:r,padding:a,stringLength:s})}function b(x,C,L){const X=x.children;let _=-1;const Q=[],G=C.enter("table");for(;++_<X.length;)Q[_]=y(X[_],C,L);return G(),Q}function y(x,C,L){const X=x.children;let _=-1;const Q=[],G=C.enter("tableRow");for(;++_<X.length;)Q[_]=d(X[_],x,C,L);return G(),Q}function S(x,C,L){let X=Eg.inlineCode(x,C,L);return L.stack.includes("tableCell")&&(X=X.replace(/\|/g,"\\$&")),X}}function xE(){return{exit:{taskListCheckValueChecked:Sd,taskListCheckValueUnchecked:Sd,paragraph:EE}}}function SE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kE}}}function Sd(l){const u=this.stack[this.stack.length-2];u.type,u.checked=l.type==="taskListCheckValueChecked"}function EE(l){const u=this.stack[this.stack.length-2];if(u&&u.type==="listItem"&&typeof u.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const r=a.children[0];if(r&&r.type==="text"){const s=u.children;let h=-1,f;for(;++h<s.length;){const p=s[h];if(p.type==="paragraph"){f=p;break}}f===a&&(r.value=r.value.slice(1),r.value.length===0?a.children.shift():a.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,a.position.start=Object.assign({},r.position.start)))}}this.exit(l)}function kE(l,u,a,r){const s=l.children[0],h=typeof l.checked=="boolean"&&s&&s.type==="paragraph",f="["+(l.checked?"x":" ")+"] ",p=a.createTracker(r);h&&p.move(f);let d=Eg.listItem(l,u,a,{...r,...p.current()});return h&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),d;function m(b){return b+f}}function AE(){return[n2(),k2(),C2(),mE(),xE()]}function TE(l){return{extensions:[l2(),A2(l),w2(),vE(l),SE()]}}const zE={tokenize:OE,partial:!0},kg={tokenize:RE,partial:!0},Ag={tokenize:NE,partial:!0},Tg={tokenize:UE,partial:!0},CE={tokenize:LE,partial:!0},zg={name:"wwwAutolink",tokenize:DE,previous:wg},Cg={name:"protocolAutolink",tokenize:ME,previous:_g},On={name:"emailAutolink",tokenize:_E,previous:Dg},cn={};function wE(){return{text:cn}}let Al=48;for(;Al<123;)cn[Al]=On,Al++,Al===58?Al=65:Al===91&&(Al=97);cn[43]=On;cn[45]=On;cn[46]=On;cn[95]=On;cn[72]=[On,Cg];cn[104]=[On,Cg];cn[87]=[On,zg];cn[119]=[On,zg];function _E(l,u,a){const r=this;let s,h;return f;function f(y){return!as(y)||!Dg.call(r,r.previous)||As(r.events)?a(y):(l.enter("literalAutolink"),l.enter("literalAutolinkEmail"),p(y))}function p(y){return as(y)?(l.consume(y),p):y===64?(l.consume(y),d):a(y)}function d(y){return y===46?l.check(CE,b,m)(y):y===45||y===95||pe(y)?(h=!0,l.consume(y),d):b(y)}function m(y){return l.consume(y),s=!0,d}function b(y){return h&&s&&ve(r.previous)?(l.exit("literalAutolinkEmail"),l.exit("literalAutolink"),u(y)):a(y)}}function DE(l,u,a){const r=this;return s;function s(f){return f!==87&&f!==119||!wg.call(r,r.previous)||As(r.events)?a(f):(l.enter("literalAutolink"),l.enter("literalAutolinkWww"),l.check(zE,l.attempt(kg,l.attempt(Ag,h),a),a)(f))}function h(f){return l.exit("literalAutolinkWww"),l.exit("literalAutolink"),u(f)}}function ME(l,u,a){const r=this;let s="",h=!1;return f;function f(y){return(y===72||y===104)&&_g.call(r,r.previous)&&!As(r.events)?(l.enter("literalAutolink"),l.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),l.consume(y),p):a(y)}function p(y){if(ve(y)&&s.length<5)return s+=String.fromCodePoint(y),l.consume(y),p;if(y===58){const S=s.toLowerCase();if(S==="http"||S==="https")return l.consume(y),d}return a(y)}function d(y){return y===47?(l.consume(y),h?m:(h=!0,d)):a(y)}function m(y){return y===null||tr(y)||Xt(y)||Tl(y)||ir(y)?a(y):l.attempt(kg,l.attempt(Ag,b),a)(y)}function b(y){return l.exit("literalAutolinkHttp"),l.exit("literalAutolink"),u(y)}}function OE(l,u,a){let r=0;return s;function s(f){return(f===87||f===119)&&r<3?(r++,l.consume(f),s):f===46&&r===3?(l.consume(f),h):a(f)}function h(f){return f===null?a(f):u(f)}}function RE(l,u,a){let r,s,h;return f;function f(m){return m===46||m===95?l.check(Tg,d,p)(m):m===null||Xt(m)||Tl(m)||m!==45&&ir(m)?d(m):(h=!0,l.consume(m),f)}function p(m){return m===95?r=!0:(s=r,r=void 0),l.consume(m),f}function d(m){return s||r||!h?a(m):u(m)}}function NE(l,u){let a=0,r=0;return s;function s(f){return f===40?(a++,l.consume(f),s):f===41&&r<a?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(Tg,u,h)(f):f===null||Xt(f)||Tl(f)?u(f):(l.consume(f),s)}function h(f){return f===41&&r++,l.consume(f),s}}function UE(l,u,a){return r;function r(p){return p===33||p===34||p===39||p===41||p===42||p===44||p===46||p===58||p===59||p===63||p===95||p===126?(l.consume(p),r):p===38?(l.consume(p),h):p===93?(l.consume(p),s):p===60||p===null||Xt(p)||Tl(p)?u(p):a(p)}function s(p){return p===null||p===40||p===91||Xt(p)||Tl(p)?u(p):r(p)}function h(p){return ve(p)?f(p):a(p)}function f(p){return p===59?(l.consume(p),r):ve(p)?(l.consume(p),f):a(p)}}function LE(l,u,a){return r;function r(h){return l.consume(h),s}function s(h){return pe(h)?a(h):u(h)}}function wg(l){return l===null||l===40||l===42||l===95||l===91||l===93||l===126||Xt(l)}function _g(l){return!ve(l)}function Dg(l){return!(l===47||as(l))}function as(l){return l===43||l===45||l===46||l===95||pe(l)}function As(l){let u=l.length,a=!1;for(;u--;){const r=l[u][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){a=!0;break}if(r._gfmAutolinkLiteralWalkedInto){a=!1;break}}return l.length>0&&!a&&(l[l.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const BE={tokenize:QE,partial:!0};function jE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VE,continuation:{tokenize:XE},exit:GE}},text:{91:{name:"gfmFootnoteCall",tokenize:YE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:HE,resolveTo:qE}}}}function HE(l,u,a){const r=this;let s=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let f;for(;s--;){const d=r.events[s][1];if(d.type==="labelImage"){f=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return p;function p(d){if(!f||!f._balanced)return a(d);const m=nn(r.sliceSerialize({start:f.end,end:r.now()}));return m.codePointAt(0)!==94||!h.includes(m.slice(1))?a(d):(l.enter("gfmFootnoteCallLabelMarker"),l.consume(d),l.exit("gfmFootnoteCallLabelMarker"),u(d))}}function qE(l,u){let a=l.length;for(;a--;)if(l[a][1].type==="labelImage"&&l[a][0]==="enter"){l[a][1];break}l[a+1][1].type="data",l[a+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},l[a+3][1].start),end:Object.assign({},l[l.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},l[a+3][1].end),end:Object.assign({},l[a+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)},p=[l[a+1],l[a+2],["enter",r,u],l[a+3],l[a+4],["enter",s,u],["exit",s,u],["enter",h,u],["enter",f,u],["exit",f,u],["exit",h,u],l[l.length-2],l[l.length-1],["exit",r,u]];return l.splice(a,l.length-a+1,...p),l}function YE(l,u,a){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,f;return p;function p(y){return l.enter("gfmFootnoteCall"),l.enter("gfmFootnoteCallLabelMarker"),l.consume(y),l.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?a(y):(l.enter("gfmFootnoteCallMarker"),l.consume(y),l.exit("gfmFootnoteCallMarker"),l.enter("gfmFootnoteCallString"),l.enter("chunkString").contentType="string",m)}function m(y){if(h>999||y===93&&!f||y===null||y===91||Xt(y))return a(y);if(y===93){l.exit("chunkString");const S=l.exit("gfmFootnoteCallString");return s.includes(nn(r.sliceSerialize(S)))?(l.enter("gfmFootnoteCallLabelMarker"),l.consume(y),l.exit("gfmFootnoteCallLabelMarker"),l.exit("gfmFootnoteCall"),u):a(y)}return Xt(y)||(f=!0),h++,l.consume(y),y===92?b:m}function b(y){return y===91||y===92||y===93?(l.consume(y),h++,m):m(y)}}function VE(l,u,a){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,f=0,p;return d;function d(C){return l.enter("gfmFootnoteDefinition")._container=!0,l.enter("gfmFootnoteDefinitionLabel"),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(C),l.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(C){return C===94?(l.enter("gfmFootnoteDefinitionMarker"),l.consume(C),l.exit("gfmFootnoteDefinitionMarker"),l.enter("gfmFootnoteDefinitionLabelString"),l.enter("chunkString").contentType="string",b):a(C)}function b(C){if(f>999||C===93&&!p||C===null||C===91||Xt(C))return a(C);if(C===93){l.exit("chunkString");const L=l.exit("gfmFootnoteDefinitionLabelString");return h=nn(r.sliceSerialize(L)),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(C),l.exit("gfmFootnoteDefinitionLabelMarker"),l.exit("gfmFootnoteDefinitionLabel"),S}return Xt(C)||(p=!0),f++,l.consume(C),C===92?y:b}function y(C){return C===91||C===92||C===93?(l.consume(C),f++,b):b(C)}function S(C){return C===58?(l.enter("definitionMarker"),l.consume(C),l.exit("definitionMarker"),s.includes(h)||s.push(h),_t(l,x,"gfmFootnoteDefinitionWhitespace")):a(C)}function x(C){return u(C)}}function XE(l,u,a){return l.check(Ca,u,l.attempt(BE,u,a))}function GE(l){l.exit("gfmFootnoteDefinition")}function QE(l,u,a){const r=this;return _t(l,s,"gfmFootnoteDefinitionIndent",5);function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?u(h):a(h)}}function ZE(l){let a=(l||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:s};return a==null&&(a=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(f,p){let d=-1;for(;++d<f.length;)if(f[d][0]==="enter"&&f[d][1].type==="strikethroughSequenceTemporary"&&f[d][1]._close){let m=d;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[d][1].end.offset-f[d][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[d][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[d][1].end)},y={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[d][1].start)},S=[["enter",b,p],["enter",f[m][1],p],["exit",f[m][1],p],["enter",y,p]],x=p.parser.constructs.insideSpan.null;x&&He(S,S.length,0,ar(x,f.slice(m+1,d),p)),He(S,S.length,0,[["exit",y,p],["enter",f[d][1],p],["exit",f[d][1],p],["exit",b,p]]),He(f,m-1,d-m+3,S),d=m+S.length-2;break}}for(d=-1;++d<f.length;)f[d][1].type==="strikethroughSequenceTemporary"&&(f[d][1].type="data");return f}function h(f,p,d){const m=this.previous,b=this.events;let y=0;return S;function S(C){return m===126&&b[b.length-1][1].type!=="characterEscape"?d(C):(f.enter("strikethroughSequenceTemporary"),x(C))}function x(C){const L=vi(m);if(C===126)return y>1?d(C):(f.consume(C),y++,x);if(y<2&&!a)return d(C);const X=f.exit("strikethroughSequenceTemporary"),_=vi(C);return X._open=!_||_===2&&!!L,X._close=!L||L===2&&!!_,p(C)}}}class KE{constructor(){this.map=[]}add(u,a,r){JE(this,u,a,r)}consume(u){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let a=this.map.length;const r=[];for(;a>0;)a-=1,r.push(u.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),u.length=this.map[a][0];r.push(u.slice()),u.length=0;let s=r.pop();for(;s;){for(const h of s)u.push(h);s=r.pop()}this.map.length=0}}function JE(l,u,a,r){let s=0;if(!(a===0&&r.length===0)){for(;s<l.map.length;){if(l.map[s][0]===u){l.map[s][1]+=a,l.map[s][2].push(...r);return}s+=1}l.map.push([u,a,r])}}function FE(l,u){let a=!1;const r=[];for(;u<l.length;){const s=l[u];if(a){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(l[u+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(l[u-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(a=!0);u+=1}return r}function IE(){return{flow:{null:{name:"table",tokenize:$E,resolveAll:WE}}}}function $E(l,u,a){const r=this;let s=0,h=0,f;return p;function p(U){let tt=r.events.length-1;for(;tt>-1;){const nt=r.events[tt][1].type;if(nt==="lineEnding"||nt==="linePrefix")tt--;else break}const P=tt>-1?r.events[tt][1].type:null,xt=P==="tableHead"||P==="tableRow"?B:d;return xt===B&&r.parser.lazy[r.now().line]?a(U):xt(U)}function d(U){return l.enter("tableHead"),l.enter("tableRow"),m(U)}function m(U){return U===124||(f=!0,h+=1),b(U)}function b(U){return U===null?a(U):ct(U)?h>1?(h=0,r.interrupt=!0,l.exit("tableRow"),l.enter("lineEnding"),l.consume(U),l.exit("lineEnding"),x):a(U):At(U)?_t(l,b,"whitespace")(U):(h+=1,f&&(f=!1,s+=1),U===124?(l.enter("tableCellDivider"),l.consume(U),l.exit("tableCellDivider"),f=!0,b):(l.enter("data"),y(U)))}function y(U){return U===null||U===124||Xt(U)?(l.exit("data"),b(U)):(l.consume(U),U===92?S:y)}function S(U){return U===92||U===124?(l.consume(U),y):y(U)}function x(U){return r.interrupt=!1,r.parser.lazy[r.now().line]?a(U):(l.enter("tableDelimiterRow"),f=!1,At(U)?_t(l,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):C(U))}function C(U){return U===45||U===58?X(U):U===124?(f=!0,l.enter("tableCellDivider"),l.consume(U),l.exit("tableCellDivider"),L):ot(U)}function L(U){return At(U)?_t(l,X,"whitespace")(U):X(U)}function X(U){return U===58?(h+=1,f=!0,l.enter("tableDelimiterMarker"),l.consume(U),l.exit("tableDelimiterMarker"),_):U===45?(h+=1,_(U)):U===null||ct(U)?at(U):ot(U)}function _(U){return U===45?(l.enter("tableDelimiterFiller"),Q(U)):ot(U)}function Q(U){return U===45?(l.consume(U),Q):U===58?(f=!0,l.exit("tableDelimiterFiller"),l.enter("tableDelimiterMarker"),l.consume(U),l.exit("tableDelimiterMarker"),G):(l.exit("tableDelimiterFiller"),G(U))}function G(U){return At(U)?_t(l,at,"whitespace")(U):at(U)}function at(U){return U===124?C(U):U===null||ct(U)?!f||s!==h?ot(U):(l.exit("tableDelimiterRow"),l.exit("tableHead"),u(U)):ot(U)}function ot(U){return a(U)}function B(U){return l.enter("tableRow"),$(U)}function $(U){return U===124?(l.enter("tableCellDivider"),l.consume(U),l.exit("tableCellDivider"),$):U===null||ct(U)?(l.exit("tableRow"),u(U)):At(U)?_t(l,$,"whitespace")(U):(l.enter("data"),mt(U))}function mt(U){return U===null||U===124||Xt(U)?(l.exit("data"),$(U)):(l.consume(U),U===92?dt:mt)}function dt(U){return U===92||U===124?(l.consume(U),mt):mt(U)}}function WE(l,u){let a=-1,r=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],p=!1,d=0,m,b,y;const S=new KE;for(;++a<l.length;){const x=l[a],C=x[1];x[0]==="enter"?C.type==="tableHead"?(p=!1,d!==0&&(Ed(S,u,d,m,b),b=void 0,d=0),m={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(a,0,[["enter",m,u]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(r=!0,y=void 0,h=[0,0,0,0],f=[0,a+1,0,0],p&&(p=!1,b={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(a,0,[["enter",b,u]])),s=C.type==="tableDelimiterRow"?2:b?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(r=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],y=Wu(S,u,h,s,void 0,y),h=[0,0,0,0]),f[2]=a)):C.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(f[0]=f[1],y=Wu(S,u,h,s,void 0,y)),h=f,f=[h[1],a,0,0])):C.type==="tableHead"?(p=!0,d=a):C.type==="tableRow"||C.type==="tableDelimiterRow"?(d=a,h[1]!==0?(f[0]=f[1],y=Wu(S,u,h,s,a,y)):f[1]!==0&&(y=Wu(S,u,f,s,a,y)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(f[3]=a)}for(d!==0&&Ed(S,u,d,m,b),S.consume(u.events),a=-1;++a<u.events.length;){const x=u.events[a];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=FE(u.events,a))}return l}function Wu(l,u,a,r,s,h){const f=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",p="tableContent";a[0]!==0&&(h.end=Object.assign({},yi(u.events,a[0])),l.add(a[0],0,[["exit",h,u]]));const d=yi(u.events,a[1]);if(h={type:f,start:Object.assign({},d),end:Object.assign({},d)},l.add(a[1],0,[["enter",h,u]]),a[2]!==0){const m=yi(u.events,a[2]),b=yi(u.events,a[3]),y={type:p,start:Object.assign({},m),end:Object.assign({},b)};if(l.add(a[2],0,[["enter",y,u]]),r!==2){const S=u.events[a[2]],x=u.events[a[3]];if(S[1].end=Object.assign({},x[1].end),S[1].type="chunkText",S[1].contentType="text",a[3]>a[2]+1){const C=a[2]+1,L=a[3]-a[2]-1;l.add(C,L,[])}}l.add(a[3]+1,0,[["exit",y,u]])}return s!==void 0&&(h.end=Object.assign({},yi(u.events,s)),l.add(s,0,[["exit",h,u]]),h=void 0),h}function Ed(l,u,a,r,s){const h=[],f=yi(u.events,a);s&&(s.end=Object.assign({},f),h.push(["exit",s,u])),r.end=Object.assign({},f),h.push(["exit",r,u]),l.add(a+1,0,h)}function yi(l,u){const a=l[u],r=a[0]==="enter"?"start":"end";return a[1][r]}const PE={name:"tasklistCheck",tokenize:ek};function tk(){return{text:{91:PE}}}function ek(l,u,a){const r=this;return s;function s(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?a(d):(l.enter("taskListCheck"),l.enter("taskListCheckMarker"),l.consume(d),l.exit("taskListCheckMarker"),h)}function h(d){return Xt(d)?(l.enter("taskListCheckValueUnchecked"),l.consume(d),l.exit("taskListCheckValueUnchecked"),f):d===88||d===120?(l.enter("taskListCheckValueChecked"),l.consume(d),l.exit("taskListCheckValueChecked"),f):a(d)}function f(d){return d===93?(l.enter("taskListCheckMarker"),l.consume(d),l.exit("taskListCheckMarker"),l.exit("taskListCheck"),p):a(d)}function p(d){return ct(d)?u(d):At(d)?l.check({tokenize:nk},u,a)(d):a(d)}}function nk(l,u,a){return _t(l,r,"whitespace");function r(s){return s===null?a(s):u(s)}}function lk(l){return Yd([wE(),jE(),ZE(l),IE(),tk()])}const ik={};function ak(l){const u=this,a=l||ik,r=u.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),h=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),f=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(lk(a)),h.push(AE()),f.push(TE(a))}function uk({content:l,isStreaming:u}){const[a,r]=Rt.useState(!1);if(!l)return null;const s=l.split(`
|
|
164
|
+
`)[0],h=s.length>60?s.slice(0,60)+"…":s;return W.jsxs("div",{className:"my-2",children:[W.jsxs("button",{onClick:()=>r(!a),className:"flex items-center gap-1.5 text-xs text-gray-400 hover:text-gray-600 transition-colors",children:[W.jsx(g0,{size:12,className:u?"animate-pulse":""}),a?W.jsx(E0,{size:12}):W.jsx(A0,{size:12}),W.jsx("span",{className:"italic",children:u?"Thinking…":h})]}),a&&W.jsx("div",{className:"mt-1.5 ml-5 text-xs text-gray-400 italic whitespace-pre-wrap leading-relaxed border-l-2 border-gray-200 pl-3",children:l})]})}function rk({message:l}){var u;return l.role==="system"?W.jsx("div",{className:"flex justify-center",children:W.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg px-3 py-2 text-xs text-red-600 max-w-[90%]",children:l.content})}):l.role==="user"?W.jsx("div",{className:"flex justify-end",children:W.jsx("div",{className:"bg-emerald-600 text-white rounded-2xl rounded-br-md px-3.5 py-2 text-sm max-w-[85%]",children:l.content})}):W.jsx("div",{className:"flex justify-start",children:W.jsxs("div",{className:"max-w-[95%] border border-gray-200 rounded-xl px-4 py-3 bg-gray-50/50",children:[(u=l.thinking)==null?void 0:u.map((a,r)=>W.jsx(uk,{content:a.content,isStreaming:a.isStreaming},r)),l.content&&W.jsx("div",{className:"prose prose-sm max-w-none text-gray-800 prose-p:my-1.5 prose-headings:my-2 prose-ul:my-1.5 prose-ol:my-1.5 prose-li:my-0.5 prose-pre:my-2 prose-code:text-emerald-700 prose-code:bg-emerald-50 prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:text-xs prose-code:before:content-none prose-code:after:content-none prose-pre:bg-gray-900 prose-pre:text-gray-100 prose-a:text-emerald-600 prose-table:text-xs",children:W.jsx(ZS,{remarkPlugins:[ak],children:l.content})})]})})}function ok({value:l,onChange:u,onSend:a,onStop:r,isStreaming:s,disabled:h}){const f=Rt.useRef(null);Rt.useEffect(()=>{const d=f.current;d&&(d.style.height="auto",d.style.height=Math.min(d.scrollHeight,120)+"px")},[l]),Rt.useEffect(()=>{var d;s||(d=f.current)==null||d.focus()},[s]);const p=Rt.useCallback(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),a(l))},[l,a]);return Rt.useCallback(()=>{var d;return(d=f.current)==null?void 0:d.focus()},[]),W.jsx("div",{className:"border-t border-gray-200 p-3",children:W.jsxs("div",{className:"flex items-end gap-2",children:[W.jsx("textarea",{ref:f,value:l,onChange:d=>u(d.target.value),onKeyDown:p,placeholder:"Ask about your spreadsheet…",disabled:s||h,rows:1,className:"flex-1 resize-none rounded-lg border border-gray-200 px-3 py-2 text-sm outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500 disabled:opacity-50 disabled:bg-gray-50 placeholder:text-gray-400"}),s?W.jsx("button",{onClick:r,className:"shrink-0 w-8 h-8 flex items-center justify-center rounded-lg bg-red-500 text-white hover:bg-red-600 transition-colors",title:"Stop",children:W.jsx(O0,{size:14})}):W.jsx("button",{onClick:()=>a(l),disabled:!l.trim()||h,className:"shrink-0 w-8 h-8 flex items-center justify-center rounded-lg bg-emerald-600 text-white hover:bg-emerald-700 transition-colors disabled:opacity-30 disabled:hover:bg-emerald-600",title:"Send",children:W.jsx(D0,{size:14})})]})})}function ck(){const{status:l,connectionError:u,serverDown:a,markServerDown:r}=a0(),{messages:s,isStreaming:h,sendMessage:f,stopStreaming:p}=o0(r),[d,m]=Rt.useState(""),b=Rt.useRef(null);Rt.useEffect(()=>{var C;(C=b.current)==null||C.scrollIntoView({behavior:"smooth"})},[s]);const y=Rt.useCallback(C=>{const L=C.trim();L&&(f(L),m(""))},[f]),S=Rt.useCallback(C=>{m(C)},[]);if(u&&!l)return W.jsx(c0,{});if(!l)return W.jsx("div",{className:"flex items-center justify-center h-full",children:W.jsx("div",{className:"text-sm text-gray-400",children:"Connecting…"})});if(!l.authenticated)return W.jsx(R0,{});const x=s.length>0;return W.jsxs("div",{className:"flex flex-col h-full bg-white",children:[a&&W.jsxs("div",{className:"bg-amber-50 border-b border-amber-200 px-4 py-2 flex items-center gap-2 text-xs text-amber-700",children:[W.jsx("div",{className:"w-2 h-2 bg-amber-400 rounded-full animate-pulse"}),"Server disconnected — reconnecting…"]}),W.jsx("div",{className:"flex-1 overflow-y-auto",children:x?W.jsxs("div",{className:"p-4 space-y-4",children:[s.map(C=>W.jsx(rk,{message:C},C.id)),h&&!s.some(C=>{var L;return C.role==="assistant"&&(C.content||((L=C.thinking)==null?void 0:L.length))})&&W.jsx("div",{className:"flex items-center gap-2 text-xs text-gray-400 pl-1",children:W.jsxs("div",{className:"flex gap-1",children:[W.jsx("div",{className:"w-1.5 h-1.5 bg-gray-300 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),W.jsx("div",{className:"w-1.5 h-1.5 bg-gray-300 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),W.jsx("div",{className:"w-1.5 h-1.5 bg-gray-300 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})}),W.jsx("div",{ref:b})]}):W.jsx(U0,{status:l,onQuickAction:S})}),W.jsx(ok,{value:d,onChange:m,onSend:y,onStop:p,isStreaming:h,disabled:a})]})}function kd(){const l=document.getElementById("root");if(!l)throw new Error("Root element not found");t0.createRoot(l).render(W.jsx(Rt.StrictMode,{children:W.jsx(ck,{})}))}typeof Office<"u"&&Office.onReady?Office.onReady(()=>{kd()}):kd();
|