hyperclaw 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2ui-protocol-CUqdJGh7.js +75 -0
- package/dist/agents-routing-B0D0vcp5.js +424 -0
- package/dist/agents-routing-BC6GndVe.js +7 -0
- package/dist/agents-routing-CyFBHvyk.js +424 -0
- package/dist/agents-routing-DdpszaMx.js +7 -0
- package/dist/api-key-validation-DrMrLEa0.js +66 -0
- package/dist/api-keys-guide-DmKF7tB-.js +149 -0
- package/dist/audit-Q-Uy5nem.js +445 -0
- package/dist/backup-CtHJEqGr.js +86 -0
- package/dist/banner-DYzQ8cCb.js +143 -0
- package/dist/banner-jW84OrYg.js +7 -0
- package/dist/bounty-tools-CCwY61YO.js +211 -0
- package/dist/chat-CJa0ph8c.js +528 -0
- package/dist/chat-CKnfxa1-.js +528 -0
- package/dist/chat-CQKCIrIY.js +528 -0
- package/dist/chat-npW_ZOmo.js +528 -0
- package/dist/claw-tasks-Dq38PrL5.js +80 -0
- package/dist/config-BzK_Xl4Y.js +261 -0
- package/dist/config-ClsdlpXc.js +261 -0
- package/dist/config-Dm394B6X.js +7 -0
- package/dist/config-SiLqEezw.js +7 -0
- package/dist/connector-BYPxgmsD.js +312 -0
- package/dist/cost-tracker-x9E8VKtk.js +103 -0
- package/dist/credentials-store-Ddhgmbpz.js +7 -0
- package/dist/credentials-store-onL1tYct.js +89 -0
- package/dist/cron-tasks-CF4MJoIU.js +89 -0
- package/dist/daemon-ApB1nMs2.js +421 -0
- package/dist/daemon-B2ghXB-I.js +7 -0
- package/dist/daemon-BldYSrDj.js +421 -0
- package/dist/daemon-BqTcxMZe.js +7 -0
- package/dist/daemon-CivMFYkD.js +7 -0
- package/dist/daemon-DBXFUMue.js +421 -0
- package/dist/delivery-BURWi8wu.js +4 -0
- package/dist/delivery-kZ2mVkU5.js +95 -0
- package/dist/destructive-gate-C1ny9ek2.js +116 -0
- package/dist/engine-B-JvIt_Y.js +7 -0
- package/dist/engine-BGZnBZ4m.js +7 -0
- package/dist/engine-BTSXJNba.js +346 -0
- package/dist/engine-C7LyH310.js +353 -0
- package/dist/engine-C_nC_Ioe.js +351 -0
- package/dist/engine-DCtJSbKU.js +7 -0
- package/dist/env-resolve-C0R8R7pb.js +167 -0
- package/dist/env-resolve-Dr-KfTtw.js +11 -0
- package/dist/gmail-watch-setup-BzbG0ICM.js +42 -0
- package/dist/heartbeat-engine-B9bhAHNi.js +89 -0
- package/dist/hyperclawbot-BEm8_87h.js +516 -0
- package/dist/hyperclawbot-DR6BgI_d.js +516 -0
- package/dist/hyperclawbot-hZv4pde0.js +516 -0
- package/dist/inference-C874-2MI.js +8 -0
- package/dist/inference-DCSz6Sb1.js +2880 -0
- package/dist/knowledge-graph-BiIvoxPt.js +134 -0
- package/dist/loader-DMMb9emn.js +410 -0
- package/dist/loader-JktrmJOG.js +6 -0
- package/dist/logger-Oty9sC13.js +86 -0
- package/dist/manager-BIc6zzZV.js +250 -0
- package/dist/manager-BwobWy0l.js +120 -0
- package/dist/mcp-CI2F3m8G.js +142 -0
- package/dist/mcp-loader-C-21ynRH.js +93 -0
- package/dist/mcp-loader-Di7n__ta.js +93 -0
- package/dist/memory-auto-BVCJeTwd.js +306 -0
- package/dist/memory-auto-DXKe2ayf.js +5 -0
- package/dist/memory-integration-D2RvZ-MB.js +91 -0
- package/dist/moltbook-DvV6GFFL.js +81 -0
- package/dist/node-DFKhz7Zn.js +251 -0
- package/dist/node-pending-queue-CIMXPU6K.js +32 -0
- package/dist/nodes-registry-BeiEjd9U.js +52 -0
- package/dist/oauth-flow-CZOsvU1v.js +148 -0
- package/dist/oauth-provider-Dk-6BmGL.js +111 -0
- package/dist/observability-B3dDQSdI.js +89 -0
- package/dist/onboard-BnyHie0K.js +14 -0
- package/dist/onboard-D-5gWzH0.js +3854 -0
- package/dist/onboard-D9pjgaVR.js +3854 -0
- package/dist/onboard-UhWVcTap.js +14 -0
- package/dist/onboard-W5DsxVf2.js +3854 -0
- package/dist/onboard-YszvVNgS.js +14 -0
- package/dist/onboard-pLDBUBpO.js +14 -0
- package/dist/onboard-zISipu-l.js +3854 -0
- package/dist/orchestrator-C0t11xj7.js +189 -0
- package/dist/orchestrator-CA4eKeGn.js +189 -0
- package/dist/orchestrator-CNxTIlOK.js +189 -0
- package/dist/orchestrator-Cg1vgEHb.js +6 -0
- package/dist/orchestrator-DV5t6wQ0.js +6 -0
- package/dist/orchestrator-eT0ZL4yl.js +6 -0
- package/dist/osint-47yIek6w.js +283 -0
- package/dist/osint-c-xDjLb-.js +283 -0
- package/dist/osint-chat-BJgnkFDm.js +789 -0
- package/dist/osint-chat-C09BvbGy.js +789 -0
- package/dist/osint-chat-zdeaaw7a.js +789 -0
- package/dist/osint-e6oBrtlj.js +283 -0
- package/dist/pending-approval-CEu_-DGQ.js +22 -0
- package/dist/providers-BfW-fgpw.js +5 -0
- package/dist/providers-Cs1h_TJA.js +1137 -0
- package/dist/renderer-B_ew6jRs.js +228 -0
- package/dist/rules-BAYXiKiJ.js +106 -0
- package/dist/run-main.js +112 -77
- package/dist/runner-B5uo6C5q.js +1310 -0
- package/dist/search-tools-DXVuVXW_.js +107 -0
- package/dist/server-BJkDIs8Z.js +1467 -0
- package/dist/server-CtFoXM88.js +4 -0
- package/dist/server-DVxVLu_G.js +1467 -0
- package/dist/server-DZj6Nobr.js +1467 -0
- package/dist/server-Diu80smx.js +4 -0
- package/dist/server-DszV63tu.js +4 -0
- package/dist/skill-runtime-BLkXA1mO.js +104 -0
- package/dist/skill-runtime-BMk-h6Dl.js +5 -0
- package/dist/skill-runtime-BaTX-RGy.js +5 -0
- package/dist/skill-runtime-CB9tnc-P.js +104 -0
- package/dist/skill-runtime-D6-rGzX1.js +104 -0
- package/dist/skill-runtime-Dej1Yr5V.js +5 -0
- package/dist/src-6dmkVQGq.js +63 -0
- package/dist/src-7yBXPAs6.js +315 -0
- package/dist/src-BOnuFlI4.js +23 -0
- package/dist/src-BkEtHLLy.js +462 -0
- package/dist/src-CDeWGebw.js +315 -0
- package/dist/src-CNAVUFC6.js +462 -0
- package/dist/src-DB6dPsbY.js +63 -0
- package/dist/src-DE4mH0BB.js +63 -0
- package/dist/src-krHV0uVj.js +315 -0
- package/dist/src-tF0sBtr3.js +462 -0
- package/dist/sub-agent-tools-BwOxHu6f.js +39 -0
- package/dist/sub-agent-tools-CJVEIF1F.js +39 -0
- package/dist/sub-agent-tools-f4X1M-li.js +39 -0
- package/dist/tool-policy-CfWEnRxy.js +190 -0
- package/dist/tts-elevenlabs-CCeOqqrh.js +64 -0
- package/dist/vision-BMRKyu3c.js +167 -0
- package/dist/vision-tools-DVYx9-Jw.js +5 -0
- package/dist/vision-tools-kYb3effk.js +51 -0
- package/dist/voice-transcription-B1D1rpca.js +170 -0
- package/package.json +1 -1
- package/static/chat.html +18 -4
- package/static/web/assets/index-D2ekZ-uM.js +75 -0
- package/static/web/assets/index-D_9lvvup.css +1 -0
- package/static/web/index.html +2 -2
- package/static/web/assets/index-8bDizzaq.js +0 -75
- package/static/web/assets/index-B5N1LHGR.css +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var Mf=e=>{throw TypeError(e)};var Vs=(e,t,n)=>t.has(e)||Mf("Cannot "+n);var k=(e,t,n)=>(Vs(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?Mf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(Vs(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(Vs(e,t,"access private method"),n);var Kl=(e,t,n,r)=>({set _(i){M(e,t,i,n)},get _(){return k(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Op={exports:{}},ms={},Np={exports:{}},ee={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its 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 Al=Symbol.for("react.element"),Fx=Symbol.for("react.portal"),zx=Symbol.for("react.fragment"),Mx=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),Ux=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),$x=Symbol.for("react.forward_ref"),Vx=Symbol.for("react.suspense"),Qx=Symbol.for("react.memo"),Wx=Symbol.for("react.lazy"),Bf=Symbol.iterator;function qx(e){return e===null||typeof e!="object"?null:(e=Bf&&e[Bf]||e["@@iterator"],typeof e=="function"?e:null)}var _p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ip=Object.assign,Ap={};function bi(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||_p}bi.prototype.isReactComponent={};bi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lp(){}Lp.prototype=bi.prototype;function ac(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||_p}var cc=ac.prototype=new Lp;cc.constructor=ac;Ip(cc,bi.prototype);cc.isPureReactComponent=!0;var Uf=Array.isArray,Dp=Object.prototype.hasOwnProperty,fc={current:null},jp={key:!0,ref:!0,__self:!0,__source:!0};function Fp(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Dp.call(t,r)&&!jp.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Al,type:e,key:l,ref:o,props:i,_owner:fc.current}}function Kx(e,t){return{$$typeof:Al,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Al}function Gx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hf=/\/+/g;function Qs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gx(""+e.key):t.toString(36)}function vo(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Al:case Fx:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Qs(o,0):r,Uf(i)?(n="",e!=null&&(n=e.replace(Hf,"$&/")+"/"),vo(i,t,n,"",function(a){return a})):i!=null&&(dc(i)&&(i=Kx(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Hf,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Uf(e))for(var s=0;s<e.length;s++){l=e[s];var u=r+Qs(l,s);o+=vo(l,t,n,u,i)}else if(u=qx(e),typeof u=="function")for(e=u.call(e),s=0;!(l=e.next()).done;)l=l.value,u=r+Qs(l,s++),o+=vo(l,t,n,u,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gl(e,t,n){if(e==null)return e;var r=[],i=0;return vo(e,r,"","",function(l){return t.call(n,l,i++)}),r}function Yx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ye={current:null},wo={transition:null},Xx={ReactCurrentDispatcher:Ye,ReactCurrentBatchConfig:wo,ReactCurrentOwner:fc};function zp(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Gl,forEach:function(e,t,n){Gl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gl(e,function(){t++}),t},toArray:function(e){return Gl(e,function(t){return t})||[]},only:function(e){if(!dc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=bi;ee.Fragment=zx;ee.Profiler=Bx;ee.PureComponent=ac;ee.StrictMode=Mx;ee.Suspense=Vx;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xx;ee.act=zp;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ip({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=fc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Dp.call(t,u)&&!jp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:Al,type:e.type,key:i,ref:l,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:Hx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ux,_context:e},e.Consumer=e};ee.createElement=Fp;ee.createFactory=function(e){var t=Fp.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:$x,render:e}};ee.isValidElement=dc;ee.lazy=function(e){return{$$typeof:Wx,_payload:{_status:-1,_result:e},_init:Yx}};ee.memo=function(e,t){return{$$typeof:Qx,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=wo.transition;wo.transition={};try{e()}finally{wo.transition=t}};ee.unstable_act=zp;ee.useCallback=function(e,t){return Ye.current.useCallback(e,t)};ee.useContext=function(e){return Ye.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Ye.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Ye.current.useEffect(e,t)};ee.useId=function(){return Ye.current.useId()};ee.useImperativeHandle=function(e,t,n){return Ye.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Ye.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Ye.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Ye.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Ye.current.useReducer(e,t,n)};ee.useRef=function(e){return Ye.current.useRef(e)};ee.useState=function(e){return Ye.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Ye.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Ye.current.useTransition()};ee.version="18.3.1";Np.exports=ee;var U=Np.exports;const Jx=uc(U);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its 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 Zx=U,e1=Symbol.for("react.element"),t1=Symbol.for("react.fragment"),n1=Object.prototype.hasOwnProperty,r1=Zx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i1={key:!0,ref:!0,__self:!0,__source:!0};function Mp(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)n1.call(t,r)&&!i1.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:e1,type:e,key:l,ref:o,props:i,_owner:r1.current}}ms.Fragment=t1;ms.jsx=Mp;ms.jsxs=Mp;Op.exports=ms;var S=Op.exports,zu={},Bp={exports:{}},xt={},Up={exports:{}},Hp={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its 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
|
-
*/(function(e){function t(D,$){var v=D.length;D.push($);e:for(;0<v;){var Y=v-1>>>1,ne=D[Y];if(0<i(ne,$))D[Y]=$,D[v]=ne,v=Y;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var $=D[0],v=D.pop();if(v!==$){D[0]=v;e:for(var Y=0,ne=D.length,E=ne>>>1;Y<E;){var ye=2*(Y+1)-1,Je=D[ye],he=ye+1,Ht=D[he];if(0>i(Je,v))he<ne&&0>i(Ht,Je)?(D[Y]=Ht,D[he]=v,Y=he):(D[Y]=Je,D[ye]=v,Y=ye);else if(he<ne&&0>i(Ht,v))D[Y]=Ht,D[he]=v,Y=he;else break e}}return $}function i(D,$){var v=D.sortIndex-$.sortIndex;return v!==0?v:D.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],f=1,c=null,d=3,h=!1,p=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(D){for(var $=n(a);$!==null;){if($.callback===null)r(a);else if($.startTime<=D)r(a),$.sortIndex=$.expirationTime,t(u,$);else break;$=n(a)}}function b(D){if(x=!1,g(D),!p)if(n(u)!==null)p=!0,te(R);else{var $=n(a);$!==null&&ge(b,$.startTime-D)}}function R(D,$){p=!1,x&&(x=!1,m(I),I=-1),h=!0;var v=d;try{for(g($),c=n(u);c!==null&&(!(c.expirationTime>$)||D&&!N());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var ne=Y(c.expirationTime<=$);$=e.unstable_now(),typeof ne=="function"?c.callback=ne:c===n(u)&&r(u),g($)}else r(u);c=n(u)}if(c!==null)var E=!0;else{var ye=n(a);ye!==null&&ge(b,ye.startTime-$),E=!1}return E}finally{c=null,d=v,h=!1}}var T=!1,O=null,I=-1,F=5,w=-1;function N(){return!(e.unstable_now()-w<F)}function j(){if(O!==null){var D=e.unstable_now();w=D;var $=!0;try{$=O(!0,D)}finally{$?Q():(T=!1,O=null)}}else T=!1}var Q;if(typeof y=="function")Q=function(){y(j)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,K=q.port2;q.port1.onmessage=j,Q=function(){K.postMessage(null)}}else Q=function(){C(j,0)};function te(D){O=D,T||(T=!0,Q())}function ge(D,$){I=C(function(){D(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,te(R))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(D){switch(d){case 1:case 2:case 3:var $=3;break;default:$=d}var v=d;d=$;try{return D()}finally{d=v}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var v=d;d=D;try{return $()}finally{d=v}},e.unstable_scheduleCallback=function(D,$,v){var Y=e.unstable_now();switch(typeof v=="object"&&v!==null?(v=v.delay,v=typeof v=="number"&&0<v?Y+v:Y):v=Y,D){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=v+ne,D={id:f++,callback:$,priorityLevel:D,startTime:v,expirationTime:ne,sortIndex:-1},v>Y?(D.sortIndex=v,t(a,D),n(u)===null&&D===n(a)&&(x?(m(I),I=-1):x=!0,ge(b,v-Y))):(D.sortIndex=ne,t(u,D),p||h||(p=!0,te(R))),D},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(D){var $=d;return function(){var v=d;d=$;try{return D.apply(this,arguments)}finally{d=v}}}})(Hp);Up.exports=Hp;var l1=Up.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its 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 o1=U,yt=l1;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $p=new Set,ul={};function Nr(e,t){gi(e,t),gi(e+"Capture",t)}function gi(e,t){for(ul[e]=t,e=0;e<t.length;e++)$p.add(t[e])}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=Object.prototype.hasOwnProperty,s1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$f={},Vf={};function u1(e){return Mu.call(Vf,e)?!0:Mu.call($f,e)?!1:s1.test(e)?Vf[e]=!0:($f[e]=!0,!1)}function a1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function c1(e,t,n,r){if(t===null||typeof t>"u"||a1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){je[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var hc=/[\-:]([a-z])/g;function pc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(hc,pc);je[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(hc,pc);je[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(hc,pc);je[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function mc(e,t,n,r){var i=je.hasOwnProperty(t)?je[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(c1(t,n,i,r)&&(n=null),r||i===null?u1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var yn=o1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yl=Symbol.for("react.element"),Mr=Symbol.for("react.portal"),Br=Symbol.for("react.fragment"),gc=Symbol.for("react.strict_mode"),Bu=Symbol.for("react.profiler"),Vp=Symbol.for("react.provider"),Qp=Symbol.for("react.context"),yc=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),Hu=Symbol.for("react.suspense_list"),xc=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),Wp=Symbol.for("react.offscreen"),Qf=Symbol.iterator;function Li(e){return e===null||typeof e!="object"?null:(e=Qf&&e[Qf]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,Ws;function Qi(e){if(Ws===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ws=t&&t[1]||""}return`
|
|
34
|
-
`+Ws+e}var qs=!1;function Ks(e,t){if(!e||qs)return"";qs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
|
|
35
|
-
`),l=r.stack.split(`
|
|
36
|
-
`),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var u=`
|
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qi(e):""}function f1(e){switch(e.tag){case 5:return Qi(e.type);case 16:return Qi("Lazy");case 13:return Qi("Suspense");case 19:return Qi("SuspenseList");case 0:case 2:case 15:return e=Ks(e.type,!1),e;case 11:return e=Ks(e.type.render,!1),e;case 1:return e=Ks(e.type,!0),e;default:return""}}function $u(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Br:return"Fragment";case Mr:return"Portal";case Bu:return"Profiler";case gc:return"StrictMode";case Uu:return"Suspense";case Hu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qp:return(e.displayName||"Context")+".Consumer";case Vp:return(e._context.displayName||"Context")+".Provider";case yc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xc:return t=e.displayName||null,t!==null?t:$u(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return $u(e(t))}catch{}}return null}function d1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $u(t);case 8:return t===gc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=qp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xl(e){e._valueTracker||(e._valueTracker=h1(e))}function Kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vu(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gp(e,t){t=t.checked,t!=null&&mc(e,"checked",t,!1)}function Qu(e,t){Gp(e,t);var n=qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wu(e,t.type,qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wu(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wi=Array.isArray;function Xr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+qn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Wi(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:qn(n)}}function Yp(e,t){var n=qn(t.value),r=qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ku(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jl,Jp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Jl=Jl||document.createElement("div"),Jl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},p1=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){p1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Zp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var m1=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gu(e,t){if(t){if(m1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Yu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xu=null;function vc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ju=null,Jr=null,Zr=null;function Yf(e){if(e=jl(e)){if(typeof Ju!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ws(t),Ju(e.stateNode,e.type,t))}}function tm(e){Jr?Zr?Zr.push(e):Zr=[e]:Jr=e}function nm(){if(Jr){var e=Jr,t=Zr;if(Zr=Jr=null,Yf(e),t)for(e=0;e<t.length;e++)Yf(t[e])}}function rm(e,t){return e(t)}function im(){}var Gs=!1;function lm(e,t,n){if(Gs)return e(t,n);Gs=!0;try{return rm(e,t,n)}finally{Gs=!1,(Jr!==null||Zr!==null)&&(im(),nm())}}function cl(e,t){var n=e.stateNode;if(n===null)return null;var r=ws(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var Zu=!1;if(hn)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Zu=!1}function g1(e,t,n,r,i,l,o,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var Xi=!1,Mo=null,Bo=!1,ea=null,y1={onError:function(e){Xi=!0,Mo=e}};function x1(e,t,n,r,i,l,o,s,u){Xi=!1,Mo=null,g1.apply(y1,arguments)}function v1(e,t,n,r,i,l,o,s,u){if(x1.apply(this,arguments),Xi){if(Xi){var a=Mo;Xi=!1,Mo=null}else throw Error(A(198));Bo||(Bo=!0,ea=a)}}function _r(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function om(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xf(e){if(_r(e)!==e)throw Error(A(188))}function w1(e){var t=e.alternate;if(!t){if(t=_r(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Xf(i),e;if(l===r)return Xf(i),t;l=l.sibling}throw Error(A(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function sm(e){return e=w1(e),e!==null?um(e):null}function um(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=um(e);if(t!==null)return t;e=e.sibling}return null}var am=yt.unstable_scheduleCallback,Jf=yt.unstable_cancelCallback,k1=yt.unstable_shouldYield,S1=yt.unstable_requestPaint,Ee=yt.unstable_now,C1=yt.unstable_getCurrentPriorityLevel,wc=yt.unstable_ImmediatePriority,cm=yt.unstable_UserBlockingPriority,Uo=yt.unstable_NormalPriority,E1=yt.unstable_LowPriority,fm=yt.unstable_IdlePriority,gs=null,Yt=null;function b1(e){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(gs,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:R1,T1=Math.log,P1=Math.LN2;function R1(e){return e>>>=0,e===0?32:31-(T1(e)/P1|0)|0}var Zl=64,eo=4194304;function qi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ho(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=qi(s):(l&=o,l!==0&&(r=qi(l)))}else o=n&~i,o!==0?r=qi(o):l!==0&&(r=qi(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),i=1<<n,r|=e[n],t&=~i;return r}function O1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ft(l),s=1<<o,u=i[o];u===-1?(!(s&n)||s&r)&&(i[o]=O1(s,t)):u<=t&&(e.expiredLanes|=s),l&=~s}}function ta(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dm(){var e=Zl;return Zl<<=1,!(Zl&4194240)&&(Zl=64),e}function Ys(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function _1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ft(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ue=0;function hm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var pm,Sc,mm,gm,ym,na=!1,to=[],zn=null,Mn=null,Bn=null,fl=new Map,dl=new Map,bn=[],I1="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 submit".split(" ");function Zf(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":Bn=null;break;case"pointerover":case"pointerout":fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(t.pointerId)}}function ji(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=jl(t),t!==null&&Sc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function A1(e,t,n,r,i){switch(t){case"focusin":return zn=ji(zn,e,t,n,r,i),!0;case"dragenter":return Mn=ji(Mn,e,t,n,r,i),!0;case"mouseover":return Bn=ji(Bn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return fl.set(l,ji(fl.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,dl.set(l,ji(dl.get(l)||null,e,t,n,r,i)),!0}return!1}function xm(e){var t=ir(e.target);if(t!==null){var n=_r(t);if(n!==null){if(t=n.tag,t===13){if(t=om(n),t!==null){e.blockedOn=t,ym(e.priority,function(){mm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ra(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xu=r,n.target.dispatchEvent(r),Xu=null}else return t=jl(n),t!==null&&Sc(t),e.blockedOn=n,!1;t.shift()}return!0}function ed(e,t,n){ko(e)&&n.delete(t)}function L1(){na=!1,zn!==null&&ko(zn)&&(zn=null),Mn!==null&&ko(Mn)&&(Mn=null),Bn!==null&&ko(Bn)&&(Bn=null),fl.forEach(ed),dl.forEach(ed)}function Fi(e,t){e.blockedOn===t&&(e.blockedOn=null,na||(na=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,L1)))}function hl(e){function t(i){return Fi(i,e)}if(0<to.length){Fi(to[0],e);for(var n=1;n<to.length;n++){var r=to[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zn!==null&&Fi(zn,e),Mn!==null&&Fi(Mn,e),Bn!==null&&Fi(Bn,e),fl.forEach(t),dl.forEach(t),n=0;n<bn.length;n++)r=bn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bn.length&&(n=bn[0],n.blockedOn===null);)xm(n),n.blockedOn===null&&bn.shift()}var ei=yn.ReactCurrentBatchConfig,$o=!0;function D1(e,t,n,r){var i=ue,l=ei.transition;ei.transition=null;try{ue=1,Cc(e,t,n,r)}finally{ue=i,ei.transition=l}}function j1(e,t,n,r){var i=ue,l=ei.transition;ei.transition=null;try{ue=4,Cc(e,t,n,r)}finally{ue=i,ei.transition=l}}function Cc(e,t,n,r){if($o){var i=ra(e,t,n,r);if(i===null)ou(e,t,r,Vo,n),Zf(e,r);else if(A1(i,e,t,n,r))r.stopPropagation();else if(Zf(e,r),t&4&&-1<I1.indexOf(e)){for(;i!==null;){var l=jl(i);if(l!==null&&pm(l),l=ra(e,t,n,r),l===null&&ou(e,t,r,Vo,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else ou(e,t,r,null,n)}}var Vo=null;function ra(e,t,n,r){if(Vo=null,e=vc(r),e=ir(e),e!==null)if(t=_r(e),t===null)e=null;else if(n=t.tag,n===13){if(e=om(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vo=e,null}function vm(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(C1()){case wc:return 1;case cm:return 4;case Uo:case E1:return 16;case fm:return 536870912;default:return 16}default:return 16}}var jn=null,Ec=null,So=null;function wm(){if(So)return So;var e,t=Ec,n=t.length,r,i="value"in jn?jn.value:jn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return So=i.slice(e,1<r?1-r:void 0)}function Co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function no(){return!0}function td(){return!1}function vt(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?no:td,this.isPropagationStopped=td,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=no)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=no)},persist:function(){},isPersistent:no}),t}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bc=vt(Ti),Dl=ke({},Ti,{view:0,detail:0}),F1=vt(Dl),Xs,Js,zi,ys=ke({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zi&&(zi&&e.type==="mousemove"?(Xs=e.screenX-zi.screenX,Js=e.screenY-zi.screenY):Js=Xs=0,zi=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Js}}),nd=vt(ys),z1=ke({},ys,{dataTransfer:0}),M1=vt(z1),B1=ke({},Dl,{relatedTarget:0}),Zs=vt(B1),U1=ke({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),H1=vt(U1),$1=ke({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V1=vt($1),Q1=ke({},Ti,{data:0}),rd=vt(Q1),W1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},K1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K1[e])?!!t[e]:!1}function Tc(){return G1}var Y1=ke({},Dl,{key:function(e){if(e.key){var t=W1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?q1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tc,charCode:function(e){return e.type==="keypress"?Co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),X1=vt(Y1),J1=ke({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),id=vt(J1),Z1=ke({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tc}),ev=vt(Z1),tv=ke({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),nv=vt(tv),rv=ke({},ys,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iv=vt(rv),lv=[9,13,27,32],Pc=hn&&"CompositionEvent"in window,Ji=null;hn&&"documentMode"in document&&(Ji=document.documentMode);var ov=hn&&"TextEvent"in window&&!Ji,km=hn&&(!Pc||Ji&&8<Ji&&11>=Ji),ld=" ",od=!1;function Sm(e,t){switch(e){case"keyup":return lv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ur=!1;function sv(e,t){switch(e){case"compositionend":return Cm(t);case"keypress":return t.which!==32?null:(od=!0,ld);case"textInput":return e=t.data,e===ld&&od?null:e;default:return null}}function uv(e,t){if(Ur)return e==="compositionend"||!Pc&&Sm(e,t)?(e=wm(),So=Ec=jn=null,Ur=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return km&&t.locale!=="ko"?null:t.data;default:return null}}var av={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 sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!av[e.type]:t==="textarea"}function Em(e,t,n,r){tm(r),t=Qo(t,"onChange"),0<t.length&&(n=new bc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zi=null,pl=null;function cv(e){Dm(e,0)}function xs(e){var t=Vr(e);if(Kp(t))return e}function fv(e,t){if(e==="change")return t}var bm=!1;if(hn){var eu;if(hn){var tu="oninput"in document;if(!tu){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),tu=typeof ud.oninput=="function"}eu=tu}else eu=!1;bm=eu&&(!document.documentMode||9<document.documentMode)}function ad(){Zi&&(Zi.detachEvent("onpropertychange",Tm),pl=Zi=null)}function Tm(e){if(e.propertyName==="value"&&xs(pl)){var t=[];Em(t,pl,e,vc(e)),lm(cv,t)}}function dv(e,t,n){e==="focusin"?(ad(),Zi=t,pl=n,Zi.attachEvent("onpropertychange",Tm)):e==="focusout"&&ad()}function hv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xs(pl)}function pv(e,t){if(e==="click")return xs(t)}function mv(e,t){if(e==="input"||e==="change")return xs(t)}function gv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:gv;function ml(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Mu.call(t,i)||!Bt(e[i],t[i]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fd(e,t){var n=cd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cd(n)}}function Pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rm(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function yv(e){var t=Rm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pm(n.ownerDocument.documentElement,n)){if(r!==null&&Rc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=fd(n,l);var o=fd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xv=hn&&"documentMode"in document&&11>=document.documentMode,Hr=null,ia=null,el=null,la=!1;function dd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;la||Hr==null||Hr!==zo(r)||(r=Hr,"selectionStart"in r&&Rc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),el&&ml(el,r)||(el=r,r=Qo(ia,"onSelect"),0<r.length&&(t=new bc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $r={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},nu={},Om={};hn&&(Om=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);function vs(e){if(nu[e])return nu[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Om)return nu[e]=t[n];return e}var Nm=vs("animationend"),_m=vs("animationiteration"),Im=vs("animationstart"),Am=vs("transitionend"),Lm=new Map,hd="abort auxClick 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(" ");function Gn(e,t){Lm.set(e,t),Nr(t,[e])}for(var ru=0;ru<hd.length;ru++){var iu=hd[ru],vv=iu.toLowerCase(),wv=iu[0].toUpperCase()+iu.slice(1);Gn(vv,"on"+wv)}Gn(Nm,"onAnimationEnd");Gn(_m,"onAnimationIteration");Gn(Im,"onAnimationStart");Gn("dblclick","onDoubleClick");Gn("focusin","onFocus");Gn("focusout","onBlur");Gn(Am,"onTransitionEnd");gi("onMouseEnter",["mouseout","mouseover"]);gi("onMouseLeave",["mouseout","mouseover"]);gi("onPointerEnter",["pointerout","pointerover"]);gi("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),kv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function pd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,v1(r,t,void 0,e),e.currentTarget=null}function Dm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==l&&i.isPropagationStopped())break e;pd(i,s,a),l=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,a=s.currentTarget,s=s.listener,u!==l&&i.isPropagationStopped())break e;pd(i,s,a),l=u}}}if(Bo)throw e=ea,Bo=!1,ea=null,e}function pe(e,t){var n=t[ca];n===void 0&&(n=t[ca]=new Set);var r=e+"__bubble";n.has(r)||(jm(t,e,2,!1),n.add(r))}function lu(e,t,n){var r=0;t&&(r|=4),jm(n,e,r,t)}var io="_reactListening"+Math.random().toString(36).slice(2);function gl(e){if(!e[io]){e[io]=!0,$p.forEach(function(n){n!=="selectionchange"&&(kv.has(n)||lu(n,!1,e),lu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[io]||(t[io]=!0,lu("selectionchange",!1,t))}}function jm(e,t,n,r){switch(vm(t)){case 1:var i=D1;break;case 4:i=j1;break;default:i=Cc}n=i.bind(null,t,n,e),i=void 0,!Zu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ou(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ir(s),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}s=s.parentNode}}r=r.return}lm(function(){var a=l,f=vc(n),c=[];e:{var d=Lm.get(e);if(d!==void 0){var h=bc,p=e;switch(e){case"keypress":if(Co(n)===0)break e;case"keydown":case"keyup":h=X1;break;case"focusin":p="focus",h=Zs;break;case"focusout":p="blur",h=Zs;break;case"beforeblur":case"afterblur":h=Zs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=M1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=ev;break;case Nm:case _m:case Im:h=H1;break;case Am:h=nv;break;case"scroll":h=F1;break;case"wheel":h=iv;break;case"copy":case"cut":case"paste":h=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=id}var x=(t&4)!==0,C=!x&&e==="scroll",m=x?d!==null?d+"Capture":null:d;x=[];for(var y=a,g;y!==null;){g=y;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,m!==null&&(b=cl(y,m),b!=null&&x.push(yl(y,b,g)))),C)break;y=y.return}0<x.length&&(d=new h(d,p,null,n,f),c.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Xu&&(p=n.relatedTarget||n.fromElement)&&(ir(p)||p[pn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=a,p=p?ir(p):null,p!==null&&(C=_r(p),p!==C||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=a),h!==p)){if(x=nd,b="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=id,b="onPointerLeave",m="onPointerEnter",y="pointer"),C=h==null?d:Vr(h),g=p==null?d:Vr(p),d=new x(b,y+"leave",h,n,f),d.target=C,d.relatedTarget=g,b=null,ir(f)===a&&(x=new x(m,y+"enter",p,n,f),x.target=g,x.relatedTarget=C,b=x),C=b,h&&p)t:{for(x=h,m=p,y=0,g=x;g;g=jr(g))y++;for(g=0,b=m;b;b=jr(b))g++;for(;0<y-g;)x=jr(x),y--;for(;0<g-y;)m=jr(m),g--;for(;y--;){if(x===m||m!==null&&x===m.alternate)break t;x=jr(x),m=jr(m)}x=null}else x=null;h!==null&&md(c,d,h,x,!1),p!==null&&C!==null&&md(c,C,p,x,!0)}}e:{if(d=a?Vr(a):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var R=fv;else if(sd(d))if(bm)R=mv;else{R=hv;var T=dv}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(R=pv);if(R&&(R=R(e,a))){Em(c,R,n,f);break e}T&&T(e,d,a),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Wu(d,"number",d.value)}switch(T=a?Vr(a):window,e){case"focusin":(sd(T)||T.contentEditable==="true")&&(Hr=T,ia=a,el=null);break;case"focusout":el=ia=Hr=null;break;case"mousedown":la=!0;break;case"contextmenu":case"mouseup":case"dragend":la=!1,dd(c,n,f);break;case"selectionchange":if(xv)break;case"keydown":case"keyup":dd(c,n,f)}var O;if(Pc)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else Ur?Sm(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(km&&n.locale!=="ko"&&(Ur||I!=="onCompositionStart"?I==="onCompositionEnd"&&Ur&&(O=wm()):(jn=f,Ec="value"in jn?jn.value:jn.textContent,Ur=!0)),T=Qo(a,I),0<T.length&&(I=new rd(I,e,null,n,f),c.push({event:I,listeners:T}),O?I.data=O:(O=Cm(n),O!==null&&(I.data=O)))),(O=ov?sv(e,n):uv(e,n))&&(a=Qo(a,"onBeforeInput"),0<a.length&&(f=new rd("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=O))}Dm(c,t)})}function yl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=cl(e,n),l!=null&&r.unshift(yl(e,l,i)),l=cl(e,t),l!=null&&r.push(yl(e,l,i))),e=e.return}return r}function jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function md(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,i?(u=cl(n,l),u!=null&&o.unshift(yl(n,u,s))):i||(u=cl(n,l),u!=null&&o.push(yl(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Sv=/\r\n?/g,Cv=/\u0000|\uFFFD/g;function gd(e){return(typeof e=="string"?e:""+e).replace(Sv,`
|
|
38
|
-
`).replace(Cv,"")}function lo(e,t,n){if(t=gd(t),gd(e)!==t&&n)throw Error(A(425))}function Wo(){}var oa=null,sa=null;function ua(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var aa=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,yd=typeof Promise=="function"?Promise:void 0,bv=typeof queueMicrotask=="function"?queueMicrotask:typeof yd<"u"?function(e){return yd.resolve(null).then(e).catch(Tv)}:aa;function Tv(e){setTimeout(function(){throw e})}function su(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),hl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);hl(t)}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Gt="__reactFiber$"+Pi,xl="__reactProps$"+Pi,pn="__reactContainer$"+Pi,ca="__reactEvents$"+Pi,Pv="__reactListeners$"+Pi,Rv="__reactHandles$"+Pi;function ir(e){var t=e[Gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pn]||n[Gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xd(e);e!==null;){if(n=e[Gt])return n;e=xd(e)}return t}e=n,n=e.parentNode}return null}function jl(e){return e=e[Gt]||e[pn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function ws(e){return e[xl]||null}var fa=[],Qr=-1;function Yn(e){return{current:e}}function me(e){0>Qr||(e.current=fa[Qr],fa[Qr]=null,Qr--)}function de(e,t){Qr++,fa[Qr]=e.current,e.current=t}var Kn={},$e=Yn(Kn),it=Yn(!1),kr=Kn;function yi(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function lt(e){return e=e.childContextTypes,e!=null}function qo(){me(it),me($e)}function vd(e,t,n){if($e.current!==Kn)throw Error(A(168));de($e,t),de(it,n)}function Fm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,d1(e)||"Unknown",i));return ke({},n,r)}function Ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,kr=$e.current,de($e,e),de(it,it.current),!0}function wd(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Fm(e,t,kr),r.__reactInternalMemoizedMergedChildContext=e,me(it),me($e),de($e,e)):me(it),de(it,n)}var rn=null,ks=!1,uu=!1;function zm(e){rn===null?rn=[e]:rn.push(e)}function Ov(e){ks=!0,zm(e)}function Xn(){if(!uu&&rn!==null){uu=!0;var e=0,t=ue;try{var n=rn;for(ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rn=null,ks=!1}catch(i){throw rn!==null&&(rn=rn.slice(e+1)),am(wc,Xn),i}finally{ue=t,uu=!1}}return null}var Wr=[],qr=0,Go=null,Yo=0,Ct=[],Et=0,Sr=null,an=1,cn="";function tr(e,t){Wr[qr++]=Yo,Wr[qr++]=Go,Go=e,Yo=t}function Mm(e,t,n){Ct[Et++]=an,Ct[Et++]=cn,Ct[Et++]=Sr,Sr=e;var r=an;e=cn;var i=32-Ft(r)-1;r&=~(1<<i),n+=1;var l=32-Ft(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,an=1<<32-Ft(t)+i|n<<i|r,cn=l+e}else an=1<<l|n<<i|r,cn=e}function Oc(e){e.return!==null&&(tr(e,1),Mm(e,1,0))}function Nc(e){for(;e===Go;)Go=Wr[--qr],Wr[qr]=null,Yo=Wr[--qr],Wr[qr]=null;for(;e===Sr;)Sr=Ct[--Et],Ct[Et]=null,cn=Ct[--Et],Ct[Et]=null,an=Ct[--Et],Ct[Et]=null}var mt=null,pt=null,xe=!1,jt=null;function Bm(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function kd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,pt=Un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sr!==null?{id:an,overflow:cn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,pt=null,!0):!1;default:return!1}}function da(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ha(e){if(xe){var t=pt;if(t){var n=t;if(!kd(e,t)){if(da(e))throw Error(A(418));t=Un(n.nextSibling);var r=mt;t&&kd(e,t)?Bm(r,n):(e.flags=e.flags&-4097|2,xe=!1,mt=e)}}else{if(da(e))throw Error(A(418));e.flags=e.flags&-4097|2,xe=!1,mt=e}}}function Sd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function oo(e){if(e!==mt)return!1;if(!xe)return Sd(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ua(e.type,e.memoizedProps)),t&&(t=pt)){if(da(e))throw Um(),Error(A(418));for(;t;)Bm(e,t),t=Un(t.nextSibling)}if(Sd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){pt=Un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=mt?Un(e.stateNode.nextSibling):null;return!0}function Um(){for(var e=pt;e;)e=Un(e.nextSibling)}function xi(){pt=mt=null,xe=!1}function _c(e){jt===null?jt=[e]:jt.push(e)}var Nv=yn.ReactCurrentBatchConfig;function Mi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function so(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cd(e){var t=e._init;return t(e._payload)}function Hm(e){function t(m,y){if(e){var g=m.deletions;g===null?(m.deletions=[y],m.flags|=16):g.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=Qn(m,y),m.index=0,m.sibling=null,m}function l(m,y,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<y?(m.flags|=2,y):g):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,y,g,b){return y===null||y.tag!==6?(y=mu(g,m.mode,b),y.return=m,y):(y=i(y,g),y.return=m,y)}function u(m,y,g,b){var R=g.type;return R===Br?f(m,y,g.props.children,b,g.key):y!==null&&(y.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Cn&&Cd(R)===y.type)?(b=i(y,g.props),b.ref=Mi(m,y,g),b.return=m,b):(b=No(g.type,g.key,g.props,null,m.mode,b),b.ref=Mi(m,y,g),b.return=m,b)}function a(m,y,g,b){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=gu(g,m.mode,b),y.return=m,y):(y=i(y,g.children||[]),y.return=m,y)}function f(m,y,g,b,R){return y===null||y.tag!==7?(y=vr(g,m.mode,b,R),y.return=m,y):(y=i(y,g),y.return=m,y)}function c(m,y,g){if(typeof y=="string"&&y!==""||typeof y=="number")return y=mu(""+y,m.mode,g),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yl:return g=No(y.type,y.key,y.props,null,m.mode,g),g.ref=Mi(m,null,y),g.return=m,g;case Mr:return y=gu(y,m.mode,g),y.return=m,y;case Cn:var b=y._init;return c(m,b(y._payload),g)}if(Wi(y)||Li(y))return y=vr(y,m.mode,g,null),y.return=m,y;so(m,y)}return null}function d(m,y,g,b){var R=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return R!==null?null:s(m,y,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Yl:return g.key===R?u(m,y,g,b):null;case Mr:return g.key===R?a(m,y,g,b):null;case Cn:return R=g._init,d(m,y,R(g._payload),b)}if(Wi(g)||Li(g))return R!==null?null:f(m,y,g,b,null);so(m,g)}return null}function h(m,y,g,b,R){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(g)||null,s(y,m,""+b,R);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Yl:return m=m.get(b.key===null?g:b.key)||null,u(y,m,b,R);case Mr:return m=m.get(b.key===null?g:b.key)||null,a(y,m,b,R);case Cn:var T=b._init;return h(m,y,g,T(b._payload),R)}if(Wi(b)||Li(b))return m=m.get(g)||null,f(y,m,b,R,null);so(y,b)}return null}function p(m,y,g,b){for(var R=null,T=null,O=y,I=y=0,F=null;O!==null&&I<g.length;I++){O.index>I?(F=O,O=null):F=O.sibling;var w=d(m,O,g[I],b);if(w===null){O===null&&(O=F);break}e&&O&&w.alternate===null&&t(m,O),y=l(w,y,I),T===null?R=w:T.sibling=w,T=w,O=F}if(I===g.length)return n(m,O),xe&&tr(m,I),R;if(O===null){for(;I<g.length;I++)O=c(m,g[I],b),O!==null&&(y=l(O,y,I),T===null?R=O:T.sibling=O,T=O);return xe&&tr(m,I),R}for(O=r(m,O);I<g.length;I++)F=h(O,m,I,g[I],b),F!==null&&(e&&F.alternate!==null&&O.delete(F.key===null?I:F.key),y=l(F,y,I),T===null?R=F:T.sibling=F,T=F);return e&&O.forEach(function(N){return t(m,N)}),xe&&tr(m,I),R}function x(m,y,g,b){var R=Li(g);if(typeof R!="function")throw Error(A(150));if(g=R.call(g),g==null)throw Error(A(151));for(var T=R=null,O=y,I=y=0,F=null,w=g.next();O!==null&&!w.done;I++,w=g.next()){O.index>I?(F=O,O=null):F=O.sibling;var N=d(m,O,w.value,b);if(N===null){O===null&&(O=F);break}e&&O&&N.alternate===null&&t(m,O),y=l(N,y,I),T===null?R=N:T.sibling=N,T=N,O=F}if(w.done)return n(m,O),xe&&tr(m,I),R;if(O===null){for(;!w.done;I++,w=g.next())w=c(m,w.value,b),w!==null&&(y=l(w,y,I),T===null?R=w:T.sibling=w,T=w);return xe&&tr(m,I),R}for(O=r(m,O);!w.done;I++,w=g.next())w=h(O,m,I,w.value,b),w!==null&&(e&&w.alternate!==null&&O.delete(w.key===null?I:w.key),y=l(w,y,I),T===null?R=w:T.sibling=w,T=w);return e&&O.forEach(function(j){return t(m,j)}),xe&&tr(m,I),R}function C(m,y,g,b){if(typeof g=="object"&&g!==null&&g.type===Br&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Yl:e:{for(var R=g.key,T=y;T!==null;){if(T.key===R){if(R=g.type,R===Br){if(T.tag===7){n(m,T.sibling),y=i(T,g.props.children),y.return=m,m=y;break e}}else if(T.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Cn&&Cd(R)===T.type){n(m,T.sibling),y=i(T,g.props),y.ref=Mi(m,T,g),y.return=m,m=y;break e}n(m,T);break}else t(m,T);T=T.sibling}g.type===Br?(y=vr(g.props.children,m.mode,b,g.key),y.return=m,m=y):(b=No(g.type,g.key,g.props,null,m.mode,b),b.ref=Mi(m,y,g),b.return=m,m=b)}return o(m);case Mr:e:{for(T=g.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(m,y.sibling),y=i(y,g.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=gu(g,m.mode,b),y.return=m,m=y}return o(m);case Cn:return T=g._init,C(m,y,T(g._payload),b)}if(Wi(g))return p(m,y,g,b);if(Li(g))return x(m,y,g,b);so(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,g),y.return=m,m=y):(n(m,y),y=mu(g,m.mode,b),y.return=m,m=y),o(m)):n(m,y)}return C}var vi=Hm(!0),$m=Hm(!1),Xo=Yn(null),Jo=null,Kr=null,Ic=null;function Ac(){Ic=Kr=Jo=null}function Lc(e){var t=Xo.current;me(Xo),e._currentValue=t}function pa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ti(e,t){Jo=e,Ic=Kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Ic!==e)if(e={context:e,memoizedValue:t,next:null},Kr===null){if(Jo===null)throw Error(A(308));Kr=e,Jo.dependencies={lanes:0,firstContext:e}}else Kr=Kr.next=e;return t}var lr=null;function Dc(e){lr===null?lr=[e]:lr.push(e)}function Vm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Dc(t)):(n.next=i.next,i.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var En=!1;function jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,mn(e,n)}return i=r.interleaved,i===null?(t.next=t,Dc(r)):(t.next=i.next,i.next=t),r.interleaved=t,mn(e,n)}function Eo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}function Ed(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,r){var i=e.updateQueue;En=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,o===null?l=a:o.next=a,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(l!==null){var c=i.baseState;o=0,f=a=u=null,s=l;do{var d=s.lane,h=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,x=s;switch(d=t,h=n,x.tag){case 1:if(p=x.payload,typeof p=="function"){c=p.call(h,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=x.payload,d=typeof p=="function"?p.call(h,c,d):p,d==null)break e;c=ke({},c,d);break e;case 2:En=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=h,u=c):f=f.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Er|=o,e.lanes=o,e.memoizedState=c}}function bd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(A(191,i));i.call(r)}}}var Fl={},Xt=Yn(Fl),vl=Yn(Fl),wl=Yn(Fl);function or(e){if(e===Fl)throw Error(A(174));return e}function Fc(e,t){switch(de(wl,t),de(vl,e),de(Xt,Fl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ku(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ku(t,e)}me(Xt),de(Xt,t)}function wi(){me(Xt),me(vl),me(wl)}function Wm(e){or(wl.current);var t=or(Xt.current),n=Ku(t,e.type);t!==n&&(de(vl,e),de(Xt,n))}function zc(e){vl.current===e&&(me(Xt),me(vl))}var ve=Yn(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var au=[];function Mc(){for(var e=0;e<au.length;e++)au[e]._workInProgressVersionPrimary=null;au.length=0}var bo=yn.ReactCurrentDispatcher,cu=yn.ReactCurrentBatchConfig,Cr=0,we=null,Re=null,Ie=null,ts=!1,tl=!1,kl=0,_v=0;function Fe(){throw Error(A(321))}function Bc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Uc(e,t,n,r,i,l){if(Cr=l,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bo.current=e===null||e.memoizedState===null?Dv:jv,e=n(r,i),tl){l=0;do{if(tl=!1,kl=0,25<=l)throw Error(A(301));l+=1,Ie=Re=null,t.updateQueue=null,bo.current=Fv,e=n(r,i)}while(tl)}if(bo.current=ns,t=Re!==null&&Re.next!==null,Cr=0,Ie=Re=we=null,ts=!1,t)throw Error(A(300));return e}function Hc(){var e=kl!==0;return kl=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?we.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Ot(){if(Re===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ie===null?we.memoizedState:Ie.next;if(t!==null)Ie=t,Re=e;else{if(e===null)throw Error(A(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ie===null?we.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Sl(e,t){return typeof t=="function"?t(e):t}function fu(e){var t=Ot(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Re,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,u=null,a=l;do{var f=a.lane;if((Cr&f)===f)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=c,o=r):u=u.next=c,we.lanes|=f,Er|=f}a=a.next}while(a!==null&&a!==l);u===null?o=r:u.next=s,Bt(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,we.lanes|=l,Er|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function du(e){var t=Ot(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Bt(l,t.memoizedState)||(rt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function qm(){}function Km(e,t){var n=we,r=Ot(),i=t(),l=!Bt(r.memoizedState,i);if(l&&(r.memoizedState=i,rt=!0),r=r.queue,$c(Xm.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Cl(9,Ym.bind(null,n,r,i,t),void 0,null),Ae===null)throw Error(A(349));Cr&30||Gm(n,t,i)}return i}function Gm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ym(e,t,n,r){t.value=n,t.getSnapshot=r,Jm(t)&&Zm(e)}function Xm(e,t,n){return n(function(){Jm(t)&&Zm(e)})}function Jm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function Zm(e){var t=mn(e,1);t!==null&&zt(t,e,1,-1)}function Td(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:e},t.queue=e,e=e.dispatch=Lv.bind(null,we,e),[t.memoizedState,e]}function Cl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function eg(){return Ot().memoizedState}function To(e,t,n,r){var i=Vt();we.flags|=e,i.memoizedState=Cl(1|t,n,void 0,r===void 0?null:r)}function Ss(e,t,n,r){var i=Ot();r=r===void 0?null:r;var l=void 0;if(Re!==null){var o=Re.memoizedState;if(l=o.destroy,r!==null&&Bc(r,o.deps)){i.memoizedState=Cl(t,n,l,r);return}}we.flags|=e,i.memoizedState=Cl(1|t,n,l,r)}function Pd(e,t){return To(8390656,8,e,t)}function $c(e,t){return Ss(2048,8,e,t)}function tg(e,t){return Ss(4,2,e,t)}function ng(e,t){return Ss(4,4,e,t)}function rg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ig(e,t,n){return n=n!=null?n.concat([e]):null,Ss(4,4,rg.bind(null,t,e),n)}function Vc(){}function lg(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function og(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sg(e,t,n){return Cr&21?(Bt(n,t)||(n=dm(),we.lanes|=n,Er|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n)}function Iv(e,t){var n=ue;ue=n!==0&&4>n?n:4,e(!0);var r=cu.transition;cu.transition={};try{e(!1),t()}finally{ue=n,cu.transition=r}}function ug(){return Ot().memoizedState}function Av(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ag(e))cg(t,n);else if(n=Vm(e,t,n,r),n!==null){var i=Ge();zt(n,e,r,i),fg(n,t,r)}}function Lv(e,t,n){var r=Vn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ag(e))cg(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,Bt(s,o)){var u=t.interleaved;u===null?(i.next=i,Dc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Vm(e,t,i,r),n!==null&&(i=Ge(),zt(n,e,r,i),fg(n,t,r))}}function ag(e){var t=e.alternate;return e===we||t!==null&&t===we}function cg(e,t){tl=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}var ns={readContext:Rt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Dv={readContext:Rt,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,rg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Av.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Td,useDebugValue:Vc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Td(!1),t=e[0];return e=Iv.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Vt();if(xe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ae===null)throw Error(A(349));Cr&30||Gm(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Pd(Xm.bind(null,r,l,e),[e]),r.flags|=2048,Cl(9,Ym.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Ae.identifierPrefix;if(xe){var n=cn,r=an;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=_v++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jv={readContext:Rt,useCallback:lg,useContext:Rt,useEffect:$c,useImperativeHandle:ig,useInsertionEffect:tg,useLayoutEffect:ng,useMemo:og,useReducer:fu,useRef:eg,useState:function(){return fu(Sl)},useDebugValue:Vc,useDeferredValue:function(e){var t=Ot();return sg(t,Re.memoizedState,e)},useTransition:function(){var e=fu(Sl)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:qm,useSyncExternalStore:Km,useId:ug,unstable_isNewReconciler:!1},Fv={readContext:Rt,useCallback:lg,useContext:Rt,useEffect:$c,useImperativeHandle:ig,useInsertionEffect:tg,useLayoutEffect:ng,useMemo:og,useReducer:du,useRef:eg,useState:function(){return du(Sl)},useDebugValue:Vc,useDeferredValue:function(e){var t=Ot();return Re===null?t.memoizedState=e:sg(t,Re.memoizedState,e)},useTransition:function(){var e=du(Sl)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:qm,useSyncExternalStore:Km,useId:ug,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ma(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cs={isMounted:function(e){return(e=e._reactInternals)?_r(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=Vn(e),l=fn(r,i);l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,i),t!==null&&(zt(t,e,i,r),Eo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=Vn(e),l=fn(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,i),t!==null&&(zt(t,e,i,r),Eo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=Vn(e),i=fn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Hn(e,i,r),t!==null&&(zt(t,e,r,n),Eo(t,e,r))}};function Rd(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ml(n,r)||!ml(i,l):!0}function dg(e,t,n){var r=!1,i=Kn,l=t.contextType;return typeof l=="object"&&l!==null?l=Rt(l):(i=lt(t)?kr:$e.current,r=t.contextTypes,l=(r=r!=null)?yi(e,i):Kn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Od(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},jc(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Rt(l):(l=lt(t)?kr:$e.current,i.context=yi(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(ma(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Zo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ki(e,t){try{var n="",r=t;do n+=f1(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
|
-
Error generating stack: `+l.message+`
|
|
40
|
-
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function hu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ya(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zv=typeof WeakMap=="function"?WeakMap:Map;function hg(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){is||(is=!0,Pa=r),ya(e,t)},n}function pg(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ya(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ya(e,t),typeof r!="function"&&($n===null?$n=new Set([this]):$n.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Nd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Jv.bind(null,e,t,n),t.then(e,e))}function _d(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Id(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Hn(n,t,1))),n.lanes|=1),e)}var Mv=yn.ReactCurrentOwner,rt=!1;function We(e,t,n,r){t.child=e===null?$m(t,null,n,r):vi(t,e.child,n,r)}function Ad(e,t,n,r,i){n=n.render;var l=t.ref;return ti(t,i),r=Uc(e,t,n,r,l,i),n=Hc(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gn(e,t,i)):(xe&&n&&Oc(t),t.flags|=1,We(e,t,r,i),t.child)}function Ld(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Jc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,mg(e,t,l,r,i)):(e=No(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ml,n(o,r)&&e.ref===t.ref)return gn(e,t,i)}return t.flags|=1,e=Qn(l,r),e.ref=t.ref,e.return=t,t.child=e}function mg(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ml(l,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(rt=!0);else return t.lanes=e.lanes,gn(e,t,i)}return xa(e,t,n,r,i)}function gg(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Yr,dt),dt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Yr,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,de(Yr,dt),dt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,de(Yr,dt),dt|=r;return We(e,t,i,n),t.child}function yg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xa(e,t,n,r,i){var l=lt(n)?kr:$e.current;return l=yi(t,l),ti(t,i),n=Uc(e,t,n,r,l,i),r=Hc(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gn(e,t,i)):(xe&&r&&Oc(t),t.flags|=1,We(e,t,n,i),t.child)}function Dd(e,t,n,r,i){if(lt(n)){var l=!0;Ko(t)}else l=!1;if(ti(t,i),t.stateNode===null)Po(e,t),dg(t,n,r),ga(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=Rt(a):(a=lt(n)?kr:$e.current,a=yi(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Od(t,o,r,a),En=!1;var d=t.memoizedState;o.state=d,Zo(t,r,o,i),u=t.memoizedState,s!==r||d!==u||it.current||En?(typeof f=="function"&&(ma(t,n,f,r),u=t.memoizedState),(s=En||Rd(t,n,s,r,d,u,a))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Qm(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:It(t.type,s),o.props=a,c=t.pendingProps,d=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Rt(u):(u=lt(n)?kr:$e.current,u=yi(t,u));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==u)&&Od(t,o,r,u),En=!1,d=t.memoizedState,o.state=d,Zo(t,r,o,i);var p=t.memoizedState;s!==c||d!==p||it.current||En?(typeof h=="function"&&(ma(t,n,h,r),p=t.memoizedState),(a=En||Rd(t,n,a,r,d,p,u)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=u,r=a):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return va(e,t,n,r,l,i)}function va(e,t,n,r,i,l){yg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&wd(t,n,!1),gn(e,t,l);r=t.stateNode,Mv.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vi(t,e.child,null,l),t.child=vi(t,null,s,l)):We(e,t,s,l),t.memoizedState=r.state,i&&wd(t,n,!0),t.child}function xg(e){var t=e.stateNode;t.pendingContext?vd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vd(e,t.context,!1),Fc(e,t.containerInfo)}function jd(e,t,n,r,i){return xi(),_c(i),t.flags|=256,We(e,t,n,r),t.child}var wa={dehydrated:null,treeContext:null,retryLane:0};function ka(e){return{baseLanes:e,cachePool:null,transitions:null}}function vg(e,t,n){var r=t.pendingProps,i=ve.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),de(ve,i&1),e===null)return ha(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Ts(o,r,0,null),e=vr(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ka(n),t.memoizedState=wa,e):Qc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Bv(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=Qn(s,l):(l=vr(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?ka(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=wa,r}return l=e.child,e=l.sibling,r=Qn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qc(e,t){return t=Ts({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uo(e,t,n,r){return r!==null&&_c(r),vi(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bv(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=hu(Error(A(422))),uo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Ts({mode:"visible",children:r.children},i,0,null),l=vr(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&vi(t,e.child,null,o),t.child.memoizedState=ka(o),t.memoizedState=wa,l);if(!(t.mode&1))return uo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(A(419)),r=hu(l,r,void 0),uo(e,t,o,r)}if(s=(o&e.childLanes)!==0,rt||s){if(r=Ae,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,mn(e,i),zt(r,e,i,-1))}return Xc(),r=hu(Error(A(421))),uo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Zv.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,pt=Un(i.nextSibling),mt=t,xe=!0,jt=null,e!==null&&(Ct[Et++]=an,Ct[Et++]=cn,Ct[Et++]=Sr,an=e.id,cn=e.overflow,Sr=t),t=Qc(t,r.children),t.flags|=4096,t)}function Fd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pa(e.return,t,n)}function pu(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function wg(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(We(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fd(e,n,t);else if(e.tag===19)Fd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ve,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&es(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),pu(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&es(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}pu(t,!0,n,null,l);break;case"together":pu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Po(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Er|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Qn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Uv(e,t,n){switch(t.tag){case 3:xg(t),xi();break;case 5:Wm(t);break;case 1:lt(t.type)&&Ko(t);break;case 4:Fc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;de(Xo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?vg(e,t,n):(de(ve,ve.current&1),e=gn(e,t,n),e!==null?e.sibling:null);de(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return wg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,gg(e,t,n)}return gn(e,t,n)}var kg,Sa,Sg,Cg;kg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Sa=function(){};Sg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,or(Xt.current);var l=null;switch(n){case"input":i=Vu(e,i),r=Vu(e,r),l=[];break;case"select":i=ke({},i,{value:void 0}),r=ke({},r,{value:void 0}),l=[];break;case"textarea":i=qu(e,i),r=qu(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wo)}Gu(n,r);var o;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var s=i[a];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ul.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var u=r[a];if(s=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(l=l||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ul.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&pe("scroll",e),l||s===u||(l=[])):(l=l||[]).push(a,u))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};Cg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bi(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hv(e,t,n){var r=t.pendingProps;switch(Nc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return lt(t.type)&&qo(),ze(t),null;case 3:return r=t.stateNode,wi(),me(it),me($e),Mc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Na(jt),jt=null))),Sa(e,t),ze(t),null;case 5:zc(t);var i=or(wl.current);if(n=t.type,e!==null&&t.stateNode!=null)Sg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return ze(t),null}if(e=or(Xt.current),oo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Gt]=t,r[xl]=l,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(i=0;i<Ki.length;i++)pe(Ki[i],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Wf(r,l),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},pe("invalid",r);break;case"textarea":Kf(r,l),pe("invalid",r)}Gu(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&lo(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&lo(r.textContent,s,e),i=["children",""+s]):ul.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&pe("scroll",r)}switch(n){case"input":Xl(r),qf(r,l,!0);break;case"textarea":Xl(r),Gf(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Wo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Gt]=t,e[xl]=r,kg(e,t,!1,!1),t.stateNode=e;e:{switch(o=Yu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ki.length;i++)pe(Ki[i],e);i=r;break;case"source":pe("error",e),i=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),i=r;break;case"details":pe("toggle",e),i=r;break;case"input":Wf(e,r),i=Vu(e,r),pe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ke({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Kf(e,r),i=qu(e,r),pe("invalid",e);break;default:i=r}Gu(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var u=s[l];l==="style"?em(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Jp(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&al(e,u):typeof u=="number"&&al(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ul.hasOwnProperty(l)?u!=null&&l==="onScroll"&&pe("scroll",e):u!=null&&mc(e,l,u,o))}switch(n){case"input":Xl(e),qf(e,r,!1);break;case"textarea":Xl(e),Gf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Xr(e,!!r.multiple,l,!1):r.defaultValue!=null&&Xr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Wo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ze(t),null;case 6:if(e&&t.stateNode!=null)Cg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=or(wl.current),or(Xt.current),oo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Gt]=t,(l=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:lo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lo(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gt]=t,t.stateNode=r}return ze(t),null;case 13:if(me(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&pt!==null&&t.mode&1&&!(t.flags&128))Um(),xi(),t.flags|=98560,l=!1;else if(l=oo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(A(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(A(317));l[Gt]=t}else xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),l=!1}else jt!==null&&(Na(jt),jt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Ne===0&&(Ne=3):Xc())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return wi(),Sa(e,t),e===null&&gl(t.stateNode.containerInfo),ze(t),null;case 10:return Lc(t.type._context),ze(t),null;case 17:return lt(t.type)&&qo(),ze(t),null;case 19:if(me(ve),l=t.memoizedState,l===null)return ze(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Bi(l,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=es(e),o!==null){for(t.flags|=128,Bi(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ve,ve.current&1|2),t.child}e=e.sibling}l.tail!==null&&Ee()>Si&&(t.flags|=128,r=!0,Bi(l,!1),t.lanes=4194304)}else{if(!r)if(e=es(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!xe)return ze(t),null}else 2*Ee()-l.renderingStartTime>Si&&n!==1073741824&&(t.flags|=128,r=!0,Bi(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ee(),t.sibling=null,n=ve.current,de(ve,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function $v(e,t){switch(Nc(t),t.tag){case 1:return lt(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wi(),me(it),me($e),Mc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zc(t),null;case 13:if(me(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ve),null;case 4:return wi(),null;case 10:return Lc(t.type._context),null;case 22:case 23:return Yc(),null;case 24:return null;default:return null}}var ao=!1,Be=!1,Vv=typeof WeakSet=="function"?WeakSet:Set,B=null;function Gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Ca(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var zd=!1;function Qv(e,t){if(oa=$o,e=Rm(),Rc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(s=o+i),c!==l||r!==0&&c.nodeType!==3||(u=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++a===i&&(s=o),d===l&&++f===r&&(u=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(sa={focusedElem:e,selectionRange:n},$o=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var x=p.memoizedProps,C=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:It(t.type,x),C);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(b){Ce(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return p=zd,zd=!1,p}function nl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Ca(t,n,l)}i=i.next}while(i!==r)}}function Es(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ea(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gt],delete t[xl],delete t[ca],delete t[Pv],delete t[Rv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bg(e){return e.tag===5||e.tag===3||e.tag===4}function Md(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ba(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wo));else if(r!==4&&(e=e.child,e!==null))for(ba(e,t,n),e=e.sibling;e!==null;)ba(e,t,n),e=e.sibling}function Ta(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ta(e,t,n),e=e.sibling;e!==null;)Ta(e,t,n),e=e.sibling}var Le=null,Dt=!1;function wn(e,t,n){for(n=n.child;n!==null;)Tg(e,t,n),n=n.sibling}function Tg(e,t,n){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(gs,n)}catch{}switch(n.tag){case 5:Be||Gr(n,t);case 6:var r=Le,i=Dt;Le=null,wn(e,t,n),Le=r,Dt=i,Le!==null&&(Dt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Dt?(e=Le,n=n.stateNode,e.nodeType===8?su(e.parentNode,n):e.nodeType===1&&su(e,n),hl(e)):su(Le,n.stateNode));break;case 4:r=Le,i=Dt,Le=n.stateNode.containerInfo,Dt=!0,wn(e,t,n),Le=r,Dt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ca(n,t,o),i=i.next}while(i!==r)}wn(e,t,n);break;case 1:if(!Be&&(Gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ce(n,t,s)}wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,wn(e,t,n),Be=r):wn(e,t,n);break;default:wn(e,t,n)}}function Bd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vv),t.forEach(function(r){var i=ew.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Le=s.stateNode,Dt=!1;break e;case 3:Le=s.stateNode.containerInfo,Dt=!0;break e;case 4:Le=s.stateNode.containerInfo,Dt=!0;break e}s=s.return}if(Le===null)throw Error(A(160));Tg(l,o,i),Le=null,Dt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(a){Ce(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),$t(e),r&4){try{nl(3,e,e.return),Es(3,e)}catch(x){Ce(e,e.return,x)}try{nl(5,e,e.return)}catch(x){Ce(e,e.return,x)}}break;case 1:_t(t,e),$t(e),r&512&&n!==null&&Gr(n,n.return);break;case 5:if(_t(t,e),$t(e),r&512&&n!==null&&Gr(n,n.return),e.flags&32){var i=e.stateNode;try{al(i,"")}catch(x){Ce(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Gp(i,l),Yu(s,o);var a=Yu(s,l);for(o=0;o<u.length;o+=2){var f=u[o],c=u[o+1];f==="style"?em(i,c):f==="dangerouslySetInnerHTML"?Jp(i,c):f==="children"?al(i,c):mc(i,f,c,a)}switch(s){case"input":Qu(i,l);break;case"textarea":Yp(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?Xr(i,!!l.multiple,h,!1):d!==!!l.multiple&&(l.defaultValue!=null?Xr(i,!!l.multiple,l.defaultValue,!0):Xr(i,!!l.multiple,l.multiple?[]:"",!1))}i[xl]=l}catch(x){Ce(e,e.return,x)}}break;case 6:if(_t(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(A(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){Ce(e,e.return,x)}}break;case 3:if(_t(t,e),$t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(x){Ce(e,e.return,x)}break;case 4:_t(t,e),$t(e);break;case 13:_t(t,e),$t(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Kc=Ee())),r&4&&Bd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(a=Be)||f,_t(t,e),Be=a):_t(t,e),$t(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!f&&e.mode&1)for(B=e,f=e.child;f!==null;){for(c=B=f;B!==null;){switch(d=B,h=d.child,d.tag){case 0:case 11:case 14:case 15:nl(4,d,d.return);break;case 1:Gr(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(x){Ce(r,n,x)}}break;case 5:Gr(d,d.return);break;case 22:if(d.memoizedState!==null){Hd(c);continue}}h!==null?(h.return=d,B=h):Hd(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=c.stateNode,u=c.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Zp("display",o))}catch(x){Ce(e,e.return,x)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(x){Ce(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:_t(t,e),$t(e),r&4&&Bd(e);break;case 21:break;default:_t(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bg(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(al(i,""),r.flags&=-33);var l=Md(e);Ta(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Md(e);ba(e,s,o);break;default:throw Error(A(161))}}catch(u){Ce(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wv(e,t,n){B=e,Rg(e)}function Rg(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var i=B,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ao;if(!o){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Be;s=ao;var a=Be;if(ao=o,(Be=u)&&!a)for(B=i;B!==null;)o=B,u=o.child,o.tag===22&&o.memoizedState!==null?$d(i):u!==null?(u.return=o,B=u):$d(i);for(;l!==null;)B=l,Rg(l),l=l.sibling;B=i,ao=s,Be=a}Ud(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,B=l):Ud(e)}}function Ud(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Es(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&bd(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bd(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&hl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Be||t.flags&512&&Ea(t)}catch(d){Ce(t,t.return,d)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Hd(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function $d(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Es(4,t)}catch(u){Ce(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){Ce(t,i,u)}}var l=t.return;try{Ea(t)}catch(u){Ce(t,l,u)}break;case 5:var o=t.return;try{Ea(t)}catch(u){Ce(t,o,u)}}}catch(u){Ce(t,t.return,u)}if(t===e){B=null;break}var s=t.sibling;if(s!==null){s.return=t.return,B=s;break}B=t.return}}var qv=Math.ceil,rs=yn.ReactCurrentDispatcher,Wc=yn.ReactCurrentOwner,Pt=yn.ReactCurrentBatchConfig,oe=0,Ae=null,Pe=null,De=0,dt=0,Yr=Yn(0),Ne=0,El=null,Er=0,bs=0,qc=0,rl=null,nt=null,Kc=0,Si=1/0,nn=null,is=!1,Pa=null,$n=null,co=!1,Fn=null,ls=0,il=0,Ra=null,Ro=-1,Oo=0;function Ge(){return oe&6?Ee():Ro!==-1?Ro:Ro=Ee()}function Vn(e){return e.mode&1?oe&2&&De!==0?De&-De:Nv.transition!==null?(Oo===0&&(Oo=dm()),Oo):(e=ue,e!==0||(e=window.event,e=e===void 0?16:vm(e.type)),e):1}function zt(e,t,n,r){if(50<il)throw il=0,Ra=null,Error(A(185));Ll(e,n,r),(!(oe&2)||e!==Ae)&&(e===Ae&&(!(oe&2)&&(bs|=n),Ne===4&&Tn(e,De)),ot(e,r),n===1&&oe===0&&!(t.mode&1)&&(Si=Ee()+500,ks&&Xn()))}function ot(e,t){var n=e.callbackNode;N1(e,t);var r=Ho(e,e===Ae?De:0);if(r===0)n!==null&&Jf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jf(n),t===1)e.tag===0?Ov(Vd.bind(null,e)):zm(Vd.bind(null,e)),bv(function(){!(oe&6)&&Xn()}),n=null;else{switch(hm(r)){case 1:n=wc;break;case 4:n=cm;break;case 16:n=Uo;break;case 536870912:n=fm;break;default:n=Uo}n=jg(n,Og.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Og(e,t){if(Ro=-1,Oo=0,oe&6)throw Error(A(327));var n=e.callbackNode;if(ni()&&e.callbackNode!==n)return null;var r=Ho(e,e===Ae?De:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=os(e,r);else{t=r;var i=oe;oe|=2;var l=_g();(Ae!==e||De!==t)&&(nn=null,Si=Ee()+500,xr(e,t));do try{Yv();break}catch(s){Ng(e,s)}while(!0);Ac(),rs.current=l,oe=i,Pe!==null?t=0:(Ae=null,De=0,t=Ne)}if(t!==0){if(t===2&&(i=ta(e),i!==0&&(r=i,t=Oa(e,i))),t===1)throw n=El,xr(e,0),Tn(e,r),ot(e,Ee()),n;if(t===6)Tn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Kv(i)&&(t=os(e,r),t===2&&(l=ta(e),l!==0&&(r=l,t=Oa(e,l))),t===1))throw n=El,xr(e,0),Tn(e,r),ot(e,Ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:nr(e,nt,nn);break;case 3:if(Tn(e,r),(r&130023424)===r&&(t=Kc+500-Ee(),10<t)){if(Ho(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=aa(nr.bind(null,e,nt,nn),t);break}nr(e,nt,nn);break;case 4:if(Tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ft(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qv(r/1960))-r,10<r){e.timeoutHandle=aa(nr.bind(null,e,nt,nn),r);break}nr(e,nt,nn);break;case 5:nr(e,nt,nn);break;default:throw Error(A(329))}}}return ot(e,Ee()),e.callbackNode===n?Og.bind(null,e):null}function Oa(e,t){var n=rl;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=os(e,t),e!==2&&(t=nt,nt=n,t!==null&&Na(t)),e}function Na(e){nt===null?nt=e:nt.push.apply(nt,e)}function Kv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Bt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tn(e,t){for(t&=~qc,t&=~bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function Vd(e){if(oe&6)throw Error(A(327));ni();var t=Ho(e,0);if(!(t&1))return ot(e,Ee()),null;var n=os(e,t);if(e.tag!==0&&n===2){var r=ta(e);r!==0&&(t=r,n=Oa(e,r))}if(n===1)throw n=El,xr(e,0),Tn(e,t),ot(e,Ee()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,nt,nn),ot(e,Ee()),null}function Gc(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Si=Ee()+500,ks&&Xn())}}function br(e){Fn!==null&&Fn.tag===0&&!(oe&6)&&ni();var t=oe;oe|=1;var n=Pt.transition,r=ue;try{if(Pt.transition=null,ue=1,e)return e()}finally{ue=r,Pt.transition=n,oe=t,!(oe&6)&&Xn()}}function Yc(){dt=Yr.current,me(Yr)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ev(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Nc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qo();break;case 3:wi(),me(it),me($e),Mc();break;case 5:zc(r);break;case 4:wi();break;case 13:me(ve);break;case 19:me(ve);break;case 10:Lc(r.type._context);break;case 22:case 23:Yc()}n=n.return}if(Ae=e,Pe=e=Qn(e.current,null),De=dt=t,Ne=0,El=null,qc=bs=Er=0,nt=rl=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}lr=null}return e}function Ng(e,t){do{var n=Pe;try{if(Ac(),bo.current=ns,ts){for(var r=we.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ts=!1}if(Cr=0,Ie=Re=we=null,tl=!1,kl=0,Wc.current=null,n===null||n.return===null){Ne=1,El=t,Pe=null;break}e:{var l=e,o=n.return,s=n,u=t;if(t=De,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=_d(o);if(h!==null){h.flags&=-257,Id(h,o,s,l,t),h.mode&1&&Nd(l,a,t),t=h,u=a;var p=t.updateQueue;if(p===null){var x=new Set;x.add(u),t.updateQueue=x}else p.add(u);break e}else{if(!(t&1)){Nd(l,a,t),Xc();break e}u=Error(A(426))}}else if(xe&&s.mode&1){var C=_d(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Id(C,o,s,l,t),_c(ki(u,s));break e}}l=u=ki(u,s),Ne!==4&&(Ne=2),rl===null?rl=[l]:rl.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=hg(l,u,t);Ed(l,m);break e;case 1:s=u;var y=l.type,g=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&($n===null||!$n.has(g)))){l.flags|=65536,t&=-t,l.lanes|=t;var b=pg(l,s,t);Ed(l,b);break e}}l=l.return}while(l!==null)}Ag(n)}catch(R){t=R,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function _g(){var e=rs.current;return rs.current=ns,e===null?ns:e}function Xc(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Ae===null||!(Er&268435455)&&!(bs&268435455)||Tn(Ae,De)}function os(e,t){var n=oe;oe|=2;var r=_g();(Ae!==e||De!==t)&&(nn=null,xr(e,t));do try{Gv();break}catch(i){Ng(e,i)}while(!0);if(Ac(),oe=n,rs.current=r,Pe!==null)throw Error(A(261));return Ae=null,De=0,Ne}function Gv(){for(;Pe!==null;)Ig(Pe)}function Yv(){for(;Pe!==null&&!k1();)Ig(Pe)}function Ig(e){var t=Dg(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?Ag(e):Pe=t,Wc.current=null}function Ag(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$v(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Pe=null;return}}else if(n=Hv(n,t,dt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ne===0&&(Ne=5)}function nr(e,t,n){var r=ue,i=Pt.transition;try{Pt.transition=null,ue=1,Xv(e,t,n,r)}finally{Pt.transition=i,ue=r}return null}function Xv(e,t,n,r){do ni();while(Fn!==null);if(oe&6)throw Error(A(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(_1(e,l),e===Ae&&(Pe=Ae=null,De=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||co||(co=!0,jg(Uo,function(){return ni(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Pt.transition,Pt.transition=null;var o=ue;ue=1;var s=oe;oe|=4,Wc.current=null,Qv(e,n),Pg(n,e),yv(sa),$o=!!oa,sa=oa=null,e.current=n,Wv(n),S1(),oe=s,ue=o,Pt.transition=l}else e.current=n;if(co&&(co=!1,Fn=e,ls=i),l=e.pendingLanes,l===0&&($n=null),b1(n.stateNode),ot(e,Ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(is)throw is=!1,e=Pa,Pa=null,e;return ls&1&&e.tag!==0&&ni(),l=e.pendingLanes,l&1?e===Ra?il++:(il=0,Ra=e):il=0,Xn(),null}function ni(){if(Fn!==null){var e=hm(ls),t=Pt.transition,n=ue;try{if(Pt.transition=null,ue=16>e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,ls=0,oe&6)throw Error(A(331));var i=oe;for(oe|=4,B=e.current;B!==null;){var l=B,o=l.child;if(B.flags&16){var s=l.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(B=a;B!==null;){var f=B;switch(f.tag){case 0:case 11:case 15:nl(8,f,l)}var c=f.child;if(c!==null)c.return=f,B=c;else for(;B!==null;){f=B;var d=f.sibling,h=f.return;if(Eg(f),f===a){B=null;break}if(d!==null){d.return=h,B=d;break}B=h}}}var p=l.alternate;if(p!==null){var x=p.child;if(x!==null){p.child=null;do{var C=x.sibling;x.sibling=null,x=C}while(x!==null)}}B=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,B=o;else e:for(;B!==null;){if(l=B,l.flags&2048)switch(l.tag){case 0:case 11:case 15:nl(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,B=m;break e}B=l.return}}var y=e.current;for(B=y;B!==null;){o=B;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,B=g;else e:for(o=y;B!==null;){if(s=B,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Es(9,s)}}catch(R){Ce(s,s.return,R)}if(s===o){B=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,B=b;break e}B=s.return}}if(oe=i,Xn(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(gs,e)}catch{}r=!0}return r}finally{ue=n,Pt.transition=t}}return!1}function Qd(e,t,n){t=ki(n,t),t=hg(e,t,1),e=Hn(e,t,1),t=Ge(),e!==null&&(Ll(e,1,t),ot(e,t))}function Ce(e,t,n){if(e.tag===3)Qd(e,e,n);else for(;t!==null;){if(t.tag===3){Qd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))){e=ki(n,e),e=pg(t,e,1),t=Hn(t,e,1),e=Ge(),t!==null&&(Ll(t,1,e),ot(t,e));break}}t=t.return}}function Jv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(De&n)===n&&(Ne===4||Ne===3&&(De&130023424)===De&&500>Ee()-Kc?xr(e,0):qc|=n),ot(e,t)}function Lg(e,t){t===0&&(e.mode&1?(t=eo,eo<<=1,!(eo&130023424)&&(eo=4194304)):t=1);var n=Ge();e=mn(e,t),e!==null&&(Ll(e,t,n),ot(e,n))}function Zv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lg(e,n)}function ew(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Lg(e,n)}var Dg;Dg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,Uv(e,t,n);rt=!!(e.flags&131072)}else rt=!1,xe&&t.flags&1048576&&Mm(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Po(e,t),e=t.pendingProps;var i=yi(t,$e.current);ti(t,n),i=Uc(null,t,r,e,i,n);var l=Hc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(l=!0,Ko(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jc(t),i.updater=Cs,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=va(null,t,r,!0,l,n)):(t.tag=0,xe&&l&&Oc(t),We(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Po(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=nw(r),e=It(r,e),i){case 0:t=xa(null,t,r,e,n);break e;case 1:t=Dd(null,t,r,e,n);break e;case 11:t=Ad(null,t,r,e,n);break e;case 14:t=Ld(null,t,r,It(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),xa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Dd(e,t,r,i,n);case 3:e:{if(xg(t),e===null)throw Error(A(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Qm(e,t),Zo(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=ki(Error(A(423)),t),t=jd(e,t,r,n,i);break e}else if(r!==i){i=ki(Error(A(424)),t),t=jd(e,t,r,n,i);break e}else for(pt=Un(t.stateNode.containerInfo.firstChild),mt=t,xe=!0,jt=null,n=$m(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xi(),r===i){t=gn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return Wm(t),e===null&&ha(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,ua(r,i)?o=null:l!==null&&ua(r,l)&&(t.flags|=32),yg(e,t),We(e,t,o,n),t.child;case 6:return e===null&&ha(t),null;case 13:return vg(e,t,n);case 4:return Fc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vi(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Ad(e,t,r,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,de(Xo,r._currentValue),r._currentValue=o,l!==null)if(Bt(l.value,o)){if(l.children===i.children&&!it.current){t=gn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=fn(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),pa(l.return,n,t),s.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(A(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),pa(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ti(t,n),i=Rt(i),r=r(i),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,i=It(r,t.pendingProps),i=It(r.type,i),Ld(e,t,r,i,n);case 15:return mg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Po(e,t),t.tag=1,lt(r)?(e=!0,Ko(t)):e=!1,ti(t,n),dg(t,r,i),ga(t,r,i,n),va(null,t,r,!0,e,n);case 19:return wg(e,t,n);case 22:return gg(e,t,n)}throw Error(A(156,t.tag))};function jg(e,t){return am(e,t)}function tw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,r){return new tw(e,t,n,r)}function Jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nw(e){if(typeof e=="function")return Jc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yc)return 11;if(e===xc)return 14}return 2}function Qn(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function No(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Jc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Br:return vr(n.children,i,l,t);case gc:o=8,i|=8;break;case Bu:return e=Tt(12,n,t,i|2),e.elementType=Bu,e.lanes=l,e;case Uu:return e=Tt(13,n,t,i),e.elementType=Uu,e.lanes=l,e;case Hu:return e=Tt(19,n,t,i),e.elementType=Hu,e.lanes=l,e;case Wp:return Ts(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vp:o=10;break e;case Qp:o=9;break e;case yc:o=11;break e;case xc:o=14;break e;case Cn:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Tt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function vr(e,t,n,r){return e=Tt(7,e,r,t),e.lanes=n,e}function Ts(e,t,n,r){return e=Tt(22,e,r,t),e.elementType=Wp,e.lanes=n,e.stateNode={isHidden:!1},e}function mu(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function gu(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ys(0),this.expirationTimes=Ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ys(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zc(e,t,n,r,i,l,o,s,u){return e=new rw(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Tt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jc(l),e}function iw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Fg(e){if(!e)return Kn;e=e._reactInternals;e:{if(_r(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(lt(n))return Fm(e,n,t)}return t}function zg(e,t,n,r,i,l,o,s,u){return e=Zc(n,r,!0,e,i,l,o,s,u),e.context=Fg(null),n=e.current,r=Ge(),i=Vn(n),l=fn(r,i),l.callback=t??null,Hn(n,l,i),e.current.lanes=i,Ll(e,i,r),ot(e,r),e}function Ps(e,t,n,r){var i=t.current,l=Ge(),o=Vn(i);return n=Fg(n),t.context===null?t.context=n:t.pendingContext=n,t=fn(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Hn(i,t,o),e!==null&&(zt(e,i,o,l),Eo(e,i,o)),o}function ss(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Wd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ef(e,t){Wd(e,t),(e=e.alternate)&&Wd(e,t)}function lw(){return null}var Mg=typeof reportError=="function"?reportError:function(e){console.error(e)};function tf(e){this._internalRoot=e}Rs.prototype.render=tf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));Ps(e,t,null,null)};Rs.prototype.unmount=tf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;br(function(){Ps(null,e,null,null)}),t[pn]=null}};function Rs(e){this._internalRoot=e}Rs.prototype.unstable_scheduleHydration=function(e){if(e){var t=gm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bn.length&&t!==0&&t<bn[n].priority;n++);bn.splice(n,0,e),n===0&&xm(e)}};function nf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Os(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qd(){}function ow(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=ss(o);l.call(a)}}var o=zg(t,r,e,0,null,!1,!1,"",qd);return e._reactRootContainer=o,e[pn]=o.current,gl(e.nodeType===8?e.parentNode:e),br(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var a=ss(u);s.call(a)}}var u=Zc(e,0,!1,null,null,!1,!1,"",qd);return e._reactRootContainer=u,e[pn]=u.current,gl(e.nodeType===8?e.parentNode:e),br(function(){Ps(t,u,n,r)}),u}function Ns(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var u=ss(o);s.call(u)}}Ps(t,o,e,i)}else o=ow(n,t,e,i,r);return ss(o)}pm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qi(t.pendingLanes);n!==0&&(kc(t,n|1),ot(t,Ee()),!(oe&6)&&(Si=Ee()+500,Xn()))}break;case 13:br(function(){var r=mn(e,1);if(r!==null){var i=Ge();zt(r,e,1,i)}}),ef(e,1)}};Sc=function(e){if(e.tag===13){var t=mn(e,134217728);if(t!==null){var n=Ge();zt(t,e,134217728,n)}ef(e,134217728)}};mm=function(e){if(e.tag===13){var t=Vn(e),n=mn(e,t);if(n!==null){var r=Ge();zt(n,e,t,r)}ef(e,t)}};gm=function(){return ue};ym=function(e,t){var n=ue;try{return ue=e,t()}finally{ue=n}};Ju=function(e,t,n){switch(t){case"input":if(Qu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ws(r);if(!i)throw Error(A(90));Kp(r),Qu(r,i)}}}break;case"textarea":Yp(e,n);break;case"select":t=n.value,t!=null&&Xr(e,!!n.multiple,t,!1)}};rm=Gc;im=br;var sw={usingClientEntryPoint:!1,Events:[jl,Vr,ws,tm,nm,Gc]},Ui={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},uw={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sm(e),e===null?null:e.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||lw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fo.isDisabled&&fo.supportsFiber)try{gs=fo.inject(uw),Yt=fo}catch{}}xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sw;xt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nf(t))throw Error(A(200));return iw(e,t,null,n)};xt.createRoot=function(e,t){if(!nf(e))throw Error(A(299));var n=!1,r="",i=Mg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Zc(e,1,!1,null,null,n,!1,r,i),e[pn]=t.current,gl(e.nodeType===8?e.parentNode:e),new tf(t)};xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=sm(t),e=e===null?null:e.stateNode,e};xt.flushSync=function(e){return br(e)};xt.hydrate=function(e,t,n){if(!Os(t))throw Error(A(200));return Ns(null,e,t,!0,n)};xt.hydrateRoot=function(e,t,n){if(!nf(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=Mg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zg(t,null,e,1,n??null,i,!1,l,o),e[pn]=t.current,gl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Rs(t)};xt.render=function(e,t,n){if(!Os(t))throw Error(A(200));return Ns(null,e,t,!1,n)};xt.unmountComponentAtNode=function(e){if(!Os(e))throw Error(A(40));return e._reactRootContainer?(br(function(){Ns(null,null,e,!1,function(){e._reactRootContainer=null,e[pn]=null})}),!0):!1};xt.unstable_batchedUpdates=Gc;xt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Os(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return Ns(e,t,n,!1,r)};xt.version="18.3.1-next-f1338f8080-20240426";function Bg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bg)}catch(e){console.error(e)}}Bg(),Bp.exports=xt;var aw=Bp.exports,Kd=aw;zu.createRoot=Kd.createRoot,zu.hydrateRoot=Kd.hydrateRoot;var Ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Pn,sc,xp,fw=(xp=class{constructor(){H(this,Pn,cw);H(this,sc,!1)}setTimeoutProvider(e){M(this,Pn,e)}setTimeout(e,t){return k(this,Pn).setTimeout(e,t)}clearTimeout(e){k(this,Pn).clearTimeout(e)}setInterval(e,t){return k(this,Pn).setInterval(e,t)}clearInterval(e){k(this,Pn).clearInterval(e)}},Pn=new WeakMap,sc=new WeakMap,xp),sr=new fw;function dw(e){setTimeout(e,0)}var Tr=typeof window>"u"||"Deno"in globalThis;function qe(){}function hw(e,t){return typeof e=="function"?e(t):e}function _a(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ug(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wn(e,t){return typeof e=="function"?e(t):e}function St(e,t){return typeof e=="function"?e(t):e}function Gd(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==rf(o,t.options))return!1}else if(!bl(t.queryKey,o))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function Yd(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Pr(t.options.mutationKey)!==Pr(l))return!1}else if(!bl(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function rf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pr)(e)}function Pr(e){return JSON.stringify(e,(t,n)=>Ia(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function bl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>bl(e[n],t[n])):!1}var pw=Object.prototype.hasOwnProperty;function Hg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Xd(e)&&Xd(t);if(!r&&!(Ia(e)&&Ia(t)))return t;const l=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,u=r?new Array(s):{};let a=0;for(let f=0;f<s;f++){const c=r?f:o[f],d=e[c],h=t[c];if(d===h){u[c]=d,(r?f<l:pw.call(e,c))&&a++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){u[c]=h;continue}const p=Hg(d,h,n+1);u[c]=p,p===d&&a++}return l===s&&a===l?e:u}function us(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Xd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ia(e){if(!Jd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Jd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Jd(e){return Object.prototype.toString.call(e)==="[object Object]"}function mw(e){return new Promise(t=>{sr.setTimeout(t,e)})}function Aa(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Hg(e,t):t}function gw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var lf=Symbol();function $g(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===lf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function of(e,t){return typeof e=="function"?e(...t):!!e}function xw(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var ar,Rn,ii,vp,vw=(vp=class extends Ri{constructor(){super();H(this,ar);H(this,Rn);H(this,ii);M(this,ii,t=>{if(!Tr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Rn)||this.setEventListener(k(this,ii))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Rn))==null||t.call(this),M(this,Rn,void 0))}setEventListener(t){var n;M(this,ii,t),(n=k(this,Rn))==null||n.call(this),M(this,Rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ar)!==t&&(M(this,ar,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ar)=="boolean"?k(this,ar):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ar=new WeakMap,Rn=new WeakMap,ii=new WeakMap,vp),sf=new vw;function La(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var ww=dw;function kw(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=ww;const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||o()}return u},batchCalls:s=>(...u)=>{l(()=>{s(...u)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Oe=kw(),li,On,oi,wp,Sw=(wp=class extends Ri{constructor(){super();H(this,li,!0);H(this,On);H(this,oi);M(this,oi,t=>{if(!Tr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,On)||this.setEventListener(k(this,oi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,On))==null||t.call(this),M(this,On,void 0))}setEventListener(t){var n;M(this,oi,t),(n=k(this,On))==null||n.call(this),M(this,On,t(this.setOnline.bind(this)))}setOnline(t){k(this,li)!==t&&(M(this,li,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,li)}},li=new WeakMap,On=new WeakMap,oi=new WeakMap,wp),as=new Sw;function Cw(e){return Math.min(1e3*2**e,3e4)}function Vg(e){return(e??"online")==="online"?as.isOnline():!0}var Da=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Qg(e){let t=!1,n=0,r;const i=La(),l=()=>i.status!=="pending",o=x=>{var C;if(!l()){const m=new Da(x);d(m),(C=e.onCancel)==null||C.call(e,m)}},s=()=>{t=!0},u=()=>{t=!1},a=()=>sf.isFocused()&&(e.networkMode==="always"||as.isOnline())&&e.canRun(),f=()=>Vg(e.networkMode)&&e.canRun(),c=x=>{l()||(r==null||r(),i.resolve(x))},d=x=>{l()||(r==null||r(),i.reject(x))},h=()=>new Promise(x=>{var C;r=m=>{(l()||a())&&x(m)},(C=e.onPause)==null||C.call(e)}).then(()=>{var x;r=void 0,l()||(x=e.onContinue)==null||x.call(e)}),p=()=>{if(l())return;let x;const C=n===0?e.initialPromise:void 0;try{x=C??e.fn()}catch(m){x=Promise.reject(m)}Promise.resolve(x).then(c).catch(m=>{var T;if(l())return;const y=e.retry??(Tr?0:3),g=e.retryDelay??Cw,b=typeof g=="function"?g(n,m):g,R=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,m);if(t||!R){d(m);return}n++,(T=e.onFail)==null||T.call(e,n,m),mw(b).then(()=>a()?void 0:h()).then(()=>{t?d(m):p()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:u,canStart:f,start:()=>(f()?p():h().then(p),i)}}var cr,kp,Wg=(kp=class{constructor(){H(this,cr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_a(this.gcTime)&&M(this,cr,sr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tr?1/0:5*60*1e3))}clearGcTimeout(){k(this,cr)&&(sr.clearTimeout(k(this,cr)),M(this,cr,void 0))}},cr=new WeakMap,kp),fr,si,kt,dr,_e,Rl,hr,At,tn,Sp,Ew=(Sp=class extends Wg{constructor(t){super();H(this,At);H(this,fr);H(this,si);H(this,kt);H(this,dr);H(this,_e);H(this,Rl);H(this,hr);M(this,hr,!1),M(this,Rl,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,dr,t.client),M(this,kt,k(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,fr,eh(this.options)),this.state=t.state??k(this,fr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,_e))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,Rl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=eh(this.options);n.data!==void 0&&(this.setState(Zd(n.data,n.dataUpdatedAt)),M(this,fr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,kt).remove(this)}setData(t,n){const r=Aa(this.state.data,t,this.options);return J(this,At,tn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,At,tn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,_e))==null?void 0:r.promise;return(i=k(this,_e))==null||i.cancel(t),n?n.then(qe).catch(qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,fr))}isActive(){return this.observers.some(t=>St(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Wn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ug(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,_e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,_e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,kt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,_e)&&(k(this,hr)?k(this,_e).cancel({revert:!0}):k(this,_e).cancelRetry()),this.scheduleGc()),k(this,kt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,At,tn).call(this,{type:"invalidate"})}async fetch(t,n){var u,a,f,c,d,h,p,x,C,m,y,g;if(this.state.fetchStatus!=="idle"&&((u=k(this,_e))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,_e))return k(this,_e).continueRetry(),k(this,_e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(R=>R.options.queryFn);b&&this.setOptions(b.options)}const r=new AbortController,i=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(M(this,hr,!0),r.signal)})},l=()=>{const b=$g(this.options,n),T=(()=>{const O={client:k(this,dr),queryKey:this.queryKey,meta:this.meta};return i(O),O})();return M(this,hr,!1),this.options.persister?this.options.persister(b,T,this):b(T)},s=(()=>{const b={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,dr),state:this.state,fetchFn:l};return i(b),b})();(a=this.options.behavior)==null||a.onFetch(s,this),M(this,si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&J(this,At,tn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),M(this,_e,Qg({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:b=>{b instanceof Da&&b.revert&&this.setState({...k(this,si),fetchStatus:"idle"}),r.abort()},onFail:(b,R)=>{J(this,At,tn).call(this,{type:"failed",failureCount:b,error:R})},onPause:()=>{J(this,At,tn).call(this,{type:"pause"})},onContinue:()=>{J(this,At,tn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const b=await k(this,_e).start();if(b===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(b),(h=(d=k(this,kt).config).onSuccess)==null||h.call(d,b,this),(x=(p=k(this,kt).config).onSettled)==null||x.call(p,b,this.state.error,this),b}catch(b){if(b instanceof Da){if(b.silent)return k(this,_e).promise;if(b.revert){if(this.state.data===void 0)throw b;return this.state.data}}throw J(this,At,tn).call(this,{type:"error",error:b}),(m=(C=k(this,kt).config).onError)==null||m.call(C,b,this),(g=(y=k(this,kt).config).onSettled)==null||g.call(y,this.state.data,b,this),b}finally{this.scheduleGc()}}},fr=new WeakMap,si=new WeakMap,kt=new WeakMap,dr=new WeakMap,_e=new WeakMap,Rl=new WeakMap,hr=new WeakMap,At=new WeakSet,tn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qg(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Zd(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,si,t.manual?i:void 0),i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,kt).notify({query:this,type:"updated",action:t})})},Sp);function qg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zd(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function eh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var et,ie,Ol,Qe,pr,ui,ln,Nn,Nl,ai,ci,mr,gr,_n,fi,se,Gi,ja,Fa,za,Ma,Ba,Ua,Ha,Kg,Cp,bw=(Cp=class extends Ri{constructor(t,n){super();H(this,se);H(this,et);H(this,ie);H(this,Ol);H(this,Qe);H(this,pr);H(this,ui);H(this,ln);H(this,Nn);H(this,Nl);H(this,ai);H(this,ci);H(this,mr);H(this,gr);H(this,_n);H(this,fi,new Set);this.options=n,M(this,et,t),M(this,Nn,null),M(this,ln,La()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,ie).addObserver(this),th(k(this,ie),this.options)?J(this,se,Gi).call(this):this.updateResult(),J(this,se,Ma).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $a(k(this,ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $a(k(this,ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,se,Ba).call(this),J(this,se,Ua).call(this),k(this,ie).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,ie);if(this.options=k(this,et).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof St(this.options.enabled,k(this,ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,se,Ha).call(this),k(this,ie).setOptions(this.options),n._defaulted&&!us(this.options,n)&&k(this,et).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,ie),observer:this});const i=this.hasListeners();i&&nh(k(this,ie),r,this.options,n)&&J(this,se,Gi).call(this),this.updateResult(),i&&(k(this,ie)!==r||St(this.options.enabled,k(this,ie))!==St(n.enabled,k(this,ie))||Wn(this.options.staleTime,k(this,ie))!==Wn(n.staleTime,k(this,ie)))&&J(this,se,ja).call(this);const l=J(this,se,Fa).call(this);i&&(k(this,ie)!==r||St(this.options.enabled,k(this,ie))!==St(n.enabled,k(this,ie))||l!==k(this,_n))&&J(this,se,za).call(this,l)}getOptimisticResult(t){const n=k(this,et).getQueryCache().build(k(this,et),t),r=this.createResult(n,t);return Pw(this,r)&&(M(this,Qe,r),M(this,ui,this.options),M(this,pr,k(this,ie).state)),r}getCurrentResult(){return k(this,Qe)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,ln).status==="pending"&&k(this,ln).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){k(this,fi).add(t)}getCurrentQuery(){return k(this,ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,et).defaultQueryOptions(t),r=k(this,et).getQueryCache().build(k(this,et),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,se,Gi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Qe)))}createResult(t,n){var F;const r=k(this,ie),i=this.options,l=k(this,Qe),o=k(this,pr),s=k(this,ui),a=t!==r?t.state:k(this,Ol),{state:f}=t;let c={...f},d=!1,h;if(n._optimisticResults){const w=this.hasListeners(),N=!w&&th(t,n),j=w&&nh(t,r,n,i);(N||j)&&(c={...c,...qg(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:x,status:C}=c;h=c.data;let m=!1;if(n.placeholderData!==void 0&&h===void 0&&C==="pending"){let w;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(w=l.data,m=!0):w=typeof n.placeholderData=="function"?n.placeholderData((F=k(this,ci))==null?void 0:F.state.data,k(this,ci)):n.placeholderData,w!==void 0&&(C="success",h=Aa(l==null?void 0:l.data,w,n),d=!0)}if(n.select&&h!==void 0&&!m)if(l&&h===(o==null?void 0:o.data)&&n.select===k(this,Nl))h=k(this,ai);else try{M(this,Nl,n.select),h=n.select(h),h=Aa(l==null?void 0:l.data,h,n),M(this,ai,h),M(this,Nn,null)}catch(w){M(this,Nn,w)}k(this,Nn)&&(p=k(this,Nn),h=k(this,ai),x=Date.now(),C="error");const y=c.fetchStatus==="fetching",g=C==="pending",b=C==="error",R=g&&y,T=h!==void 0,I={status:C,fetchStatus:c.fetchStatus,isPending:g,isSuccess:C==="success",isError:b,isInitialLoading:R,isLoading:R,data:h,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:x,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:y,isRefetching:y&&!g,isLoadingError:b&&!T,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:b&&T,isStale:uf(t,n),refetch:this.refetch,promise:k(this,ln),isEnabled:St(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const w=I.data!==void 0,N=I.status==="error"&&!w,j=K=>{N?K.reject(I.error):w&&K.resolve(I.data)},Q=()=>{const K=M(this,ln,I.promise=La());j(K)},q=k(this,ln);switch(q.status){case"pending":t.queryHash===r.queryHash&&j(q);break;case"fulfilled":(N||I.data!==q.value)&&Q();break;case"rejected":(!N||I.error!==q.reason)&&Q();break}}return I}updateResult(){const t=k(this,Qe),n=this.createResult(k(this,ie),this.options);if(M(this,pr,k(this,ie).state),M(this,ui,this.options),k(this,pr).data!==void 0&&M(this,ci,k(this,ie)),us(n,t))return;M(this,Qe,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!k(this,fi).size)return!0;const o=new Set(l??k(this,fi));return this.options.throwOnError&&o.add("error"),Object.keys(k(this,Qe)).some(s=>{const u=s;return k(this,Qe)[u]!==t[u]&&o.has(u)})};J(this,se,Kg).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,se,Ma).call(this)}},et=new WeakMap,ie=new WeakMap,Ol=new WeakMap,Qe=new WeakMap,pr=new WeakMap,ui=new WeakMap,ln=new WeakMap,Nn=new WeakMap,Nl=new WeakMap,ai=new WeakMap,ci=new WeakMap,mr=new WeakMap,gr=new WeakMap,_n=new WeakMap,fi=new WeakMap,se=new WeakSet,Gi=function(t){J(this,se,Ha).call(this);let n=k(this,ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(qe)),n},ja=function(){J(this,se,Ba).call(this);const t=Wn(this.options.staleTime,k(this,ie));if(Tr||k(this,Qe).isStale||!_a(t))return;const r=Ug(k(this,Qe).dataUpdatedAt,t)+1;M(this,mr,sr.setTimeout(()=>{k(this,Qe).isStale||this.updateResult()},r))},Fa=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,ie)):this.options.refetchInterval)??!1},za=function(t){J(this,se,Ua).call(this),M(this,_n,t),!(Tr||St(this.options.enabled,k(this,ie))===!1||!_a(k(this,_n))||k(this,_n)===0)&&M(this,gr,sr.setInterval(()=>{(this.options.refetchIntervalInBackground||sf.isFocused())&&J(this,se,Gi).call(this)},k(this,_n)))},Ma=function(){J(this,se,ja).call(this),J(this,se,za).call(this,J(this,se,Fa).call(this))},Ba=function(){k(this,mr)&&(sr.clearTimeout(k(this,mr)),M(this,mr,void 0))},Ua=function(){k(this,gr)&&(sr.clearInterval(k(this,gr)),M(this,gr,void 0))},Ha=function(){const t=k(this,et).getQueryCache().build(k(this,et),this.options);if(t===k(this,ie))return;const n=k(this,ie);M(this,ie,t),M(this,Ol,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Kg=function(t){Oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Qe))}),k(this,et).getQueryCache().notify({query:k(this,ie),type:"observerResultsUpdated"})})},Cp);function Tw(e,t){return St(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function th(e,t){return Tw(e,t)||e.state.data!==void 0&&$a(e,t,t.refetchOnMount)}function $a(e,t,n){if(St(t.enabled,e)!==!1&&Wn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&uf(e,t)}return!1}function nh(e,t,n,r){return(e!==t||St(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uf(e,n)}function uf(e,t){return St(t.enabled,e)!==!1&&e.isStaleByTime(Wn(t.staleTime,e))}function Pw(e,t){return!us(e.getCurrentResult(),t)}function rh(e){return{onFetch:(t,n)=>{var f,c,d,h,p;const r=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,l=((h=t.state.data)==null?void 0:h.pages)||[],o=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let x=!1;const C=g=>{xw(g,()=>t.signal,()=>x=!0)},m=$g(t.options,t.fetchOptions),y=async(g,b,R)=>{if(x)return Promise.reject();if(b==null&&g.pages.length)return Promise.resolve(g);const O=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:b,direction:R?"backward":"forward",meta:t.options.meta};return C(N),N})(),I=await m(O),{maxPages:F}=t.options,w=R?yw:gw;return{pages:w(g.pages,I,F),pageParams:w(g.pageParams,b,F)}};if(i&&l.length){const g=i==="backward",b=g?Rw:ih,R={pages:l,pageParams:o},T=b(r,R);s=await y(R,T,g)}else{const g=e??l.length;do{const b=u===0?o[0]??r.initialPageParam:ih(r,s);if(u>0&&b==null)break;s=await y(s,b),u++}while(u<g)}return s};t.options.persister?t.fetchFn=()=>{var x,C;return(C=(x=t.options).persister)==null?void 0:C.call(x,a,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function ih(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Rw(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var _l,Wt,Me,yr,qt,Sn,Ep,Ow=(Ep=class extends Wg{constructor(t){super();H(this,qt);H(this,_l);H(this,Wt);H(this,Me);H(this,yr);M(this,_l,t.client),this.mutationId=t.mutationId,M(this,Me,t.mutationCache),M(this,Wt,[]),this.state=t.state||Gg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Wt).includes(t)||(k(this,Wt).push(t),this.clearGcTimeout(),k(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Wt,k(this,Wt).filter(n=>n!==t)),this.scheduleGc(),k(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Wt).length||(this.state.status==="pending"?this.scheduleGc():k(this,Me).remove(this))}continue(){var t;return((t=k(this,yr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,u,a,f,c,d,h,p,x,C,m,y,g,b,R,T,O;const n=()=>{J(this,qt,Sn).call(this,{type:"continue"})},r={client:k(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};M(this,yr,Qg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,F)=>{J(this,qt,Sn).call(this,{type:"failed",failureCount:I,error:F})},onPause:()=>{J(this,qt,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Me).canRun(this)}));const i=this.state.status==="pending",l=!k(this,yr).canStart();try{if(i)n();else{J(this,qt,Sn).call(this,{type:"pending",variables:t,isPaused:l}),k(this,Me).config.onMutate&&await k(this,Me).config.onMutate(t,this,r);const F=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,r));F!==this.state.context&&J(this,qt,Sn).call(this,{type:"pending",context:F,variables:t,isPaused:l})}const I=await k(this,yr).start();return await((a=(u=k(this,Me).config).onSuccess)==null?void 0:a.call(u,I,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,I,t,this.state.context,r)),await((h=(d=k(this,Me).config).onSettled)==null?void 0:h.call(d,I,null,this.state.variables,this.state.context,this,r)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,I,null,t,this.state.context,r)),J(this,qt,Sn).call(this,{type:"success",data:I}),I}catch(I){try{await((m=(C=k(this,Me).config).onError)==null?void 0:m.call(C,I,t,this.state.context,this,r))}catch(F){Promise.reject(F)}try{await((g=(y=this.options).onError)==null?void 0:g.call(y,I,t,this.state.context,r))}catch(F){Promise.reject(F)}try{await((R=(b=k(this,Me).config).onSettled)==null?void 0:R.call(b,void 0,I,this.state.variables,this.state.context,this,r))}catch(F){Promise.reject(F)}try{await((O=(T=this.options).onSettled)==null?void 0:O.call(T,void 0,I,t,this.state.context,r))}catch(F){Promise.reject(F)}throw J(this,qt,Sn).call(this,{type:"error",error:I}),I}finally{k(this,Me).runNext(this)}}},_l=new WeakMap,Wt=new WeakMap,Me=new WeakMap,yr=new WeakMap,qt=new WeakSet,Sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Oe.batch(()=>{k(this,Wt).forEach(r=>{r.onMutationUpdate(t)}),k(this,Me).notify({mutation:this,type:"updated",action:t})})},Ep);function Gg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var on,Lt,Il,bp,Nw=(bp=class extends Ri{constructor(t={}){super();H(this,on);H(this,Lt);H(this,Il);this.config=t,M(this,on,new Set),M(this,Lt,new Map),M(this,Il,0)}build(t,n,r){const i=new Ow({client:t,mutationCache:this,mutationId:++Kl(this,Il)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){k(this,on).add(t);const n=ho(t);if(typeof n=="string"){const r=k(this,Lt).get(n);r?r.push(t):k(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,on).delete(t)){const n=ho(t);if(typeof n=="string"){const r=k(this,Lt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&k(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ho(t);if(typeof n=="string"){const r=k(this,Lt).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=ho(t);if(typeof n=="string"){const i=(r=k(this,Lt).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Oe.batch(()=>{k(this,on).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,on).clear(),k(this,Lt).clear()})}getAll(){return Array.from(k(this,on))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yd(n,r))}findAll(t={}){return this.getAll().filter(n=>Yd(t,n))}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(qe))))}},on=new WeakMap,Lt=new WeakMap,Il=new WeakMap,bp);function ho(e){var t;return(t=e.options.scope)==null?void 0:t.id}var sn,In,tt,un,dn,_o,Va,Tp,_w=(Tp=class extends Ri{constructor(n,r){super();H(this,dn);H(this,sn);H(this,In);H(this,tt);H(this,un);M(this,sn,n),this.setOptions(r),this.bindMethods(),J(this,dn,_o).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=k(this,sn).defaultMutationOptions(n),us(this.options,r)||k(this,sn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,tt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pr(r.mutationKey)!==Pr(this.options.mutationKey)?this.reset():((i=k(this,tt))==null?void 0:i.state.status)==="pending"&&k(this,tt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,tt))==null||n.removeObserver(this)}onMutationUpdate(n){J(this,dn,_o).call(this),J(this,dn,Va).call(this,n)}getCurrentResult(){return k(this,In)}reset(){var n;(n=k(this,tt))==null||n.removeObserver(this),M(this,tt,void 0),J(this,dn,_o).call(this),J(this,dn,Va).call(this)}mutate(n,r){var i;return M(this,un,r),(i=k(this,tt))==null||i.removeObserver(this),M(this,tt,k(this,sn).getMutationCache().build(k(this,sn),this.options)),k(this,tt).addObserver(this),k(this,tt).execute(n)}},sn=new WeakMap,In=new WeakMap,tt=new WeakMap,un=new WeakMap,dn=new WeakSet,_o=function(){var r;const n=((r=k(this,tt))==null?void 0:r.state)??Gg();M(this,In,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Va=function(n){Oe.batch(()=>{var r,i,l,o,s,u,a,f;if(k(this,un)&&this.hasListeners()){const c=k(this,In).variables,d=k(this,In).context,h={client:k(this,sn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=k(this,un)).onSuccess)==null||i.call(r,n.data,c,d,h)}catch(p){Promise.reject(p)}try{(o=(l=k(this,un)).onSettled)==null||o.call(l,n.data,null,c,d,h)}catch(p){Promise.reject(p)}}else if((n==null?void 0:n.type)==="error"){try{(u=(s=k(this,un)).onError)==null||u.call(s,n.error,c,d,h)}catch(p){Promise.reject(p)}try{(f=(a=k(this,un)).onSettled)==null||f.call(a,void 0,n.error,c,d,h)}catch(p){Promise.reject(p)}}}this.listeners.forEach(c=>{c(k(this,In))})})},Tp),Kt,Pp,Iw=(Pp=class extends Ri{constructor(t={}){super();H(this,Kt);this.config=t,M(this,Kt,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??rf(i,n);let o=this.get(l);return o||(o=new Ew({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,Kt).has(t.queryHash)||(k(this,Kt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Kt).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Kt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Kt).get(t)}getAll(){return[...k(this,Kt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Gd(t,r)):n}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Kt=new WeakMap,Pp),Se,An,Ln,di,hi,Dn,pi,mi,Rp,Aw=(Rp=class{constructor(e={}){H(this,Se);H(this,An);H(this,Ln);H(this,di);H(this,hi);H(this,Dn);H(this,pi);H(this,mi);M(this,Se,e.queryCache||new Iw),M(this,An,e.mutationCache||new Nw),M(this,Ln,e.defaultOptions||{}),M(this,di,new Map),M(this,hi,new Map),M(this,Dn,0)}mount(){Kl(this,Dn)._++,k(this,Dn)===1&&(M(this,pi,sf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Se).onFocus())})),M(this,mi,as.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Se).onOnline())})))}unmount(){var e,t;Kl(this,Dn)._--,k(this,Dn)===0&&((e=k(this,pi))==null||e.call(this),M(this,pi,void 0),(t=k(this,mi))==null||t.call(this),M(this,mi,void 0))}isFetching(e){return k(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,An).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,Se).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Wn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=k(this,Se).get(r.queryHash),l=i==null?void 0:i.state.data,o=hw(t,l);if(o!==void 0)return k(this,Se).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Oe.batch(()=>k(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Se);Oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Se);return Oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Oe.batch(()=>k(this,Se).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(qe).catch(qe)}invalidateQueries(e,t={}){return Oe.batch(()=>(k(this,Se).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Oe.batch(()=>k(this,Se).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(qe)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(qe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Se).build(this,t);return n.isStaleByTime(Wn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qe).catch(qe)}fetchInfiniteQuery(e){return e.behavior=rh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qe).catch(qe)}ensureInfiniteQueryData(e){return e.behavior=rh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return as.isOnline()?k(this,An).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Se)}getMutationCache(){return k(this,An)}getDefaultOptions(){return k(this,Ln)}setDefaultOptions(e){M(this,Ln,e)}setQueryDefaults(e,t){k(this,di).set(Pr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,di).values()],n={};return t.forEach(r=>{bl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,hi).set(Pr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,hi).values()],n={};return t.forEach(r=>{bl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===lf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Se).clear(),k(this,An).clear()}},Se=new WeakMap,An=new WeakMap,Ln=new WeakMap,di=new WeakMap,hi=new WeakMap,Dn=new WeakMap,pi=new WeakMap,mi=new WeakMap,Rp),Yg=U.createContext(void 0),_s=e=>{const t=U.useContext(Yg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lw=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Yg.Provider,{value:e,children:t})),Xg=U.createContext(!1),Dw=()=>U.useContext(Xg);Xg.Provider;function jw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Fw=U.createContext(jw()),zw=()=>U.useContext(Fw),Mw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?of(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Bw=e=>{U.useEffect(()=>{e.clearReset()},[e])},Uw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||of(n,[e.error,r])),Hw=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},$w=(e,t)=>e.isLoading&&e.isFetching&&!t,Vw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Qw(e,t,n){var d,h,p,x;const r=Dw(),i=zw(),l=_s(),o=l.defaultQueryOptions(e);(h=(d=l.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",Hw(o),Mw(o,i,s),Bw(i);const u=!l.getQueryCache().get(o.queryHash),[a]=U.useState(()=>new t(l,o)),f=a.getOptimisticResult(o),c=!r&&e.subscribed!==!1;if(U.useSyncExternalStore(U.useCallback(C=>{const m=c?a.subscribe(Oe.batchCalls(C)):qe;return a.updateResult(),m},[a,c]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),U.useEffect(()=>{a.setOptions(o)},[o,a]),Vw(o,f))throw lh(o,a,i);if(Uw({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((x=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||x.call(p,o,f),o.experimental_prefetchInRender&&!Tr&&$w(f,r)){const C=u?lh(o,a,i):s==null?void 0:s.promise;C==null||C.catch(qe).finally(()=>{a.updateResult()})}return o.notifyOnChangeProps?f:a.trackResult(f)}function Jg(e,t){return Qw(e,bw)}function Ww(e,t){const n=_s(),[r]=U.useState(()=>new _w(n,e));U.useEffect(()=>{r.setOptions(e)},[r,e]);const i=U.useSyncExternalStore(U.useCallback(o=>r.subscribe(Oe.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=U.useCallback((o,s)=>{r.mutate(o,s).catch(qe)},[r]);if(i.error&&of(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}function Zg(e,t){return function(){return e.apply(t,arguments)}}const{toString:qw}=Object.prototype,{getPrototypeOf:af}=Object,{iterator:Is,toStringTag:ey}=Symbol,As=(e=>t=>{const n=qw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>As(t)===e),Ls=e=>t=>typeof t===e,{isArray:Oi}=Array,Ci=Ls("undefined");function zl(e){return e!==null&&!Ci(e)&&e.constructor!==null&&!Ci(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ty=Ut("ArrayBuffer");function Kw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ty(e.buffer),t}const Gw=Ls("string"),st=Ls("function"),ny=Ls("number"),Ml=e=>e!==null&&typeof e=="object",Yw=e=>e===!0||e===!1,Io=e=>{if(As(e)!=="object")return!1;const t=af(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ey in e)&&!(Is in e)},Xw=e=>{if(!Ml(e)||zl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Jw=Ut("Date"),Zw=Ut("File"),ek=e=>!!(e&&typeof e.uri<"u"),tk=e=>e&&typeof e.getParts<"u",nk=Ut("Blob"),rk=Ut("FileList"),ik=e=>Ml(e)&&st(e.pipe);function lk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const oh=lk(),sh=typeof oh.FormData<"u"?oh.FormData:void 0,ok=e=>{let t;return e&&(sh&&e instanceof sh||st(e.append)&&((t=As(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},sk=Ut("URLSearchParams"),[uk,ak,ck,fk]=["ReadableStream","Request","Response","Headers"].map(Ut),dk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Oi(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(zl(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),o=l.length;let s;for(r=0;r<o;r++)s=l[r],t.call(null,e[s],s,e)}}function ry(e,t){if(zl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iy=e=>!Ci(e)&&e!==ur;function Qa(){const{caseless:e,skipUndefined:t}=iy(this)&&this||{},n={},r=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=e&&ry(n,l)||l;Io(n[o])&&Io(i)?n[o]=Qa(n[o],i):Io(i)?n[o]=Qa({},i):Oi(i)?n[o]=i.slice():(!t||!Ci(i))&&(n[o]=i)};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&Bl(arguments[i],r);return n}const hk=(e,t,n,{allOwnKeys:r}={})=>(Bl(t,(i,l)=>{n&&st(i)?Object.defineProperty(e,l,{value:Zg(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gk=(e,t,n,r)=>{let i,l,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)o=i[l],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&af(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xk=e=>{if(!e)return null;if(Oi(e))return e;let t=e.length;if(!ny(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&af(Uint8Array)),wk=(e,t)=>{const r=(e&&e[Is]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},kk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Sk=Ut("HTMLFormElement"),Ck=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),uh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ek=Ut("RegExp"),ly=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bl(n,(i,l)=>{let o;(o=t(i,l,e))!==!1&&(r[l]=o||i)}),Object.defineProperties(e,r)},bk=e=>{ly(e,(t,n)=>{if(st(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(st(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tk=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Oi(e)?r(e):r(String(e).split(t)),n},Pk=()=>{},Rk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ok(e){return!!(e&&st(e.append)&&e[ey]==="FormData"&&e[Is])}const Nk=e=>{const t=new Array(10),n=(r,i)=>{if(Ml(r)){if(t.indexOf(r)>=0)return;if(zl(r))return r;if(!("toJSON"in r)){t[i]=r;const l=Oi(r)?[]:{};return Bl(r,(o,s)=>{const u=n(o,i+1);!Ci(u)&&(l[s]=u)}),t[i]=void 0,l}}return r};return n(e,0)},_k=Ut("AsyncFunction"),Ik=e=>e&&(Ml(e)||st(e))&&st(e.then)&&st(e.catch),oy=((e,t)=>e?setImmediate:t?((n,r)=>(ur.addEventListener("message",({source:i,data:l})=>{i===ur&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ur.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",st(ur.postMessage)),Ak=typeof queueMicrotask<"u"?queueMicrotask.bind(ur):typeof process<"u"&&process.nextTick||oy,Lk=e=>e!=null&&st(e[Is]),P={isArray:Oi,isArrayBuffer:ty,isBuffer:zl,isFormData:ok,isArrayBufferView:Kw,isString:Gw,isNumber:ny,isBoolean:Yw,isObject:Ml,isPlainObject:Io,isEmptyObject:Xw,isReadableStream:uk,isRequest:ak,isResponse:ck,isHeaders:fk,isUndefined:Ci,isDate:Jw,isFile:Zw,isReactNativeBlob:ek,isReactNative:tk,isBlob:nk,isRegExp:Ek,isFunction:st,isStream:ik,isURLSearchParams:sk,isTypedArray:vk,isFileList:rk,forEach:Bl,merge:Qa,extend:hk,trim:dk,stripBOM:pk,inherits:mk,toFlatObject:gk,kindOf:As,kindOfTest:Ut,endsWith:yk,toArray:xk,forEachEntry:wk,matchAll:kk,isHTMLForm:Sk,hasOwnProperty:uh,hasOwnProp:uh,reduceDescriptors:ly,freezeMethods:bk,toObjectSet:Tk,toCamelCase:Ck,noop:Pk,toFiniteNumber:Rk,findKey:ry,global:ur,isContextDefined:iy,isSpecCompliantForm:Ok,toJSONObject:Nk,isAsyncFn:_k,isThenable:Ik,setImmediate:oy,asap:Ak,isIterable:Lk};let W=class sy extends Error{static from(t,n,r,i,l,o){const s=new sy(t.message,n||t.code,r,i,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(t,n,r,i,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const Dk=null;function Wa(e){return P.isPlainObject(e)||P.isArray(e)}function uy(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function yu(e,t,n){return e?e.concat(t).map(function(i,l){return i=uy(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function jk(e){return P.isArray(e)&&!e.some(Wa)}const Fk=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Ds(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!P.isUndefined(C[x])});const r=n.metaTokens,i=n.visitor||f,l=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(i))throw new TypeError("visitor must be a function");function a(p){if(p===null)return"";if(P.isDate(p))return p.toISOString();if(P.isBoolean(p))return p.toString();if(!u&&P.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(p)||P.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,x,C){let m=p;if(P.isReactNative(t)&&P.isReactNativeBlob(p))return t.append(yu(C,x,l),a(p)),!1;if(p&&!C&&typeof p=="object"){if(P.endsWith(x,"{}"))x=r?x:x.slice(0,-2),p=JSON.stringify(p);else if(P.isArray(p)&&jk(p)||(P.isFileList(p)||P.endsWith(x,"[]"))&&(m=P.toArray(p)))return x=uy(x),m.forEach(function(g,b){!(P.isUndefined(g)||g===null)&&t.append(o===!0?yu([x],b,l):o===null?x:x+"[]",a(g))}),!1}return Wa(p)?!0:(t.append(yu(C,x,l),a(p)),!1)}const c=[],d=Object.assign(Fk,{defaultVisitor:f,convertValue:a,isVisitable:Wa});function h(p,x){if(!P.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+x.join("."));c.push(p),P.forEach(p,function(m,y){(!(P.isUndefined(m)||m===null)&&i.call(t,m,P.isString(y)?y.trim():y,x,d))===!0&&h(m,x?x.concat(y):[y])}),c.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function cf(e,t){this._pairs=[],e&&Ds(e,this,t)}const ay=cf.prototype;ay.append=function(t,n){this._pairs.push([t,n])};ay.toString=function(t){const n=t?function(r){return t.call(this,r,ah)}:ah;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function zk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function cy(e,t,n){if(!t)return e;const r=n&&n.encode||zk,i=P.isFunction(n)?{serialize:n}:n,l=i&&i.serialize;let o;if(l?o=l(t,i):o=P.isURLSearchParams(t)?t.toString():new cf(t,i).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ch{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ff={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Mk=typeof URLSearchParams<"u"?URLSearchParams:cf,Bk=typeof FormData<"u"?FormData:null,Uk=typeof Blob<"u"?Blob:null,Hk={isBrowser:!0,classes:{URLSearchParams:Mk,FormData:Bk,Blob:Uk},protocols:["http","https","file","blob","url","data"]},df=typeof window<"u"&&typeof document<"u",qa=typeof navigator=="object"&&navigator||void 0,$k=df&&(!qa||["ReactNative","NativeScript","NS"].indexOf(qa.product)<0),Vk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qk=df&&window.location.href||"http://localhost",Wk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:df,hasStandardBrowserEnv:$k,hasStandardBrowserWebWorkerEnv:Vk,navigator:qa,origin:Qk},Symbol.toStringTag,{value:"Module"})),Ue={...Wk,...Hk};function qk(e,t){return Ds(e,new Ue.classes.URLSearchParams,{visitor:function(n,r,i,l){return Ue.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Kk(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gk(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r<i;r++)l=n[r],t[l]=e[l];return t}function fy(e){function t(n,r,i,l){let o=n[l++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),u=l>=n.length;return o=!o&&P.isArray(i)?i.length:o,u?(P.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!P.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],l)&&P.isArray(i[o])&&(i[o]=Gk(i[o])),!s)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,i)=>{t(Kk(r),i,n,0)}),n}return null}function Yk(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ul={transitional:ff,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=P.isObject(t);if(l&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return i?JSON.stringify(fy(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qk(t,this.formSerializer).toString();if((s=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ds(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),Yk(t)):t}],transformResponse:[function(t){const n=this.transitional||Ul.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],e=>{Ul.headers[e]={}});const Xk=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jk=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
41
|
-
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Xk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fh=Symbol("internals");function Hi(e){return e&&String(e).trim().toLowerCase()}function Ao(e){return e===!1||e==null?e:P.isArray(e)?e.map(Ao):String(e)}function Zk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const e0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xu(e,t,n,r,i){if(P.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function t0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function n0(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,o){return this[r].call(this,t,i,l,o)},configurable:!0})})}let ut=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(s,u,a){const f=Hi(u);if(!f)throw new Error("header name must be a non-empty string");const c=P.findKey(i,f);(!c||i[c]===void 0||a===!0||a===void 0&&i[c]!==!1)&&(i[c||u]=Ao(s))}const o=(s,u)=>P.forEach(s,(a,f)=>l(a,f,u));if(P.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(P.isString(t)&&(t=t.trim())&&!e0(t))o(Jk(t),n);else if(P.isObject(t)&&P.isIterable(t)){let s={},u,a;for(const f of t){if(!P.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[a=f[0]]=(u=s[a])?P.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}o(s,n)}else t!=null&&l(n,t,r);return this}get(t,n){if(t=Hi(t),t){const r=P.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Zk(i);if(P.isFunction(n))return n.call(this,i,r);if(P.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hi(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(o){if(o=Hi(o),o){const s=P.findKey(r,o);s&&(!n||xu(r,r[s],s,n))&&(delete r[s],i=!0)}}return P.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||xu(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return P.forEach(this,(i,l)=>{const o=P.findKey(r,l);if(o){n[o]=Ao(i),delete n[l];return}const s=t?t0(l):String(l).trim();s!==l&&delete n[l],n[s]=Ao(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
42
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fh]=this[fh]={accessors:{}}).accessors,i=this.prototype;function l(o){const s=Hi(o);r[s]||(n0(i,o),r[s]=!0)}return P.isArray(t)?t.forEach(l):l(t),this}};ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(ut);function vu(e,t){const n=this||Ul,r=t||n,i=ut.from(r.headers);let l=r.data;return P.forEach(e,function(s){l=s.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function dy(e){return!!(e&&e.__CANCEL__)}let Hl=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function hy(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function r0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,o;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[l];o||(o=a),n[i]=u,r[i]=a;let c=l,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),a-o<t)return;const h=f&&a-f;return h?Math.round(d*1e3/h):void 0}}function l0(e,t){let n=0,r=1e3/t,i,l;const o=(a,f=Date.now())=>{n=f,i=null,l&&(clearTimeout(l),l=null),e(...a)};return[(...a)=>{const f=Date.now(),c=f-n;c>=r?o(a,f):(i=a,l||(l=setTimeout(()=>{l=null,o(i)},r-c)))},()=>i&&o(i)]}const cs=(e,t,n=3)=>{let r=0;const i=i0(50,250);return l0(l=>{const o=l.loaded,s=l.lengthComputable?l.total:void 0,u=o-r,a=i(u),f=o<=s;r=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-o)/a:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},dh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hh=e=>(...t)=>P.asap(()=>e(...t)),o0=Ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,s0=Ue.hasStandardBrowserEnv?{write(e,t,n,r,i,l,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&s.push(`path=${r}`),P.isString(i)&&s.push(`domain=${i}`),l===!0&&s.push("secure"),P.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function u0(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function a0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function py(e,t,n){let r=!u0(t);return e&&(r||n==!1)?a0(e,t):t}const ph=e=>e instanceof ut?{...e}:e;function Rr(e,t){t=t||{};const n={};function r(a,f,c,d){return P.isPlainObject(a)&&P.isPlainObject(f)?P.merge.call({caseless:d},a,f):P.isPlainObject(f)?P.merge({},f):P.isArray(f)?f.slice():f}function i(a,f,c,d){if(P.isUndefined(f)){if(!P.isUndefined(a))return r(void 0,a,c,d)}else return r(a,f,c,d)}function l(a,f){if(!P.isUndefined(f))return r(void 0,f)}function o(a,f){if(P.isUndefined(f)){if(!P.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(a,f,c)=>i(ph(a),ph(f),c,!0)};return P.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=P.hasOwnProp(u,f)?u[f]:i,d=c(e[f],t[f],f);P.isUndefined(d)&&c!==s||(n[f]=d)}),n}const my=e=>{const t=Rr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:o,auth:s}=t;if(t.headers=o=ut.from(o),t.url=cy(py(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),P.isFormData(n)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(P.isFunction(n.getHeaders)){const u=n.getHeaders(),a=["content-type","content-length"];Object.entries(u).forEach(([f,c])=>{a.includes(f.toLowerCase())&&o.set(f,c)})}}if(Ue.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(t)),r||r!==!1&&o0(t.url))){const u=i&&l&&s0.read(l);u&&o.set(i,u)}return t},c0=typeof XMLHttpRequest<"u",f0=c0&&function(e){return new Promise(function(n,r){const i=my(e);let l=i.data;const o=ut.from(i.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=i,f,c,d,h,p;function x(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function m(){if(!C)return;const g=ut.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),R={data:!s||s==="text"||s==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:g,config:e,request:C};hy(function(O){n(O),x()},function(O){r(O),x()},R),C=null}"onloadend"in C?C.onloadend=m:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(m)},C.onabort=function(){C&&(r(new W("Request aborted",W.ECONNABORTED,e,C)),C=null)},C.onerror=function(b){const R=b&&b.message?b.message:"Network Error",T=new W(R,W.ERR_NETWORK,e,C);T.event=b||null,r(T),C=null},C.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||ff;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),r(new W(b,R.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,C)),C=null},l===void 0&&o.setContentType(null),"setRequestHeader"in C&&P.forEach(o.toJSON(),function(b,R){C.setRequestHeader(R,b)}),P.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),s&&s!=="json"&&(C.responseType=i.responseType),a&&([d,p]=cs(a,!0),C.addEventListener("progress",d)),u&&C.upload&&([c,h]=cs(u),C.upload.addEventListener("progress",c),C.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(f=g=>{C&&(r(!g||g.type?new Hl(null,e,C):g),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=r0(i.url);if(y&&Ue.protocols.indexOf(y)===-1){r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e));return}C.send(l||null)})},d0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(a){if(!i){i=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof W?f:new Hl(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,l(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>P.asap(s),u}},h0=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},p0=async function*(e,t){for await(const n of m0(e))yield*h0(n,t)},m0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},mh=(e,t,n,r)=>{const i=p0(e,t);let l=0,o,s=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await i.next();if(a){s(),u.close();return}let c=f.byteLength;if(n){let d=l+=c;n(d)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),i.return()}},{highWaterMark:2})},gh=64*1024,{isFunction:po}=P,g0=(({Request:e,Response:t})=>({Request:e,Response:t}))(P.global),{ReadableStream:yh,TextEncoder:xh}=P.global,vh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},y0=e=>{e=P.merge.call({skipUndefined:!0},g0,e);const{fetch:t,Request:n,Response:r}=e,i=t?po(t):typeof fetch=="function",l=po(n),o=po(r);if(!i)return!1;const s=i&&po(yh),u=i&&(typeof xh=="function"?(p=>x=>p.encode(x))(new xh):async p=>new Uint8Array(await new n(p).arrayBuffer())),a=l&&s&&vh(()=>{let p=!1;const x=new n(Ue.origin,{body:new yh,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!x}),f=o&&s&&vh(()=>P.isReadableStream(new r("").body)),c={stream:f&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!c[p]&&(c[p]=(x,C)=>{let m=x&&x[p];if(m)return m.call(x);throw new W(`Response type '${p}' is not supported`,W.ERR_NOT_SUPPORT,C)})});const d=async p=>{if(p==null)return 0;if(P.isBlob(p))return p.size;if(P.isSpecCompliantForm(p))return(await new n(Ue.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(P.isArrayBufferView(p)||P.isArrayBuffer(p))return p.byteLength;if(P.isURLSearchParams(p)&&(p=p+""),P.isString(p))return(await u(p)).byteLength},h=async(p,x)=>{const C=P.toFiniteNumber(p.getContentLength());return C??d(x)};return async p=>{let{url:x,method:C,data:m,signal:y,cancelToken:g,timeout:b,onDownloadProgress:R,onUploadProgress:T,responseType:O,headers:I,withCredentials:F="same-origin",fetchOptions:w}=my(p),N=t||fetch;O=O?(O+"").toLowerCase():"text";let j=d0([y,g&&g.toAbortSignal()],b),Q=null;const q=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let K;try{if(T&&a&&C!=="get"&&C!=="head"&&(K=await h(I,m))!==0){let Y=new n(x,{method:"POST",body:m,duplex:"half"}),ne;if(P.isFormData(m)&&(ne=Y.headers.get("content-type"))&&I.setContentType(ne),Y.body){const[E,ye]=dh(K,cs(hh(T)));m=mh(Y.body,gh,E,ye)}}P.isString(F)||(F=F?"include":"omit");const te=l&&"credentials"in n.prototype,ge={...w,signal:j,method:C.toUpperCase(),headers:I.normalize().toJSON(),body:m,duplex:"half",credentials:te?F:void 0};Q=l&&new n(x,ge);let D=await(l?N(Q,w):N(x,ge));const $=f&&(O==="stream"||O==="response");if(f&&(R||$&&q)){const Y={};["status","statusText","headers"].forEach(Je=>{Y[Je]=D[Je]});const ne=P.toFiniteNumber(D.headers.get("content-length")),[E,ye]=R&&dh(ne,cs(hh(R),!0))||[];D=new r(mh(D.body,gh,E,()=>{ye&&ye(),q&&q()}),Y)}O=O||"text";let v=await c[P.findKey(c,O)||"text"](D,p);return!$&&q&&q(),await new Promise((Y,ne)=>{hy(Y,ne,{data:v,headers:ut.from(D.headers),status:D.status,statusText:D.statusText,config:p,request:Q})})}catch(te){throw q&&q(),te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,p,Q,te&&te.response),{cause:te.cause||te}):W.from(te,te&&te.code,p,Q,te&&te.response)}}},x0=new Map,gy=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,l=[r,i,n];let o=l.length,s=o,u,a,f=x0;for(;s--;)u=l[s],a=f.get(u),a===void 0&&f.set(u,a=s?new Map:y0(t)),f=a;return a};gy();const hf={http:Dk,xhr:f0,fetch:{get:gy}};P.forEach(hf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wh=e=>`- ${e}`,v0=e=>P.isFunction(e)||e===null||e===!1;function w0(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let r,i;const l={};for(let o=0;o<n;o++){r=e[o];let s;if(i=r,!v0(r)&&(i=hf[(s=String(r)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${s}'`);if(i&&(P.isFunction(i)||(i=i.get(t))))break;l[s||"#"+o]=i}if(!i){const o=Object.entries(l).map(([u,a])=>`adapter ${u} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
|
|
43
|
-
`+o.map(wh).join(`
|
|
44
|
-
`):" "+wh(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const yy={getAdapter:w0,adapters:hf};function wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hl(null,e)}function kh(e){return wu(e),e.headers=ut.from(e.headers),e.data=vu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yy.getAdapter(e.adapter||Ul.adapter,e)(e).then(function(r){return wu(e),r.data=vu.call(e,e.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return dy(r)||(wu(e),r&&r.response&&(r.response.data=vu.call(e,e.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const xy="1.13.6",js={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{js[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sh={};js.transitional=function(t,n,r){function i(l,o){return"[Axios v"+xy+"] Transitional option '"+l+"'"+o+(r?". "+r:"")}return(l,o,s)=>{if(t===!1)throw new W(i(o," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Sh[o]&&(Sh[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,o,s):!0}};js.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function k0(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],o=t[l];if(o){const s=e[l],u=s===void 0||o(s,l,e);if(u!==!0)throw new W("option "+l+" must be "+u,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+l,W.ERR_BAD_OPTION)}}const Lo={assertOptions:k0,validators:js},wt=Lo.validators;let wr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ch,response:new ch}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
45
|
-
`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Rr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Lo.assertOptions(r,{silentJSONParsing:wt.transitional(wt.boolean),forcedJSONParsing:wt.transitional(wt.boolean),clarifyTimeoutError:wt.transitional(wt.boolean),legacyInterceptorReqResOrdering:wt.transitional(wt.boolean)},!1),i!=null&&(P.isFunction(i)?n.paramsSerializer={serialize:i}:Lo.assertOptions(i,{encode:wt.function,serialize:wt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Lo.assertOptions(n,{baseUrl:wt.spelling("baseURL"),withXsrfToken:wt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=l&&P.merge(l.common,l[n.method]);l&&P.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=ut.concat(o,l);const s=[];let u=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;u=u&&x.synchronous;const C=n.transitional||ff;C&&C.legacyInterceptorReqResOrdering?s.unshift(x.fulfilled,x.rejected):s.push(x.fulfilled,x.rejected)});const a=[];this.interceptors.response.forEach(function(x){a.push(x.fulfilled,x.rejected)});let f,c=0,d;if(!u){const p=[kh.bind(this),void 0];for(p.unshift(...s),p.push(...a),d=p.length,f=Promise.resolve(n);c<d;)f=f.then(p[c++],p[c++]);return f}d=s.length;let h=n;for(;c<d;){const p=s[c++],x=s[c++];try{h=p(h)}catch(C){x.call(this,C);break}}try{f=kh.call(this,h)}catch(p){return Promise.reject(p)}for(c=0,d=a.length;c<d;)f=f.then(a[c++],a[c++]);return f}getUri(t){t=Rr(this.defaults,t);const n=py(t.baseURL,t.url,t.allowAbsoluteUrls);return cy(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){wr.prototype[t]=function(n,r){return this.request(Rr(r||{},{method:t,url:n,data:(r||{}).data}))}});P.forEach(["post","put","patch"],function(t){function n(r){return function(l,o,s){return this.request(Rr(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:o}))}}wr.prototype[t]=n(),wr.prototype[t+"Form"]=n(!0)});let S0=class vy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const o=new Promise(s=>{r.subscribe(s),l=s}).then(i);return o.cancel=function(){r.unsubscribe(l)},o},t(function(l,o,s){r.reason||(r.reason=new Hl(l,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vy(function(i){t=i}),cancel:t}}};function C0(e){return function(n){return e.apply(null,n)}}function E0(e){return P.isObject(e)&&e.isAxiosError===!0}const Ka={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ka).forEach(([e,t])=>{Ka[t]=e});function wy(e){const t=new wr(e),n=Zg(wr.prototype.request,t);return P.extend(n,wr.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wy(Rr(e,i))},n}const be=wy(Ul);be.Axios=wr;be.CanceledError=Hl;be.CancelToken=S0;be.isCancel=dy;be.VERSION=xy;be.toFormData=Ds;be.AxiosError=W;be.Cancel=be.CanceledError;be.all=function(t){return Promise.all(t)};be.spread=C0;be.isAxiosError=E0;be.mergeConfig=Rr;be.AxiosHeaders=ut;be.formToJSON=e=>fy(P.isHTMLForm(e)?new FormData(e):e);be.getAdapter=yy.getAdapter;be.HttpStatusCode=Ka;be.default=be;const{Axios:UP,AxiosError:HP,CanceledError:$P,isCancel:VP,CancelToken:QP,VERSION:WP,all:qP,Cancel:KP,isAxiosError:GP,spread:YP,toFormData:XP,AxiosHeaders:JP,HttpStatusCode:ZP,formToJSON:eR,getAdapter:tR,mergeConfig:nR}=be;function b0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const T0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,P0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R0={};function Ch(e,t){return(R0.jsx?P0:T0).test(e)}const O0=/[ \t\n\f\r]/g;function N0(e){return typeof e=="object"?e.type==="text"?Eh(e.value):!1:Eh(e)}function Eh(e){return e.replace(O0,"")===""}class $l{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}$l.prototype.normal={};$l.prototype.property={};$l.prototype.space=void 0;function ky(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new $l(n,r,t)}function Ga(e){return e.toLowerCase()}class at{constructor(t,n){this.attribute=n,this.property=t}}at.prototype.attribute="";at.prototype.booleanish=!1;at.prototype.boolean=!1;at.prototype.commaOrSpaceSeparated=!1;at.prototype.commaSeparated=!1;at.prototype.defined=!1;at.prototype.mustUseProperty=!1;at.prototype.number=!1;at.prototype.overloadedBoolean=!1;at.prototype.property="";at.prototype.spaceSeparated=!1;at.prototype.space=void 0;let _0=0;const X=Ir(),Te=Ir(),Ya=Ir(),L=Ir(),fe=Ir(),ri=Ir(),ft=Ir();function Ir(){return 2**++_0}const Xa=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:Te,commaOrSpaceSeparated:ft,commaSeparated:ri,number:L,overloadedBoolean:Ya,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),ku=Object.keys(Xa);class pf extends at{constructor(t,n,r,i){let l=-1;if(super(t,n),bh(this,"space",i),typeof r=="number")for(;++l<ku.length;){const o=ku[l];bh(this,ku[l],(r&Xa[o])===Xa[o])}}}pf.prototype.defined=!0;function bh(e,t,n){n&&(e[t]=n)}function Ni(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new pf(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Ga(r)]=r,n[Ga(l.attribute)]=r}return new $l(t,n,e.space)}const Sy=Ni({properties:{ariaActiveDescendant:null,ariaAtomic:Te,ariaAutoComplete:null,ariaBusy:Te,ariaChecked:Te,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Te,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Te,ariaFlowTo:fe,ariaGrabbed:Te,ariaHasPopup:null,ariaHidden:Te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:L,ariaLive:null,ariaModal:Te,ariaMultiLine:Te,ariaMultiSelectable:Te,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Te,ariaReadOnly:Te,ariaRelevant:null,ariaRequired:Te,ariaRoleDescription:fe,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Te,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Cy(e,t){return t in e?e[t]:t}function Ey(e,t){return Cy(e,t.toLowerCase())}const I0=Ni({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ri,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:fe,autoFocus:X,autoPlay:X,blocking:fe,capture:null,charSet:null,checked:X,cite:null,className:fe,cols:L,colSpan:null,content:null,contentEditable:Te,controls:X,controlsList:fe,coords:L|ri,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:Ya,draggable:Te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:fe,height:L,hidden:Ya,high:L,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:fe,itemRef:fe,itemScope:X,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:L,pattern:null,ping:fe,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:fe,required:X,reversed:X,rows:L,rowSpan:L,sandbox:fe,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:Te,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:L,security:null,unselectable:null},space:"html",transform:Ey}),A0=Ni({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:ft,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:fe,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:ri,g2:ri,glyphName:ri,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,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:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ft,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ft,rev:ft,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ft,requiredFeatures:ft,requiredFonts:ft,requiredFormats:ft,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ft,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ft,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Cy}),by=Ni({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ty=Ni({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ey}),Py=Ni({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),L0={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"},D0=/[A-Z]/g,Th=/-[a-z]/g,j0=/^data[-\w.:]+$/i;function F0(e,t){const n=Ga(t);let r=t,i=at;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j0.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Th,M0);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Th.test(l)){let o=l.replace(D0,z0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=pf}return new i(r,t)}function z0(e){return"-"+e.toLowerCase()}function M0(e){return e.charAt(1).toUpperCase()}const B0=ky([Sy,I0,by,Ty,Py],"html"),mf=ky([Sy,A0,by,Ty,Py],"svg");function U0(e){return e.join(" ").trim()}var gf={},Ph=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H0=/\n/g,$0=/^\s*/,V0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Q0=/^:\s*/,W0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q0=/^[;\s]*/,K0=/^\s+|\s+$/g,G0=`
|
|
46
|
-
`,Rh="/",Oh="*",rr="",Y0="comment",X0="declaration";function J0(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var x=p.match(H0);x&&(n+=x.length);var C=p.lastIndexOf(G0);r=~C?p.length-C:r+p.length}function l(){var p={line:n,column:r};return function(x){return x.position=new o(p),a(),x}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(p){var x=new Error(t.source+":"+n+":"+r+": "+p);if(x.reason=p,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function u(p){var x=p.exec(e);if(x){var C=x[0];return i(C),e=e.slice(C.length),x}}function a(){u($0)}function f(p){var x;for(p=p||[];x=c();)x!==!1&&p.push(x);return p}function c(){var p=l();if(!(Rh!=e.charAt(0)||Oh!=e.charAt(1))){for(var x=2;rr!=e.charAt(x)&&(Oh!=e.charAt(x)||Rh!=e.charAt(x+1));)++x;if(x+=2,rr===e.charAt(x-1))return s("End of comment missing");var C=e.slice(2,x-2);return r+=2,i(C),e=e.slice(x),r+=2,p({type:Y0,comment:C})}}function d(){var p=l(),x=u(V0);if(x){if(c(),!u(Q0))return s("property missing ':'");var C=u(W0),m=p({type:X0,property:Nh(x[0].replace(Ph,rr)),value:C?Nh(C[0].replace(Ph,rr)):rr});return u(q0),m}}function h(){var p=[];f(p);for(var x;x=d();)x!==!1&&(p.push(x),f(p));return p}return a(),h()}function Nh(e){return e?e.replace(K0,rr):rr}var Z0=J0,eS=Fo&&Fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gf,"__esModule",{value:!0});gf.default=nS;const tS=eS(Z0);function nS(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,tS.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:s}=l;i?t(o,s,l):s&&(n=n||{},n[o]=s)}),n}var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.camelCase=void 0;var rS=/^--[a-zA-Z0-9_-]+$/,iS=/-([a-z])/g,lS=/^[^-]+$/,oS=/^-(webkit|moz|ms|o|khtml)-/,sS=/^-(ms)-/,uS=function(e){return!e||lS.test(e)||rS.test(e)},aS=function(e,t){return t.toUpperCase()},_h=function(e,t){return"".concat(t,"-")},cS=function(e,t){return t===void 0&&(t={}),uS(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(sS,_h):e=e.replace(oS,_h),e.replace(iS,aS))};Fs.camelCase=cS;var fS=Fo&&Fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},dS=fS(gf),hS=Fs;function Ja(e,t){var n={};return!e||typeof e!="string"||(0,dS.default)(e,function(r,i){r&&i&&(n[(0,hS.camelCase)(r,t)]=i)}),n}Ja.default=Ja;var pS=Ja;const mS=uc(pS),Ry=Oy("end"),yf=Oy("start");function Oy(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};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 gS(e){const t=yf(e),n=Ry(e);if(t&&n)return{start:t,end:n}}function ll(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ih(e.position):"start"in e||"end"in e?Ih(e):"line"in e||"column"in e?Za(e):""}function Za(e){return Ah(e&&e.line)+":"+Ah(e&&e.column)}function Ih(e){return Za(e&&e.start)+"-"+Za(e&&e.end)}function Ah(e){return e&&typeof e=="number"?e:1}class Ve extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const s=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=ll(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ve.prototype.file="";Ve.prototype.name="";Ve.prototype.reason="";Ve.prototype.message="";Ve.prototype.stack="";Ve.prototype.column=void 0;Ve.prototype.line=void 0;Ve.prototype.ancestors=void 0;Ve.prototype.cause=void 0;Ve.prototype.fatal=void 0;Ve.prototype.place=void 0;Ve.prototype.ruleId=void 0;Ve.prototype.source=void 0;const xf={}.hasOwnProperty,yS=new Map,xS=/[A-Z]/g,vS=new Set(["table","tbody","thead","tfoot","tr"]),wS=new Set(["td","th"]),Ny="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kS(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=OS(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=RS(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?mf:B0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=_y(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function _y(e,t,n){if(t.type==="element")return SS(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return CS(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bS(e,t,n);if(t.type==="mdxjsEsm")return ES(e,t);if(t.type==="root")return TS(e,t,n);if(t.type==="text")return PS(e,t)}function SS(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=mf,e.schema=i),e.ancestors.push(t);const l=Ay(e,t.tagName,!1),o=NS(e,t);let s=wf(e,t);return vS.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!N0(u):!0})),Iy(e,o,l,t),vf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function CS(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Tl(e,t.position)}function ES(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Tl(e,t.position)}function bS(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=mf,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Ay(e,t.name,!0),o=_S(e,t),s=wf(e,t);return Iy(e,o,l,t),vf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function TS(e,t,n){const r={};return vf(r,wf(e,t)),e.create(t,e.Fragment,r,n)}function PS(e,t){return t.value}function Iy(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function vf(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function RS(e,t,n){return r;function r(i,l,o,s){const a=Array.isArray(o.children)?n:t;return s?a(l,o,s):a(l,o)}}function OS(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),u=yf(r);return t(i,l,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function NS(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&xf.call(t.properties,i)){const l=IS(e,i,t.properties[i]);if(l){const[o,s]=l;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&wS.has(t.tagName)?r=s:n[o]=s}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function _S(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Tl(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,l=e.evaluater.evaluateExpression(s.expression)}else Tl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function wf(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:yS;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const a=i.get(u)||0;o=u+"-"+a,i.set(u,a+1)}}const s=_y(e,l,o);s!==void 0&&n.push(s)}return n}function IS(e,t,n){const r=F0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?b0(n):U0(n)),r.property==="style"){let i=typeof n=="object"?n:AS(e,String(n));return e.stylePropertyNameCase==="css"&&(i=LS(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?L0[r.property]||r.property:r.attribute,n]}}function AS(e,t){try{return mS(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ve("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ny+"#cannot-parse-style-attribute",i}}function Ay(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const s=Ch(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(l&&s.type==="Literal"),optional:!1}:s}r=o}else r=Ch(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return xf.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Tl(e)}function Tl(e,t){const n=new Ve("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ny+"#cannot-handle-mdx-estrees-without-createevaluater",n}function LS(e){const t={};let n;for(n in e)xf.call(e,n)&&(t[DS(n)]=e[n]);return t}function DS(e){let t=e.replace(xS,jS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jS(e){return"-"+e.toLowerCase()}const Su={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"]},FS={};function kf(e,t){const n=FS,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ly(e,r,i)}function Ly(e,t,n){if(zS(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Lh(e.children,t,n)}return Array.isArray(e)?Lh(e,t,n):""}function Lh(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ly(e[i],t,n);return r.join("")}function zS(e){return!!(e&&typeof e=="object")}const Dh=document.createElement("i");function Sf(e){const t="&"+e+";";Dh.innerHTML=t;const n=Dh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function gt(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function bt(e,t){return e.length>0?(gt(e,e.length,0,t),e):t}const jh={}.hasOwnProperty;function Dy(e){const t={};let n=-1;for(;++n<e.length;)MS(t,e[n]);return t}function MS(e,t){let n;for(n in t){const i=(jh.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){jh.call(i,o)||(i[o]=[]);const s=l[o];BS(i[o],Array.isArray(s)?s:s?[s]:[])}}}function BS(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);gt(e,0,0,r)}function jy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ke=Jn(/[A-Za-z]/),He=Jn(/[\dA-Za-z]/),US=Jn(/[#-'*+\--9=?A-Z^-~]/);function fs(e){return e!==null&&(e<32||e===127)}const ec=Jn(/\d/),HS=Jn(/[\dA-Fa-f]/),$S=Jn(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}const zs=Jn(new RegExp("\\p{P}|\\p{S}","u")),Or=Jn(/\s/);function Jn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _i(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&He(e.charCodeAt(n+1))&&He(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function le(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return Z(u)?(e.enter(n),s(u)):t(u)}function s(u){return Z(u)&&l++<i?(e.consume(u),s):(e.exit(n),t(u))}}const VS={tokenize:QS};function QS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),le(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),l(s)}function l(s){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return V(s)?(e.consume(s),e.exit("chunkText"),l):(e.consume(s),o)}}const WS={tokenize:qS},Fh={tokenize:KS};function qS(e){const t=this,n=[];let r=0,i,l,o;return s;function s(g){if(r<n.length){const b=n[r];return t.containerState=b[1],e.attempt(b[0].continuation,u,a)(g)}return a(g)}function u(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const b=t.events.length;let R=b,T;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){T=t.events[R][1].end;break}m(r);let O=b;for(;O<t.events.length;)t.events[O][1].end={...T},O++;return gt(t.events,R+1,0,t.events.slice(b)),t.events.length=O,a(g)}return s(g)}function a(g){if(r===n.length){if(!i)return d(g);if(i.currentConstruct&&i.currentConstruct.concrete)return p(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fh,f,c)(g)}function f(g){return i&&y(),m(r),d(g)}function c(g){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,p(g)}function d(g){return t.containerState={},e.attempt(Fh,h,p)(g)}function h(g){return r++,n.push([t.currentConstruct,t.containerState]),d(g)}function p(g){if(g===null){i&&y(),m(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),x(g)}function x(g){if(g===null){C(e.exit("chunkFlow"),!0),m(0),e.consume(g);return}return V(g)?(e.consume(g),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(g),x)}function C(g,b){const R=t.sliceStream(g);if(b&&R.push(null),g.previous=l,l&&(l.next=g),l=g,i.defineSkip(g.start),i.write(R),t.parser.lazy[g.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<o&&(!i.events[T][1].end||i.events[T][1].end.offset>o))return;const O=t.events.length;let I=O,F,w;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(F){w=t.events[I][1].end;break}F=!0}for(m(r),T=O;T<t.events.length;)t.events[T][1].end={...w},T++;gt(t.events,I+1,0,t.events.slice(O)),t.events.length=T}}function m(g){let b=n.length;for(;b-- >g;){const R=n[b];t.containerState=R[1],R[0].exit.call(t,e)}n.length=g}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function KS(e,t,n){return le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ei(e){if(e===null||ce(e)||Or(e))return 1;if(zs(e))return 2}function Ms(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const tc={name:"attention",resolveAll:GS,tokenize:YS};function GS(e,t){let n=-1,r,i,l,o,s,u,a,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};zh(c,-u),zh(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=bt(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=bt(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=bt(a,Ms(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=bt(a,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,a=bt(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,gt(e,r-1,n-r+3,a),n=r+a.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function YS(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ei(r);let l;return o;function o(u){return l=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===l)return e.consume(u),s;const a=e.exit("attentionSequence"),f=Ei(u),c=!f||f===2&&i||n.includes(u),d=!i||i===2&&f||n.includes(r);return a._open=!!(l===42?c:c&&(i||!d)),a._close=!!(l===42?d:d&&(f||!c)),t(u)}}function zh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XS={name:"autolink",tokenize:JS};function JS(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Ke(h)?(e.consume(h),o):h===64?n(h):a(h)}function o(h){return h===43||h===45||h===46||He(h)?(r=1,s(h)):a(h)}function s(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||He(h))&&r++<32?(e.consume(h),s):(r=0,a(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||fs(h)?n(h):(e.consume(h),u)}function a(h){return h===64?(e.consume(h),f):US(h)?(e.consume(h),a):n(h)}function f(h){return He(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||He(h))&&r++<63){const p=h===45?d:c;return e.consume(h),p}return n(h)}}const Vl={partial:!0,tokenize:ZS};function ZS(e,t,n){return r;function r(l){return Z(l)?le(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||V(l)?t(l):n(l)}}const Fy={continuation:{tokenize:tC},exit:nC,name:"blockQuote",tokenize:eC};function eC(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Z(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function tC(e,t,n){const r=this;return i;function i(o){return Z(o)?le(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Fy,t,n)(o)}}function nC(e){e.exit("blockQuote")}const zy={name:"characterEscape",tokenize:rC};function rC(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return $S(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const My={name:"characterReference",tokenize:iC};function iC(e,t,n){const r=this;let i=0,l,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),l=31,o=He,f(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=HS,f):(e.enter("characterReferenceValue"),l=7,o=ec,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===He&&!Sf(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const Mh={partial:!0,tokenize:oC},Bh={concrete:!0,name:"codeFenced",tokenize:lC};function lC(e,t,n){const r=this,i={partial:!0,tokenize:R};let l=0,o=0,s;return u;function u(T){return a(T)}function a(T){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(T)}function f(T){return T===s?(o++,e.consume(T),f):o<3?n(T):(e.exit("codeFencedFenceSequence"),Z(T)?le(e,c,"whitespace")(T):c(T))}function c(T){return T===null||V(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(Mh,x,b)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(T))}function d(T){return T===null||V(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(T)):Z(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),le(e,h,"whitespace")(T)):T===96&&T===s?n(T):(e.consume(T),d)}function h(T){return T===null||V(T)?c(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===null||V(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(T)):T===96&&T===s?n(T):(e.consume(T),p)}function x(T){return e.attempt(i,b,C)(T)}function C(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),m}function m(T){return l>0&&Z(T)?le(e,y,"linePrefix",l+1)(T):y(T)}function y(T){return T===null||V(T)?e.check(Mh,x,b)(T):(e.enter("codeFlowValue"),g(T))}function g(T){return T===null||V(T)?(e.exit("codeFlowValue"),y(T)):(e.consume(T),g)}function b(T){return e.exit("codeFenced"),t(T)}function R(T,O,I){let F=0;return w;function w(K){return T.enter("lineEnding"),T.consume(K),T.exit("lineEnding"),N}function N(K){return T.enter("codeFencedFence"),Z(K)?le(T,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):j(K)}function j(K){return K===s?(T.enter("codeFencedFenceSequence"),Q(K)):I(K)}function Q(K){return K===s?(F++,T.consume(K),Q):F>=o?(T.exit("codeFencedFenceSequence"),Z(K)?le(T,q,"whitespace")(K):q(K)):I(K)}function q(K){return K===null||V(K)?(T.exit("codeFencedFence"),O(K)):I(K)}}}function oC(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Cu={name:"codeIndented",tokenize:uC},sC={partial:!0,tokenize:aC};function uC(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),le(e,l,"linePrefix",5)(a)}function l(a){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?u(a):V(a)?e.attempt(sC,o,u)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||V(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),s)}function u(a){return e.exit("codeIndented"),t(a)}}function aC(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):le(e,l,"linePrefix",5)(o)}function l(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):V(o)?i(o):n(o)}}const cC={name:"codeText",previous:dC,resolve:fC,tokenize:hC};function fC(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function dC(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hC(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):V(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||V(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),a)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",a(c))}}class pC{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$i(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$i(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$i(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$i(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$i(this.left,n.reverse())}}}function $i(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function By(e){const t={};let n=-1,r,i,l,o,s,u,a;const f=new pC(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,mC(f,n)),n=t[n],a=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return gt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!a}function mC(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,u=[],a={};let f,c,d=-1,h=n,p=0,x=0;const C=[x];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(x=d+1,C.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),d=C.length;d--;){const m=s.slice(C[d],C[d+1]),y=l.pop();u.push([y,y+m.length-1]),e.splice(y,2,m)}for(u.reverse(),d=-1;++d<u.length;)a[p+u[d][0]]=p+u[d][1],p+=u[d][1]-u[d][0]-1;return a}const gC={resolve:xC,tokenize:vC},yC={partial:!0,tokenize:wC};function xC(e){return By(e),e}function vC(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?l(s):V(s)?e.check(yC,o,l)(s):(e.consume(s),i)}function l(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function wC(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),le(e,l,"linePrefix")}function l(o){if(o===null||V(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Uy(e,t,n,r,i,l,o,s,u){const a=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return m===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(m),e.exit(l),d):m===null||m===32||m===41||fs(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(m))}function d(m){return m===62?(e.enter(l),e.consume(m),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||V(m)?n(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function x(m){return!f&&(m===null||m===41||ce(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):f<a&&m===40?(e.consume(m),f++,x):m===41?(e.consume(m),f--,x):m===null||m===32||m===40||fs(m)?n(m):(e.consume(m),m===92?C:x)}function C(m){return m===40||m===41||m===92?(e.consume(m),x):x(m)}}function Hy(e,t,n,r,i,l){const o=this;let s=0,u;return a;function a(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return s>999||h===null||h===91||h===93&&!u||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):V(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||V(h)||s++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!Z(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function $y(e,t,n,r,i,l){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),a(d))}function a(d){return d===o?(e.exit(l),u(o)):d===null?n(d):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),le(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||V(d)?(e.exit("chunkString"),a(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function ol(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Z(i)?le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const kC={name:"definition",tokenize:CC},SC={partial:!0,tokenize:EC};function CC(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Hy.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return ce(h)?ol(e,a)(h):a(h)}function a(h){return Uy(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(SC,c,c)(h)}function c(h){return Z(h)?le(e,d,"whitespace")(h):d(h)}function d(h){return h===null||V(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function EC(e,t,n){return r;function r(s){return ce(s)?ol(e,i)(s):n(s)}function i(s){return $y(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return Z(s)?le(e,o,"whitespace")(s):o(s)}function o(s){return s===null||V(s)?t(s):n(s)}}const bC={name:"hardBreakEscape",tokenize:TC};function TC(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return V(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const PC={name:"headingAtx",resolve:RC,tokenize:OC};function RC(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},gt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function OC(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ce(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||V(f)?(e.exit("atxHeading"),t(f)):Z(f)?le(e,s,"whitespace")(f):(e.enter("atxHeadingText"),a(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),s(f))}function a(f){return f===null||f===35||ce(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),a)}}const NC=["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"],Uh=["pre","script","style","textarea"],_C={concrete:!0,name:"htmlFlow",resolveTo:LC,tokenize:DC},IC={partial:!0,tokenize:FC},AC={partial:!0,tokenize:jC};function LC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DC(e,t,n){const r=this;let i,l,o,s,u;return a;function a(E){return f(E)}function f(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),l=!0,x):E===63?(e.consume(E),i=3,r.interrupt?t:v):Ke(E)?(e.consume(E),o=String.fromCharCode(E),C):n(E)}function d(E){return E===45?(e.consume(E),i=2,h):E===91?(e.consume(E),i=5,s=0,p):Ke(E)?(e.consume(E),i=4,r.interrupt?t:v):n(E)}function h(E){return E===45?(e.consume(E),r.interrupt?t:v):n(E)}function p(E){const ye="CDATA[";return E===ye.charCodeAt(s++)?(e.consume(E),s===ye.length?r.interrupt?t:j:p):n(E)}function x(E){return Ke(E)?(e.consume(E),o=String.fromCharCode(E),C):n(E)}function C(E){if(E===null||E===47||E===62||ce(E)){const ye=E===47,Je=o.toLowerCase();return!ye&&!l&&Uh.includes(Je)?(i=1,r.interrupt?t(E):j(E)):NC.includes(o.toLowerCase())?(i=6,ye?(e.consume(E),m):r.interrupt?t(E):j(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):l?y(E):g(E))}return E===45||He(E)?(e.consume(E),o+=String.fromCharCode(E),C):n(E)}function m(E){return E===62?(e.consume(E),r.interrupt?t:j):n(E)}function y(E){return Z(E)?(e.consume(E),y):w(E)}function g(E){return E===47?(e.consume(E),w):E===58||E===95||Ke(E)?(e.consume(E),b):Z(E)?(e.consume(E),g):w(E)}function b(E){return E===45||E===46||E===58||E===95||He(E)?(e.consume(E),b):R(E)}function R(E){return E===61?(e.consume(E),T):Z(E)?(e.consume(E),R):g(E)}function T(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),u=E,O):Z(E)?(e.consume(E),T):I(E)}function O(E){return E===u?(e.consume(E),u=null,F):E===null||V(E)?n(E):(e.consume(E),O)}function I(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ce(E)?R(E):(e.consume(E),I)}function F(E){return E===47||E===62||Z(E)?g(E):n(E)}function w(E){return E===62?(e.consume(E),N):n(E)}function N(E){return E===null||V(E)?j(E):Z(E)?(e.consume(E),N):n(E)}function j(E){return E===45&&i===2?(e.consume(E),te):E===60&&i===1?(e.consume(E),ge):E===62&&i===4?(e.consume(E),Y):E===63&&i===3?(e.consume(E),v):E===93&&i===5?(e.consume(E),$):V(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(IC,ne,Q)(E)):E===null||V(E)?(e.exit("htmlFlowData"),Q(E)):(e.consume(E),j)}function Q(E){return e.check(AC,q,ne)(E)}function q(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),K}function K(E){return E===null||V(E)?Q(E):(e.enter("htmlFlowData"),j(E))}function te(E){return E===45?(e.consume(E),v):j(E)}function ge(E){return E===47?(e.consume(E),o="",D):j(E)}function D(E){if(E===62){const ye=o.toLowerCase();return Uh.includes(ye)?(e.consume(E),Y):j(E)}return Ke(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),D):j(E)}function $(E){return E===93?(e.consume(E),v):j(E)}function v(E){return E===62?(e.consume(E),Y):E===45&&i===2?(e.consume(E),v):j(E)}function Y(E){return E===null||V(E)?(e.exit("htmlFlowData"),ne(E)):(e.consume(E),Y)}function ne(E){return e.exit("htmlFlow"),t(E)}}function jC(e,t,n){const r=this;return i;function i(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function FC(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Vl,t,n)}}const zC={name:"htmlText",tokenize:MC};function MC(e,t,n){const r=this;let i,l,o;return s;function s(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),u}function u(v){return v===33?(e.consume(v),a):v===47?(e.consume(v),R):v===63?(e.consume(v),g):Ke(v)?(e.consume(v),I):n(v)}function a(v){return v===45?(e.consume(v),f):v===91?(e.consume(v),l=0,p):Ke(v)?(e.consume(v),y):n(v)}function f(v){return v===45?(e.consume(v),h):n(v)}function c(v){return v===null?n(v):v===45?(e.consume(v),d):V(v)?(o=c,ge(v)):(e.consume(v),c)}function d(v){return v===45?(e.consume(v),h):c(v)}function h(v){return v===62?te(v):v===45?d(v):c(v)}function p(v){const Y="CDATA[";return v===Y.charCodeAt(l++)?(e.consume(v),l===Y.length?x:p):n(v)}function x(v){return v===null?n(v):v===93?(e.consume(v),C):V(v)?(o=x,ge(v)):(e.consume(v),x)}function C(v){return v===93?(e.consume(v),m):x(v)}function m(v){return v===62?te(v):v===93?(e.consume(v),m):x(v)}function y(v){return v===null||v===62?te(v):V(v)?(o=y,ge(v)):(e.consume(v),y)}function g(v){return v===null?n(v):v===63?(e.consume(v),b):V(v)?(o=g,ge(v)):(e.consume(v),g)}function b(v){return v===62?te(v):g(v)}function R(v){return Ke(v)?(e.consume(v),T):n(v)}function T(v){return v===45||He(v)?(e.consume(v),T):O(v)}function O(v){return V(v)?(o=O,ge(v)):Z(v)?(e.consume(v),O):te(v)}function I(v){return v===45||He(v)?(e.consume(v),I):v===47||v===62||ce(v)?F(v):n(v)}function F(v){return v===47?(e.consume(v),te):v===58||v===95||Ke(v)?(e.consume(v),w):V(v)?(o=F,ge(v)):Z(v)?(e.consume(v),F):te(v)}function w(v){return v===45||v===46||v===58||v===95||He(v)?(e.consume(v),w):N(v)}function N(v){return v===61?(e.consume(v),j):V(v)?(o=N,ge(v)):Z(v)?(e.consume(v),N):F(v)}function j(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),i=v,Q):V(v)?(o=j,ge(v)):Z(v)?(e.consume(v),j):(e.consume(v),q)}function Q(v){return v===i?(e.consume(v),i=void 0,K):v===null?n(v):V(v)?(o=Q,ge(v)):(e.consume(v),Q)}function q(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||ce(v)?F(v):(e.consume(v),q)}function K(v){return v===47||v===62||ce(v)?F(v):n(v)}function te(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function ge(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),D}function D(v){return Z(v)?le(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):$(v)}function $(v){return e.enter("htmlTextData"),o(v)}}const Cf={name:"labelEnd",resolveAll:$C,resolveTo:VC,tokenize:QC},BC={tokenize:WC},UC={tokenize:qC},HC={tokenize:KC};function $C(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&>(e,0,e.length,n),e}function VC(e,t){let n=e.length,r=0,i,l,o,s;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",a,t]],s=bt(s,e.slice(l+1,l+r+3)),s=bt(s,[["enter",f,t]]),s=bt(s,Ms(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),s=bt(s,[["exit",f,t],e[o-2],e[o-1],["exit",a,t]]),s=bt(s,e.slice(o+1)),s=bt(s,[["exit",u,t]]),gt(e,l,e.length,s),e}function QC(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return s;function s(d){return l?l._inactive?c(d):(o=r.parser.defined.includes(Mt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt(BC,f,o?f:c)(d):d===91?e.attempt(UC,f,o?a:c)(d):o?f(d):c(d)}function a(d){return e.attempt(HC,f,c)(d)}function f(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function WC(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ce(c)?ol(e,l)(c):l(c)}function l(c){return c===41?f(c):Uy(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ce(c)?ol(e,u)(c):f(c)}function s(c){return n(c)}function u(c){return c===34||c===39||c===40?$y(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function a(c){return ce(c)?ol(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function qC(e,t,n){const r=this;return i;function i(s){return Hy.call(r,e,l,o,"reference","referenceMarker","referenceString")(s)}function l(s){return r.parser.defined.includes(Mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function KC(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const GC={name:"labelStartImage",resolveAll:Cf.resolveAll,tokenize:YC};function YC(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),l}function l(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const XC={name:"labelStartLink",resolveAll:Cf.resolveAll,tokenize:JC};function JC(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Eu={name:"lineEnding",tokenize:ZC};function ZC(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),le(e,t,"linePrefix")}}const Do={name:"thematicBreak",tokenize:eE};function eE(e,t,n){let r=0,i;return l;function l(a){return e.enter("thematicBreak"),o(a)}function o(a){return i=a,s(a)}function s(a){return a===i?(e.enter("thematicBreakSequence"),u(a)):r>=3&&(a===null||V(a))?(e.exit("thematicBreak"),t(a)):n(a)}function u(a){return a===i?(e.consume(a),r++,u):(e.exit("thematicBreakSequence"),Z(a)?le(e,s,"whitespace")(a):s(a))}}const Ze={continuation:{tokenize:iE},exit:oE,name:"list",tokenize:rE},tE={partial:!0,tokenize:sE},nE={partial:!0,tokenize:lE};function rE(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:ec(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Do,n,a)(h):a(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return ec(h)&&++o<10?(e.consume(h),u):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),a(h)):n(h)}function a(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Vl,r.interrupt?n:f,e.attempt(tE,d,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,d(h)}function c(h){return Z(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function iE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Vl,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,le(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!Z(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(nE,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,le(e,e.attempt(Ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function lE(e,t,n){const r=this;return le(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function oE(e){e.exit(this.containerState.type)}function sE(e,t,n){const r=this;return le(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!Z(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Hh={name:"setextUnderline",resolveTo:uE,tokenize:aE};function uE(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function aE(e,t,n){const r=this;let i;return l;function l(a){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),s(a)}function s(a){return a===i?(e.consume(a),s):(e.exit("setextHeadingLineSequence"),Z(a)?le(e,u,"lineSuffix")(a):u(a))}function u(a){return a===null||V(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const cE={tokenize:fE};function fE(e){const t=this,n=e.attempt(Vl,r,e.attempt(this.parser.constructs.flowInitial,i,le(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gC,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const dE={resolveAll:Qy()},hE=Vy("string"),pE=Vy("text");function Vy(e){return{resolveAll:Qy(e==="text"?mE:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,s);return o;function o(f){return a(f)?l(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return a(f)?(n.exit("data"),l(f)):(n.consume(f),u)}function a(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const h=c[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Qy(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function mE(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,s=0,u;for(;l--;){const a=i[l];if(typeof a=="string"){for(o=a.length;a.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(a===-2)u=!0,s++;else if(a!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const a={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const gE={42:Ze,43:Ze,45:Ze,48:Ze,49:Ze,50:Ze,51:Ze,52:Ze,53:Ze,54:Ze,55:Ze,56:Ze,57:Ze,62:Fy},yE={91:kC},xE={[-2]:Cu,[-1]:Cu,32:Cu},vE={35:PC,42:Do,45:[Hh,Do],60:_C,61:Hh,95:Do,96:Bh,126:Bh},wE={38:My,92:zy},kE={[-5]:Eu,[-4]:Eu,[-3]:Eu,33:GC,38:My,42:tc,60:[XS,zC],91:XC,92:[bC,zy],93:Cf,95:tc,96:cC},SE={null:[tc,dE]},CE={null:[42,95]},EE={null:[]},bE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CE,contentInitial:yE,disable:EE,document:gE,flow:vE,flowInitial:xE,insideSpan:SE,string:wE,text:kE},Symbol.toStringTag,{value:"Module"}));function TE(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],s=[];const u={attempt:O(R),check:O(T),consume:y,enter:g,exit:b,interrupt:O(T,{interrupt:!0})},a={code:null,containerState:{},defineSkip:x,events:[],now:p,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:c};let f=t.tokenize.call(a,u);return t.resolveAll&&l.push(t),a;function c(N){return o=bt(o,N),C(),o[o.length-1]!==null?[]:(I(t,0),a.events=Ms(l,a.events,a),a.events)}function d(N,j){return RE(h(N),j)}function h(N){return PE(o,N)}function p(){const{_bufferIndex:N,_index:j,line:Q,column:q,offset:K}=r;return{_bufferIndex:N,_index:j,line:Q,column:q,offset:K}}function x(N){i[N.line]=N.column,w()}function C(){let N;for(;r._index<o.length;){const j=o[r._index];if(typeof j=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<j.length;)m(j.charCodeAt(r._bufferIndex));else m(j)}}function m(N){f=f(N)}function y(N){V(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,w()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=N}function g(N,j){const Q=j||{};return Q.type=N,Q.start=p(),a.events.push(["enter",Q,a]),s.push(Q),Q}function b(N){const j=s.pop();return j.end=p(),a.events.push(["exit",j,a]),j}function R(N,j){I(N,j.from)}function T(N,j){j.restore()}function O(N,j){return Q;function Q(q,K,te){let ge,D,$,v;return Array.isArray(q)?ne(q):"tokenize"in q?ne([q]):Y(q);function Y(he){return Ht;function Ht(vn){const Ar=vn!==null&&he[vn],Lr=vn!==null&&he.null,ql=[...Array.isArray(Ar)?Ar:Ar?[Ar]:[],...Array.isArray(Lr)?Lr:Lr?[Lr]:[]];return ne(ql)(vn)}}function ne(he){return ge=he,D=0,he.length===0?te:E(he[D])}function E(he){return Ht;function Ht(vn){return v=F(),$=he,he.partial||(a.currentConstruct=he),he.name&&a.parser.constructs.disable.null.includes(he.name)?Je():he.tokenize.call(j?Object.assign(Object.create(a),j):a,u,ye,Je)(vn)}}function ye(he){return N($,v),K}function Je(he){return v.restore(),++D<ge.length?E(ge[D]):te}}}function I(N,j){N.resolveAll&&!l.includes(N)&&l.push(N),N.resolve&>(a.events,j,a.events.length-j,N.resolve(a.events.slice(j),a)),N.resolveTo&&(a.events=N.resolveTo(a.events,a))}function F(){const N=p(),j=a.previous,Q=a.currentConstruct,q=a.events.length,K=Array.from(s);return{from:q,restore:te};function te(){r=N,a.previous=j,a.currentConstruct=Q,a.events.length=q,s=K,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function PE(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function RE(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
47
|
-
`;break}case-3:{o=`\r
|
|
48
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function OE(e){const r={constructs:Dy([bE,...(e||{}).extensions||[]]),content:i(VS),defined:[],document:i(WS),flow:i(cE),lazy:{},string:i(hE),text:i(pE)};return r;function i(l){return o;function o(s){return TE(r,l,s)}}}function NE(e){for(;!By(e););return e}const $h=/[\0\t\n\r]/g;function _E(){let e=1,t="",n=!0,r;return i;function i(l,o,s){const u=[];let a,f,c,d,h;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if($h.lastIndex=c,a=$h.exec(l),d=a&&a.index!==void 0?a.index:l.length,h=l.charCodeAt(d),!a){t=l.slice(c);break}if(h===10&&c===d&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<d&&(u.push(l.slice(c,d)),e+=d-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return s&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const IE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function AE(e){return e.replace(IE,LE)}function LE(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return jy(n.slice(l?2:1),l?16:10)}return Sf(n)||e}const Wy={}.hasOwnProperty;function DE(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),jE(n)(NE(OE(n).document().write(_E()(e,t,!0))))}function jE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ff),autolinkProtocol:F,autolinkEmail:F,atxHeading:l(Lf),blockQuote:l(Lr),characterEscape:F,characterReference:F,codeFenced:l(ql),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(ql,o),codeText:l(Rx,o),codeTextData:F,data:F,codeFlowValue:F,definition:l(Ox),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Nx),hardBreakEscape:l(Df),hardBreakTrailing:l(Df),htmlFlow:l(jf,o),htmlFlowData:F,htmlText:l(jf,o),htmlTextData:F,image:l(_x),label:o,link:l(Ff),listItem:l(Ix),listItemValue:d,listOrdered:l(zf,c),listUnordered:l(zf),paragraph:l(Ax),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Lf),strong:l(Lx),thematicBreak:l(jx)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:Ar,autolinkProtocol:vn,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:Je,characterReferenceMarkerNumeric:Je,characterReferenceValue:he,characterReference:Ht,codeFenced:u(C),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:w,codeIndented:u(m),codeText:u(K),codeTextData:w,data:w,definition:u(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:g,emphasis:u(),hardBreakEscape:u(j),hardBreakTrailing:u(j),htmlFlow:u(Q),htmlFlowData:w,htmlText:u(q),htmlTextData:w,image:u(ge),label:$,labelText:D,lineEnding:N,link:u(te),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ye,resourceDestinationString:v,resourceTitleString:Y,resource:ne,setextHeading:u(I),setextHeadingLineSequence:O,setextHeadingText:T,strong:u(),thematicBreak:u()}};qy(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_){let z={type:"root",children:[]};const G={stack:[z],tokenStack:[],config:t,enter:s,exit:a,buffer:o,resume:f,data:n},re=[];let ae=-1;for(;++ae<_.length;)if(_[ae][1].type==="listOrdered"||_[ae][1].type==="listUnordered")if(_[ae][0]==="enter")re.push(ae);else{const Nt=re.pop();ae=i(_,Nt,ae)}for(ae=-1;++ae<_.length;){const Nt=t[_[ae][0]];Wy.call(Nt,_[ae][1].type)&&Nt[_[ae][1].type].call(Object.assign({sliceSerialize:_[ae][2].sliceSerialize},G),_[ae][1])}if(G.tokenStack.length>0){const Nt=G.tokenStack[G.tokenStack.length-1];(Nt[1]||Vh).call(G,void 0,Nt[0])}for(z.position={start:kn(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:kn(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<t.transforms.length;)z=t.transforms[ae](z)||z;return z}function i(_,z,G){let re=z-1,ae=-1,Nt=!1,Zn,Zt,Ii,Ai;for(;++re<=G;){const ct=_[re];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?ae++:ae--,Ai=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(Zn&&!Ai&&!ae&&!Ii&&(Ii=re),Ai=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ai=void 0}if(!ae&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||ae===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(Zn){let Dr=re;for(Zt=void 0;Dr--;){const en=_[Dr];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;Zt&&(_[Zt][1].type="lineEndingBlank",Nt=!0),en[1].type="lineEnding",Zt=Dr}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}Ii&&(!Zt||Ii<Zt)&&(Zn._spread=!0),Zn.end=Object.assign({},Zt?_[Zt][1].start:ct[1].end),_.splice(Zt||re,0,["exit",Zn,ct[2]]),re++,G++}if(ct[1].type==="listItemPrefix"){const Dr={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};Zn=Dr,_.splice(re,0,["enter",Dr,ct[2]]),re++,G++,Ii=void 0,Ai=!0}}}return _[z][1]._spread=Nt,G}function l(_,z){return G;function G(re){s.call(this,_(re),re),z&&z.call(this,re)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(_,z,G){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([z,G||void 0]),_.position={start:kn(z.start),end:void 0}}function u(_){return z;function z(G){_&&_.call(this,G),a.call(this,G)}}function a(_,z){const G=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==_.type&&(z?z.call(this,_,re[0]):(re[1]||Vh).call(this,_,re[0]));else throw new Error("Cannot close `"+_.type+"` ("+ll({start:_.start,end:_.end})+"): it’s not open");G.position.end=kn(_.end)}function f(){return kf(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(_){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function h(){const _=this.resume(),z=this.stack[this.stack.length-1];z.lang=_}function p(){const _=this.resume(),z=this.stack[this.stack.length-1];z.meta=_}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const _=this.resume(),z=this.stack[this.stack.length-1];z.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const _=this.resume(),z=this.stack[this.stack.length-1];z.value=_.replace(/(\r?\n|\r)$/g,"")}function y(_){const z=this.resume(),G=this.stack[this.stack.length-1];G.label=z,G.identifier=Mt(this.sliceSerialize(_)).toLowerCase()}function g(){const _=this.resume(),z=this.stack[this.stack.length-1];z.title=_}function b(){const _=this.resume(),z=this.stack[this.stack.length-1];z.url=_}function R(_){const z=this.stack[this.stack.length-1];if(!z.depth){const G=this.sliceSerialize(_).length;z.depth=G}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function O(_){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function F(_){const G=this.stack[this.stack.length-1].children;let re=G[G.length-1];(!re||re.type!=="text")&&(re=Dx(),re.position={start:kn(_.start),end:void 0},G.push(re)),this.stack.push(re)}function w(_){const z=this.stack.pop();z.value+=this.sliceSerialize(_),z.position.end=kn(_.end)}function N(_){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const G=z.children[z.children.length-1];G.position.end=kn(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(F.call(this,_),w.call(this,_))}function j(){this.data.atHardBreak=!0}function Q(){const _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function q(){const _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function K(){const _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function te(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=z,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function ge(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=z,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function D(_){const z=this.sliceSerialize(_),G=this.stack[this.stack.length-2];G.label=AE(z),G.identifier=Mt(z).toLowerCase()}function $(){const _=this.stack[this.stack.length-1],z=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){const re=_.children;G.children=re}else G.alt=z}function v(){const _=this.resume(),z=this.stack[this.stack.length-1];z.url=_}function Y(){const _=this.resume(),z=this.stack[this.stack.length-1];z.title=_}function ne(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ye(_){const z=this.resume(),G=this.stack[this.stack.length-1];G.label=z,G.identifier=Mt(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function Je(_){this.data.characterReferenceType=_.type}function he(_){const z=this.sliceSerialize(_),G=this.data.characterReferenceType;let re;G?(re=jy(z,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=Sf(z);const ae=this.stack[this.stack.length-1];ae.value+=re}function Ht(_){const z=this.stack.pop();z.position.end=kn(_.end)}function vn(_){w.call(this,_);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(_)}function Ar(_){w.call(this,_);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(_)}function Lr(){return{type:"blockquote",children:[]}}function ql(){return{type:"code",lang:null,meta:null,value:""}}function Rx(){return{type:"inlineCode",value:""}}function Ox(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nx(){return{type:"emphasis",children:[]}}function Lf(){return{type:"heading",depth:0,children:[]}}function Df(){return{type:"break"}}function jf(){return{type:"html",value:""}}function _x(){return{type:"image",title:null,url:"",alt:null}}function Ff(){return{type:"link",title:null,url:"",children:[]}}function zf(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function Ix(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function Ax(){return{type:"paragraph",children:[]}}function Lx(){return{type:"strong",children:[]}}function Dx(){return{type:"text",value:""}}function jx(){return{type:"thematicBreak"}}}function kn(e){return{line:e.line,column:e.column,offset:e.offset}}function qy(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?qy(e,r):FE(e,r)}}function FE(e,t){let n;for(n in t)if(Wy.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Vh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ll({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ll({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ll({start:t.start,end:t.end})+") is still open")}function zE(e){const t=this;t.parser=n;function n(r){return DE(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ME(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function BE(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
49
|
-
`}]}function UE(e,t){const n=t.value?t.value+`
|
|
50
|
-
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function HE(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $E(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VE(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_i(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,s+=1,e.footnoteCounts.set(r,s);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,a),e.applyData(t,a)}function QE(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WE(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ky(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function qE(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ky(e,t);const i={src:_i(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function KE(e,t){const n={src:_i(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function GE(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function YE(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ky(e,t);const i={href:_i(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function XE(e,t){const n={href:_i(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function JE(e,t,n){const r=e.all(t),i=n?ZE(n):Gy(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
|
|
51
|
-
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
|
|
52
|
-
`});const a={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,a),e.applyData(t,a)}function ZE(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Gy(n[r])}return t}function Gy(e){const t=e.spread;return t??e.children.length>1}function eb(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function tb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nb(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function rb(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ib(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=yf(t.children[1]),u=Ry(t.children[t.children.length-1]);s&&u&&(o.position={start:s,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function lb(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const a=[];for(;++u<s;){const c=t.children[u],d={},h=o?o[u]:void 0;h&&(d.align=h);let p={type:"element",tagName:l,properties:d,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(c,p)),a.push(p)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,f),e.applyData(t,f)}function ob(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qh=9,Wh=32;function sb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(qh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(qh(t.slice(i),i>0,!1)),l.join("")}function qh(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Qh||l===Wh;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Qh||l===Wh;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ub(e,t){const n={type:"text",value:sb(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ab(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const cb={blockquote:ME,break:BE,code:UE,delete:HE,emphasis:$E,footnoteReference:VE,heading:QE,html:WE,imageReference:qE,image:KE,inlineCode:GE,linkReference:YE,link:XE,listItem:JE,list:eb,paragraph:tb,root:nb,strong:rb,table:ib,tableCell:ob,tableRow:lb,text:ub,thematicBreak:ab,toml:mo,yaml:mo,definition:mo,footnoteDefinition:mo};function mo(){}const Yy=-1,Bs=0,sl=1,ds=2,Ef=3,bf=4,Tf=5,Pf=6,Xy=7,Jy=8,Kh=typeof self=="object"?self:globalThis,fb=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case Bs:case Yy:return n(o,i);case sl:{const s=n([],i);for(const u of o)s.push(r(u));return s}case ds:{const s=n({},i);for(const[u,a]of o)s[r(u)]=r(a);return s}case Ef:return n(new Date(o),i);case bf:{const{source:s,flags:u}=o;return n(new RegExp(s,u),i)}case Tf:{const s=n(new Map,i);for(const[u,a]of o)s.set(r(u),r(a));return s}case Pf:{const s=n(new Set,i);for(const u of o)s.add(r(u));return s}case Xy:{const{name:s,message:u}=o;return n(new Kh[s](u),i)}case Jy:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Kh[l](o),i)};return r},Gh=e=>fb(new Map,e)(0),Fr="",{toString:db}={},{keys:hb}=Object,Vi=e=>{const t=typeof e;if(t!=="object"||!e)return[Bs,t];const n=db.call(e).slice(8,-1);switch(n){case"Array":return[sl,Fr];case"Object":return[ds,Fr];case"Date":return[Ef,Fr];case"RegExp":return[bf,Fr];case"Map":return[Tf,Fr];case"Set":return[Pf,Fr];case"DataView":return[sl,n]}return n.includes("Array")?[sl,n]:n.includes("Error")?[Xy,n]:[ds,n]},go=([e,t])=>e===Bs&&(t==="function"||t==="symbol"),pb=(e,t,n,r)=>{const i=(o,s)=>{const u=r.push(o)-1;return n.set(s,u),u},l=o=>{if(n.has(o))return n.get(o);let[s,u]=Vi(o);switch(s){case Bs:{let f=o;switch(u){case"bigint":s=Jy,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([Yy],o)}return i([s,f],o)}case sl:{if(u){let d=o;return u==="DataView"?d=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(o)),i([u,[...d]],o)}const f=[],c=i([s,f],o);for(const d of o)f.push(l(d));return c}case ds:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([s,f],o);for(const d of hb(o))(e||!go(Vi(o[d])))&&f.push([l(d),l(o[d])]);return c}case Ef:return i([s,o.toISOString()],o);case bf:{const{source:f,flags:c}=o;return i([s,{source:f,flags:c}],o)}case Tf:{const f=[],c=i([s,f],o);for(const[d,h]of o)(e||!(go(Vi(d))||go(Vi(h))))&&f.push([l(d),l(h)]);return c}case Pf:{const f=[],c=i([s,f],o);for(const d of o)(e||!go(Vi(d)))&&f.push(l(d));return c}}const{message:a}=o;return i([s,{name:u,message:a}],o)};return l},Yh=(e,{json:t,lossy:n}={})=>{const r=[];return pb(!(t||n),!!t,new Map,r)(e),r},hs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gh(Yh(e,t)):structuredClone(e):(e,t)=>Gh(Yh(e,t));function mb(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function gb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function yb(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mb,r=e.options.footnoteBackLabel||gb,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[u]);if(!a)continue;const f=e.all(a),c=String(a.identifier).toUpperCase(),d=_i(c.toLowerCase());let h=0;const p=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++h<=x;){p.length>0&&p.push({type:"text",value:" "});let y=typeof n=="string"?n:n(u,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const y=C.children[C.children.length-1];y&&y.type==="text"?y.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...p)}else f.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(a,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...hs(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
53
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
54
|
-
`}]}}const Us=function(e){if(e==null)return kb;if(typeof e=="function")return Hs(e);if(typeof e=="object")return Array.isArray(e)?xb(e):vb(e);if(typeof e=="string")return wb(e);throw new Error("Expected function, string, or object as test")};function xb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Us(e[n]);return Hs(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function vb(e){const t=e;return Hs(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function wb(e){return Hs(t);function t(n){return n&&n.type===e}}function Hs(e){return t;function t(n,r,i){return!!(Sb(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function kb(){return!0}function Sb(e){return e!==null&&typeof e=="object"&&"type"in e}const Zy=[],Cb=!0,nc=!1,Eb="skip";function ex(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Us(i),o=r?-1:1;s(e,void 0,[])();function s(u,a,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=Zy,p,x,C;if((!t||l(u,a,f[f.length-1]||void 0))&&(h=bb(n(u,f)),h[0]===nc))return h;if("children"in u&&u.children){const m=u;if(m.children&&h[0]!==Eb)for(x=(r?m.children.length:-1)+o,C=f.concat(m);x>-1&&x<m.children.length;){const y=m.children[x];if(p=s(y,x,C)(),p[0]===nc)return p;x=typeof p[1]=="number"?p[1]:x+o}}return h}}}function bb(e){return Array.isArray(e)?e:typeof e=="number"?[Cb,e]:e==null?Zy:[e]}function Rf(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),ex(e,l,s,i);function s(u,a){const f=a[a.length-1],c=f?f.children.indexOf(u):void 0;return o(u,c,f)}}const rc={}.hasOwnProperty,Tb={};function Pb(e,t){const n=t||Tb,r=new Map,i=new Map,l=new Map,o={...cb,...n.handlers},s={all:a,applyData:Ob,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:u,options:n,patch:Rb,wrap:_b};return Rf(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),s;function u(f,c){const d=f.type,h=s.handlers[d];if(rc.call(s.handlers,d)&&h)return h(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in f){const{children:x,...C}=f,m=hs(C);return m.children=s.all(f),m}return hs(f)}return(s.options.unknownHandler||Nb)(s,f,c)}function a(f){const c=[];if("children"in f){const d=f.children;let h=-1;for(;++h<d.length;){const p=s.one(d[h],f);if(p){if(h&&d[h-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Xh(p.value)),!Array.isArray(p)&&p.type==="element")){const x=p.children[0];x&&x.type==="text"&&(x.value=Xh(x.value))}Array.isArray(p)?c.push(...p):c.push(p)}}}return c}}function Rb(e,t){e.position&&(t.position=gS(e))}function Ob(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,hs(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Nb(e,t){const n=t.data||{},r="value"in t&&!(rc.call(n,"hProperties")||rc.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _b(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
55
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
56
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
57
|
-
`}),n}function Xh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Jh(e,t){const n=Pb(e,t),r=n.one(e,void 0),i=yb(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
58
|
-
`},i),l}function Ib(e,t){return e&&"run"in e?async function(n,r){const i=Jh(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Jh(n,{file:r,...e||t})}}function Zh(e){if(e)throw e}var jo=Object.prototype.hasOwnProperty,tx=Object.prototype.toString,ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,np=function(t){return typeof Array.isArray=="function"?Array.isArray(t):tx.call(t)==="[object Array]"},rp=function(t){if(!t||tx.call(t)!=="[object Object]")return!1;var n=jo.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&jo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||jo.call(t,i)},ip=function(t,n){ep&&n.name==="__proto__"?ep(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},lp=function(t,n){if(n==="__proto__")if(jo.call(t,n)){if(tp)return tp(t,n).value}else return;return t[n]},Ab=function e(){var t,n,r,i,l,o,s=arguments[0],u=1,a=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});u<a;++u)if(t=arguments[u],t!=null)for(n in t)r=lp(s,n),i=lp(t,n),s!==i&&(f&&i&&(rp(i)||(l=np(i)))?(l?(l=!1,o=r&&np(r)?r:[]):o=r&&rp(r)?r:{},ip(s,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&ip(s,{name:n,newValue:i}));return s};const bu=uc(Ab);function ic(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lb(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(u,...a){const f=e[++l];let c=-1;if(u){o(u);return}for(;++c<i.length;)(a[c]===null||a[c]===void 0)&&(a[c]=i[c]);i=a,f?Db(f,s)(...a):o(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Db(e,t){let n;return r;function r(...o){const s=e.length>o.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(a){const f=a;if(s&&n)throw f;return i(f)}s||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const Qt={basename:jb,dirname:Fb,extname:zb,join:Mb,sep:"/"};function jb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ql(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Fb(e){if(Ql(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function zb(e){Ql(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Mb(...e){let t=-1,n;for(;++t<e.length;)Ql(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Bb(n)}function Bb(e){Ql(e);const t=e.codePointAt(0)===47;let n=Ub(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ub(e,t){let n="",r=0,i=-1,l=0,o=-1,s,u;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else s===46&&l>-1?l++:l=-1}return n}function Ql(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Hb={cwd:$b};function $b(){return"/"}function lc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Vb(e){if(typeof e=="string")e=new URL(e);else if(!lc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Qb(e)}function Qb(e){if(e.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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Tu=["history","path","basename","stem","extname","dirname"];class nx{constructor(t){let n;t?lc(t)?n={path:t}:typeof t=="string"||Wb(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Hb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tu.length;){const l=Tu[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Tu.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Qt.basename(this.path):void 0}set basename(t){Ru(t,"basename"),Pu(t,"basename"),this.path=Qt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Qt.dirname(this.path):void 0}set dirname(t){op(this.basename,"dirname"),this.path=Qt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Qt.extname(this.path):void 0}set extname(t){if(Pu(t,"extname"),op(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lc(t)&&(t=Vb(t)),Ru(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Qt.basename(this.path,this.extname):void 0}set stem(t){Ru(t,"stem"),Pu(t,"stem"),this.path=Qt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ve(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pu(e,t){if(e&&e.includes(Qt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Qt.sep+"`")}function Ru(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function op(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Wb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qb=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},Kb={}.hasOwnProperty;class Of extends qb{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=Lb()}copy(){const t=new Of;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(bu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(_u("data",this.frozen),this.namespace[t]=n,this):Kb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_u("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=yo(t),r=this.parser||this.Parser;return Ou("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ou("process",this.parser||this.Parser),Nu("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const s=yo(t),u=r.parse(s);r.run(u,s,function(f,c,d){if(f||!c||!d)return a(f);const h=c,p=r.stringify(h,d);Xb(p)?d.value=p:d.result=p,a(f,d)});function a(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ou("processSync",this.parser||this.Parser),Nu("processSync",this.compiler||this.Compiler),this.process(t,i),up("processSync","process",n),r;function i(l,o){n=!0,Zh(l),r=o}}run(t,n,r){sp(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,s){const u=yo(n);i.run(t,u,a);function a(f,c,d){const h=c||t;f?s(f):o?o(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),up("runSync","run",r),i;function l(o,s){Zh(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=yo(n),i=this.compiler||this.Compiler;return Nu("stringify",i),sp(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(_u("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(a){if(typeof a=="function")u(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[f,...c]=a;u(f,c)}else o(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function o(a){if(!("plugins"in a)&&!("settings"in a))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");s(a.plugins),a.settings&&(i.settings=bu(!0,i.settings,a.settings))}function s(a){let f=-1;if(a!=null)if(Array.isArray(a))for(;++f<a.length;){const c=a[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function u(a,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===a){d=c;break}if(d===-1)r.push([a,...f]);else if(f.length>0){let[h,...p]=f;const x=r[d][1];ic(x)&&ic(h)&&(h=bu(!0,x,h)),r[d]=[a,h,...p]}}}}const Gb=new Of().freeze();function Ou(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _u(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sp(e){if(!ic(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function up(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yo(e){return Yb(e)?e:new nx(e)}function Yb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Xb(e){return typeof e=="string"||Jb(e)}function Jb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Zb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ap=[],cp={allowDangerousHtml:!0},e2=/^(https?|ircs?|mailto|xmpp)$/i,t2=[{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 n2(e){const t=r2(e),n=i2(e);return l2(t.runSync(t.parse(n),n),e)}function r2(e){const t=e.rehypePlugins||ap,n=e.remarkPlugins||ap,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...cp}:cp;return Gb().use(zE).use(n).use(Ib,r).use(t)}function i2(e){const t=e.children||"",n=new nx;return typeof t=="string"&&(n.value=t),n}function l2(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||o2;for(const f of t2)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Zb+f.id,void 0);return Rf(e,a),kS(e,{Fragment:S.Fragment,components:i,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function a(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Su)if(Object.hasOwn(Su,h)&&Object.hasOwn(f.properties,h)){const p=f.properties[h],x=Su[h];(x===null||x.includes(f.tagName))&&(f.properties[h]=u(String(p||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return s&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function o2(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||e2.test(e.slice(0,t))?e:""}function fp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function s2(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function u2(e,t,n){const i=Us((n||{}).ignore||[]),l=a2(t);let o=-1;for(;++o<l.length;)ex(e,"text",s);function s(a,f){let c=-1,d;for(;++c<f.length;){const h=f[c],p=d?d.children:void 0;if(i(h,p?p.indexOf(h):void 0,d))return;d=h}if(d)return u(a,f)}function u(a,f){const c=f[f.length-1],d=l[o][0],h=l[o][1];let p=0;const C=c.children.indexOf(a);let m=!1,y=[];d.lastIndex=0;let g=d.exec(a.value);for(;g;){const b=g.index,R={index:g.index,input:g.input,stack:[...f,a]};let T=h(...g,R);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?d.lastIndex=b+1:(p!==b&&y.push({type:"text",value:a.value.slice(p,b)}),Array.isArray(T)?y.push(...T):T&&y.push(T),p=b+g[0].length,m=!0),!d.global)break;g=d.exec(a.value)}return m?(p<a.value.length&&y.push({type:"text",value:a.value.slice(p)}),c.children.splice(C,1,...y)):y=[a],C+y.length}}function a2(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([c2(i[0]),f2(i[1])])}return t}function c2(e){return typeof e=="string"?new RegExp(s2(e),"g"):e}function f2(e){return typeof e=="function"?e:function(){return e}}const Iu="phrasing",Au=["autolink","link","image","label"];function d2(){return{transforms:[v2],enter:{literalAutolink:p2,literalAutolinkEmail:Lu,literalAutolinkHttp:Lu,literalAutolinkWww:Lu},exit:{literalAutolink:x2,literalAutolinkEmail:y2,literalAutolinkHttp:m2,literalAutolinkWww:g2}}}function h2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Iu,notInConstruct:Au},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Iu,notInConstruct:Au},{character:":",before:"[ps]",after:"\\/",inConstruct:Iu,notInConstruct:Au}]}}function p2(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lu(e){this.config.enter.autolinkProtocol.call(this,e)}function m2(e){this.config.exit.autolinkProtocol.call(this,e)}function g2(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function y2(e){this.config.exit.autolinkEmail.call(this,e)}function x2(e){this.exit(e)}function v2(e){u2(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,w2],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),k2]],{ignore:["link","linkReference"]})}function w2(e,t,n,r,i){let l="";if(!rx(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!S2(n)))return!1;const o=C2(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function k2(e,t,n,r){return!rx(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function S2(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function C2(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=fp(e,"(");let l=fp(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function rx(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Or(n)||zs(n))&&(!t||n!==47)}ix.peek=I2;function E2(){this.buffer()}function b2(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function T2(){this.buffer()}function P2(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function R2(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function O2(e){this.exit(e)}function N2(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _2(e){this.exit(e)}function I2(){return"["}function ix(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),s(),o(),l+=i.move("]"),l}function A2(){return{enter:{gfmFootnoteCallString:E2,gfmFootnoteCall:b2,gfmFootnoteDefinitionLabelString:T2,gfmFootnoteDefinition:P2},exit:{gfmFootnoteCallString:R2,gfmFootnoteCall:O2,gfmFootnoteDefinitionLabelString:N2,gfmFootnoteDefinition:_2}}}function L2(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ix},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const s=l.createTracker(o);let u=s.move("[^");const a=l.enter("footnoteDefinition"),f=l.enter("label");return u+=s.move(l.safe(l.associationId(r),{before:u,after:"]"})),f(),u+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),u+=s.move((t?`
|
|
59
|
-
`:" ")+l.indentLines(l.containerFlow(r,s.current()),t?lx:D2))),a(),u}}function D2(e,t,n){return t===0?e:lx(e,t,n)}function lx(e,t,n){return(n?"":" ")+e}const j2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ox.peek=U2;function F2(){return{canContainEols:["delete"],enter:{strikethrough:M2},exit:{strikethrough:B2}}}function z2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:j2}],handlers:{delete:ox}}}function M2(e){this.enter({type:"delete",children:[]},e)}function B2(e){this.exit(e)}function ox(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function U2(){return"~"}function H2(e){return e.length}function $2(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||H2,l=[],o=[],s=[],u=[];let a=0,f=-1;for(;++f<e.length;){const x=[],C=[];let m=-1;for(e[f].length>a&&(a=e[f].length);++m<e[f].length;){const y=V2(e[f][m]);if(n.alignDelimiters!==!1){const g=i(y);C[m]=g,(u[m]===void 0||g>u[m])&&(u[m]=g)}x.push(y)}o[f]=x,s[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<a;)l[c]=dp(r[c]);else{const x=dp(r);for(;++c<a;)l[c]=x}c=-1;const d=[],h=[];for(;++c<a;){const x=l[c];let C="",m="";x===99?(C=":",m=":"):x===108?C=":":x===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,u[c]-C.length-m.length);const g=C+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=C.length+y+m.length,y>u[c]&&(u[c]=y),h[c]=y),d[c]=g}o.splice(1,0,d),s.splice(1,0,h),f=-1;const p=[];for(;++f<o.length;){const x=o[f],C=s[f];c=-1;const m=[];for(;++c<a;){const y=x[c]||"";let g="",b="";if(n.alignDelimiters!==!1){const R=u[c]-(C[c]||0),T=l[c];T===114?g=" ".repeat(R):T===99?R%2?(g=" ".repeat(R/2+.5),b=" ".repeat(R/2-.5)):(g=" ".repeat(R/2),b=g):b=" ".repeat(R)}n.delimiterStart!==!1&&!c&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&m.push(" "),n.alignDelimiters!==!1&&m.push(g),m.push(y),n.alignDelimiters!==!1&&m.push(b),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||c!==a-1)&&m.push("|")}p.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return p.join(`
|
|
60
|
-
`)}function V2(e){return e==null?"":String(e)}function dp(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Q2(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),W2);return i(),o}function W2(e,t,n){return">"+(n?"":" ")+e}function q2(e,t){return hp(e,t.inConstruct,!0)&&!hp(e,t.notInConstruct,!1)}function hp(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function pp(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
61
|
-
`&&q2(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
62
|
-
`}function K2(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function G2(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Y2(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function X2(e,t,n,r){const i=Y2(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(G2(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(l,J2);return c(),d}const s=n.createTracker(r),u=i.repeat(Math.max(K2(l,i)+1,3)),a=n.enter("codeFenced");let f=s.move(u);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:`
|
|
63
|
-
`,encode:["`"],...s.current()})),c()}return f+=s.move(`
|
|
64
|
-
`),l&&(f+=s.move(l+`
|
|
65
|
-
`)),f+=s.move(u),a(),f}function J2(e,t,n){return(n?"":" ")+e}function Nf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Z2(e,t,n,r){const i=Nf(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const u=n.createTracker(r);let a=u.move("[");return a+=u.move(n.safe(n.associationId(e),{before:a,after:"]",...u.current()})),a+=u.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=u.move("<"),a+=u.move(n.safe(e.url,{before:a,after:">",...u.current()})),a+=u.move(">")):(s=n.enter("destinationRaw"),a+=u.move(n.safe(e.url,{before:a,after:e.title?" ":`
|
|
66
|
-
`,...u.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=u.move(" "+i),a+=u.move(n.safe(e.title,{before:a,after:i,...u.current()})),a+=u.move(i),s()),o(),a}function eT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Pl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ps(e,t,n){const r=Ei(e),i=Ei(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sx.peek=tT;function sx(e,t,n,r){const i=eT(n),l=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const a=u.charCodeAt(0),f=ps(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(u=Pl(a)+u.slice(1));const c=u.charCodeAt(u.length-1),d=ps(r.after.charCodeAt(0),c,i);d.inside&&(u=u.slice(0,-1)+Pl(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+u+h}function tT(e,t,n){return n.options.emphasis||"*"}function nT(e,t){let n=!1;return Rf(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,nc}),!!((!e.depth||e.depth<3)&&kf(e)&&(t.options.setext||n))}function rT(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(nT(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...l.current(),before:`
|
|
67
|
-
`,after:`
|
|
68
|
-
`});return c(),f(),d+`
|
|
69
|
-
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
70
|
-
`))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),u=n.enter("phrasing");l.move(o+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
|
|
71
|
-
`,...l.current()});return/^[\t ]/.test(a)&&(a=Pl(a.charCodeAt(0))+a.slice(1)),a=a?o+" "+a:o,n.options.closeAtx&&(a+=" "+o),u(),s(),a}ux.peek=iT;function ux(e){return e.value||""}function iT(){return"<"}ax.peek=lT;function ax(e,t,n,r){const i=Nf(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const u=n.createTracker(r);let a=u.move("![");return a+=u.move(n.safe(e.alt,{before:a,after:"]",...u.current()})),a+=u.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=u.move("<"),a+=u.move(n.safe(e.url,{before:a,after:">",...u.current()})),a+=u.move(">")):(s=n.enter("destinationRaw"),a+=u.move(n.safe(e.url,{before:a,after:e.title?" ":")",...u.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=u.move(" "+i),a+=u.move(n.safe(e.title,{before:a,after:i,...u.current()})),a+=u.move(i),s()),a+=u.move(")"),o(),a}function lT(){return"!"}cx.peek=oT;function cx(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("![");const a=n.safe(e.alt,{before:u,after:"]",...s.current()});u+=s.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function oT(){return"!"}fx.peek=sT;function fx(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],s=n.compilePattern(o);let u;if(o.atBreak)for(;u=s.exec(r);){let a=u.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(u.index+1)}}return i+r+i}function sT(){return"`"}function dx(e,t){const n=kf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}hx.peek=uT;function hx(e,t,n,r){const i=Nf(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,u;if(dx(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=f,c}s=n.enter("link"),u=n.enter("label");let a=o.move("[");return a+=o.move(n.containerPhrasing(e,{before:a,after:"](",...o.current()})),a+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=o.move("<"),a+=o.move(n.safe(e.url,{before:a,after:">",...o.current()})),a+=o.move(">")):(u=n.enter("destinationRaw"),a+=o.move(n.safe(e.url,{before:a,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=o.move(" "+i),a+=o.move(n.safe(e.title,{before:a,after:i,...o.current()})),a+=o.move(i),u()),a+=o.move(")"),s(),a}function uT(e,t,n){return dx(e,n)?"<":"["}px.peek=aT;function px(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("[");const a=n.containerPhrasing(e,{before:u,after:"]",...s.current()});u+=s.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function aT(){return"["}function _f(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function cT(e){const t=_f(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function fT(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function mx(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dT(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?fT(n):_f(n);const s=e.ordered?o==="."?")":".":cT(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),mx(n)===o&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=s),n.bulletCurrent=o;const a=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),a}function hT(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function pT(e,t,n,r){const i=hT(n);let l=n.bulletCurrent||_f(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(l+" ".repeat(o-l.length)),s.shift(o);const u=n.enter("listItem"),a=n.indentLines(n.containerFlow(e,s.current()),f);return u(),a;function f(c,d,h){return d?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function mT(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const gT=Us(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function yT(e,t,n,r){return(e.children.some(function(o){return gT(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function xT(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}gx.peek=vT;function gx(e,t,n,r){const i=xT(n),l=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const a=u.charCodeAt(0),f=ps(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(u=Pl(a)+u.slice(1));const c=u.charCodeAt(u.length-1),d=ps(r.after.charCodeAt(0),c,i);d.inside&&(u=u.slice(0,-1)+Pl(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+u+h}function vT(e,t,n){return n.options.strong||"*"}function wT(e,t,n,r){return n.safe(e.value,r)}function kT(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ST(e,t,n){const r=(mx(n)+(n.options.ruleSpaces?" ":"")).repeat(kT(n));return n.options.ruleSpaces?r.slice(0,-1):r}const yx={blockquote:Q2,break:pp,code:X2,definition:Z2,emphasis:sx,hardBreak:pp,heading:rT,html:ux,image:ax,imageReference:cx,inlineCode:fx,link:hx,linkReference:px,list:dT,listItem:pT,paragraph:mT,root:yT,strong:gx,text:wT,thematicBreak:ST};function CT(){return{enter:{table:ET,tableData:mp,tableHeader:mp,tableRow:TT},exit:{codeText:PT,table:bT,tableData:Du,tableHeader:Du,tableRow:Du}}}function ET(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function bT(e){this.exit(e),this.data.inTable=void 0}function TT(e){this.enter({type:"tableRow",children:[]},e)}function Du(e){this.exit(e)}function mp(e){this.enter({type:"tableCell",children:[]},e)}function PT(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,RT));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function RT(e,t){return t==="|"?t:e}function OT(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
72
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:u,tableRow:s}};function o(h,p,x,C){return a(f(h,x,C),h.align)}function s(h,p,x,C){const m=c(h,x,C),y=a([m]);return y.slice(0,y.indexOf(`
|
|
73
|
-
`))}function u(h,p,x,C){const m=x.enter("tableCell"),y=x.enter("phrasing"),g=x.containerPhrasing(h,{...C,before:l,after:l});return y(),m(),g}function a(h,p){return $2(h,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function f(h,p,x){const C=h.children;let m=-1;const y=[],g=p.enter("table");for(;++m<C.length;)y[m]=c(C[m],p,x);return g(),y}function c(h,p,x){const C=h.children;let m=-1;const y=[],g=p.enter("tableRow");for(;++m<C.length;)y[m]=u(C[m],h,p,x);return g(),y}function d(h,p,x){let C=yx.inlineCode(h,p,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function NT(){return{exit:{taskListCheckValueChecked:gp,taskListCheckValueUnchecked:gp,paragraph:IT}}}function _T(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:AT}}}function gp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function IT(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const s=i[l];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function AT(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);l&&s.move(o);let u=yx.listItem(e,t,n,{...r,...s.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),u;function a(f){return f+o}}function LT(){return[d2(),A2(),F2(),CT(),NT()]}function DT(e){return{extensions:[h2(),L2(e),z2(),OT(e),_T()]}}const jT={tokenize:HT,partial:!0},xx={tokenize:$T,partial:!0},vx={tokenize:VT,partial:!0},wx={tokenize:QT,partial:!0},FT={tokenize:WT,partial:!0},kx={name:"wwwAutolink",tokenize:BT,previous:Cx},Sx={name:"protocolAutolink",tokenize:UT,previous:Ex},xn={name:"emailAutolink",tokenize:MT,previous:bx},Jt={};function zT(){return{text:Jt}}let er=48;for(;er<123;)Jt[er]=xn,er++,er===58?er=65:er===91&&(er=97);Jt[43]=xn;Jt[45]=xn;Jt[46]=xn;Jt[95]=xn;Jt[72]=[xn,Sx];Jt[104]=[xn,Sx];Jt[87]=[xn,kx];Jt[119]=[xn,kx];function MT(e,t,n){const r=this;let i,l;return o;function o(c){return!oc(c)||!bx.call(r,r.previous)||If(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return oc(c)?(e.consume(c),s):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(FT,f,a)(c):c===45||c===95||He(c)?(l=!0,e.consume(c),u):f(c)}function a(c){return e.consume(c),i=!0,u}function f(c){return l&&i&&Ke(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function BT(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Cx.call(r,r.previous)||If(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(jT,e.attempt(xx,e.attempt(vx,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function UT(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Ex.call(r,r.previous)&&!If(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Ke(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),l?a:(l=!0,u)):n(c)}function a(c){return c===null||fs(c)||ce(c)||Or(c)||zs(c)?n(c):e.attempt(xx,e.attempt(vx,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function HT(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function $T(e,t,n){let r,i,l;return o;function o(a){return a===46||a===95?e.check(wx,u,s)(a):a===null||ce(a)||Or(a)||a!==45&&zs(a)?u(a):(l=!0,e.consume(a),o)}function s(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),o}function u(a){return i||r||!l?n(a):t(a)}}function VT(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(wx,t,l)(o):o===null||ce(o)||Or(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function QT(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),l):s===93?(e.consume(s),i):s===60||s===null||ce(s)||Or(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||ce(s)||Or(s)?t(s):r(s)}function l(s){return Ke(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ke(s)?(e.consume(s),o):n(s)}}function WT(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return He(l)?n(l):t(l)}}function Cx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function Ex(e){return!Ke(e)}function bx(e){return!(e===47||oc(e))}function oc(e){return e===43||e===45||e===46||e===95||He(e)}function If(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const qT={tokenize:tP,partial:!0};function KT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:JT,continuation:{tokenize:ZT},exit:eP}},text:{91:{name:"gfmFootnoteCall",tokenize:XT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:GT,resolveTo:YT}}}}function GT(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const a=Mt(r.sliceSerialize({start:o.end,end:r.now()}));return a.codePointAt(0)!==94||!l.includes(a.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function YT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function XT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(c){if(l>999||c===93&&!o||c===null||c===91||ce(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Mt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ce(c)||(o=!0),l++,e.consume(c),c===92?f:a}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,a):a(c)}}function JT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,s;return u;function u(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(p)}function f(p){if(o>999||p===93&&!s||p===null||p===91||ce(p))return n(p);if(p===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=Mt(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ce(p)||(s=!0),o++,e.consume(p),p===92?c:f}function c(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}function d(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(l)||i.push(l),le(e,h,"gfmFootnoteDefinitionWhitespace")):n(p)}function h(p){return t(p)}}function ZT(e,t,n){return e.check(Vl,t,e.attempt(qT,t,n))}function eP(e){e.exit("gfmFootnoteDefinition")}function tP(e,t,n){const r=this;return le(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function nP(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let a=u;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[u][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[u][1].end)},c={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[u][1].start)},d=[["enter",f,s],["enter",o[a][1],s],["exit",o[a][1],s],["enter",c,s]],h=s.parser.constructs.insideSpan.null;h&>(d,d.length,0,Ms(h,o.slice(a+1,u),s)),gt(d,d.length,0,[["exit",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["exit",f,s]]),gt(o,a-1,u-a+3,d),u=a+d.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function l(o,s,u){const a=this.previous,f=this.events;let c=0;return d;function d(p){return a===126&&f[f.length-1][1].type!=="characterEscape"?u(p):(o.enter("strikethroughSequenceTemporary"),h(p))}function h(p){const x=Ei(a);if(p===126)return c>1?u(p):(o.consume(p),c++,h);if(c<2&&!n)return u(p);const C=o.exit("strikethroughSequenceTemporary"),m=Ei(p);return C._open=!m||m===2&&!!x,C._close=!x||x===2&&!!m,s(p)}}}class rP{constructor(){this.map=[]}add(t,n,r){iP(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function iP(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function lP(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function oP(){return{flow:{null:{name:"table",tokenize:sP,resolveAll:uP}}}}function sP(e,t,n){const r=this;let i=0,l=0,o;return s;function s(w){let N=r.events.length-1;for(;N>-1;){const q=r.events[N][1].type;if(q==="lineEnding"||q==="linePrefix")N--;else break}const j=N>-1?r.events[N][1].type:null,Q=j==="tableHead"||j==="tableRow"?T:u;return Q===T&&r.parser.lazy[r.now().line]?n(w):Q(w)}function u(w){return e.enter("tableHead"),e.enter("tableRow"),a(w)}function a(w){return w===124||(o=!0,l+=1),f(w)}function f(w){return w===null?n(w):V(w)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h):n(w):Z(w)?le(e,f,"whitespace")(w):(l+=1,o&&(o=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(w)))}function c(w){return w===null||w===124||ce(w)?(e.exit("data"),f(w)):(e.consume(w),w===92?d:c)}function d(w){return w===92||w===124?(e.consume(w),c):c(w)}function h(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),o=!1,Z(w)?le(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):p(w))}function p(w){return w===45||w===58?C(w):w===124?(o=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),x):R(w)}function x(w){return Z(w)?le(e,C,"whitespace")(w):C(w)}function C(w){return w===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),m):w===45?(l+=1,m(w)):w===null||V(w)?b(w):R(w)}function m(w){return w===45?(e.enter("tableDelimiterFiller"),y(w)):R(w)}function y(w){return w===45?(e.consume(w),y):w===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(w))}function g(w){return Z(w)?le(e,b,"whitespace")(w):b(w)}function b(w){return w===124?p(w):w===null||V(w)?!o||i!==l?R(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):R(w)}function R(w){return n(w)}function T(w){return e.enter("tableRow"),O(w)}function O(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),O):w===null||V(w)?(e.exit("tableRow"),t(w)):Z(w)?le(e,O,"whitespace")(w):(e.enter("data"),I(w))}function I(w){return w===null||w===124||ce(w)?(e.exit("data"),O(w)):(e.consume(w),w===92?F:I)}function F(w){return w===92||w===124?(e.consume(w),I):I(w)}}function uP(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,a,f,c;const d=new rP;for(;++n<e.length;){const h=e[n],p=h[1];h[0]==="enter"?p.type==="tableHead"?(s=!1,u!==0&&(yp(d,t,u,a,f),f=void 0,u=0),a={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(n,0,[["enter",a,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(n,0,[["enter",f,t]])),i=p.type==="tableDelimiterRow"?2:f?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=xo(d,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=xo(d,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):p.type==="tableHead"?(s=!0,u=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(u=n,l[1]!==0?(o[0]=o[1],c=xo(d,t,l,i,n,c)):o[1]!==0&&(c=xo(d,t,o,i,n,c)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&yp(d,t,u,a,f),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=lP(t.events,n))}return e}function xo(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(l.end=Object.assign({},zr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const u=zr(t.events,n[1]);if(l={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const a=zr(t.events,n[2]),f=zr(t.events,n[3]),c={type:s,start:Object.assign({},a),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,x=n[3]-n[2]-1;e.add(p,x,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},zr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function yp(e,t,n,r,i){const l=[],o=zr(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function zr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const aP={name:"tasklistCheck",tokenize:fP};function cP(){return{text:{91:aP}}}function fP(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),l)}function l(u){return ce(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return V(u)?t(u):Z(u)?e.check({tokenize:dP},t,n)(u):n(u)}}function dP(e,t,n){return le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function hP(e){return Dy([zT(),KT(),nP(e),oP(),cP()])}const pP={};function mP(e){const t=this,n=e||pP,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(hP(n)),l.push(LT()),o.push(DT(n))}const ju={},gP="5.4.1",Tx=U.createContext({isDark:!0,toggle:()=>{}}),yP=()=>U.useContext(Tx),Px=typeof import.meta<"u"&&(ju==null?void 0:ju.VITE_GATEWAY_URL)||"http://localhost:18789",Wl=be.create({baseURL:Px,timeout:3e4});function xP(e){Wl.defaults.baseURL=e.replace(/\/$/,"")}const vP=new Aw({defaultOptions:{queries:{staleTime:5e3,retry:1,refetchOnWindowFocus:!1}}});function $s(){return Jg({queryKey:["gateway-status"],queryFn:async()=>(await Wl.get("/api/status")).data,refetchInterval:5e3,retry:!1})}function wP(){return Jg({queryKey:["cost-summary"],queryFn:async()=>(await Wl.get("/api/costs")).data,refetchInterval:3e4,retry:!1})}function kP(){return{id:"0",role:"assistant",timestamp:new Date().toISOString(),content:`🦅 **HyperClaw**
|
|
74
|
-
|
|
75
|
-
Welcome. Your gateway agent is ready — type or speak a message to begin.`}}function SP(){const e=_s(),[t,n]=U.useState([kP()]),[r,i]=U.useState(!1),l=Ww({mutationFn:async({message:o,thinking:s})=>(await Wl.post("/api/chat",{message:o,thinking:s})).data,onMutate:async({message:o})=>{n(s=>[...s,{id:Date.now().toString(),role:"user",content:o,timestamp:new Date().toISOString()}]),i(!0)},onSuccess:o=>{n(s=>[...s,{id:(Date.now()+1).toString(),role:"assistant",content:o.response||o.text||"(empty)",timestamp:new Date().toISOString(),thinking:o.thinking,toolCalls:o.toolCalls}]),i(!1),e.invalidateQueries({queryKey:["gateway-status"]})},onError:()=>{n(o=>[...o,{id:(Date.now()+1).toString(),role:"assistant",timestamp:new Date().toISOString(),content:"_⚠️ Gateway unreachable. Start with: `hyperclaw daemon start`_"}]),i(!1)}});return{messages:t,sendMutation:l,streaming:r,clearChat:()=>n([])}}function CP(e){const[t,n]=U.useState(!1),r=U.useRef(null),i=typeof window<"u"&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window),l=U.useCallback(()=>{if(!i||t)return;const s=window.SpeechRecognition||window.webkitSpeechRecognition,u=new s;u.lang="el-GR",u.continuous=!1,u.interimResults=!0,u.onstart=()=>n(!0),u.onend=()=>n(!1),u.onerror=()=>n(!1),u.onresult=a=>e(Array.from(a.results).map(f=>f[0].transcript).join("")),u.start(),r.current=u},[i,t,e]),o=U.useCallback(()=>{var s;(s=r.current)==null||s.stop(),n(!1)},[]);return{listening:t,start:l,stop:o,supported:i}}function EP(e){if(!("speechSynthesis"in window))return;window.speechSynthesis.cancel();const t=new SpeechSynthesisUtterance(e.replace(/[#*`_~[\]()>]/g,"").replace(/\n+/g," ").slice(0,500));t.lang="el-GR",t.rate=1.05,window.speechSynthesis.speak(t)}const Af=[{id:"",name:"General",prompt:"",color:"var(--text3)"},{id:"ethical-hacker",name:"Ethical Hacker",prompt:"Act as an ethical hacker / security researcher. Authorized testing only. ",color:"#ef4444"},{id:"hyperclaw",name:"HyperClaw Dev",prompt:"You are helping with HyperClaw development. Be concise and code-focused. ",color:"var(--accent2)"},{id:"osint",name:"OSINT",prompt:"Act as an OSINT analyst. Passive reconnaissance, open-source research. ",color:"#8b5cf6"}];function bP(e){var n;const t=Af.find(r=>r.id===e);if(t)return t.name;try{return((n=JSON.parse(localStorage.getItem("hc_projects")||"[]").find(r=>r.id===e))==null?void 0:n.name)||"General"}catch{return"General"}}function TP(e){var n;const t=Af.find(r=>r.id===e);if(t)return t.prompt;try{return(((n=JSON.parse(localStorage.getItem("hc_projects")||"[]").find(r=>r.id===e))==null?void 0:n.prompt)||"")+" "}catch{return""}}const ht={Plus:()=>S.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:S.jsx("path",{d:"M6 1v10M1 6h10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),Search:()=>S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[S.jsx("circle",{cx:"5",cy:"5",r:"3.5",stroke:"currentColor",strokeWidth:"1.2"}),S.jsx("path",{d:"M8 8l3 3",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),Settings:()=>S.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[S.jsx("circle",{cx:"6.5",cy:"6.5",r:"2",stroke:"currentColor",strokeWidth:"1.2"}),S.jsx("path",{d:"M6.5 1v1.2M6.5 10.8V12M1 6.5h1.2M10.8 6.5H12M2.7 2.7l.85.85M9.45 9.45l.85.85M2.7 10.3l.85-.85M9.45 3.55l.85-.85",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),Terminal:()=>S.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:S.jsx("path",{d:"M1.5 2L5.5 6.5L1.5 11M7 11H11.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),Close:()=>S.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:S.jsx("path",{d:"M1.5 1.5l10 10M11.5 1.5l-10 10",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})}),Sun:()=>S.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[S.jsx("circle",{cx:"7",cy:"7",r:"2.5",stroke:"currentColor",strokeWidth:"1.3"}),S.jsx("path",{d:"M7 1v1.5M7 11.5V13M1 7h1.5M11.5 7H13M2.6 2.6l1.1 1.1M10.3 10.3l1.1 1.1M2.6 11.4l1.1-1.1M10.3 3.7l1.1-1.1",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),Moon:()=>S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:S.jsx("path",{d:"M11.5 8.5A5.5 5.5 0 015.5 2.5 5.5 5.5 0 1011.5 8.5z",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round"})}),Mic:({on:e})=>S.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[S.jsx("rect",{x:"4.5",y:"1",width:"5",height:"7",rx:"2.5",stroke:"currentColor",strokeWidth:"1.3",fill:e?"currentColor":"none",fillOpacity:e?".3":"0"}),S.jsx("path",{d:"M2 7c0 2.76 2.24 5 5 5s5-2.24 5-5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),S.jsx("line",{x1:"7",y1:"12",x2:"7",y2:"13",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),Speaker:({on:e})=>S.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[S.jsx("path",{d:"M2 5h2.5L8 2v10L4.5 9H2V5z",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round",fill:e?"currentColor":"none",fillOpacity:e?".25":"0"}),S.jsx("path",{d:"M10 4.5a3.5 3.5 0 010 5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),Chat:()=>S.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:S.jsx("path",{d:"M2 2h9v8H7L4.5 12V10H2V2z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})}),Send:()=>S.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:S.jsx("path",{d:"M7.5 12V3M3.5 7l4-4 4 4",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})};function PP({onSave:e,onClose:t}){const[n,r]=U.useState(""),[i,l]=U.useState(""),[o,s]=U.useState("#22d3ee");return S.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(6px)"},onClick:t,children:S.jsxs("div",{className:"card w-96 max-w-[90vw] rounded-2xl p-6",style:{background:"var(--bg2)"},onClick:u=>u.stopPropagation(),children:[S.jsx("div",{className:"text-sm font-semibold mb-5",style:{color:"var(--text)"},children:"✦ New Project / Agent"}),S.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"Name"}),S.jsx("input",{value:n,onChange:u=>r(u.target.value),placeholder:"e.g. Bug Hunter",className:"input-base w-full rounded-lg px-3 py-2 text-sm mb-3"}),S.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"System prompt"}),S.jsx("textarea",{value:i,onChange:u=>l(u.target.value),rows:3,placeholder:"You are a security researcher…",className:"input-base w-full rounded-lg px-3 py-2 text-sm mb-3 resize-none"}),S.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"Accent color"}),S.jsx("input",{type:"color",value:o,onChange:u=>s(u.target.value),className:"w-full h-9 rounded-lg px-2 mb-4 cursor-pointer",style:{background:"var(--bg3)",border:"1px solid var(--border)"}}),S.jsxs("div",{className:"flex gap-2 justify-end",children:[S.jsx("button",{onClick:t,className:"btn-ghost text-xs px-4 py-2 rounded-lg",children:"Cancel"}),S.jsx("button",{onClick:()=>{n.trim()&&e({id:"custom-"+Date.now(),name:n.trim(),prompt:i,color:o})},className:"btn-primary text-xs px-4 py-2 rounded-lg",children:"Create"})]})]})})}const RP=[{page:"dashboard",label:"Dashboard",icon:S.jsx("span",{children:"📊"})},{page:"canvas",label:"Canvas",icon:S.jsx("span",{children:"🎨"})},{page:"hub",label:"Skills",icon:S.jsx("span",{children:"🧩"})},{page:"memory",label:"Memory",icon:S.jsx("span",{children:"🧠"})},{page:"settings",label:"Settings",icon:S.jsx(ht.Settings,{})}];function OP({page:e,setPage:t,activeProject:n,setActiveProject:r,onNewChat:i}){const{data:l,isError:o}=$s(),{isDark:s,toggle:u}=yP(),[a,f]=U.useState(""),[c,d]=U.useState(!1),[h,p]=U.useState(()=>{try{return JSON.parse(localStorage.getItem("hc_projects")||"[]")}catch{return[]}}),[x]=U.useState(()=>{try{return JSON.parse(localStorage.getItem("hc_history")||"[]")}catch{return[]}}),C=[...Af,...h],m=x.filter(g=>!a||g.title.toLowerCase().includes(a.toLowerCase())),y=g=>{const b=[...h,g];p(b),localStorage.setItem("hc_projects",JSON.stringify(b)),d(!1),r(g.id)};return S.jsxs(S.Fragment,{children:[c&&S.jsx(PP,{onSave:y,onClose:()=>d(!1)}),S.jsxs("aside",{className:"sidebar-bg w-56 flex-shrink-0 flex flex-col h-screen overflow-hidden",style:{borderRight:"1px solid var(--border)"},children:[S.jsxs("div",{className:"px-3 pt-3 pb-2 flex-shrink-0",children:[S.jsxs("div",{className:"flex items-center justify-between px-2 py-1 mb-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("img",{src:"/icon.png",alt:"",className:"w-6 h-6 rounded-md"}),S.jsx("span",{className:"text-sm font-semibold",style:{color:"var(--text)"},children:"HyperClaw"})]}),S.jsx("button",{onClick:u,title:"Toggle theme",className:"p-1.5 rounded-lg transition-colors nav-item",children:s?S.jsx(ht.Sun,{}):S.jsx(ht.Moon,{})})]}),S.jsxs("button",{onClick:i,className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs mb-1 font-medium transition-colors",style:{background:"var(--accentBg)",color:"var(--accent)",border:"1px solid var(--accentBorder)"},onMouseEnter:g=>g.currentTarget.style.opacity=".8",onMouseLeave:g=>g.currentTarget.style.opacity="1",children:[S.jsx(ht.Plus,{})," New chat"]}),S.jsxs("div",{className:"relative mb-1",children:[S.jsx("span",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 pointer-events-none",style:{color:"var(--text3)"},children:S.jsx(ht.Search,{})}),S.jsx("input",{value:a,onChange:g=>f(g.target.value),placeholder:"Search…",className:"input-base w-full rounded-lg pl-7 pr-3 py-1.5 text-xs"})]}),S.jsxs("button",{onClick:()=>d(!0),className:"nav-item w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs",children:[S.jsx(ht.Settings,{})," Customize"]})]}),S.jsxs("div",{className:"px-3 pt-1 pb-1 flex-shrink-0",children:[S.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-1.5",style:{color:"var(--text3)"},children:"Projects"}),C.map(g=>S.jsxs("button",{onClick:()=>{r(g.id),t("chat")},className:`w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs text-left transition-colors ${n===g.id?"nav-active":"nav-item"}`,children:[S.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:g.color==="var(--accent2)"||g.color==="var(--text3)"?"var(--accent2)":g.color}}),S.jsx("span",{className:"truncate",children:g.name})]},g.id)),S.jsxs("button",{onClick:()=>d(!0),className:"nav-item w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs mt-0.5",style:{color:"var(--text3)"},children:[S.jsx(ht.Plus,{})," New project…"]})]}),S.jsxs("div",{className:"flex-1 overflow-y-auto px-3 pt-1 min-h-0",children:[S.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-1.5",style:{color:"var(--text3)"},children:"Chats"}),m.length===0?S.jsx("div",{className:"text-xs px-3 py-1",style:{color:"var(--border2)"},children:a?"No results":"No recent chats"}):m.slice(0,20).map(g=>S.jsxs("button",{onClick:()=>t("chat"),className:"nav-item w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs text-left truncate",children:[S.jsx(ht.Chat,{}),S.jsx("span",{className:"truncate",style:{color:"var(--text2)"},children:g.title})]},g.id))]}),S.jsx("div",{className:"px-3 pb-2 pt-1 flex-shrink-0",style:{borderTop:"1px solid var(--border)"},children:RP.map(({page:g,label:b,icon:R})=>S.jsxs("button",{onClick:()=>t(g),className:`w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs transition-colors ${e===g?"nav-active":"nav-item"}`,children:[R,S.jsx("span",{children:b})]},g))}),S.jsxs("div",{className:"px-4 py-2.5 flex-shrink-0",style:{borderTop:"1px solid var(--border)"},children:[S.jsxs("div",{className:`inline-flex items-center gap-1.5 text-xs font-medium ${l&&!o?"accent-text":"text-red-400"}`,children:[S.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${l&&!o?"animate-pulse":""}`,style:{background:l&&!o?"var(--accent)":"#ef4444"}}),l&&!o?"✓ Online":"✗ Offline"]}),(l==null?void 0:l.model)&&S.jsx("div",{className:"text-[10px] mt-0.5 truncate font-mono",style:{color:"var(--text3)"},children:l.model})]})]})]})}function NP({activeProject:e}){const{messages:t,sendMutation:n,streaming:r,clearChat:i}=SP(),[l,o]=U.useState(""),[s,u]=U.useState("none"),[a,f]=U.useState(0),[c,d]=U.useState(!1),[h,p]=U.useState(!1),[x,C]=U.useState(!1),m=U.useRef(null),y=U.useRef(null),{listening:g,start:b,stop:R,supported:T}=CP(U.useCallback(w=>o(w),[]));U.useEffect(()=>{var w;(w=m.current)==null||w.scrollIntoView({behavior:"smooth"})},[t.length,r]),U.useEffect(()=>{if(!r){f(0);return}f(0);const w=setInterval(()=>f(N=>N+1),1e3);return()=>clearInterval(w)},[r]);const O=t[t.length-1];U.useEffect(()=>{h&&!r&&(O==null?void 0:O.role)==="assistant"&&O.id!=="0"&&EP(O.content)},[O==null?void 0:O.id,r,h]);const I=U.useCallback(()=>{if(!l.trim()||n.isPending)return;const w=l.trim(),N=TP(e);if(n.mutate({message:N?N+w:w,thinking:s}),!x){C(!0);try{const j=JSON.parse(localStorage.getItem("hc_history")||"[]");j.unshift({id:Date.now().toString(),title:w.slice(0,40),ts:Date.now()}),localStorage.setItem("hc_history",JSON.stringify(j.slice(0,30)))}catch{}}o(""),y.current&&(y.current.style.height="auto")},[l,s,e,n,x]),F=({onClick:w,active:N,children:j,title:Q})=>S.jsx("button",{onClick:w,title:Q,className:"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-lg transition-colors",style:{border:N?"1px solid var(--accentBorder)":"1px solid var(--border)",background:N?"var(--accentBg)":"transparent",color:N?"var(--accent)":"var(--text3)"},onMouseEnter:q=>{N||(q.currentTarget.style.background="var(--bg3)",q.currentTarget.style.color="var(--text2)")},onMouseLeave:q=>{N||(q.currentTarget.style.background="transparent",q.currentTarget.style.color="var(--text3)")},children:j});return S.jsxs("div",{className:"flex flex-col h-full",children:[S.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 flex-shrink-0",style:{borderBottom:"1px solid var(--border)",background:"var(--header)"},children:[S.jsx("span",{className:"text-sm font-medium",style:{color:"var(--text2)"},children:bP(e)}),S.jsxs("div",{className:"flex items-center gap-1.5",children:[S.jsx(F,{onClick:i,children:"Clear"}),T&&S.jsxs(F,{onClick:()=>p(w=>!w),active:h,title:"Toggle voice output",children:[S.jsx(ht.Speaker,{on:h})," Voice"]}),S.jsxs(F,{onClick:()=>d(w=>!w),active:c,title:"Toggle terminal",children:[S.jsx(ht.Terminal,{})," Terminal"]})]})]}),S.jsxs("div",{className:"msgs-bg flex-1 overflow-y-auto px-4 py-5 space-y-4 min-h-0",children:[S.jsxs("div",{className:"flex flex-col items-center pt-4 pb-3 flex-shrink-0 select-none pointer-events-none",style:{opacity:.45},children:[S.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:700,fontSize:"2.4rem",letterSpacing:"0.3em",color:"var(--accent)",textShadow:"0 0 32px var(--accent), 0 0 64px var(--accentBg)",lineHeight:1},children:"HYPERCLAW"}),S.jsxs("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"11px",color:"var(--accent)",letterSpacing:"0.25em",marginTop:"8px",opacity:.75},children:["HyperClaw Bot · AI Gateway v",gP]})]}),t.map(w=>S.jsxs("div",{className:`msg-in flex ${w.role==="user"?"justify-end":"justify-start"}`,children:[w.role==="assistant"&&S.jsx("div",{className:"w-7 h-7 rounded-full flex items-center justify-center text-sm mr-2.5 flex-shrink-0 mt-0.5 accent-bg-sm",style:{border:"1px solid var(--accentBorder)"},children:"🦅"}),S.jsxs("div",{className:`max-w-2xl rounded-2xl px-4 py-3 text-sm ${w.role==="user"?"bubble-user rounded-tr-sm":"bubble-asst rounded-tl-sm"}`,children:[w.thinking&&S.jsxs("div",{className:"text-xs mb-2 pb-2 font-mono",style:{color:"var(--text3)",borderBottom:"1px solid var(--border)"},children:["💭 ",w.thinking.slice(0,120),"…"]}),w.toolCalls&&w.toolCalls.length>0&&S.jsx("div",{className:"mb-2 space-y-1",children:w.toolCalls.map((N,j)=>{var Q;return S.jsxs("div",{className:"text-xs rounded px-2 py-1 font-mono",style:{background:"var(--bg3)",border:"1px solid var(--border)"},children:["🔧 ",S.jsx("span",{className:"accent-text",children:N.name}),S.jsxs("span",{style:{color:"var(--text3)"},children:[" → ",(Q=N.result)==null?void 0:Q.slice(0,60)]})]},j)})}),S.jsx(n2,{remarkPlugins:[mP],components:{code({className:N,children:j,...Q}){return(N==null?void 0:N.includes("language-"))?S.jsx("pre",{className:"rounded-lg p-3 overflow-x-auto my-2 text-xs font-mono",style:{background:"var(--bg)",border:"1px solid var(--border)"},children:S.jsx("code",{className:N,children:j})}):S.jsx("code",{className:"rounded px-1.5 py-0.5 text-xs font-mono accent-text",style:{background:"var(--bg3)"},...Q,children:j})},a({children:N,href:j}){return S.jsx("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"accent-text underline",children:N})},ul({children:N}){return S.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1",children:N})},ol({children:N}){return S.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1",children:N})},strong({children:N}){return S.jsx("strong",{className:"font-bold",children:N})},h1({children:N}){return S.jsx("h1",{className:"text-base font-bold mt-2 mb-1",children:N})},h2({children:N}){return S.jsx("h2",{className:"text-sm font-bold mt-2 mb-1",children:N})},h3({children:N}){return S.jsx("h3",{className:"text-sm font-semibold mt-1 mb-0.5",children:N})},blockquote({children:N}){return S.jsx("blockquote",{className:"pl-3 my-1",style:{borderLeft:"2px solid var(--border2)",color:"var(--text2)"},children:N})}},children:w.content}),S.jsx("div",{className:"text-xs mt-1.5 text-right tabular-nums",style:{color:"var(--text3)",opacity:.5},children:new Date(w.timestamp).toLocaleTimeString()})]})]},w.id)),r&&S.jsxs("div",{className:"msg-in flex items-center gap-2.5",children:[S.jsx("div",{className:"w-7 h-7 rounded-full flex items-center justify-center text-sm accent-bg-sm",style:{border:"1px solid var(--accentBorder)"},children:"🦅"}),S.jsxs("div",{className:"bubble-asst rounded-2xl rounded-tl-sm px-4 py-3 flex items-center gap-2",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full accent-bg typing-dot-1",style:{background:"var(--accent)"}}),S.jsx("span",{className:"w-1.5 h-1.5 rounded-full accent-bg typing-dot-2",style:{background:"var(--accent)"}}),S.jsx("span",{className:"w-1.5 h-1.5 rounded-full accent-bg typing-dot-3",style:{background:"var(--accent)"}}),S.jsx("span",{className:"text-xs ml-1",style:{color:"var(--text3)"},children:a>0?`${a}s`:"Thinking…"})]})]}),S.jsx("div",{ref:m})]}),S.jsxs("div",{className:"input-glow px-4 pt-3 pb-4 flex-shrink-0",style:{background:"var(--header)",borderTop:"1px solid var(--border)"},children:[S.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[S.jsx("span",{className:"text-xs",style:{color:"var(--text3)"},children:"Thinking:"}),["none","low","medium","high"].map(w=>S.jsx("button",{onClick:()=>u(w),className:"text-xs px-2 py-0.5 rounded-md transition-all",style:{background:s===w?"var(--bg4)":"transparent",color:s===w?"var(--text)":"var(--text3)"},children:w},w))]}),S.jsxs("div",{className:"flex gap-2 items-end",children:[S.jsx("textarea",{ref:y,value:l,onChange:w=>o(w.target.value),onKeyDown:w=>w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),I()),rows:1,placeholder:"Ask HyperClaw anything… Enter to send · Shift+Enter new line",className:"input-base flex-1 resize-none rounded-xl px-4 py-3 text-sm",style:{minHeight:"48px",maxHeight:"140px"},onInput:w=>{const N=w.target;N.style.height="auto",N.style.height=Math.min(N.scrollHeight,140)+"px"}}),T&&S.jsx("button",{onClick:g?R:b,title:g?"Stop":"Voice input",className:`w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 mb-0.5 transition-all ${g?"mic-active":""}`,style:{background:g?"var(--accentBg)":"var(--bg3)",border:`1px solid ${g?"var(--accentBorder)":"var(--border)"}`,color:g?"var(--accent)":"var(--text3)"},children:S.jsx(ht.Mic,{on:g})}),S.jsx("button",{onClick:I,disabled:!l.trim()||n.isPending,className:"btn-primary w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 mb-0.5",children:S.jsx(ht.Send,{})})]}),g&&S.jsxs("div",{className:"mt-1.5 text-xs flex items-center gap-1.5 animate-pulse accent-text",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),"Listening… speak now"]})]}),S.jsx(_P,{open:c,onClose:()=>d(!1)})]})}function _P({open:e,onClose:t}){const[n,r]=U.useState(""),[i,l]=U.useState([]),[o,s]=U.useState(!1),[u,a]=U.useState(""),f=U.useRef(null),c=U.useRef(null);U.useEffect(()=>{var x;(x=f.current)==null||x.scrollTo({top:f.current.scrollHeight})},[i.length]),U.useEffect(()=>{e&&setTimeout(()=>{var x;return(x=c.current)==null?void 0:x.focus()},50)},[e]);const d=U.useCallback(async x=>{const C=x.trim();if(!(!C||o)){r(""),l(m=>[...m,`$ ${C}`]),s(!0);try{const{data:m}=await Wl.post("/api/terminal",{command:C});if(m.user||m.cwd){const y=m.cwd??"",g=/^[A-Za-z]:[\\\/]/.test(y);a(g?`PS ${y}>`:`${m.user??"user"}@${m.hostname??"local"}:${y}`)}m.stdout&&l(y=>[...y,m.stdout.trimEnd()]),m.stderr&&l(y=>[...y,`ERR:${m.stderr.trimEnd()}`]),!m.stdout&&!m.stderr&&l(y=>[...y,`(exit ${m.code??0})`])}catch(m){l(y=>{var g,b;return[...y,`Error: ${((b=(g=m==null?void 0:m.response)==null?void 0:g.data)==null?void 0:b.error)||(m==null?void 0:m.message)||String(m)}`]})}finally{s(!1),setTimeout(()=>{var m;return(m=c.current)==null?void 0:m.focus()},0)}}},[o]),h=()=>{n.trim()&&d(n)},p=[{label:"npm install",cmd:"npm install"},{label:"npm run build",cmd:"npm run build"},{label:"npm test",cmd:"npm test"},{label:"doctor --fix",cmd:"npx hyperclaw doctor --fix"},{label:"gateway status",cmd:"npx hyperclaw gateway status"}];return e?S.jsxs("div",{className:"flex flex-col flex-shrink-0",style:{height:220,borderTop:"1px solid var(--border)",background:"var(--bg2)"},children:[S.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 flex-shrink-0",style:{background:"var(--bg3)",borderBottom:"1px solid var(--border)"},children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"flex gap-1.5",children:["#ff5f57","#febc2e","#28c840"].map(x=>S.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{background:x,opacity:.7}},x))}),S.jsx("span",{className:"text-xs font-mono ml-1",style:{color:"var(--text3)"},children:u||"Terminal — HyperClaw"}),o&&S.jsx("span",{className:"text-xs animate-pulse",style:{color:"#fbbf24"},children:"● running"})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("button",{onClick:()=>l([]),className:"text-xs transition-colors",style:{color:"var(--text3)"},children:"clear"}),S.jsx("button",{onClick:t,className:"transition-colors",style:{color:"var(--text3)"},children:S.jsx(ht.Close,{})})]})]}),S.jsx("div",{className:"flex gap-1.5 px-3 py-1.5 flex-shrink-0 overflow-x-auto",style:{borderBottom:"1px solid var(--border)"},children:p.map(({label:x,cmd:C})=>S.jsx("button",{onClick:()=>void d(C),disabled:o,title:C,className:"btn-ghost text-xs px-2.5 py-1 rounded-md font-mono whitespace-nowrap flex-shrink-0 disabled:opacity-40 transition-colors",children:x},x))}),S.jsx("div",{ref:f,className:"flex-1 overflow-y-auto px-4 py-2 font-mono text-xs space-y-0.5 min-h-0",style:{color:"var(--text2)"},children:i.length===0?S.jsx("span",{style:{color:"var(--border2)"},children:"Use the buttons above or type a command."}):i.map((x,C)=>S.jsx("div",{style:{color:x.startsWith("$")?"var(--accent)":x.startsWith("ERR:")||x.startsWith("Error")?"#f87171":"var(--text2)"},children:x.startsWith("ERR:")?x.slice(4):x},C))}),S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 flex-shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg3)"},children:[S.jsx("span",{className:"font-mono text-xs flex-shrink-0 accent-text",children:"›"}),S.jsx("input",{ref:c,value:n,onChange:x=>r(x.target.value),onKeyDown:x=>x.key==="Enter"&&h(),placeholder:"Run a command…",disabled:o,className:"flex-1 bg-transparent text-xs font-mono outline-none disabled:opacity-50",style:{color:"var(--text)",caretColor:"var(--accent)"}}),o&&S.jsx("div",{className:"w-3 h-3 rounded-full border border-t-transparent animate-spin flex-shrink-0",style:{borderColor:"#fbbf24",borderTopColor:"transparent"}})]})]}):null}function IP(){var i;const{data:e,isLoading:t,isError:n}=$s(),{data:r}=wP();return t?S.jsx("div",{className:"p-8 text-sm",style:{color:"var(--text3)"},children:"Loading…"}):S.jsxs("div",{className:"p-6 space-y-4 overflow-y-auto",children:[S.jsxs("div",{className:"rounded-2xl p-5 flex items-center justify-between",style:{background:"var(--accentBg)",border:"1px solid var(--accentBorder)"},children:[S.jsxs("div",{children:[S.jsx("div",{className:"text-xs uppercase tracking-wider flex items-center gap-1 accent-text",children:"🦅 HyperClaw Dashboard"}),S.jsx("div",{className:"mt-1 text-xl font-bold",children:(e==null?void 0:e.agentName)||"Your gateway agent"}),S.jsx("div",{className:"mt-0.5 text-xs",style:{color:"var(--text2)"},children:e?`${n?"Offline":"Online"} · ${e.model} · :${e.port}`:"Waiting…"})]}),S.jsxs("div",{className:`inline-flex items-center gap-1.5 text-xs font-medium ${e&&!n?"accent-text":"text-red-400"}`,children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full animate-pulse",style:{background:e&&!n?"var(--accent)":"#ef4444"}}),e&&!n?"✓ Online":"✗ Offline"]})]}),S.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Gateway",value:n?"Offline":"Online",accent:!0,icon:"📡"},{label:"Channels",value:String(((i=e==null?void 0:e.channels)==null?void 0:i.length)||0),accent:!0,icon:"📱"},{label:"Sessions",value:String((e==null?void 0:e.sessions)||0),accent:!1,icon:"👥"}].map(l=>S.jsxs("div",{className:"card rounded-xl",children:[S.jsxs("div",{className:"text-xs flex items-center gap-1.5 mb-2",style:{color:"var(--text3)"},children:[l.icon," ",l.label]}),S.jsx("div",{className:`text-2xl font-bold ${l.accent?"accent-text":""}`,style:l.accent?{}:{color:"var(--text)"},children:l.value})]},l.label))}),e&&S.jsxs("div",{className:"card rounded-xl",children:[S.jsx("div",{className:"text-xs uppercase tracking-wider mb-3",style:{color:"var(--text3)"},children:"Gateway Info"}),[["Port",String(e.port)],["Model",e.model],["Agent",e.agentName],["Uptime",e.uptime]].map(([l,o])=>S.jsxs("div",{className:"flex justify-between text-sm py-1.5",style:{borderBottom:"1px solid var(--border)"},children:[S.jsx("span",{style:{color:"var(--text3)"},children:l}),S.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text2)"},children:o})]},l))]}),(r==null?void 0:r.summary)&&(r.summary.totalRuns??0)>0&&S.jsxs("div",{className:"card rounded-xl",children:[S.jsx("div",{className:"text-xs uppercase tracking-wider mb-3",style:{color:"var(--text3)"},children:"💰 Cost"}),S.jsx("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[["Runs",String(r.summary.totalRuns)],["Input",(r.summary.totalInput??0).toLocaleString()],["Output",(r.summary.totalOutput??0).toLocaleString()],["USD","$"+(r.summary.totalCostUsd??0).toFixed(4)]].map(([l,o])=>S.jsxs("div",{children:[S.jsx("span",{style:{color:"var(--text3)"},children:l}),S.jsx("div",{className:"font-mono accent-text",children:o})]},l))})]})]})}function Fu({title:e,icon:t,desc:n,cmd:r}){return S.jsx("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:S.jsxs("div",{children:[S.jsx("div",{className:"text-5xl mb-4",children:t}),S.jsx("h2",{className:"text-lg font-bold mb-2",style:{color:"var(--text2)"},children:e}),S.jsx("p",{className:"text-sm max-w-xs",style:{color:"var(--text3)"},children:n}),r&&S.jsxs("div",{className:"mt-4 inline-block font-mono text-xs rounded-lg px-4 py-2 accent-text",style:{background:"var(--bg3)"},children:["$ ",r]})]})})}function AP(){const{data:e}=$s(),t=_s(),[n,r]=U.useState(Px),[i,l]=U.useState(!1),o=U.useCallback(()=>{xP(n),t.invalidateQueries(),l(!0),setTimeout(()=>l(!1),1500)},[n,t]);return S.jsxs("div",{className:"p-6 space-y-4 overflow-y-auto",children:[S.jsx("h2",{className:"text-lg font-bold flex items-center gap-2",style:{color:"var(--text2)"},children:"⚙️ Settings"}),S.jsxs("div",{className:"card rounded-xl space-y-3",children:[S.jsx("div",{className:"text-xs uppercase tracking-wider",style:{color:"var(--text3)"},children:"Gateway Connection"}),S.jsxs("div",{children:[S.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"Gateway URL"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("input",{value:n,onChange:s=>r(s.target.value),onKeyDown:s=>s.key==="Enter"&&o(),className:"input-base flex-1 rounded-lg px-3 py-2 text-sm"}),S.jsx("button",{onClick:o,className:`px-3 py-2 rounded-lg text-xs font-medium transition-all text-white ${i?"bg-green-600":"btn-primary"}`,children:i?"✓":"Apply"})]})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:e?"var(--accent)":"#ef4444",animation:e?"pulse 2s infinite":"none"}}),S.jsx("span",{className:"text-xs",style:{color:"var(--text3)"},children:e?`Connected · port ${e.port}`:"Disconnected"})]})]})]})}function LP(){const[e,t]=U.useState("chat"),[n,r]=U.useState(""),[i,l]=U.useState(0),[o,s]=U.useState(()=>{try{return localStorage.getItem("hc_theme")!=="light"}catch{return!0}}),{data:u}=$s(),a=!!(u!=null&&u.daemonMode),f=U.useCallback(()=>{s(h=>{const p=!h;try{localStorage.setItem("hc_theme",p?"dark":"light")}catch{}return p})},[]);U.useEffect(()=>{document.documentElement.setAttribute("data-theme",o?"dark":"light"),document.documentElement.setAttribute("data-daemon",a?"true":"false")},[o,a]);const c=()=>{l(h=>h+1),t("chat")},d=()=>{switch(e){case"chat":return S.jsx(NP,{activeProject:n},i);case"dashboard":return S.jsx(IP,{});case"canvas":return S.jsx(Fu,{title:"Canvas",icon:"🎨",desc:"AI-generated UI components",cmd:"hyperclaw canvas show"});case"hub":return S.jsx(Fu,{title:"Skill Hub",icon:"🧩",desc:"Browse and install skills",cmd:"hyperclaw hub"});case"memory":return S.jsx(Fu,{title:"Memory",icon:"🧠",desc:"AGENTS.md and MEMORY.md",cmd:"hyperclaw memory show"});case"settings":return S.jsx(AP,{})}};return S.jsx(Tx.Provider,{value:{isDark:o,toggle:f},children:S.jsxs("div",{className:"flex h-screen overflow-hidden",style:{background:"var(--bg)",color:"var(--text)"},children:[S.jsx(OP,{page:e,setPage:t,activeProject:n,setActiveProject:r,onNewChat:c}),S.jsx("main",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:d()})]})})}function DP(){return S.jsx(Lw,{client:vP,children:S.jsx(LP,{})})}zu.createRoot(document.getElementById("root")).render(S.jsx(Jx.StrictMode,{children:S.jsx(DP,{})}));
|