newcraw 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/REPL-DECTPCL5.js +50 -0
- package/dist/{acp-J4WDYGRX.js → acp-HA476EHW.js} +69 -40
- package/dist/acp-HA476EHW.js.map +7 -0
- package/dist/{agentsValidate-UBOER2IN.js → agentsValidate-EDPFUUMG.js} +13 -10
- package/dist/{agentsValidate-UBOER2IN.js.map → agentsValidate-EDPFUUMG.js.map} +1 -1
- package/dist/{ask-MGUO3L35.js → ask-5SP4YYRD.js} +62 -52
- package/dist/ask-5SP4YYRD.js.map +7 -0
- package/dist/{autoUpdater-2GS6LRPK.js → autoUpdater-FFMM2DR7.js} +5 -4
- package/dist/chunk-2BVCVKKB.js +135 -0
- package/dist/chunk-2BVCVKKB.js.map +7 -0
- package/dist/{chunk-2C43OXE7.js → chunk-2JCTO2EY.js} +38 -59
- package/dist/chunk-2JCTO2EY.js.map +7 -0
- package/dist/{chunk-OJIMOLIC.js → chunk-3CKC4ABU.js} +3631 -7464
- package/dist/chunk-3CKC4ABU.js.map +7 -0
- package/dist/chunk-ARCEUG3V.js +88 -0
- package/dist/chunk-ARCEUG3V.js.map +7 -0
- package/dist/{chunk-RUXIBQ3B.js → chunk-BJYXLCRS.js} +4 -4
- package/dist/{chunk-VKI7ORIO.js → chunk-BMKE6FT5.js} +37 -18
- package/dist/{chunk-VKI7ORIO.js.map → chunk-BMKE6FT5.js.map} +1 -1
- package/dist/chunk-BQCOSNM3.js +93 -0
- package/dist/chunk-BQCOSNM3.js.map +7 -0
- package/dist/chunk-CHB5K4GI.js +107 -0
- package/dist/chunk-CHB5K4GI.js.map +7 -0
- package/dist/chunk-D4OZACS2.js +35 -0
- package/dist/chunk-EHQ2M5B4.js +166 -0
- package/dist/{chunk-ZYSVG4X3.js.map → chunk-EHQ2M5B4.js.map} +2 -2
- package/dist/chunk-EUBZGAIN.js +372 -0
- package/dist/chunk-EUBZGAIN.js.map +7 -0
- package/dist/{chunk-UYRR6F5S.js → chunk-FIMCETCB.js} +9 -3
- package/dist/{chunk-UYRR6F5S.js.map → chunk-FIMCETCB.js.map} +1 -1
- package/dist/{chunk-DEF3KFP7.js → chunk-GVLJUD6R.js} +4 -2
- package/dist/{chunk-DEF3KFP7.js.map → chunk-GVLJUD6R.js.map} +1 -1
- package/dist/chunk-HLBLZKZH.js +45 -0
- package/dist/chunk-HLBLZKZH.js.map +7 -0
- package/dist/{chunk-XS6PU75S.js → chunk-IVWPPTDM.js} +1 -1
- package/dist/{chunk-A7X6OCZE.js → chunk-IXFBUXQW.js} +1 -1
- package/dist/{chunk-HSJ6HYAO.js → chunk-IZZTKEZH.js} +18 -10
- package/dist/chunk-IZZTKEZH.js.map +7 -0
- package/dist/{chunk-2EFL22PV.js → chunk-JI4HCLK7.js} +7 -3
- package/dist/chunk-JI4HCLK7.js.map +7 -0
- package/dist/chunk-JLVECHVJ.js +36 -0
- package/dist/chunk-JLVECHVJ.js.map +7 -0
- package/dist/{chunk-XXU2NVOE.js → chunk-KJTPUTU7.js} +30 -6
- package/dist/chunk-KJTPUTU7.js.map +7 -0
- package/dist/{chunk-V5U6BHT2.js → chunk-KS646CDL.js} +7 -3
- package/dist/{chunk-V5U6BHT2.js.map → chunk-KS646CDL.js.map} +1 -1
- package/dist/{chunk-53A4JHFW.js → chunk-MJ3MLGVB.js} +23 -4
- package/dist/chunk-MJ3MLGVB.js.map +7 -0
- package/dist/chunk-MJLWBVZP.js +822 -0
- package/dist/chunk-MJLWBVZP.js.map +7 -0
- package/dist/chunk-MMF5RMLU.js +65 -0
- package/dist/chunk-MMF5RMLU.js.map +7 -0
- package/dist/{chunk-QH2M65BR.js → chunk-MUW3J7CP.js} +7 -3
- package/dist/{chunk-QH2M65BR.js.map → chunk-MUW3J7CP.js.map} +1 -1
- package/dist/{chunk-3LMXSKZ7.js → chunk-NFXLN6FJ.js} +1 -1
- package/dist/chunk-NT7RDVDA.js +33 -0
- package/dist/{chunk-KQSHIOZK.js.map → chunk-NT7RDVDA.js.map} +1 -1
- package/dist/{chunk-OZHBEG7U.js → chunk-O4EKE3YR.js} +15 -5
- package/dist/{chunk-OZHBEG7U.js.map → chunk-O4EKE3YR.js.map} +1 -1
- package/dist/chunk-Q2OBTLBI.js +5473 -0
- package/dist/chunk-Q2OBTLBI.js.map +7 -0
- package/dist/{chunk-WWDVA4NV.js → chunk-QJ7MQIHN.js} +22 -6
- package/dist/{chunk-WWDVA4NV.js.map → chunk-QJ7MQIHN.js.map} +1 -1
- package/dist/{chunk-N5OHRWG2.js → chunk-QSRXXZO7.js} +4 -2
- package/dist/{chunk-N5OHRWG2.js.map → chunk-QSRXXZO7.js.map} +1 -1
- package/dist/{chunk-GZTCXXSS.js → chunk-QT5GS374.js} +57 -46
- package/dist/{chunk-GZTCXXSS.js.map → chunk-QT5GS374.js.map} +1 -1
- package/dist/chunk-QX5Y5CE5.js +683 -0
- package/dist/{chunk-F3COCCAE.js.map → chunk-QX5Y5CE5.js.map} +1 -1
- package/dist/{chunk-IIFUDVGS.js → chunk-U6IF5D3J.js} +310 -177
- package/dist/chunk-U6IF5D3J.js.map +7 -0
- package/dist/{chunk-VQSCECTS.js → chunk-UPRKGNBR.js} +6 -4
- package/dist/{chunk-VQSCECTS.js.map → chunk-UPRKGNBR.js.map} +1 -1
- package/dist/chunk-UUCRNFMH.js +62 -0
- package/dist/chunk-UUCRNFMH.js.map +7 -0
- package/dist/chunk-UYWZQVH5.js +35 -0
- package/dist/chunk-UYWZQVH5.js.map +7 -0
- package/dist/{chunk-XMGUQHMF.js → chunk-VSSVN6WG.js} +11 -1
- package/dist/chunk-VSSVN6WG.js.map +7 -0
- package/dist/{chunk-VHS2MZQS.js → chunk-W7Q3VYAB.js} +9 -6
- package/dist/{chunk-VHS2MZQS.js.map → chunk-W7Q3VYAB.js.map} +1 -1
- package/dist/{chunk-JWXQNBBA.js → chunk-WAXMRSVR.js} +7 -1
- package/dist/{chunk-JWXQNBBA.js.map → chunk-WAXMRSVR.js.map} +1 -1
- package/dist/{chunk-BWYKUDJR.js → chunk-X3NER6FY.js} +14 -8
- package/dist/{chunk-BWYKUDJR.js.map → chunk-X3NER6FY.js.map} +1 -1
- package/dist/{chunk-IM33F5CM.js → chunk-XYQZLDRB.js} +1668 -1623
- package/dist/chunk-XYQZLDRB.js.map +7 -0
- package/dist/{chunk-LOIZNQOU.js → chunk-ZM5FMRLS.js} +9 -3
- package/dist/{chunk-LOIZNQOU.js.map → chunk-ZM5FMRLS.js.map} +1 -1
- package/dist/{chunk-755HIAI3.js → chunk-ZMO4E7IW.js} +3 -42
- package/dist/chunk-ZMO4E7IW.js.map +7 -0
- package/dist/{cli-KZGF3FV5.js → cli-4KO6TA5J.js} +251 -485
- package/dist/cli-4KO6TA5J.js.map +7 -0
- package/dist/commands-JSY7CGSU.js +54 -0
- package/dist/{config-GTJWCNPF.js → config-DQEFVW3Y.js} +9 -6
- package/dist/{context-WF3TTXQU.js → context-HVQCTO5R.js} +8 -7
- package/dist/{costTracker-2G3ZI2JF.js → costTracker-VSWW7SRT.js} +3 -2
- package/dist/{customCommands-QOWK57EX.js → customCommands-XCINU5TG.js} +6 -5
- package/dist/{env-37BAP7QF.js → env-ZOPEXWMF.js} +10 -7
- package/dist/{gateway-IZYO6YFJ.js → gateway-SUXSILQL.js} +542 -96
- package/dist/gateway-SUXSILQL.js.map +7 -0
- package/dist/identity-3KZQQVBG.js +16 -0
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/{kodeAgentSessionId-KTGFX2BE.js → kodeAgentSessionId-4SH24DVH.js} +1 -1
- package/dist/{kodeAgentSessionLoad-6F7SJXBC.js → kodeAgentSessionLoad-HB3BYVNG.js} +6 -5
- package/dist/{kodeAgentSessionResume-UEEDRJ3N.js → kodeAgentSessionResume-IGSZZY3G.js} +6 -5
- package/dist/{kodeAgentStreamJson-VIXFTYL5.js → kodeAgentStreamJson-4ZKIWKS3.js} +4 -2
- package/dist/{kodeAgentStreamJsonSession-XC3IPREZ.js → kodeAgentStreamJsonSession-4L76UC75.js} +15 -4
- package/dist/kodeAgentStreamJsonSession-4L76UC75.js.map +7 -0
- package/dist/{kodeAgentStructuredStdio-SI5C7AAD.js → kodeAgentStructuredStdio-5DCUC6V6.js} +3 -3
- package/dist/{kodeHooks-V36SHCTC.js → kodeHooks-H6DMC3XX.js} +6 -5
- package/dist/{llm-CYUDKJNR.js → llm-OJZ6DZVC.js} +306 -60
- package/dist/llm-OJZ6DZVC.js.map +7 -0
- package/dist/{llmLazy-IXVVBRTN.js → llmLazy-TDLZZDPL.js} +2 -2
- package/dist/{loader-OEJ6C3TN.js → loader-MOVYZ76M.js} +6 -5
- package/dist/{mcp-KE3SILMX.js → mcp-DUYSIR5L.js} +10 -9
- package/dist/{mentionProcessor-GAU2WAYB.js → mentionProcessor-EKVLXJN4.js} +14 -7
- package/dist/{mentionProcessor-GAU2WAYB.js.map → mentionProcessor-EKVLXJN4.js.map} +1 -1
- package/dist/{messages-WCSGGSEU.js → messages-23ICFVMC.js} +2 -2
- package/dist/{model-4TQIV5J2.js → model-FUBCTRTV.js} +10 -7
- package/dist/{openai-KTZV6F7N.js → openai-SMYIAIO4.js} +8 -7
- package/dist/{outputStyles-WX5RYQOA.js → outputStyles-HBOYJFBE.js} +6 -5
- package/dist/{pluginRuntime-JXMJZ2LC.js → pluginRuntime-ATZMDZA7.js} +11 -8
- package/dist/{pluginRuntime-JXMJZ2LC.js.map → pluginRuntime-ATZMDZA7.js.map} +1 -1
- package/dist/{pluginValidation-JNQZYLUP.js → pluginValidation-7CGOMT6F.js} +8 -7
- package/dist/prompts-MFESKNYZ.js +58 -0
- package/dist/query-BFEFOX4S.js +58 -0
- package/dist/{responsesStreaming-2AIT6GHG.js → responsesStreaming-JORGEFQC.js} +1 -1
- package/dist/{ripgrep-KDPQAMB2.js → ripgrep-KNJBCJIQ.js} +5 -4
- package/dist/sandbox-P3FR4G4D.js +63 -0
- package/dist/{skillMarketplace-IXAGP3Q2.js → skillMarketplace-PCMKVV4O.js} +5 -4
- package/dist/{state-MSCYLB6Y.js → state-XBYIQ7R4.js} +6 -3
- package/dist/structuredOutput-KAVFUV2Z.js +9 -0
- package/dist/theme-4ZSXUILR.js +15 -0
- package/dist/thinking-TTNUZUB3.js +18 -0
- package/dist/{toolPermissionContext-I3IXPVED.js → toolPermissionContext-JCQ5MFUT.js} +1 -1
- package/dist/toolPermissionContext-JCQ5MFUT.js.map +7 -0
- package/dist/toolPermissionContextState-R6ZGMKP6.js +24 -0
- package/dist/toolPermissionContextState-R6ZGMKP6.js.map +7 -0
- package/dist/{toolPermissionSettings-EUZKGZU2.js → toolPermissionSettings-GMEYTJEA.js} +9 -8
- package/dist/toolPermissionSettings-GMEYTJEA.js.map +7 -0
- package/dist/tools-7FVKB7BG.js +55 -0
- package/dist/tools-7FVKB7BG.js.map +7 -0
- package/dist/{userInput-LJL4CVOB.js → userInput-SZEUY5J6.js} +49 -34
- package/dist/{userInput-LJL4CVOB.js.map → userInput-SZEUY5J6.js.map} +1 -1
- package/dist/{uuid-VA3KVASX.js → uuid-RQH3OZ3W.js} +1 -1
- package/dist/uuid-RQH3OZ3W.js.map +7 -0
- package/dist/workspace-EP63OB5S.js +21 -0
- package/dist/workspace-EP63OB5S.js.map +7 -0
- package/package.json +2 -2
- package/web/dist/assets/index-XuLVvSQF.js +251 -0
- package/web/dist/assets/index-pSid9IlY.css +10 -0
- package/web/dist/index.html +2 -2
- package/dist/REPL-IAK7ZN2Z.js +0 -42
- package/dist/acp-J4WDYGRX.js.map +0 -7
- package/dist/ask-MGUO3L35.js.map +0 -7
- package/dist/chunk-2C43OXE7.js.map +0 -7
- package/dist/chunk-2EFL22PV.js.map +0 -7
- package/dist/chunk-53A4JHFW.js.map +0 -7
- package/dist/chunk-755HIAI3.js.map +0 -7
- package/dist/chunk-AXWJI6N5.js +0 -11
- package/dist/chunk-F3COCCAE.js +0 -654
- package/dist/chunk-HSJ6HYAO.js.map +0 -7
- package/dist/chunk-IIFUDVGS.js.map +0 -7
- package/dist/chunk-IM33F5CM.js.map +0 -7
- package/dist/chunk-KQSHIOZK.js +0 -24
- package/dist/chunk-OJIMOLIC.js.map +0 -7
- package/dist/chunk-XMGUQHMF.js.map +0 -7
- package/dist/chunk-XXU2NVOE.js.map +0 -7
- package/dist/chunk-ZYSVG4X3.js +0 -151
- package/dist/cli-KZGF3FV5.js.map +0 -7
- package/dist/commands-AVEBLFVS.js +0 -46
- package/dist/gateway-IZYO6YFJ.js.map +0 -7
- package/dist/kodeAgentStreamJsonSession-XC3IPREZ.js.map +0 -7
- package/dist/llm-CYUDKJNR.js.map +0 -7
- package/dist/prompts-LE6GK75N.js +0 -48
- package/dist/query-GGIP6PWG.js +0 -50
- package/dist/theme-GAMFOLBW.js +0 -14
- package/dist/tools-3HOUIDM3.js +0 -47
- package/web/dist/assets/index-COAJqX1Z.css +0 -1
- package/web/dist/assets/index-CzS_4LmC.js +0 -179
- /package/dist/{REPL-IAK7ZN2Z.js.map → REPL-DECTPCL5.js.map} +0 -0
- /package/dist/{autoUpdater-2GS6LRPK.js.map → autoUpdater-FFMM2DR7.js.map} +0 -0
- /package/dist/{chunk-RUXIBQ3B.js.map → chunk-BJYXLCRS.js.map} +0 -0
- /package/dist/{chunk-AXWJI6N5.js.map → chunk-D4OZACS2.js.map} +0 -0
- /package/dist/{chunk-XS6PU75S.js.map → chunk-IVWPPTDM.js.map} +0 -0
- /package/dist/{chunk-A7X6OCZE.js.map → chunk-IXFBUXQW.js.map} +0 -0
- /package/dist/{chunk-3LMXSKZ7.js.map → chunk-NFXLN6FJ.js.map} +0 -0
- /package/dist/{commands-AVEBLFVS.js.map → commands-JSY7CGSU.js.map} +0 -0
- /package/dist/{config-GTJWCNPF.js.map → config-DQEFVW3Y.js.map} +0 -0
- /package/dist/{context-WF3TTXQU.js.map → context-HVQCTO5R.js.map} +0 -0
- /package/dist/{costTracker-2G3ZI2JF.js.map → costTracker-VSWW7SRT.js.map} +0 -0
- /package/dist/{customCommands-QOWK57EX.js.map → customCommands-XCINU5TG.js.map} +0 -0
- /package/dist/{env-37BAP7QF.js.map → env-ZOPEXWMF.js.map} +0 -0
- /package/dist/{kodeAgentSessionId-KTGFX2BE.js.map → identity-3KZQQVBG.js.map} +0 -0
- /package/dist/{kodeAgentSessionLoad-6F7SJXBC.js.map → kodeAgentSessionId-4SH24DVH.js.map} +0 -0
- /package/dist/{kodeAgentSessionResume-UEEDRJ3N.js.map → kodeAgentSessionLoad-HB3BYVNG.js.map} +0 -0
- /package/dist/{kodeAgentStreamJson-VIXFTYL5.js.map → kodeAgentSessionResume-IGSZZY3G.js.map} +0 -0
- /package/dist/{kodeAgentStructuredStdio-SI5C7AAD.js.map → kodeAgentStreamJson-4ZKIWKS3.js.map} +0 -0
- /package/dist/{kodeHooks-V36SHCTC.js.map → kodeAgentStructuredStdio-5DCUC6V6.js.map} +0 -0
- /package/dist/{llmLazy-IXVVBRTN.js.map → kodeHooks-H6DMC3XX.js.map} +0 -0
- /package/dist/{loader-OEJ6C3TN.js.map → llmLazy-TDLZZDPL.js.map} +0 -0
- /package/dist/{mcp-KE3SILMX.js.map → loader-MOVYZ76M.js.map} +0 -0
- /package/dist/{messages-WCSGGSEU.js.map → mcp-DUYSIR5L.js.map} +0 -0
- /package/dist/{model-4TQIV5J2.js.map → messages-23ICFVMC.js.map} +0 -0
- /package/dist/{openai-KTZV6F7N.js.map → model-FUBCTRTV.js.map} +0 -0
- /package/dist/{outputStyles-WX5RYQOA.js.map → openai-SMYIAIO4.js.map} +0 -0
- /package/dist/{pluginValidation-JNQZYLUP.js.map → outputStyles-HBOYJFBE.js.map} +0 -0
- /package/dist/{prompts-LE6GK75N.js.map → pluginValidation-7CGOMT6F.js.map} +0 -0
- /package/dist/{query-GGIP6PWG.js.map → prompts-MFESKNYZ.js.map} +0 -0
- /package/dist/{responsesStreaming-2AIT6GHG.js.map → query-BFEFOX4S.js.map} +0 -0
- /package/dist/{ripgrep-KDPQAMB2.js.map → responsesStreaming-JORGEFQC.js.map} +0 -0
- /package/dist/{skillMarketplace-IXAGP3Q2.js.map → ripgrep-KNJBCJIQ.js.map} +0 -0
- /package/dist/{state-MSCYLB6Y.js.map → sandbox-P3FR4G4D.js.map} +0 -0
- /package/dist/{theme-GAMFOLBW.js.map → skillMarketplace-PCMKVV4O.js.map} +0 -0
- /package/dist/{toolPermissionContext-I3IXPVED.js.map → state-XBYIQ7R4.js.map} +0 -0
- /package/dist/{toolPermissionSettings-EUZKGZU2.js.map → structuredOutput-KAVFUV2Z.js.map} +0 -0
- /package/dist/{tools-3HOUIDM3.js.map → theme-4ZSXUILR.js.map} +0 -0
- /package/dist/{uuid-VA3KVASX.js.map → thinking-TTNUZUB3.js.map} +0 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function El(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ps={exports:{}},pl={},Ds={exports:{}},je={};/**
|
|
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 ed;function gg(){if(ed)return je;ed=1;var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function v(T){return T===null||typeof T!="object"?null:(T=g&&T[g]||T["@@iterator"],typeof T=="function"?T:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,I={};function L(T,B,b){this.props=T,this.context=B,this.refs=I,this.updater=b||k}L.prototype.isReactComponent={},L.prototype.setState=function(T,B){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,B,"setState")},L.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function R(){}R.prototype=L.prototype;function H(T,B,b){this.props=T,this.context=B,this.refs=I,this.updater=b||k}var F=H.prototype=new R;F.constructor=H,C(F,L.prototype),F.isPureReactComponent=!0;var K=Array.isArray,G=Object.prototype.hasOwnProperty,M={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function ce(T,B,b){var Ce,Oe={},we=null,He=null;if(B!=null)for(Ce in B.ref!==void 0&&(He=B.ref),B.key!==void 0&&(we=""+B.key),B)G.call(B,Ce)&&!ie.hasOwnProperty(Ce)&&(Oe[Ce]=B[Ce]);var Pe=arguments.length-2;if(Pe===1)Oe.children=b;else if(1<Pe){for(var qe=Array(Pe),tt=0;tt<Pe;tt++)qe[tt]=arguments[tt+2];Oe.children=qe}if(T&&T.defaultProps)for(Ce in Pe=T.defaultProps,Pe)Oe[Ce]===void 0&&(Oe[Ce]=Pe[Ce]);return{$$typeof:t,type:T,key:we,ref:He,props:Oe,_owner:M.current}}function ge(T,B){return{$$typeof:t,type:T.type,key:B,ref:T.ref,props:T.props,_owner:T._owner}}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function te(T){var B={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(b){return B[b]})}var re=/\/+/g;function ve(T,B){return typeof T=="object"&&T!==null&&T.key!=null?te(""+T.key):B.toString(36)}function le(T,B,b,Ce,Oe){var we=typeof T;(we==="undefined"||we==="boolean")&&(T=null);var He=!1;if(T===null)He=!0;else switch(we){case"string":case"number":He=!0;break;case"object":switch(T.$$typeof){case t:case i:He=!0}}if(He)return He=T,Oe=Oe(He),T=Ce===""?"."+ve(He,0):Ce,K(Oe)?(b="",T!=null&&(b=T.replace(re,"$&/")+"/"),le(Oe,B,b,"",function(tt){return tt})):Oe!=null&&(D(Oe)&&(Oe=ge(Oe,b+(!Oe.key||He&&He.key===Oe.key?"":(""+Oe.key).replace(re,"$&/")+"/")+T)),B.push(Oe)),1;if(He=0,Ce=Ce===""?".":Ce+":",K(T))for(var Pe=0;Pe<T.length;Pe++){we=T[Pe];var qe=Ce+ve(we,Pe);He+=le(we,B,b,qe,Oe)}else if(qe=v(T),typeof qe=="function")for(T=qe.call(T),Pe=0;!(we=T.next()).done;)we=we.value,qe=Ce+ve(we,Pe++),He+=le(we,B,b,qe,Oe);else if(we==="object")throw B=String(T),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return He}function Y(T,B,b){if(T==null)return T;var Ce=[],Oe=0;return le(T,Ce,"","",function(we){return B.call(b,we,Oe++)}),Ce}function ke(T){if(T._status===-1){var B=T._result;B=B(),B.then(function(b){(T._status===0||T._status===-1)&&(T._status=1,T._result=b)},function(b){(T._status===0||T._status===-1)&&(T._status=2,T._result=b)}),T._status===-1&&(T._status=0,T._result=B)}if(T._status===1)return T._result.default;throw T._result}var Te={current:null},$={transition:null},oe={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:$,ReactCurrentOwner:M};function w(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:Y,forEach:function(T,B,b){Y(T,function(){B.apply(this,arguments)},b)},count:function(T){var B=0;return Y(T,function(){B++}),B},toArray:function(T){return Y(T,function(B){return B})||[]},only:function(T){if(!D(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},je.Component=L,je.Fragment=r,je.Profiler=s,je.PureComponent=H,je.StrictMode=o,je.Suspense=h,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,je.act=w,je.cloneElement=function(T,B,b){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var Ce=C({},T.props),Oe=T.key,we=T.ref,He=T._owner;if(B!=null){if(B.ref!==void 0&&(we=B.ref,He=M.current),B.key!==void 0&&(Oe=""+B.key),T.type&&T.type.defaultProps)var Pe=T.type.defaultProps;for(qe in B)G.call(B,qe)&&!ie.hasOwnProperty(qe)&&(Ce[qe]=B[qe]===void 0&&Pe!==void 0?Pe[qe]:B[qe])}var qe=arguments.length-2;if(qe===1)Ce.children=b;else if(1<qe){Pe=Array(qe);for(var tt=0;tt<qe;tt++)Pe[tt]=arguments[tt+2];Ce.children=Pe}return{$$typeof:t,type:T.type,key:Oe,ref:we,props:Ce,_owner:He}},je.createContext=function(T){return T={$$typeof:u,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:c,_context:T},T.Consumer=T},je.createElement=ce,je.createFactory=function(T){var B=ce.bind(null,T);return B.type=T,B},je.createRef=function(){return{current:null}},je.forwardRef=function(T){return{$$typeof:d,render:T}},je.isValidElement=D,je.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:ke}},je.memo=function(T,B){return{$$typeof:m,type:T,compare:B===void 0?null:B}},je.startTransition=function(T){var B=$.transition;$.transition={};try{T()}finally{$.transition=B}},je.unstable_act=w,je.useCallback=function(T,B){return Te.current.useCallback(T,B)},je.useContext=function(T){return Te.current.useContext(T)},je.useDebugValue=function(){},je.useDeferredValue=function(T){return Te.current.useDeferredValue(T)},je.useEffect=function(T,B){return Te.current.useEffect(T,B)},je.useId=function(){return Te.current.useId()},je.useImperativeHandle=function(T,B,b){return Te.current.useImperativeHandle(T,B,b)},je.useInsertionEffect=function(T,B){return Te.current.useInsertionEffect(T,B)},je.useLayoutEffect=function(T,B){return Te.current.useLayoutEffect(T,B)},je.useMemo=function(T,B){return Te.current.useMemo(T,B)},je.useReducer=function(T,B,b){return Te.current.useReducer(T,B,b)},je.useRef=function(T){return Te.current.useRef(T)},je.useState=function(T){return Te.current.useState(T)},je.useSyncExternalStore=function(T,B,b){return Te.current.useSyncExternalStore(T,B,b)},je.useTransition=function(){return Te.current.useTransition()},je.version="18.3.1",je}var td;function gu(){return td||(td=1,Ds.exports=gg()),Ds.exports}/**
|
|
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 nd;function yg(){if(nd)return pl;nd=1;var t=gu(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,m){var y,g={},v=null,k=null;m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(k=h.ref);for(y in h)o.call(h,y)&&!c.hasOwnProperty(y)&&(g[y]=h[y]);if(d&&d.defaultProps)for(y in h=d.defaultProps,h)g[y]===void 0&&(g[y]=h[y]);return{$$typeof:i,type:d,key:v,ref:k,props:g,_owner:s.current}}return pl.Fragment=r,pl.jsx=u,pl.jsxs=u,pl}var rd;function xg(){return rd||(rd=1,Ps.exports=yg()),Ps.exports}var E=xg(),se=gu();const kg=El(se);var Do={},zs={exports:{}},Qt={},js={exports:{}},Fs={};/**
|
|
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
|
+
*/var id;function vg(){return id||(id=1,(function(t){function i($,oe){var w=$.length;$.push(oe);e:for(;0<w;){var T=w-1>>>1,B=$[T];if(0<s(B,oe))$[T]=oe,$[w]=B,w=T;else break e}}function r($){return $.length===0?null:$[0]}function o($){if($.length===0)return null;var oe=$[0],w=$.pop();if(w!==oe){$[0]=w;e:for(var T=0,B=$.length,b=B>>>1;T<b;){var Ce=2*(T+1)-1,Oe=$[Ce],we=Ce+1,He=$[we];if(0>s(Oe,w))we<B&&0>s(He,Oe)?($[T]=He,$[we]=w,T=we):($[T]=Oe,$[Ce]=w,T=Ce);else if(we<B&&0>s(He,w))$[T]=He,$[we]=w,T=we;else break e}}return oe}function s($,oe){var w=$.sortIndex-oe.sortIndex;return w!==0?w:$.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],m=[],y=1,g=null,v=3,k=!1,C=!1,I=!1,L=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F($){for(var oe=r(m);oe!==null;){if(oe.callback===null)o(m);else if(oe.startTime<=$)o(m),oe.sortIndex=oe.expirationTime,i(h,oe);else break;oe=r(m)}}function K($){if(I=!1,F($),!C)if(r(h)!==null)C=!0,ke(G);else{var oe=r(m);oe!==null&&Te(K,oe.startTime-$)}}function G($,oe){C=!1,I&&(I=!1,R(ce),ce=-1),k=!0;var w=v;try{for(F(oe),g=r(h);g!==null&&(!(g.expirationTime>oe)||$&&!te());){var T=g.callback;if(typeof T=="function"){g.callback=null,v=g.priorityLevel;var B=T(g.expirationTime<=oe);oe=t.unstable_now(),typeof B=="function"?g.callback=B:g===r(h)&&o(h),F(oe)}else o(h);g=r(h)}if(g!==null)var b=!0;else{var Ce=r(m);Ce!==null&&Te(K,Ce.startTime-oe),b=!1}return b}finally{g=null,v=w,k=!1}}var M=!1,ie=null,ce=-1,ge=5,D=-1;function te(){return!(t.unstable_now()-D<ge)}function re(){if(ie!==null){var $=t.unstable_now();D=$;var oe=!0;try{oe=ie(!0,$)}finally{oe?ve():(M=!1,ie=null)}}else M=!1}var ve;if(typeof H=="function")ve=function(){H(re)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Y=le.port2;le.port1.onmessage=re,ve=function(){Y.postMessage(null)}}else ve=function(){L(re,0)};function ke($){ie=$,M||(M=!0,ve())}function Te($,oe){ce=L(function(){$(t.unstable_now())},oe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_continueExecution=function(){C||k||(C=!0,ke(G))},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ge=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function($){switch(v){case 1:case 2:case 3:var oe=3;break;default:oe=v}var w=v;v=oe;try{return $()}finally{v=w}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function($,oe){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var w=v;v=$;try{return oe()}finally{v=w}},t.unstable_scheduleCallback=function($,oe,w){var T=t.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?T+w:T):w=T,$){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=w+B,$={id:y++,callback:oe,priorityLevel:$,startTime:w,expirationTime:B,sortIndex:-1},w>T?($.sortIndex=w,i(m,$),r(h)===null&&$===r(m)&&(I?(R(ce),ce=-1):I=!0,Te(K,w-T))):($.sortIndex=B,i(h,$),C||k||(C=!0,ke(G))),$},t.unstable_shouldYield=te,t.unstable_wrapCallback=function($){var oe=v;return function(){var w=v;v=oe;try{return $.apply(this,arguments)}finally{v=w}}}})(Fs)),Fs}var ld;function wg(){return ld||(ld=1,js.exports=vg()),js.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 od;function bg(){if(od)return Qt;od=1;var t=gu(),i=wg();function r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function c(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(s[e]=n,e=0;e<n.length;e++)o.add(n[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},g={};function v(e){return h.call(g,e)?!0:h.call(y,e)?!1:m.test(e)?g[e]=!0:(y[e]=!0,!1)}function k(e,n,l,a){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,l,a){if(n===null||typeof n>"u"||k(e,n,l,a))return!0;if(a)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function I(e,n,l,a,f,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=f,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){L[e]=new I(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];L[n]=new I(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){L[e]=new I(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L[e]=new I(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){L[e]=new I(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){L[e]=new I(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){L[e]=new I(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){L[e]=new I(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){L[e]=new I(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function H(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 n=e.replace(R,H);L[n]=new I(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(R,H);L[n]=new I(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(R,H);L[n]=new I(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){L[e]=new I(e,1,!1,e.toLowerCase(),null,!1,!1)}),L.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){L[e]=new I(e,1,!1,e.toLowerCase(),null,!0,!0)});function F(e,n,l,a){var f=L.hasOwnProperty(n)?L[n]:null;(f!==null?f.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,l,f,a)&&(l=null),a||f===null?v(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):f.mustUseProperty?e[f.propertyName]=l===null?f.type===3?!1:"":l:(n=f.attributeName,a=f.attributeNamespace,l===null?e.removeAttribute(n):(f=f.type,l=f===3||f===4&&l===!0?"":""+l,a?e.setAttributeNS(a,n,l):e.setAttribute(n,l))))}var K=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,G=Symbol.for("react.element"),M=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),te=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),$=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var w=Object.assign,T;function B(e){if(T===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);T=n&&n[1]||""}return`
|
|
34
|
+
`+T+e}var b=!1;function Ce(e,n){if(!e||b)return"";b=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(z){var a=z}Reflect.construct(e,[],n)}else{try{n.call()}catch(z){a=z}e.call(n.prototype)}else{try{throw Error()}catch(z){a=z}e()}}catch(z){if(z&&a&&typeof z.stack=="string"){for(var f=z.stack.split(`
|
|
35
|
+
`),p=a.stack.split(`
|
|
36
|
+
`),x=f.length-1,S=p.length-1;1<=x&&0<=S&&f[x]!==p[S];)S--;for(;1<=x&&0<=S;x--,S--)if(f[x]!==p[S]){if(x!==1||S!==1)do if(x--,S--,0>S||f[x]!==p[S]){var N=`
|
|
37
|
+
`+f[x].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=x&&0<=S);break}}}finally{b=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?B(e):""}function Oe(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=Ce(e.type,!1),e;case 11:return e=Ce(e.type.render,!1),e;case 1:return e=Ce(e.type,!0),e;default:return""}}function we(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 ie:return"Fragment";case M:return"Portal";case ge:return"Profiler";case ce:return"StrictMode";case ve:return"Suspense";case le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case te:return(e.displayName||"Context")+".Consumer";case D:return(e._context.displayName||"Context")+".Provider";case re:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return n=e.displayName||null,n!==null?n:we(e.type)||"Memo";case ke:n=e._payload,e=e._init;try{return we(e(n))}catch{}}return null}function He(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(n);case 8:return n===ce?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function tt(e){var n=qe(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,p=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){a=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function mn(e){e._valueTracker||(e._valueTracker=tt(e))}function Qr(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),a="";return e&&(a=qe(e)?e.checked?"true":"false":e.value),e=a,e!==l?(n.setValue(e),!0):!1}function Yn(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 br(e,n){var l=n.checked;return w({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??e._wrapperState.initialChecked})}function Sr(e,n){var l=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;l=Pe(n.value!=null?n.value:l),e._wrapperState={initialChecked:a,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Er(e,n){n=n.checked,n!=null&&F(e,"checked",n,!1)}function Xn(e,n){Er(e,n);var l=Pe(n.value),a=n.type;if(l!=null)a==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Zn(e,n.type,l):n.hasOwnProperty("defaultValue")&&Zn(e,n.type,Pe(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Yr(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function Zn(e,n,l){(n!=="number"||Yn(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var gn=Array.isArray;function Nn(e,n,l,a){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Pe(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,a&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function _r(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return w({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cr(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(r(92));if(gn(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:Pe(l)}}function ln(e,n){var l=Pe(n.value),a=Pe(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),a!=null&&(e.defaultValue=""+a)}function Nr(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function j(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 J(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?j(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ne,De=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,a,f){MSApp.execUnsafeLocalFunction(function(){return e(n,l,a,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ue(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var vt={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},yn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(e){yn.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),vt[n]=vt[e]})});function Ht(e,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||vt.hasOwnProperty(e)&&vt[e]?(""+n).trim():n+"px"}function xn(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var a=l.indexOf("--")===0,f=Ht(l,n[l],a);l==="float"&&(l="cssFloat"),a?e.setProperty(l,f):e[l]=f}}var zn=w({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 wt(e,n){if(n){if(zn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function on(e,n){if(e.indexOf("-")===-1)return typeof n.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 Tt=null;function Xr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zr=null,Jn=null,jn=null;function Fn(e){if(e=Zi(e)){if(typeof Zr!="function")throw Error(r(280));var n=e.stateNode;n&&(n=Yl(n),Zr(e.stateNode,e.type,n))}}function _(e){Jn?jn?jn.push(e):jn=[e]:Jn=e}function U(){if(Jn){var e=Jn,n=jn;if(jn=Jn=null,Fn(e),n)for(e=0;e<n.length;e++)Fn(n[e])}}function ne(e,n){return e(n)}function Re(){}var nt=!1;function lt(e,n,l){if(nt)return e(n,l);nt=!0;try{return ne(e,n,l)}finally{nt=!1,(Jn!==null||jn!==null)&&(Re(),U())}}function fe(e,n){var l=e.stateNode;if(l===null)return null;var a=Yl(l);if(a===null)return null;l=a[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var ue=!1;if(d)try{var be={};Object.defineProperty(be,"passive",{get:function(){ue=!0}}),window.addEventListener("test",be,be),window.removeEventListener("test",be,be)}catch{ue=!1}function yt(e,n,l,a,f,p,x,S,N){var z=Array.prototype.slice.call(arguments,3);try{n.apply(l,z)}catch(W){this.onError(W)}}var Ze=!1,Tn=null,er=!1,Tr=null,ta={onError:function(e){Ze=!0,Tn=e}};function Mi(e,n,l,a,f,p,x,S,N){Ze=!1,Tn=null,yt.apply(ta,arguments)}function na(e,n,l,a,f,p,x,S,N){if(Mi.apply(this,arguments),Ze){if(Ze){var z=Tn;Ze=!1,Tn=null}else throw Error(r(198));er||(er=!0,Tr=z)}}function Bn(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function Tl(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Oi(e){if(Bn(e)!==e)throw Error(r(188))}function Jr(e){var n=e.alternate;if(!n){if(n=Bn(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,a=n;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(a=f.return,a!==null){l=a;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return Oi(f),e;if(p===a)return Oi(f),n;p=p.sibling}throw Error(r(188))}if(l.return!==a.return)l=f,a=p;else{for(var x=!1,S=f.child;S;){if(S===l){x=!0,l=f,a=p;break}if(S===a){x=!0,a=f,l=p;break}S=S.sibling}if(!x){for(S=p.child;S;){if(S===l){x=!0,l=p,a=f;break}if(S===a){x=!0,a=p,l=f;break}S=S.sibling}if(!x)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function Al(e){return e=Jr(e),e!==null?Rl(e):null}function Rl(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Rl(e);if(n!==null)return n;e=e.sibling}return null}var Il=i.unstable_scheduleCallback,kn=i.unstable_cancelCallback,Ml=i.unstable_shouldYield,Ol=i.unstable_requestPaint,st=i.unstable_now,ra=i.unstable_getCurrentPriorityLevel,Li=i.unstable_ImmediatePriority,Ar=i.unstable_UserBlockingPriority,ei=i.unstable_NormalPriority,X=i.unstable_LowPriority,xe=i.unstable_IdlePriority,ze=null,Fe=null;function ht(e){if(Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(ze,e,void 0,(e.current.flags&128)===128)}catch{}}var ut=Math.clz32?Math.clz32:zt,An=Math.log,ti=Math.LN2;function zt(e){return e>>>=0,e===0?32:31-(An(e)/ti|0)|0}var jt=64,Rr=4194304;function tr(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 Ir(e,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,f=e.suspendedLanes,p=e.pingedLanes,x=l&268435455;if(x!==0){var S=x&~f;S!==0?a=tr(S):(p&=x,p!==0&&(a=tr(p)))}else x=l&~f,x!==0?a=tr(x):p!==0&&(a=tr(p));if(a===0)return 0;if(n!==0&&n!==a&&(n&f)===0&&(f=a&-a,p=n&-n,f>=p||f===16&&(p&4194240)!==0))return n;if((a&4)!==0&&(a|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0<n;)l=31-ut(n),f=1<<l,a|=e[l],n&=~f;return a}function ia(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 la(e,n){for(var l=e.suspendedLanes,a=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-ut(p),S=1<<x,N=f[x];N===-1?((S&l)===0||(S&a)!==0)&&(f[x]=ia(S,n)):N<=n&&(e.expiredLanes|=S),p&=~S}}function Pi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ll(){var e=jt;return jt<<=1,(jt&4194240)===0&&(jt=64),e}function nr(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function rr(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-ut(n),e[n]=l}function an(e,n){var l=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<l;){var f=31-ut(l),p=1<<f;n[f]=0,a[f]=-1,e[f]=-1,l&=~p}}function Di(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var a=31-ut(l),f=1<<a;f&n|e[a]&n&&(e[a]|=n),l&=~f}}var We=0;function Me(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var zi,mt,Ye,Mr,Rn,Or=!1,ir=[],ee=null,de=null,Ae=null,$e=new Map,dt=new Map,Et=[],oa="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 Pl(e,n){switch(e){case"focusin":case"focusout":ee=null;break;case"dragenter":case"dragleave":de=null;break;case"mouseover":case"mouseout":Ae=null;break;case"pointerover":case"pointerout":$e.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(n.pointerId)}}function ji(e,n,l,a,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:l,eventSystemFlags:a,nativeEvent:p,targetContainers:[f]},n!==null&&(n=Zi(n),n!==null&&mt(n)),e):(e.eventSystemFlags|=a,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function Fh(e,n,l,a,f){switch(n){case"focusin":return ee=ji(ee,e,n,l,a,f),!0;case"dragenter":return de=ji(de,e,n,l,a,f),!0;case"mouseover":return Ae=ji(Ae,e,n,l,a,f),!0;case"pointerover":var p=f.pointerId;return $e.set(p,ji($e.get(p)||null,e,n,l,a,f)),!0;case"gotpointercapture":return p=f.pointerId,dt.set(p,ji(dt.get(p)||null,e,n,l,a,f)),!0}return!1}function zu(e){var n=Lr(e.target);if(n!==null){var l=Bn(n);if(l!==null){if(n=l.tag,n===13){if(n=Tl(l),n!==null){e.blockedOn=n,Rn(e.priority,function(){Ye(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=sa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Tt=a,l.target.dispatchEvent(a),Tt=null}else return n=Zi(l),n!==null&&mt(n),e.blockedOn=l,!1;n.shift()}return!0}function ju(e,n,l){Dl(e)&&l.delete(n)}function Bh(){Or=!1,ee!==null&&Dl(ee)&&(ee=null),de!==null&&Dl(de)&&(de=null),Ae!==null&&Dl(Ae)&&(Ae=null),$e.forEach(ju),dt.forEach(ju)}function Fi(e,n){e.blockedOn===n&&(e.blockedOn=null,Or||(Or=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bh)))}function Bi(e){function n(f){return Fi(f,e)}if(0<ir.length){Fi(ir[0],e);for(var l=1;l<ir.length;l++){var a=ir[l];a.blockedOn===e&&(a.blockedOn=null)}}for(ee!==null&&Fi(ee,e),de!==null&&Fi(de,e),Ae!==null&&Fi(Ae,e),$e.forEach(n),dt.forEach(n),l=0;l<Et.length;l++)a=Et[l],a.blockedOn===e&&(a.blockedOn=null);for(;0<Et.length&&(l=Et[0],l.blockedOn===null);)zu(l),l.blockedOn===null&&Et.shift()}var ni=K.ReactCurrentBatchConfig,zl=!0;function Uh(e,n,l,a){var f=We,p=ni.transition;ni.transition=null;try{We=1,aa(e,n,l,a)}finally{We=f,ni.transition=p}}function $h(e,n,l,a){var f=We,p=ni.transition;ni.transition=null;try{We=4,aa(e,n,l,a)}finally{We=f,ni.transition=p}}function aa(e,n,l,a){if(zl){var f=sa(e,n,l,a);if(f===null)_a(e,n,a,jl,l),Pl(e,a);else if(Fh(f,e,n,l,a))a.stopPropagation();else if(Pl(e,a),n&4&&-1<oa.indexOf(e)){for(;f!==null;){var p=Zi(f);if(p!==null&&zi(p),p=sa(e,n,l,a),p===null&&_a(e,n,a,jl,l),p===f)break;f=p}f!==null&&a.stopPropagation()}else _a(e,n,a,null,l)}}var jl=null;function sa(e,n,l,a){if(jl=null,e=Xr(a),e=Lr(e),e!==null)if(n=Bn(e),n===null)e=null;else if(l=n.tag,l===13){if(e=Tl(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return jl=e,null}function Fu(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(ra()){case Li:return 1;case Ar:return 4;case ei:case X:return 16;case xe:return 536870912;default:return 16}default:return 16}}var lr=null,ua=null,Fl=null;function Bu(){if(Fl)return Fl;var e,n=ua,l=n.length,a,f="value"in lr?lr.value:lr.textContent,p=f.length;for(e=0;e<l&&n[e]===f[e];e++);var x=l-e;for(a=1;a<=x&&n[l-a]===f[p-a];a++);return Fl=f.slice(e,1<a?1-a:void 0)}function Bl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ul(){return!0}function Uu(){return!1}function Zt(e){function n(l,a,f,p,x){this._reactName=l,this._targetInst=f,this.type=a,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ul:Uu,this.isPropagationStopped=Uu,this}return w(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ul)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ul)},persist:function(){},isPersistent:Ul}),n}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ca=Zt(ri),Ui=w({},ri,{view:0,detail:0}),Hh=Zt(Ui),fa,da,$i,$l=w({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ha,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!==$i&&($i&&e.type==="mousemove"?(fa=e.screenX-$i.screenX,da=e.screenY-$i.screenY):da=fa=0,$i=e),fa)},movementY:function(e){return"movementY"in e?e.movementY:da}}),$u=Zt($l),Vh=w({},$l,{dataTransfer:0}),Wh=Zt(Vh),Gh=w({},Ui,{relatedTarget:0}),pa=Zt(Gh),qh=w({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),Kh=Zt(qh),Qh=w({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yh=Zt(Qh),Xh=w({},ri,{data:0}),Hu=Zt(Xh),Zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jh={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"},em={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tm(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=em[e])?!!n[e]:!1}function ha(){return tm}var nm=w({},Ui,{key:function(e){if(e.key){var n=Zh[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Bl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ha,charCode:function(e){return e.type==="keypress"?Bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rm=Zt(nm),im=w({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vu=Zt(im),lm=w({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ha}),om=Zt(lm),am=w({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),sm=Zt(am),um=w({},$l,{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}),cm=Zt(um),fm=[9,13,27,32],ma=d&&"CompositionEvent"in window,Hi=null;d&&"documentMode"in document&&(Hi=document.documentMode);var dm=d&&"TextEvent"in window&&!Hi,Wu=d&&(!ma||Hi&&8<Hi&&11>=Hi),Gu=" ",qu=!1;function Ku(e,n){switch(e){case"keyup":return fm.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ii=!1;function pm(e,n){switch(e){case"compositionend":return Qu(n);case"keypress":return n.which!==32?null:(qu=!0,Gu);case"textInput":return e=n.data,e===Gu&&qu?null:e;default:return null}}function hm(e,n){if(ii)return e==="compositionend"||!ma&&Ku(e,n)?(e=Bu(),Fl=ua=lr=null,ii=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Wu&&n.locale!=="ko"?null:n.data;default:return null}}var mm={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 Yu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!mm[e.type]:n==="textarea"}function Xu(e,n,l,a){_(a),n=ql(n,"onChange"),0<n.length&&(l=new ca("onChange","change",null,l,a),e.push({event:l,listeners:n}))}var Vi=null,Wi=null;function gm(e){mc(e,0)}function Hl(e){var n=ui(e);if(Qr(n))return e}function ym(e,n){if(e==="change")return n}var Zu=!1;if(d){var ga;if(d){var ya="oninput"in document;if(!ya){var Ju=document.createElement("div");Ju.setAttribute("oninput","return;"),ya=typeof Ju.oninput=="function"}ga=ya}else ga=!1;Zu=ga&&(!document.documentMode||9<document.documentMode)}function ec(){Vi&&(Vi.detachEvent("onpropertychange",tc),Wi=Vi=null)}function tc(e){if(e.propertyName==="value"&&Hl(Wi)){var n=[];Xu(n,Wi,e,Xr(e)),lt(gm,n)}}function xm(e,n,l){e==="focusin"?(ec(),Vi=n,Wi=l,Vi.attachEvent("onpropertychange",tc)):e==="focusout"&&ec()}function km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(Wi)}function vm(e,n){if(e==="click")return Hl(n)}function wm(e,n){if(e==="input"||e==="change")return Hl(n)}function bm(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var vn=typeof Object.is=="function"?Object.is:bm;function Gi(e,n){if(vn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var f=l[a];if(!h.call(n,f)||!vn(e[f],n[f]))return!1}return!0}function nc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rc(e,n){var l=nc(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=n&&a>=n)return{node:l,offset:n-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=nc(l)}}function ic(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ic(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lc(){for(var e=window,n=Yn();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Yn(e.document)}return n}function xa(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Sm(e){var n=lc(),l=e.focusedElem,a=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&ic(l.ownerDocument.documentElement,l)){if(a!==null&&xa(l)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=l.textContent.length,p=Math.min(a.start,f);a=a.end===void 0?p:Math.min(a.end,f),!e.extend&&p>a&&(f=a,a=p,p=f),f=rc(l,p);var x=rc(l,a);f&&x&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),p>a?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Em=d&&"documentMode"in document&&11>=document.documentMode,li=null,ka=null,qi=null,va=!1;function oc(e,n,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;va||li==null||li!==Yn(a)||(a=li,"selectionStart"in a&&xa(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),qi&&Gi(qi,a)||(qi=a,a=ql(ka,"onSelect"),0<a.length&&(n=new ca("onSelect","select",null,n,l),e.push({event:n,listeners:a}),n.target=li)))}function Vl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var oi={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionend:Vl("Transition","TransitionEnd")},wa={},ac={};d&&(ac=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function Wl(e){if(wa[e])return wa[e];if(!oi[e])return e;var n=oi[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in ac)return wa[e]=n[l];return e}var sc=Wl("animationend"),uc=Wl("animationiteration"),cc=Wl("animationstart"),fc=Wl("transitionend"),dc=new Map,pc="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 or(e,n){dc.set(e,n),c(n,[e])}for(var ba=0;ba<pc.length;ba++){var Sa=pc[ba],_m=Sa.toLowerCase(),Cm=Sa[0].toUpperCase()+Sa.slice(1);or(_m,"on"+Cm)}or(sc,"onAnimationEnd"),or(uc,"onAnimationIteration"),or(cc,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(fc,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("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(" "),Nm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function hc(e,n,l){var a=e.type||"unknown-event";e.currentTarget=l,na(a,n,void 0,e),e.currentTarget=null}function mc(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],f=a.event;a=a.listeners;e:{var p=void 0;if(n)for(var x=a.length-1;0<=x;x--){var S=a[x],N=S.instance,z=S.currentTarget;if(S=S.listener,N!==p&&f.isPropagationStopped())break e;hc(f,S,z),p=N}else for(x=0;x<a.length;x++){if(S=a[x],N=S.instance,z=S.currentTarget,S=S.listener,N!==p&&f.isPropagationStopped())break e;hc(f,S,z),p=N}}}if(er)throw e=Tr,er=!1,Tr=null,e}function rt(e,n){var l=n[Ia];l===void 0&&(l=n[Ia]=new Set);var a=e+"__bubble";l.has(a)||(gc(n,e,2,!1),l.add(a))}function Ea(e,n,l){var a=0;n&&(a|=4),gc(l,e,a,n)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function Qi(e){if(!e[Gl]){e[Gl]=!0,o.forEach(function(l){l!=="selectionchange"&&(Nm.has(l)||Ea(l,!1,e),Ea(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Gl]||(n[Gl]=!0,Ea("selectionchange",!1,n))}}function gc(e,n,l,a){switch(Fu(n)){case 1:var f=Uh;break;case 4:f=$h;break;default:f=aa}l=f.bind(null,n,l,e),f=void 0,!ue||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),a?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function _a(e,n,l,a,f){var p=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var x=a.tag;if(x===3||x===4){var S=a.stateNode.containerInfo;if(S===f||S.nodeType===8&&S.parentNode===f)break;if(x===4)for(x=a.return;x!==null;){var N=x.tag;if((N===3||N===4)&&(N=x.stateNode.containerInfo,N===f||N.nodeType===8&&N.parentNode===f))return;x=x.return}for(;S!==null;){if(x=Lr(S),x===null)return;if(N=x.tag,N===5||N===6){a=p=x;continue e}S=S.parentNode}}a=a.return}lt(function(){var z=p,W=Xr(l),q=[];e:{var V=dc.get(e);if(V!==void 0){var ae=ca,he=e;switch(e){case"keypress":if(Bl(l)===0)break e;case"keydown":case"keyup":ae=rm;break;case"focusin":he="focus",ae=pa;break;case"focusout":he="blur",ae=pa;break;case"beforeblur":case"afterblur":ae=pa;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=$u;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=Wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=om;break;case sc:case uc:case cc:ae=Kh;break;case fc:ae=sm;break;case"scroll":ae=Hh;break;case"wheel":ae=cm;break;case"copy":case"cut":case"paste":ae=Yh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Vu}var me=(n&4)!==0,gt=!me&&e==="scroll",O=me?V!==null?V+"Capture":null:V;me=[];for(var A=z,P;A!==null;){P=A;var Z=P.stateNode;if(P.tag===5&&Z!==null&&(P=Z,O!==null&&(Z=fe(A,O),Z!=null&&me.push(Yi(A,Z,P)))),gt)break;A=A.return}0<me.length&&(V=new ae(V,he,null,l,W),q.push({event:V,listeners:me}))}}if((n&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",ae=e==="mouseout"||e==="pointerout",V&&l!==Tt&&(he=l.relatedTarget||l.fromElement)&&(Lr(he)||he[Un]))break e;if((ae||V)&&(V=W.window===W?W:(V=W.ownerDocument)?V.defaultView||V.parentWindow:window,ae?(he=l.relatedTarget||l.toElement,ae=z,he=he?Lr(he):null,he!==null&&(gt=Bn(he),he!==gt||he.tag!==5&&he.tag!==6)&&(he=null)):(ae=null,he=z),ae!==he)){if(me=$u,Z="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(me=Vu,Z="onPointerLeave",O="onPointerEnter",A="pointer"),gt=ae==null?V:ui(ae),P=he==null?V:ui(he),V=new me(Z,A+"leave",ae,l,W),V.target=gt,V.relatedTarget=P,Z=null,Lr(W)===z&&(me=new me(O,A+"enter",he,l,W),me.target=P,me.relatedTarget=gt,Z=me),gt=Z,ae&&he)t:{for(me=ae,O=he,A=0,P=me;P;P=ai(P))A++;for(P=0,Z=O;Z;Z=ai(Z))P++;for(;0<A-P;)me=ai(me),A--;for(;0<P-A;)O=ai(O),P--;for(;A--;){if(me===O||O!==null&&me===O.alternate)break t;me=ai(me),O=ai(O)}me=null}else me=null;ae!==null&&yc(q,V,ae,me,!1),he!==null&>!==null&&yc(q,gt,he,me,!0)}}e:{if(V=z?ui(z):window,ae=V.nodeName&&V.nodeName.toLowerCase(),ae==="select"||ae==="input"&&V.type==="file")var ye=ym;else if(Yu(V))if(Zu)ye=wm;else{ye=km;var Se=xm}else(ae=V.nodeName)&&ae.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(ye=vm);if(ye&&(ye=ye(e,z))){Xu(q,ye,l,W);break e}Se&&Se(e,V,z),e==="focusout"&&(Se=V._wrapperState)&&Se.controlled&&V.type==="number"&&Zn(V,"number",V.value)}switch(Se=z?ui(z):window,e){case"focusin":(Yu(Se)||Se.contentEditable==="true")&&(li=Se,ka=z,qi=null);break;case"focusout":qi=ka=li=null;break;case"mousedown":va=!0;break;case"contextmenu":case"mouseup":case"dragend":va=!1,oc(q,l,W);break;case"selectionchange":if(Em)break;case"keydown":case"keyup":oc(q,l,W)}var Ee;if(ma)e:{switch(e){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else ii?Ku(e,l)&&(Ie="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ie="onCompositionStart");Ie&&(Wu&&l.locale!=="ko"&&(ii||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&ii&&(Ee=Bu()):(lr=W,ua="value"in lr?lr.value:lr.textContent,ii=!0)),Se=ql(z,Ie),0<Se.length&&(Ie=new Hu(Ie,e,null,l,W),q.push({event:Ie,listeners:Se}),Ee?Ie.data=Ee:(Ee=Qu(l),Ee!==null&&(Ie.data=Ee)))),(Ee=dm?pm(e,l):hm(e,l))&&(z=ql(z,"onBeforeInput"),0<z.length&&(W=new Hu("onBeforeInput","beforeinput",null,l,W),q.push({event:W,listeners:z}),W.data=Ee))}mc(q,n)})}function Yi(e,n,l){return{instance:e,listener:n,currentTarget:l}}function ql(e,n){for(var l=n+"Capture",a=[];e!==null;){var f=e,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=fe(e,l),p!=null&&a.unshift(Yi(e,p,f)),p=fe(e,n),p!=null&&a.push(Yi(e,p,f))),e=e.return}return a}function ai(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yc(e,n,l,a,f){for(var p=n._reactName,x=[];l!==null&&l!==a;){var S=l,N=S.alternate,z=S.stateNode;if(N!==null&&N===a)break;S.tag===5&&z!==null&&(S=z,f?(N=fe(l,p),N!=null&&x.unshift(Yi(l,N,S))):f||(N=fe(l,p),N!=null&&x.push(Yi(l,N,S)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var Tm=/\r\n?/g,Am=/\u0000|\uFFFD/g;function xc(e){return(typeof e=="string"?e:""+e).replace(Tm,`
|
|
38
|
+
`).replace(Am,"")}function Kl(e,n,l){if(n=xc(n),xc(e)!==n&&l)throw Error(r(425))}function Ql(){}var Ca=null,Na=null;function Ta(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Aa=typeof setTimeout=="function"?setTimeout:void 0,Rm=typeof clearTimeout=="function"?clearTimeout:void 0,kc=typeof Promise=="function"?Promise:void 0,Im=typeof queueMicrotask=="function"?queueMicrotask:typeof kc<"u"?function(e){return kc.resolve(null).then(e).catch(Mm)}:Aa;function Mm(e){setTimeout(function(){throw e})}function Ra(e,n){var l=n,a=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(a===0){e.removeChild(f),Bi(n);return}a--}else l!=="$"&&l!=="$?"&&l!=="$!"||a++;l=f}while(l);Bi(n)}function ar(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function vc(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}var si=Math.random().toString(36).slice(2),In="__reactFiber$"+si,Xi="__reactProps$"+si,Un="__reactContainer$"+si,Ia="__reactEvents$"+si,Om="__reactListeners$"+si,Lm="__reactHandles$"+si;function Lr(e){var n=e[In];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Un]||l[In]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=vc(e);e!==null;){if(l=e[In])return l;e=vc(e)}return n}e=l,l=e.parentNode}return null}function Zi(e){return e=e[In]||e[Un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Yl(e){return e[Xi]||null}var Ma=[],ci=-1;function sr(e){return{current:e}}function it(e){0>ci||(e.current=Ma[ci],Ma[ci]=null,ci--)}function Je(e,n){ci++,Ma[ci]=e.current,e.current=n}var ur={},It=sr(ur),Vt=sr(!1),Pr=ur;function fi(e,n){var l=e.type.contextTypes;if(!l)return ur;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in l)f[p]=n[p];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function Wt(e){return e=e.childContextTypes,e!=null}function Xl(){it(Vt),it(It)}function wc(e,n,l){if(It.current!==ur)throw Error(r(168));Je(It,n),Je(Vt,l)}function bc(e,n,l){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return l;a=a.getChildContext();for(var f in a)if(!(f in n))throw Error(r(108,He(e)||"Unknown",f));return w({},l,a)}function Zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,Pr=It.current,Je(It,e),Je(Vt,Vt.current),!0}function Sc(e,n,l){var a=e.stateNode;if(!a)throw Error(r(169));l?(e=bc(e,n,Pr),a.__reactInternalMemoizedMergedChildContext=e,it(Vt),it(It),Je(It,e)):it(Vt),Je(Vt,l)}var $n=null,Jl=!1,Oa=!1;function Ec(e){$n===null?$n=[e]:$n.push(e)}function Pm(e){Jl=!0,Ec(e)}function cr(){if(!Oa&&$n!==null){Oa=!0;var e=0,n=We;try{var l=$n;for(We=1;e<l.length;e++){var a=l[e];do a=a(!0);while(a!==null)}$n=null,Jl=!1}catch(f){throw $n!==null&&($n=$n.slice(e+1)),Il(Li,cr),f}finally{We=n,Oa=!1}}return null}var di=[],pi=0,eo=null,to=0,sn=[],un=0,Dr=null,Hn=1,Vn="";function zr(e,n){di[pi++]=to,di[pi++]=eo,eo=e,to=n}function _c(e,n,l){sn[un++]=Hn,sn[un++]=Vn,sn[un++]=Dr,Dr=e;var a=Hn;e=Vn;var f=32-ut(a)-1;a&=~(1<<f),l+=1;var p=32-ut(n)+f;if(30<p){var x=f-f%5;p=(a&(1<<x)-1).toString(32),a>>=x,f-=x,Hn=1<<32-ut(n)+f|l<<f|a,Vn=p+e}else Hn=1<<p|l<<f|a,Vn=e}function La(e){e.return!==null&&(zr(e,1),_c(e,1,0))}function Pa(e){for(;e===eo;)eo=di[--pi],di[pi]=null,to=di[--pi],di[pi]=null;for(;e===Dr;)Dr=sn[--un],sn[un]=null,Vn=sn[--un],sn[un]=null,Hn=sn[--un],sn[un]=null}var Jt=null,en=null,ot=!1,wn=null;function Cc(e,n){var l=pn(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function Nc(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Jt=e,en=ar(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Jt=e,en=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Dr!==null?{id:Hn,overflow:Vn}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=pn(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,Jt=e,en=null,!0):!1;default:return!1}}function Da(e){return(e.mode&1)!==0&&(e.flags&128)===0}function za(e){if(ot){var n=en;if(n){var l=n;if(!Nc(e,n)){if(Da(e))throw Error(r(418));n=ar(l.nextSibling);var a=Jt;n&&Nc(e,n)?Cc(a,l):(e.flags=e.flags&-4097|2,ot=!1,Jt=e)}}else{if(Da(e))throw Error(r(418));e.flags=e.flags&-4097|2,ot=!1,Jt=e}}}function Tc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Jt=e}function no(e){if(e!==Jt)return!1;if(!ot)return Tc(e),ot=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Ta(e.type,e.memoizedProps)),n&&(n=en)){if(Da(e))throw Ac(),Error(r(418));for(;n;)Cc(e,n),n=ar(n.nextSibling)}if(Tc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(n===0){en=ar(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}en=null}}else en=Jt?ar(e.stateNode.nextSibling):null;return!0}function Ac(){for(var e=en;e;)e=ar(e.nextSibling)}function hi(){en=Jt=null,ot=!1}function ja(e){wn===null?wn=[e]:wn.push(e)}var Dm=K.ReactCurrentBatchConfig;function Ji(e,n,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var a=l.stateNode}if(!a)throw Error(r(147,e));var f=a,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var S=f.refs;x===null?delete S[p]:S[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,e))}return e}function ro(e,n){throw e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Rc(e){var n=e._init;return n(e._payload)}function Ic(e){function n(O,A){if(e){var P=O.deletions;P===null?(O.deletions=[A],O.flags|=16):P.push(A)}}function l(O,A){if(!e)return null;for(;A!==null;)n(O,A),A=A.sibling;return null}function a(O,A){for(O=new Map;A!==null;)A.key!==null?O.set(A.key,A):O.set(A.index,A),A=A.sibling;return O}function f(O,A){return O=xr(O,A),O.index=0,O.sibling=null,O}function p(O,A,P){return O.index=P,e?(P=O.alternate,P!==null?(P=P.index,P<A?(O.flags|=2,A):P):(O.flags|=2,A)):(O.flags|=1048576,A)}function x(O){return e&&O.alternate===null&&(O.flags|=2),O}function S(O,A,P,Z){return A===null||A.tag!==6?(A=As(P,O.mode,Z),A.return=O,A):(A=f(A,P),A.return=O,A)}function N(O,A,P,Z){var ye=P.type;return ye===ie?W(O,A,P.props.children,Z,P.key):A!==null&&(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===ke&&Rc(ye)===A.type)?(Z=f(A,P.props),Z.ref=Ji(O,A,P),Z.return=O,Z):(Z=To(P.type,P.key,P.props,null,O.mode,Z),Z.ref=Ji(O,A,P),Z.return=O,Z)}function z(O,A,P,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==P.containerInfo||A.stateNode.implementation!==P.implementation?(A=Rs(P,O.mode,Z),A.return=O,A):(A=f(A,P.children||[]),A.return=O,A)}function W(O,A,P,Z,ye){return A===null||A.tag!==7?(A=Wr(P,O.mode,Z,ye),A.return=O,A):(A=f(A,P),A.return=O,A)}function q(O,A,P){if(typeof A=="string"&&A!==""||typeof A=="number")return A=As(""+A,O.mode,P),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case G:return P=To(A.type,A.key,A.props,null,O.mode,P),P.ref=Ji(O,null,A),P.return=O,P;case M:return A=Rs(A,O.mode,P),A.return=O,A;case ke:var Z=A._init;return q(O,Z(A._payload),P)}if(gn(A)||oe(A))return A=Wr(A,O.mode,P,null),A.return=O,A;ro(O,A)}return null}function V(O,A,P,Z){var ye=A!==null?A.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return ye!==null?null:S(O,A,""+P,Z);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case G:return P.key===ye?N(O,A,P,Z):null;case M:return P.key===ye?z(O,A,P,Z):null;case ke:return ye=P._init,V(O,A,ye(P._payload),Z)}if(gn(P)||oe(P))return ye!==null?null:W(O,A,P,Z,null);ro(O,P)}return null}function ae(O,A,P,Z,ye){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return O=O.get(P)||null,S(A,O,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case G:return O=O.get(Z.key===null?P:Z.key)||null,N(A,O,Z,ye);case M:return O=O.get(Z.key===null?P:Z.key)||null,z(A,O,Z,ye);case ke:var Se=Z._init;return ae(O,A,P,Se(Z._payload),ye)}if(gn(Z)||oe(Z))return O=O.get(P)||null,W(A,O,Z,ye,null);ro(A,Z)}return null}function he(O,A,P,Z){for(var ye=null,Se=null,Ee=A,Ie=A=0,Nt=null;Ee!==null&&Ie<P.length;Ie++){Ee.index>Ie?(Nt=Ee,Ee=null):Nt=Ee.sibling;var Ke=V(O,Ee,P[Ie],Z);if(Ke===null){Ee===null&&(Ee=Nt);break}e&&Ee&&Ke.alternate===null&&n(O,Ee),A=p(Ke,A,Ie),Se===null?ye=Ke:Se.sibling=Ke,Se=Ke,Ee=Nt}if(Ie===P.length)return l(O,Ee),ot&&zr(O,Ie),ye;if(Ee===null){for(;Ie<P.length;Ie++)Ee=q(O,P[Ie],Z),Ee!==null&&(A=p(Ee,A,Ie),Se===null?ye=Ee:Se.sibling=Ee,Se=Ee);return ot&&zr(O,Ie),ye}for(Ee=a(O,Ee);Ie<P.length;Ie++)Nt=ae(Ee,O,Ie,P[Ie],Z),Nt!==null&&(e&&Nt.alternate!==null&&Ee.delete(Nt.key===null?Ie:Nt.key),A=p(Nt,A,Ie),Se===null?ye=Nt:Se.sibling=Nt,Se=Nt);return e&&Ee.forEach(function(kr){return n(O,kr)}),ot&&zr(O,Ie),ye}function me(O,A,P,Z){var ye=oe(P);if(typeof ye!="function")throw Error(r(150));if(P=ye.call(P),P==null)throw Error(r(151));for(var Se=ye=null,Ee=A,Ie=A=0,Nt=null,Ke=P.next();Ee!==null&&!Ke.done;Ie++,Ke=P.next()){Ee.index>Ie?(Nt=Ee,Ee=null):Nt=Ee.sibling;var kr=V(O,Ee,Ke.value,Z);if(kr===null){Ee===null&&(Ee=Nt);break}e&&Ee&&kr.alternate===null&&n(O,Ee),A=p(kr,A,Ie),Se===null?ye=kr:Se.sibling=kr,Se=kr,Ee=Nt}if(Ke.done)return l(O,Ee),ot&&zr(O,Ie),ye;if(Ee===null){for(;!Ke.done;Ie++,Ke=P.next())Ke=q(O,Ke.value,Z),Ke!==null&&(A=p(Ke,A,Ie),Se===null?ye=Ke:Se.sibling=Ke,Se=Ke);return ot&&zr(O,Ie),ye}for(Ee=a(O,Ee);!Ke.done;Ie++,Ke=P.next())Ke=ae(Ee,O,Ie,Ke.value,Z),Ke!==null&&(e&&Ke.alternate!==null&&Ee.delete(Ke.key===null?Ie:Ke.key),A=p(Ke,A,Ie),Se===null?ye=Ke:Se.sibling=Ke,Se=Ke);return e&&Ee.forEach(function(mg){return n(O,mg)}),ot&&zr(O,Ie),ye}function gt(O,A,P,Z){if(typeof P=="object"&&P!==null&&P.type===ie&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case G:e:{for(var ye=P.key,Se=A;Se!==null;){if(Se.key===ye){if(ye=P.type,ye===ie){if(Se.tag===7){l(O,Se.sibling),A=f(Se,P.props.children),A.return=O,O=A;break e}}else if(Se.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===ke&&Rc(ye)===Se.type){l(O,Se.sibling),A=f(Se,P.props),A.ref=Ji(O,Se,P),A.return=O,O=A;break e}l(O,Se);break}else n(O,Se);Se=Se.sibling}P.type===ie?(A=Wr(P.props.children,O.mode,Z,P.key),A.return=O,O=A):(Z=To(P.type,P.key,P.props,null,O.mode,Z),Z.ref=Ji(O,A,P),Z.return=O,O=Z)}return x(O);case M:e:{for(Se=P.key;A!==null;){if(A.key===Se)if(A.tag===4&&A.stateNode.containerInfo===P.containerInfo&&A.stateNode.implementation===P.implementation){l(O,A.sibling),A=f(A,P.children||[]),A.return=O,O=A;break e}else{l(O,A);break}else n(O,A);A=A.sibling}A=Rs(P,O.mode,Z),A.return=O,O=A}return x(O);case ke:return Se=P._init,gt(O,A,Se(P._payload),Z)}if(gn(P))return he(O,A,P,Z);if(oe(P))return me(O,A,P,Z);ro(O,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,A!==null&&A.tag===6?(l(O,A.sibling),A=f(A,P),A.return=O,O=A):(l(O,A),A=As(P,O.mode,Z),A.return=O,O=A),x(O)):l(O,A)}return gt}var mi=Ic(!0),Mc=Ic(!1),io=sr(null),lo=null,gi=null,Fa=null;function Ba(){Fa=gi=lo=null}function Ua(e){var n=io.current;it(io),e._currentValue=n}function $a(e,n,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===l)break;e=e.return}}function yi(e,n){lo=e,Fa=gi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Gt=!0),e.firstContext=null)}function cn(e){var n=e._currentValue;if(Fa!==e)if(e={context:e,memoizedValue:n,next:null},gi===null){if(lo===null)throw Error(r(308));gi=e,lo.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return n}var jr=null;function Ha(e){jr===null?jr=[e]:jr.push(e)}function Oc(e,n,l,a){var f=n.interleaved;return f===null?(l.next=l,Ha(n)):(l.next=f.next,f.next=l),n.interleaved=l,Wn(e,a)}function Wn(e,n){e.lanes|=n;var l=e.alternate;for(l!==null&&(l.lanes|=n),l=e,e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}var fr=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function dr(e,n,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ge&2)!==0){var f=a.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n,Wn(e,l)}return f=a.interleaved,f===null?(n.next=n,Ha(a)):(n.next=f.next,f.next=n),a.interleaved=n,Wn(e,l)}function oo(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,l|=a,n.lanes=l,Di(e,l)}}function Pc(e,n){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var x={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};p===null?f=p=x:p=p.next=x,l=l.next}while(l!==null);p===null?f=p=n:p=p.next=n}else f=p=n;l={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:a.shared,effects:a.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function ao(e,n,l,a){var f=e.updateQueue;fr=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var N=S,z=N.next;N.next=null,x===null?p=z:x.next=z,x=N;var W=e.alternate;W!==null&&(W=W.updateQueue,S=W.lastBaseUpdate,S!==x&&(S===null?W.firstBaseUpdate=z:S.next=z,W.lastBaseUpdate=N))}if(p!==null){var q=f.baseState;x=0,W=z=N=null,S=p;do{var V=S.lane,ae=S.eventTime;if((a&V)===V){W!==null&&(W=W.next={eventTime:ae,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var he=e,me=S;switch(V=n,ae=l,me.tag){case 1:if(he=me.payload,typeof he=="function"){q=he.call(ae,q,V);break e}q=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=me.payload,V=typeof he=="function"?he.call(ae,q,V):he,V==null)break e;q=w({},q,V);break e;case 2:fr=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,V=f.effects,V===null?f.effects=[S]:V.push(S))}else ae={eventTime:ae,lane:V,tag:S.tag,payload:S.payload,callback:S.callback,next:null},W===null?(z=W=ae,N=q):W=W.next=ae,x|=V;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;V=S,S=V.next,V.next=null,f.lastBaseUpdate=V,f.shared.pending=null}}while(!0);if(W===null&&(N=q),f.baseState=N,f.firstBaseUpdate=z,f.lastBaseUpdate=W,n=f.shared.interleaved,n!==null){f=n;do x|=f.lane,f=f.next;while(f!==n)}else p===null&&(f.shared.lanes=0);Ur|=x,e.lanes=x,e.memoizedState=q}}function Dc(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var a=e[n],f=a.callback;if(f!==null){if(a.callback=null,a=l,typeof f!="function")throw Error(r(191,f));f.call(a)}}}var el={},Mn=sr(el),tl=sr(el),nl=sr(el);function Fr(e){if(e===el)throw Error(r(174));return e}function Wa(e,n){switch(Je(nl,n),Je(tl,e),Je(Mn,el),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:J(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=J(n,e)}it(Mn),Je(Mn,n)}function xi(){it(Mn),it(tl),it(nl)}function zc(e){Fr(nl.current);var n=Fr(Mn.current),l=J(n,e.type);n!==l&&(Je(tl,e),Je(Mn,l))}function Ga(e){tl.current===e&&(it(Mn),it(tl))}var ct=sr(0);function so(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var qa=[];function Ka(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var uo=K.ReactCurrentDispatcher,Qa=K.ReactCurrentBatchConfig,Br=0,ft=null,bt=null,_t=null,co=!1,rl=!1,il=0,zm=0;function Mt(){throw Error(r(321))}function Ya(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!vn(e[l],n[l]))return!1;return!0}function Xa(e,n,l,a,f,p){if(Br=p,ft=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,uo.current=e===null||e.memoizedState===null?Um:$m,e=l(a,f),rl){p=0;do{if(rl=!1,il=0,25<=p)throw Error(r(301));p+=1,_t=bt=null,n.updateQueue=null,uo.current=Hm,e=l(a,f)}while(rl)}if(uo.current=ho,n=bt!==null&&bt.next!==null,Br=0,_t=bt=ft=null,co=!1,n)throw Error(r(300));return e}function Za(){var e=il!==0;return il=0,e}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?ft.memoizedState=_t=e:_t=_t.next=e,_t}function fn(){if(bt===null){var e=ft.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var n=_t===null?ft.memoizedState:_t.next;if(n!==null)_t=n,bt=e;else{if(e===null)throw Error(r(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},_t===null?ft.memoizedState=_t=e:_t=_t.next=e}return _t}function ll(e,n){return typeof n=="function"?n(e):n}function Ja(e){var n=fn(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=bt,f=a.baseQueue,p=l.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}a.baseQueue=f=p,l.pending=null}if(f!==null){p=f.next,a=a.baseState;var S=x=null,N=null,z=p;do{var W=z.lane;if((Br&W)===W)N!==null&&(N=N.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),a=z.hasEagerState?z.eagerState:e(a,z.action);else{var q={lane:W,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};N===null?(S=N=q,x=a):N=N.next=q,ft.lanes|=W,Ur|=W}z=z.next}while(z!==null&&z!==p);N===null?x=a:N.next=S,vn(a,n.memoizedState)||(Gt=!0),n.memoizedState=a,n.baseState=x,n.baseQueue=N,l.lastRenderedState=a}if(e=l.interleaved,e!==null){f=e;do p=f.lane,ft.lanes|=p,Ur|=p,f=f.next;while(f!==e)}else f===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function es(e){var n=fn(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,f=l.pending,p=n.memoizedState;if(f!==null){l.pending=null;var x=f=f.next;do p=e(p,x.action),x=x.next;while(x!==f);vn(p,n.memoizedState)||(Gt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),l.lastRenderedState=p}return[p,a]}function jc(){}function Fc(e,n){var l=ft,a=fn(),f=n(),p=!vn(a.memoizedState,f);if(p&&(a.memoizedState=f,Gt=!0),a=a.queue,ts($c.bind(null,l,a,e),[e]),a.getSnapshot!==n||p||_t!==null&&_t.memoizedState.tag&1){if(l.flags|=2048,ol(9,Uc.bind(null,l,a,f,n),void 0,null),Ct===null)throw Error(r(349));(Br&30)!==0||Bc(l,n,f)}return f}function Bc(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=ft.updateQueue,n===null?(n={lastEffect:null,stores:null},ft.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Uc(e,n,l,a){n.value=l,n.getSnapshot=a,Hc(n)&&Vc(e)}function $c(e,n,l){return l(function(){Hc(n)&&Vc(e)})}function Hc(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!vn(e,l)}catch{return!0}}function Vc(e){var n=Wn(e,1);n!==null&&_n(n,e,1,-1)}function Wc(e){var n=On();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},n.queue=e,e=e.dispatch=Bm.bind(null,ft,e),[n.memoizedState,e]}function ol(e,n,l,a){return e={tag:e,create:n,destroy:l,deps:a,next:null},n=ft.updateQueue,n===null?(n={lastEffect:null,stores:null},ft.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,n.lastEffect=e)),e}function Gc(){return fn().memoizedState}function fo(e,n,l,a){var f=On();ft.flags|=e,f.memoizedState=ol(1|n,l,void 0,a===void 0?null:a)}function po(e,n,l,a){var f=fn();a=a===void 0?null:a;var p=void 0;if(bt!==null){var x=bt.memoizedState;if(p=x.destroy,a!==null&&Ya(a,x.deps)){f.memoizedState=ol(n,l,p,a);return}}ft.flags|=e,f.memoizedState=ol(1|n,l,p,a)}function qc(e,n){return fo(8390656,8,e,n)}function ts(e,n){return po(2048,8,e,n)}function Kc(e,n){return po(4,2,e,n)}function Qc(e,n){return po(4,4,e,n)}function Yc(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Xc(e,n,l){return l=l!=null?l.concat([e]):null,po(4,4,Yc.bind(null,n,e),l)}function ns(){}function Zc(e,n){var l=fn();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&Ya(n,a[1])?a[0]:(l.memoizedState=[e,n],e)}function Jc(e,n){var l=fn();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&Ya(n,a[1])?a[0]:(e=e(),l.memoizedState=[e,n],e)}function ef(e,n,l){return(Br&21)===0?(e.baseState&&(e.baseState=!1,Gt=!0),e.memoizedState=l):(vn(l,n)||(l=Ll(),ft.lanes|=l,Ur|=l,e.baseState=!0),n)}function jm(e,n){var l=We;We=l!==0&&4>l?l:4,e(!0);var a=Qa.transition;Qa.transition={};try{e(!1),n()}finally{We=l,Qa.transition=a}}function tf(){return fn().memoizedState}function Fm(e,n,l){var a=gr(e);if(l={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null},nf(e))rf(n,l);else if(l=Oc(e,n,l,a),l!==null){var f=Bt();_n(l,e,a,f),lf(l,n,a)}}function Bm(e,n,l){var a=gr(e),f={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null};if(nf(e))rf(n,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,S=p(x,l);if(f.hasEagerState=!0,f.eagerState=S,vn(S,x)){var N=n.interleaved;N===null?(f.next=f,Ha(n)):(f.next=N.next,N.next=f),n.interleaved=f;return}}catch{}finally{}l=Oc(e,n,f,a),l!==null&&(f=Bt(),_n(l,e,a,f),lf(l,n,a))}}function nf(e){var n=e.alternate;return e===ft||n!==null&&n===ft}function rf(e,n){rl=co=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function lf(e,n,l){if((l&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,l|=a,n.lanes=l,Di(e,l)}}var ho={readContext:cn,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useInsertionEffect:Mt,useLayoutEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useMutableSource:Mt,useSyncExternalStore:Mt,useId:Mt,unstable_isNewReconciler:!1},Um={readContext:cn,useCallback:function(e,n){return On().memoizedState=[e,n===void 0?null:n],e},useContext:cn,useEffect:qc,useImperativeHandle:function(e,n,l){return l=l!=null?l.concat([e]):null,fo(4194308,4,Yc.bind(null,n,e),l)},useLayoutEffect:function(e,n){return fo(4194308,4,e,n)},useInsertionEffect:function(e,n){return fo(4,2,e,n)},useMemo:function(e,n){var l=On();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var a=On();return n=l!==void 0?l(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Fm.bind(null,ft,e),[a.memoizedState,e]},useRef:function(e){var n=On();return e={current:e},n.memoizedState=e},useState:Wc,useDebugValue:ns,useDeferredValue:function(e){return On().memoizedState=e},useTransition:function(){var e=Wc(!1),n=e[0];return e=jm.bind(null,e[1]),On().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var a=ft,f=On();if(ot){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Ct===null)throw Error(r(349));(Br&30)!==0||Bc(a,n,l)}f.memoizedState=l;var p={value:l,getSnapshot:n};return f.queue=p,qc($c.bind(null,a,p,e),[e]),a.flags|=2048,ol(9,Uc.bind(null,a,p,l,n),void 0,null),l},useId:function(){var e=On(),n=Ct.identifierPrefix;if(ot){var l=Vn,a=Hn;l=(a&~(1<<32-ut(a)-1)).toString(32)+l,n=":"+n+"R"+l,l=il++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=zm++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},$m={readContext:cn,useCallback:Zc,useContext:cn,useEffect:ts,useImperativeHandle:Xc,useInsertionEffect:Kc,useLayoutEffect:Qc,useMemo:Jc,useReducer:Ja,useRef:Gc,useState:function(){return Ja(ll)},useDebugValue:ns,useDeferredValue:function(e){var n=fn();return ef(n,bt.memoizedState,e)},useTransition:function(){var e=Ja(ll)[0],n=fn().memoizedState;return[e,n]},useMutableSource:jc,useSyncExternalStore:Fc,useId:tf,unstable_isNewReconciler:!1},Hm={readContext:cn,useCallback:Zc,useContext:cn,useEffect:ts,useImperativeHandle:Xc,useInsertionEffect:Kc,useLayoutEffect:Qc,useMemo:Jc,useReducer:es,useRef:Gc,useState:function(){return es(ll)},useDebugValue:ns,useDeferredValue:function(e){var n=fn();return bt===null?n.memoizedState=e:ef(n,bt.memoizedState,e)},useTransition:function(){var e=es(ll)[0],n=fn().memoizedState;return[e,n]},useMutableSource:jc,useSyncExternalStore:Fc,useId:tf,unstable_isNewReconciler:!1};function bn(e,n){if(e&&e.defaultProps){n=w({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function rs(e,n,l,a){n=e.memoizedState,l=l(a,n),l=l==null?n:w({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var mo={isMounted:function(e){return(e=e._reactInternals)?Bn(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var a=Bt(),f=gr(e),p=Gn(a,f);p.payload=n,l!=null&&(p.callback=l),n=dr(e,p,f),n!==null&&(_n(n,e,f,a),oo(n,e,f))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var a=Bt(),f=gr(e),p=Gn(a,f);p.tag=1,p.payload=n,l!=null&&(p.callback=l),n=dr(e,p,f),n!==null&&(_n(n,e,f,a),oo(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Bt(),a=gr(e),f=Gn(l,a);f.tag=2,n!=null&&(f.callback=n),n=dr(e,f,a),n!==null&&(_n(n,e,a,l),oo(n,e,a))}};function of(e,n,l,a,f,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,p,x):n.prototype&&n.prototype.isPureReactComponent?!Gi(l,a)||!Gi(f,p):!0}function af(e,n,l){var a=!1,f=ur,p=n.contextType;return typeof p=="object"&&p!==null?p=cn(p):(f=Wt(n)?Pr:It.current,a=n.contextTypes,p=(a=a!=null)?fi(e,f):ur),n=new n(l,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=mo,e.stateNode=n,n._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=p),n}function sf(e,n,l,a){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,a),n.state!==e&&mo.enqueueReplaceState(n,n.state,null)}function is(e,n,l,a){var f=e.stateNode;f.props=l,f.state=e.memoizedState,f.refs={},Va(e);var p=n.contextType;typeof p=="object"&&p!==null?f.context=cn(p):(p=Wt(n)?Pr:It.current,f.context=fi(e,p)),f.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(rs(e,n,p,l),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&mo.enqueueReplaceState(f,f.state,null),ao(e,l,f,a),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function ki(e,n){try{var l="",a=n;do l+=Oe(a),a=a.return;while(a);var f=l}catch(p){f=`
|
|
39
|
+
Error generating stack: `+p.message+`
|
|
40
|
+
`+p.stack}return{value:e,source:n,stack:f,digest:null}}function ls(e,n,l){return{value:e,source:null,stack:l??null,digest:n??null}}function os(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var Vm=typeof WeakMap=="function"?WeakMap:Map;function uf(e,n,l){l=Gn(-1,l),l.tag=3,l.payload={element:null};var a=n.value;return l.callback=function(){bo||(bo=!0,ws=a),os(e,n)},l}function cf(e,n,l){l=Gn(-1,l),l.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var f=n.value;l.payload=function(){return a(f)},l.callback=function(){os(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(l.callback=function(){os(e,n),typeof a!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),l}function ff(e,n,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Vm;var f=new Set;a.set(n,f)}else f=a.get(n),f===void 0&&(f=new Set,a.set(n,f));f.has(l)||(f.add(l),e=ig.bind(null,e,n,l),n.then(e,e))}function df(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function pf(e,n,l,a,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=Gn(-1,1),n.tag=2,dr(l,n,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var Wm=K.ReactCurrentOwner,Gt=!1;function Ft(e,n,l,a){n.child=e===null?Mc(n,null,l,a):mi(n,e.child,l,a)}function hf(e,n,l,a,f){l=l.render;var p=n.ref;return yi(n,f),a=Xa(e,n,l,a,p,f),l=Za(),e!==null&&!Gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,qn(e,n,f)):(ot&&l&&La(n),n.flags|=1,Ft(e,n,a,f),n.child)}function mf(e,n,l,a,f){if(e===null){var p=l.type;return typeof p=="function"&&!Ts(p)&&p.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=p,gf(e,n,p,a,f)):(e=To(l.type,null,a,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&f)===0){var x=p.memoizedProps;if(l=l.compare,l=l!==null?l:Gi,l(x,a)&&e.ref===n.ref)return qn(e,n,f)}return n.flags|=1,e=xr(p,a),e.ref=n.ref,e.return=n,n.child=e}function gf(e,n,l,a,f){if(e!==null){var p=e.memoizedProps;if(Gi(p,a)&&e.ref===n.ref)if(Gt=!1,n.pendingProps=a=p,(e.lanes&f)!==0)(e.flags&131072)!==0&&(Gt=!0);else return n.lanes=e.lanes,qn(e,n,f)}return as(e,n,l,a,f)}function yf(e,n,l){var a=n.pendingProps,f=a.children,p=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(wi,tn),tn|=l;else{if((l&1073741824)===0)return e=p!==null?p.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Je(wi,tn),tn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=p!==null?p.baseLanes:l,Je(wi,tn),tn|=a}else p!==null?(a=p.baseLanes|l,n.memoizedState=null):a=l,Je(wi,tn),tn|=a;return Ft(e,n,f,l),n.child}function xf(e,n){var l=n.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function as(e,n,l,a,f){var p=Wt(l)?Pr:It.current;return p=fi(n,p),yi(n,f),l=Xa(e,n,l,a,p,f),a=Za(),e!==null&&!Gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,qn(e,n,f)):(ot&&a&&La(n),n.flags|=1,Ft(e,n,l,f),n.child)}function kf(e,n,l,a,f){if(Wt(l)){var p=!0;Zl(n)}else p=!1;if(yi(n,f),n.stateNode===null)yo(e,n),af(n,l,a),is(n,l,a,f),a=!0;else if(e===null){var x=n.stateNode,S=n.memoizedProps;x.props=S;var N=x.context,z=l.contextType;typeof z=="object"&&z!==null?z=cn(z):(z=Wt(l)?Pr:It.current,z=fi(n,z));var W=l.getDerivedStateFromProps,q=typeof W=="function"||typeof x.getSnapshotBeforeUpdate=="function";q||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(S!==a||N!==z)&&sf(n,x,a,z),fr=!1;var V=n.memoizedState;x.state=V,ao(n,a,x,f),N=n.memoizedState,S!==a||V!==N||Vt.current||fr?(typeof W=="function"&&(rs(n,l,W,a),N=n.memoizedState),(S=fr||of(n,l,S,a,V,N,z))?(q||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=N),x.props=a,x.state=N,x.context=z,a=S):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{x=n.stateNode,Lc(e,n),S=n.memoizedProps,z=n.type===n.elementType?S:bn(n.type,S),x.props=z,q=n.pendingProps,V=x.context,N=l.contextType,typeof N=="object"&&N!==null?N=cn(N):(N=Wt(l)?Pr:It.current,N=fi(n,N));var ae=l.getDerivedStateFromProps;(W=typeof ae=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(S!==q||V!==N)&&sf(n,x,a,N),fr=!1,V=n.memoizedState,x.state=V,ao(n,a,x,f);var he=n.memoizedState;S!==q||V!==he||Vt.current||fr?(typeof ae=="function"&&(rs(n,l,ae,a),he=n.memoizedState),(z=fr||of(n,l,z,a,V,he,N)||!1)?(W||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(a,he,N),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(a,he,N)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=he),x.props=a,x.state=he,x.context=N,a=z):(typeof x.componentDidUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(n.flags|=1024),a=!1)}return ss(e,n,l,a,p,f)}function ss(e,n,l,a,f,p){xf(e,n);var x=(n.flags&128)!==0;if(!a&&!x)return f&&Sc(n,l,!1),qn(e,n,p);a=n.stateNode,Wm.current=n;var S=x&&typeof l.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,e!==null&&x?(n.child=mi(n,e.child,null,p),n.child=mi(n,null,S,p)):Ft(e,n,S,p),n.memoizedState=a.state,f&&Sc(n,l,!0),n.child}function vf(e){var n=e.stateNode;n.pendingContext?wc(e,n.pendingContext,n.pendingContext!==n.context):n.context&&wc(e,n.context,!1),Wa(e,n.containerInfo)}function wf(e,n,l,a,f){return hi(),ja(f),n.flags|=256,Ft(e,n,l,a),n.child}var us={dehydrated:null,treeContext:null,retryLane:0};function cs(e){return{baseLanes:e,cachePool:null,transitions:null}}function bf(e,n,l){var a=n.pendingProps,f=ct.current,p=!1,x=(n.flags&128)!==0,S;if((S=x)||(S=e!==null&&e.memoizedState===null?!1:(f&2)!==0),S?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),Je(ct,f&1),e===null)return za(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=a.children,e=a.fallback,p?(a=n.mode,p=n.child,x={mode:"hidden",children:x},(a&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Ao(x,a,0,null),e=Wr(e,a,l,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=cs(l),n.memoizedState=us,e):fs(n,x));if(f=e.memoizedState,f!==null&&(S=f.dehydrated,S!==null))return Gm(e,n,x,a,S,f,l);if(p){p=a.fallback,x=n.mode,f=e.child,S=f.sibling;var N={mode:"hidden",children:a.children};return(x&1)===0&&n.child!==f?(a=n.child,a.childLanes=0,a.pendingProps=N,n.deletions=null):(a=xr(f,N),a.subtreeFlags=f.subtreeFlags&14680064),S!==null?p=xr(S,p):(p=Wr(p,x,l,null),p.flags|=2),p.return=n,a.return=n,a.sibling=p,n.child=a,a=p,p=n.child,x=e.child.memoizedState,x=x===null?cs(l):{baseLanes:x.baseLanes|l,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~l,n.memoizedState=us,a}return p=e.child,e=p.sibling,a=xr(p,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=l),a.return=n,a.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=a,n.memoizedState=null,a}function fs(e,n){return n=Ao({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function go(e,n,l,a){return a!==null&&ja(a),mi(n,e.child,null,l),e=fs(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Gm(e,n,l,a,f,p,x){if(l)return n.flags&256?(n.flags&=-257,a=ls(Error(r(422))),go(e,n,x,a)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=a.fallback,f=n.mode,a=Ao({mode:"visible",children:a.children},f,0,null),p=Wr(p,f,x,null),p.flags|=2,a.return=n,p.return=n,a.sibling=p,n.child=a,(n.mode&1)!==0&&mi(n,e.child,null,x),n.child.memoizedState=cs(x),n.memoizedState=us,p);if((n.mode&1)===0)return go(e,n,x,null);if(f.data==="$!"){if(a=f.nextSibling&&f.nextSibling.dataset,a)var S=a.dgst;return a=S,p=Error(r(419)),a=ls(p,a,void 0),go(e,n,x,a)}if(S=(x&e.childLanes)!==0,Gt||S){if(a=Ct,a!==null){switch(x&-x){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(a.suspendedLanes|x))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,Wn(e,f),_n(a,e,f,-1))}return Ns(),a=ls(Error(r(421))),go(e,n,x,a)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=lg.bind(null,e),f._reactRetry=n,null):(e=p.treeContext,en=ar(f.nextSibling),Jt=n,ot=!0,wn=null,e!==null&&(sn[un++]=Hn,sn[un++]=Vn,sn[un++]=Dr,Hn=e.id,Vn=e.overflow,Dr=n),n=fs(n,a.children),n.flags|=4096,n)}function Sf(e,n,l){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n),$a(e.return,n,l)}function ds(e,n,l,a,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:f}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=l,p.tailMode=f)}function Ef(e,n,l){var a=n.pendingProps,f=a.revealOrder,p=a.tail;if(Ft(e,n,a.children,l),a=ct.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sf(e,l,n);else if(e.tag===19)Sf(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Je(ct,a),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&so(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),ds(n,!1,f,l,p);break;case"backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&so(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}ds(n,!0,l,null,p);break;case"together":ds(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function yo(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function qn(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Ur|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=xr(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=xr(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function qm(e,n,l){switch(n.tag){case 3:vf(n),hi();break;case 5:zc(n);break;case 1:Wt(n.type)&&Zl(n);break;case 4:Wa(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,f=n.memoizedProps.value;Je(io,a._currentValue),a._currentValue=f;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Je(ct,ct.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?bf(e,n,l):(Je(ct,ct.current&1),e=qn(e,n,l),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(a=(l&n.childLanes)!==0,(e.flags&128)!==0){if(a)return Ef(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Je(ct,ct.current),a)break;return null;case 22:case 23:return n.lanes=0,yf(e,n,l)}return qn(e,n,l)}var _f,ps,Cf,Nf;_f=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},ps=function(){},Cf=function(e,n,l,a){var f=e.memoizedProps;if(f!==a){e=n.stateNode,Fr(Mn.current);var p=null;switch(l){case"input":f=br(e,f),a=br(e,a),p=[];break;case"select":f=w({},f,{value:void 0}),a=w({},a,{value:void 0}),p=[];break;case"textarea":f=_r(e,f),a=_r(e,a),p=[];break;default:typeof f.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ql)}wt(l,a);var x;l=null;for(z in f)if(!a.hasOwnProperty(z)&&f.hasOwnProperty(z)&&f[z]!=null)if(z==="style"){var S=f[z];for(x in S)S.hasOwnProperty(x)&&(l||(l={}),l[x]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(s.hasOwnProperty(z)?p||(p=[]):(p=p||[]).push(z,null));for(z in a){var N=a[z];if(S=f!=null?f[z]:void 0,a.hasOwnProperty(z)&&N!==S&&(N!=null||S!=null))if(z==="style")if(S){for(x in S)!S.hasOwnProperty(x)||N&&N.hasOwnProperty(x)||(l||(l={}),l[x]="");for(x in N)N.hasOwnProperty(x)&&S[x]!==N[x]&&(l||(l={}),l[x]=N[x])}else l||(p||(p=[]),p.push(z,l)),l=N;else z==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,S=S?S.__html:void 0,N!=null&&S!==N&&(p=p||[]).push(z,N)):z==="children"?typeof N!="string"&&typeof N!="number"||(p=p||[]).push(z,""+N):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(s.hasOwnProperty(z)?(N!=null&&z==="onScroll"&&rt("scroll",e),p||S===N||(p=[])):(p=p||[]).push(z,N))}l&&(p=p||[]).push("style",l);var z=p;(n.updateQueue=z)&&(n.flags|=4)}},Nf=function(e,n,l,a){l!==a&&(n.flags|=4)};function al(e,n){if(!ot)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags&14680064,a|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags,a|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=a,e.childLanes=l,n}function Km(e,n,l){var a=n.pendingProps;switch(Pa(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(n),null;case 1:return Wt(n.type)&&Xl(),Ot(n),null;case 3:return a=n.stateNode,xi(),it(Vt),it(It),Ka(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(no(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,wn!==null&&(Es(wn),wn=null))),ps(e,n),Ot(n),null;case 5:Ga(n);var f=Fr(nl.current);if(l=n.type,e!==null&&n.stateNode!=null)Cf(e,n,l,a,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(r(166));return Ot(n),null}if(e=Fr(Mn.current),no(n)){a=n.stateNode,l=n.type;var p=n.memoizedProps;switch(a[In]=n,a[Xi]=p,e=(n.mode&1)!==0,l){case"dialog":rt("cancel",a),rt("close",a);break;case"iframe":case"object":case"embed":rt("load",a);break;case"video":case"audio":for(f=0;f<Ki.length;f++)rt(Ki[f],a);break;case"source":rt("error",a);break;case"img":case"image":case"link":rt("error",a),rt("load",a);break;case"details":rt("toggle",a);break;case"input":Sr(a,p),rt("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!p.multiple},rt("invalid",a);break;case"textarea":Cr(a,p),rt("invalid",a)}wt(l,p),f=null;for(var x in p)if(p.hasOwnProperty(x)){var S=p[x];x==="children"?typeof S=="string"?a.textContent!==S&&(p.suppressHydrationWarning!==!0&&Kl(a.textContent,S,e),f=["children",S]):typeof S=="number"&&a.textContent!==""+S&&(p.suppressHydrationWarning!==!0&&Kl(a.textContent,S,e),f=["children",""+S]):s.hasOwnProperty(x)&&S!=null&&x==="onScroll"&&rt("scroll",a)}switch(l){case"input":mn(a),Yr(a,p,!0);break;case"textarea":mn(a),Nr(a);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(a.onclick=Ql)}a=f,n.updateQueue=a,a!==null&&(n.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=j(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=x.createElement(l,{is:a.is}):(e=x.createElement(l),l==="select"&&(x=e,a.multiple?x.multiple=!0:a.size&&(x.size=a.size))):e=x.createElementNS(e,l),e[In]=n,e[Xi]=a,_f(e,n,!1,!1),n.stateNode=e;e:{switch(x=on(l,a),l){case"dialog":rt("cancel",e),rt("close",e),f=a;break;case"iframe":case"object":case"embed":rt("load",e),f=a;break;case"video":case"audio":for(f=0;f<Ki.length;f++)rt(Ki[f],e);f=a;break;case"source":rt("error",e),f=a;break;case"img":case"image":case"link":rt("error",e),rt("load",e),f=a;break;case"details":rt("toggle",e),f=a;break;case"input":Sr(e,a),f=br(e,a),rt("invalid",e);break;case"option":f=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},f=w({},a,{value:void 0}),rt("invalid",e);break;case"textarea":Cr(e,a),f=_r(e,a),rt("invalid",e);break;default:f=a}wt(l,f),S=f;for(p in S)if(S.hasOwnProperty(p)){var N=S[p];p==="style"?xn(e,N):p==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,N!=null&&De(e,N)):p==="children"?typeof N=="string"?(l!=="textarea"||N!=="")&&Ue(e,N):typeof N=="number"&&Ue(e,""+N):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(s.hasOwnProperty(p)?N!=null&&p==="onScroll"&&rt("scroll",e):N!=null&&F(e,p,N,x))}switch(l){case"input":mn(e),Yr(e,a,!1);break;case"textarea":mn(e),Nr(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Pe(a.value));break;case"select":e.multiple=!!a.multiple,p=a.value,p!=null?Nn(e,!!a.multiple,p,!1):a.defaultValue!=null&&Nn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Ql)}switch(l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Ot(n),null;case 6:if(e&&n.stateNode!=null)Nf(e,n,e.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(r(166));if(l=Fr(nl.current),Fr(Mn.current),no(n)){if(a=n.stateNode,l=n.memoizedProps,a[In]=n,(p=a.nodeValue!==l)&&(e=Jt,e!==null))switch(e.tag){case 3:Kl(a.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Kl(a.nodeValue,l,(e.mode&1)!==0)}p&&(n.flags|=4)}else a=(l.nodeType===9?l:l.ownerDocument).createTextNode(a),a[In]=n,n.stateNode=a}return Ot(n),null;case 13:if(it(ct),a=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&en!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Ac(),hi(),n.flags|=98560,p=!1;else if(p=no(n),a!==null&&a.dehydrated!==null){if(e===null){if(!p)throw Error(r(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[In]=n}else hi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),p=!1}else wn!==null&&(Es(wn),wn=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(ct.current&1)!==0?St===0&&(St=3):Ns())),n.updateQueue!==null&&(n.flags|=4),Ot(n),null);case 4:return xi(),ps(e,n),e===null&&Qi(n.stateNode.containerInfo),Ot(n),null;case 10:return Ua(n.type._context),Ot(n),null;case 17:return Wt(n.type)&&Xl(),Ot(n),null;case 19:if(it(ct),p=n.memoizedState,p===null)return Ot(n),null;if(a=(n.flags&128)!==0,x=p.rendering,x===null)if(a)al(p,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=so(e),x!==null){for(n.flags|=128,al(p,!1),a=x.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=l,l=n.child;l!==null;)p=l,e=a,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return Je(ct,ct.current&1|2),n.child}e=e.sibling}p.tail!==null&&st()>bi&&(n.flags|=128,a=!0,al(p,!1),n.lanes=4194304)}else{if(!a)if(e=so(x),e!==null){if(n.flags|=128,a=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),al(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!ot)return Ot(n),null}else 2*st()-p.renderingStartTime>bi&&l!==1073741824&&(n.flags|=128,a=!0,al(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(l=p.last,l!==null?l.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=st(),n.sibling=null,l=ct.current,Je(ct,a?l&1|2:l&1),n):(Ot(n),null);case 22:case 23:return Cs(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(tn&1073741824)!==0&&(Ot(n),n.subtreeFlags&6&&(n.flags|=8192)):Ot(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function Qm(e,n){switch(Pa(n),n.tag){case 1:return Wt(n.type)&&Xl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return xi(),it(Vt),it(It),Ka(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ga(n),null;case 13:if(it(ct),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));hi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return it(ct),null;case 4:return xi(),null;case 10:return Ua(n.type._context),null;case 22:case 23:return Cs(),null;case 24:return null;default:return null}}var xo=!1,Lt=!1,Ym=typeof WeakSet=="function"?WeakSet:Set,pe=null;function vi(e,n){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(a){pt(e,n,a)}else l.current=null}function hs(e,n,l){try{l()}catch(a){pt(e,n,a)}}var Tf=!1;function Xm(e,n){if(Ca=zl,e=lc(),xa(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var f=a.anchorOffset,p=a.focusNode;a=a.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var x=0,S=-1,N=-1,z=0,W=0,q=e,V=null;t:for(;;){for(var ae;q!==l||f!==0&&q.nodeType!==3||(S=x+f),q!==p||a!==0&&q.nodeType!==3||(N=x+a),q.nodeType===3&&(x+=q.nodeValue.length),(ae=q.firstChild)!==null;)V=q,q=ae;for(;;){if(q===e)break t;if(V===l&&++z===f&&(S=x),V===p&&++W===a&&(N=x),(ae=q.nextSibling)!==null)break;q=V,V=q.parentNode}q=ae}l=S===-1||N===-1?null:{start:S,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(Na={focusedElem:e,selectionRange:l},zl=!1,pe=n;pe!==null;)if(n=pe,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,pe=e;else for(;pe!==null;){n=pe;try{var he=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var me=he.memoizedProps,gt=he.memoizedState,O=n.stateNode,A=O.getSnapshotBeforeUpdate(n.elementType===n.type?me:bn(n.type,me),gt);O.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var P=n.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Z){pt(n,n.return,Z)}if(e=n.sibling,e!==null){e.return=n.return,pe=e;break}pe=n.return}return he=Tf,Tf=!1,he}function sl(e,n,l){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&e)===e){var p=f.destroy;f.destroy=void 0,p!==void 0&&hs(n,l,p)}f=f.next}while(f!==a)}}function ko(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var a=l.create;l.destroy=a()}l=l.next}while(l!==n)}}function ms(e){var n=e.ref;if(n!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof n=="function"?n(e):n.current=e}}function Af(e){var n=e.alternate;n!==null&&(e.alternate=null,Af(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[In],delete n[Xi],delete n[Ia],delete n[Om],delete n[Lm])),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 Rf(e){return e.tag===5||e.tag===3||e.tag===4}function If(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rf(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 gs(e,n,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Ql));else if(a!==4&&(e=e.child,e!==null))for(gs(e,n,l),e=e.sibling;e!==null;)gs(e,n,l),e=e.sibling}function ys(e,n,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(ys(e,n,l),e=e.sibling;e!==null;)ys(e,n,l),e=e.sibling}var At=null,Sn=!1;function pr(e,n,l){for(l=l.child;l!==null;)Mf(e,n,l),l=l.sibling}function Mf(e,n,l){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(ze,l)}catch{}switch(l.tag){case 5:Lt||vi(l,n);case 6:var a=At,f=Sn;At=null,pr(e,n,l),At=a,Sn=f,At!==null&&(Sn?(e=At,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):At.removeChild(l.stateNode));break;case 18:At!==null&&(Sn?(e=At,l=l.stateNode,e.nodeType===8?Ra(e.parentNode,l):e.nodeType===1&&Ra(e,l),Bi(e)):Ra(At,l.stateNode));break;case 4:a=At,f=Sn,At=l.stateNode.containerInfo,Sn=!0,pr(e,n,l),At=a,Sn=f;break;case 0:case 11:case 14:case 15:if(!Lt&&(a=l.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){f=a=a.next;do{var p=f,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&hs(l,n,x),f=f.next}while(f!==a)}pr(e,n,l);break;case 1:if(!Lt&&(vi(l,n),a=l.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=l.memoizedProps,a.state=l.memoizedState,a.componentWillUnmount()}catch(S){pt(l,n,S)}pr(e,n,l);break;case 21:pr(e,n,l);break;case 22:l.mode&1?(Lt=(a=Lt)||l.memoizedState!==null,pr(e,n,l),Lt=a):pr(e,n,l);break;default:pr(e,n,l)}}function Of(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new Ym),n.forEach(function(a){var f=og.bind(null,e,a);l.has(a)||(l.add(a),a.then(f,f))})}}function En(e,n){var l=n.deletions;if(l!==null)for(var a=0;a<l.length;a++){var f=l[a];try{var p=e,x=n,S=x;e:for(;S!==null;){switch(S.tag){case 5:At=S.stateNode,Sn=!1;break e;case 3:At=S.stateNode.containerInfo,Sn=!0;break e;case 4:At=S.stateNode.containerInfo,Sn=!0;break e}S=S.return}if(At===null)throw Error(r(160));Mf(p,x,f),At=null,Sn=!1;var N=f.alternate;N!==null&&(N.return=null),f.return=null}catch(z){pt(f,n,z)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Lf(n,e),n=n.sibling}function Lf(e,n){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(En(n,e),Ln(e),a&4){try{sl(3,e,e.return),ko(3,e)}catch(me){pt(e,e.return,me)}try{sl(5,e,e.return)}catch(me){pt(e,e.return,me)}}break;case 1:En(n,e),Ln(e),a&512&&l!==null&&vi(l,l.return);break;case 5:if(En(n,e),Ln(e),a&512&&l!==null&&vi(l,l.return),e.flags&32){var f=e.stateNode;try{Ue(f,"")}catch(me){pt(e,e.return,me)}}if(a&4&&(f=e.stateNode,f!=null)){var p=e.memoizedProps,x=l!==null?l.memoizedProps:p,S=e.type,N=e.updateQueue;if(e.updateQueue=null,N!==null)try{S==="input"&&p.type==="radio"&&p.name!=null&&Er(f,p),on(S,x);var z=on(S,p);for(x=0;x<N.length;x+=2){var W=N[x],q=N[x+1];W==="style"?xn(f,q):W==="dangerouslySetInnerHTML"?De(f,q):W==="children"?Ue(f,q):F(f,W,q,z)}switch(S){case"input":Xn(f,p);break;case"textarea":ln(f,p);break;case"select":var V=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var ae=p.value;ae!=null?Nn(f,!!p.multiple,ae,!1):V!==!!p.multiple&&(p.defaultValue!=null?Nn(f,!!p.multiple,p.defaultValue,!0):Nn(f,!!p.multiple,p.multiple?[]:"",!1))}f[Xi]=p}catch(me){pt(e,e.return,me)}}break;case 6:if(En(n,e),Ln(e),a&4){if(e.stateNode===null)throw Error(r(162));f=e.stateNode,p=e.memoizedProps;try{f.nodeValue=p}catch(me){pt(e,e.return,me)}}break;case 3:if(En(n,e),Ln(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Bi(n.containerInfo)}catch(me){pt(e,e.return,me)}break;case 4:En(n,e),Ln(e);break;case 13:En(n,e),Ln(e),f=e.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(vs=st())),a&4&&Of(e);break;case 22:if(W=l!==null&&l.memoizedState!==null,e.mode&1?(Lt=(z=Lt)||W,En(n,e),Lt=z):En(n,e),Ln(e),a&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!W&&(e.mode&1)!==0)for(pe=e,W=e.child;W!==null;){for(q=pe=W;pe!==null;){switch(V=pe,ae=V.child,V.tag){case 0:case 11:case 14:case 15:sl(4,V,V.return);break;case 1:vi(V,V.return);var he=V.stateNode;if(typeof he.componentWillUnmount=="function"){a=V,l=V.return;try{n=a,he.props=n.memoizedProps,he.state=n.memoizedState,he.componentWillUnmount()}catch(me){pt(a,l,me)}}break;case 5:vi(V,V.return);break;case 22:if(V.memoizedState!==null){zf(q);continue}}ae!==null?(ae.return=V,pe=ae):zf(q)}W=W.sibling}e:for(W=null,q=e;;){if(q.tag===5){if(W===null){W=q;try{f=q.stateNode,z?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(S=q.stateNode,N=q.memoizedProps.style,x=N!=null&&N.hasOwnProperty("display")?N.display:null,S.style.display=Ht("display",x))}catch(me){pt(e,e.return,me)}}}else if(q.tag===6){if(W===null)try{q.stateNode.nodeValue=z?"":q.memoizedProps}catch(me){pt(e,e.return,me)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;W===q&&(W=null),q=q.return}W===q&&(W=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:En(n,e),Ln(e),a&4&&Of(e);break;case 21:break;default:En(n,e),Ln(e)}}function Ln(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(Rf(l)){var a=l;break e}l=l.return}throw Error(r(160))}switch(a.tag){case 5:var f=a.stateNode;a.flags&32&&(Ue(f,""),a.flags&=-33);var p=If(e);ys(e,p,f);break;case 3:case 4:var x=a.stateNode.containerInfo,S=If(e);gs(e,S,x);break;default:throw Error(r(161))}}catch(N){pt(e,e.return,N)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Zm(e,n,l){pe=e,Pf(e)}function Pf(e,n,l){for(var a=(e.mode&1)!==0;pe!==null;){var f=pe,p=f.child;if(f.tag===22&&a){var x=f.memoizedState!==null||xo;if(!x){var S=f.alternate,N=S!==null&&S.memoizedState!==null||Lt;S=xo;var z=Lt;if(xo=x,(Lt=N)&&!z)for(pe=f;pe!==null;)x=pe,N=x.child,x.tag===22&&x.memoizedState!==null?jf(f):N!==null?(N.return=x,pe=N):jf(f);for(;p!==null;)pe=p,Pf(p),p=p.sibling;pe=f,xo=S,Lt=z}Df(e)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,pe=p):Df(e)}}function Df(e){for(;pe!==null;){var n=pe;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Lt||ko(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!Lt)if(l===null)a.componentDidMount();else{var f=n.elementType===n.type?l.memoizedProps:bn(n.type,l.memoizedProps);a.componentDidUpdate(f,l.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&Dc(n,p,a);break;case 3:var x=n.updateQueue;if(x!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Dc(n,x,l)}break;case 5:var S=n.stateNode;if(l===null&&n.flags&4){l=S;var N=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":N.autoFocus&&l.focus();break;case"img":N.src&&(l.src=N.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var z=n.alternate;if(z!==null){var W=z.memoizedState;if(W!==null){var q=W.dehydrated;q!==null&&Bi(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Lt||n.flags&512&&ms(n)}catch(V){pt(n,n.return,V)}}if(n===e){pe=null;break}if(l=n.sibling,l!==null){l.return=n.return,pe=l;break}pe=n.return}}function zf(e){for(;pe!==null;){var n=pe;if(n===e){pe=null;break}var l=n.sibling;if(l!==null){l.return=n.return,pe=l;break}pe=n.return}}function jf(e){for(;pe!==null;){var n=pe;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{ko(4,n)}catch(N){pt(n,l,N)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var f=n.return;try{a.componentDidMount()}catch(N){pt(n,f,N)}}var p=n.return;try{ms(n)}catch(N){pt(n,p,N)}break;case 5:var x=n.return;try{ms(n)}catch(N){pt(n,x,N)}}}catch(N){pt(n,n.return,N)}if(n===e){pe=null;break}var S=n.sibling;if(S!==null){S.return=n.return,pe=S;break}pe=n.return}}var Jm=Math.ceil,vo=K.ReactCurrentDispatcher,xs=K.ReactCurrentOwner,dn=K.ReactCurrentBatchConfig,Ge=0,Ct=null,xt=null,Rt=0,tn=0,wi=sr(0),St=0,ul=null,Ur=0,wo=0,ks=0,cl=null,qt=null,vs=0,bi=1/0,Kn=null,bo=!1,ws=null,hr=null,So=!1,mr=null,Eo=0,fl=0,bs=null,_o=-1,Co=0;function Bt(){return(Ge&6)!==0?st():_o!==-1?_o:_o=st()}function gr(e){return(e.mode&1)===0?1:(Ge&2)!==0&&Rt!==0?Rt&-Rt:Dm.transition!==null?(Co===0&&(Co=Ll()),Co):(e=We,e!==0||(e=window.event,e=e===void 0?16:Fu(e.type)),e)}function _n(e,n,l,a){if(50<fl)throw fl=0,bs=null,Error(r(185));rr(e,l,a),((Ge&2)===0||e!==Ct)&&(e===Ct&&((Ge&2)===0&&(wo|=l),St===4&&yr(e,Rt)),Kt(e,a),l===1&&Ge===0&&(n.mode&1)===0&&(bi=st()+500,Jl&&cr()))}function Kt(e,n){var l=e.callbackNode;la(e,n);var a=Ir(e,e===Ct?Rt:0);if(a===0)l!==null&&kn(l),e.callbackNode=null,e.callbackPriority=0;else if(n=a&-a,e.callbackPriority!==n){if(l!=null&&kn(l),n===1)e.tag===0?Pm(Bf.bind(null,e)):Ec(Bf.bind(null,e)),Im(function(){(Ge&6)===0&&cr()}),l=null;else{switch(Me(a)){case 1:l=Li;break;case 4:l=Ar;break;case 16:l=ei;break;case 536870912:l=xe;break;default:l=ei}l=Kf(l,Ff.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function Ff(e,n){if(_o=-1,Co=0,(Ge&6)!==0)throw Error(r(327));var l=e.callbackNode;if(Si()&&e.callbackNode!==l)return null;var a=Ir(e,e===Ct?Rt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||n)n=No(e,a);else{n=a;var f=Ge;Ge|=2;var p=$f();(Ct!==e||Rt!==n)&&(Kn=null,bi=st()+500,Hr(e,n));do try{ng();break}catch(S){Uf(e,S)}while(!0);Ba(),vo.current=p,Ge=f,xt!==null?n=0:(Ct=null,Rt=0,n=St)}if(n!==0){if(n===2&&(f=Pi(e),f!==0&&(a=f,n=Ss(e,f))),n===1)throw l=ul,Hr(e,0),yr(e,a),Kt(e,st()),l;if(n===6)yr(e,a);else{if(f=e.current.alternate,(a&30)===0&&!eg(f)&&(n=No(e,a),n===2&&(p=Pi(e),p!==0&&(a=p,n=Ss(e,p))),n===1))throw l=ul,Hr(e,0),yr(e,a),Kt(e,st()),l;switch(e.finishedWork=f,e.finishedLanes=a,n){case 0:case 1:throw Error(r(345));case 2:Vr(e,qt,Kn);break;case 3:if(yr(e,a),(a&130023424)===a&&(n=vs+500-st(),10<n)){if(Ir(e,0)!==0)break;if(f=e.suspendedLanes,(f&a)!==a){Bt(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=Aa(Vr.bind(null,e,qt,Kn),n);break}Vr(e,qt,Kn);break;case 4:if(yr(e,a),(a&4194240)===a)break;for(n=e.eventTimes,f=-1;0<a;){var x=31-ut(a);p=1<<x,x=n[x],x>f&&(f=x),a&=~p}if(a=f,a=st()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Jm(a/1960))-a,10<a){e.timeoutHandle=Aa(Vr.bind(null,e,qt,Kn),a);break}Vr(e,qt,Kn);break;case 5:Vr(e,qt,Kn);break;default:throw Error(r(329))}}}return Kt(e,st()),e.callbackNode===l?Ff.bind(null,e):null}function Ss(e,n){var l=cl;return e.current.memoizedState.isDehydrated&&(Hr(e,n).flags|=256),e=No(e,n),e!==2&&(n=qt,qt=l,n!==null&&Es(n)),e}function Es(e){qt===null?qt=e:qt.push.apply(qt,e)}function eg(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var a=0;a<l.length;a++){var f=l[a],p=f.getSnapshot;f=f.value;try{if(!vn(p(),f))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function yr(e,n){for(n&=~ks,n&=~wo,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var l=31-ut(n),a=1<<l;e[l]=-1,n&=~a}}function Bf(e){if((Ge&6)!==0)throw Error(r(327));Si();var n=Ir(e,0);if((n&1)===0)return Kt(e,st()),null;var l=No(e,n);if(e.tag!==0&&l===2){var a=Pi(e);a!==0&&(n=a,l=Ss(e,a))}if(l===1)throw l=ul,Hr(e,0),yr(e,n),Kt(e,st()),l;if(l===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Vr(e,qt,Kn),Kt(e,st()),null}function _s(e,n){var l=Ge;Ge|=1;try{return e(n)}finally{Ge=l,Ge===0&&(bi=st()+500,Jl&&cr())}}function $r(e){mr!==null&&mr.tag===0&&(Ge&6)===0&&Si();var n=Ge;Ge|=1;var l=dn.transition,a=We;try{if(dn.transition=null,We=1,e)return e()}finally{We=a,dn.transition=l,Ge=n,(Ge&6)===0&&cr()}}function Cs(){tn=wi.current,it(wi)}function Hr(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Rm(l)),xt!==null)for(l=xt.return;l!==null;){var a=l;switch(Pa(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Xl();break;case 3:xi(),it(Vt),it(It),Ka();break;case 5:Ga(a);break;case 4:xi();break;case 13:it(ct);break;case 19:it(ct);break;case 10:Ua(a.type._context);break;case 22:case 23:Cs()}l=l.return}if(Ct=e,xt=e=xr(e.current,null),Rt=tn=n,St=0,ul=null,ks=wo=Ur=0,qt=cl=null,jr!==null){for(n=0;n<jr.length;n++)if(l=jr[n],a=l.interleaved,a!==null){l.interleaved=null;var f=a.next,p=l.pending;if(p!==null){var x=p.next;p.next=f,a.next=x}l.pending=a}jr=null}return e}function Uf(e,n){do{var l=xt;try{if(Ba(),uo.current=ho,co){for(var a=ft.memoizedState;a!==null;){var f=a.queue;f!==null&&(f.pending=null),a=a.next}co=!1}if(Br=0,_t=bt=ft=null,rl=!1,il=0,xs.current=null,l===null||l.return===null){St=1,ul=n,xt=null;break}e:{var p=e,x=l.return,S=l,N=n;if(n=Rt,S.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){var z=N,W=S,q=W.tag;if((W.mode&1)===0&&(q===0||q===11||q===15)){var V=W.alternate;V?(W.updateQueue=V.updateQueue,W.memoizedState=V.memoizedState,W.lanes=V.lanes):(W.updateQueue=null,W.memoizedState=null)}var ae=df(x);if(ae!==null){ae.flags&=-257,pf(ae,x,S,p,n),ae.mode&1&&ff(p,z,n),n=ae,N=z;var he=n.updateQueue;if(he===null){var me=new Set;me.add(N),n.updateQueue=me}else he.add(N);break e}else{if((n&1)===0){ff(p,z,n),Ns();break e}N=Error(r(426))}}else if(ot&&S.mode&1){var gt=df(x);if(gt!==null){(gt.flags&65536)===0&&(gt.flags|=256),pf(gt,x,S,p,n),ja(ki(N,S));break e}}p=N=ki(N,S),St!==4&&(St=2),cl===null?cl=[p]:cl.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var O=uf(p,N,n);Pc(p,O);break e;case 1:S=N;var A=p.type,P=p.stateNode;if((p.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(hr===null||!hr.has(P)))){p.flags|=65536,n&=-n,p.lanes|=n;var Z=cf(p,S,n);Pc(p,Z);break e}}p=p.return}while(p!==null)}Vf(l)}catch(ye){n=ye,xt===l&&l!==null&&(xt=l=l.return);continue}break}while(!0)}function $f(){var e=vo.current;return vo.current=ho,e===null?ho:e}function Ns(){(St===0||St===3||St===2)&&(St=4),Ct===null||(Ur&268435455)===0&&(wo&268435455)===0||yr(Ct,Rt)}function No(e,n){var l=Ge;Ge|=2;var a=$f();(Ct!==e||Rt!==n)&&(Kn=null,Hr(e,n));do try{tg();break}catch(f){Uf(e,f)}while(!0);if(Ba(),Ge=l,vo.current=a,xt!==null)throw Error(r(261));return Ct=null,Rt=0,St}function tg(){for(;xt!==null;)Hf(xt)}function ng(){for(;xt!==null&&!Ml();)Hf(xt)}function Hf(e){var n=qf(e.alternate,e,tn);e.memoizedProps=e.pendingProps,n===null?Vf(e):xt=n,xs.current=null}function Vf(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=Km(l,n,tn),l!==null){xt=l;return}}else{if(l=Qm(l,n),l!==null){l.flags&=32767,xt=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{St=6,xt=null;return}}if(n=n.sibling,n!==null){xt=n;return}xt=n=e}while(n!==null);St===0&&(St=5)}function Vr(e,n,l){var a=We,f=dn.transition;try{dn.transition=null,We=1,rg(e,n,l,a)}finally{dn.transition=f,We=a}return null}function rg(e,n,l,a){do Si();while(mr!==null);if((Ge&6)!==0)throw Error(r(327));l=e.finishedWork;var f=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var p=l.lanes|l.childLanes;if(an(e,p),e===Ct&&(xt=Ct=null,Rt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||So||(So=!0,Kf(ei,function(){return Si(),null})),p=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||p){p=dn.transition,dn.transition=null;var x=We;We=1;var S=Ge;Ge|=4,xs.current=null,Xm(e,l),Lf(l,e),Sm(Na),zl=!!Ca,Na=Ca=null,e.current=l,Zm(l),Ol(),Ge=S,We=x,dn.transition=p}else e.current=l;if(So&&(So=!1,mr=e,Eo=f),p=e.pendingLanes,p===0&&(hr=null),ht(l.stateNode),Kt(e,st()),n!==null)for(a=e.onRecoverableError,l=0;l<n.length;l++)f=n[l],a(f.value,{componentStack:f.stack,digest:f.digest});if(bo)throw bo=!1,e=ws,ws=null,e;return(Eo&1)!==0&&e.tag!==0&&Si(),p=e.pendingLanes,(p&1)!==0?e===bs?fl++:(fl=0,bs=e):fl=0,cr(),null}function Si(){if(mr!==null){var e=Me(Eo),n=dn.transition,l=We;try{if(dn.transition=null,We=16>e?16:e,mr===null)var a=!1;else{if(e=mr,mr=null,Eo=0,(Ge&6)!==0)throw Error(r(331));var f=Ge;for(Ge|=4,pe=e.current;pe!==null;){var p=pe,x=p.child;if((pe.flags&16)!==0){var S=p.deletions;if(S!==null){for(var N=0;N<S.length;N++){var z=S[N];for(pe=z;pe!==null;){var W=pe;switch(W.tag){case 0:case 11:case 15:sl(8,W,p)}var q=W.child;if(q!==null)q.return=W,pe=q;else for(;pe!==null;){W=pe;var V=W.sibling,ae=W.return;if(Af(W),W===z){pe=null;break}if(V!==null){V.return=ae,pe=V;break}pe=ae}}}var he=p.alternate;if(he!==null){var me=he.child;if(me!==null){he.child=null;do{var gt=me.sibling;me.sibling=null,me=gt}while(me!==null)}}pe=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,pe=x;else e:for(;pe!==null;){if(p=pe,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:sl(9,p,p.return)}var O=p.sibling;if(O!==null){O.return=p.return,pe=O;break e}pe=p.return}}var A=e.current;for(pe=A;pe!==null;){x=pe;var P=x.child;if((x.subtreeFlags&2064)!==0&&P!==null)P.return=x,pe=P;else e:for(x=A;pe!==null;){if(S=pe,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:ko(9,S)}}catch(ye){pt(S,S.return,ye)}if(S===x){pe=null;break e}var Z=S.sibling;if(Z!==null){Z.return=S.return,pe=Z;break e}pe=S.return}}if(Ge=f,cr(),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(ze,e)}catch{}a=!0}return a}finally{We=l,dn.transition=n}}return!1}function Wf(e,n,l){n=ki(l,n),n=uf(e,n,1),e=dr(e,n,1),n=Bt(),e!==null&&(rr(e,1,n),Kt(e,n))}function pt(e,n,l){if(e.tag===3)Wf(e,e,l);else for(;n!==null;){if(n.tag===3){Wf(n,e,l);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(hr===null||!hr.has(a))){e=ki(l,e),e=cf(n,e,1),n=dr(n,e,1),e=Bt(),n!==null&&(rr(n,1,e),Kt(n,e));break}}n=n.return}}function ig(e,n,l){var a=e.pingCache;a!==null&&a.delete(n),n=Bt(),e.pingedLanes|=e.suspendedLanes&l,Ct===e&&(Rt&l)===l&&(St===4||St===3&&(Rt&130023424)===Rt&&500>st()-vs?Hr(e,0):ks|=l),Kt(e,n)}function Gf(e,n){n===0&&((e.mode&1)===0?n=1:(n=Rr,Rr<<=1,(Rr&130023424)===0&&(Rr=4194304)));var l=Bt();e=Wn(e,n),e!==null&&(rr(e,n,l),Kt(e,l))}function lg(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Gf(e,l)}function og(e,n){var l=0;switch(e.tag){case 13:var a=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(r(314))}a!==null&&a.delete(n),Gf(e,l)}var qf;qf=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||Vt.current)Gt=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return Gt=!1,qm(e,n,l);Gt=(e.flags&131072)!==0}else Gt=!1,ot&&(n.flags&1048576)!==0&&_c(n,to,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;yo(e,n),e=n.pendingProps;var f=fi(n,It.current);yi(n,l),f=Xa(null,n,a,e,f,l);var p=Za();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Wt(a)?(p=!0,Zl(n)):p=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Va(n),f.updater=mo,n.stateNode=f,f._reactInternals=n,is(n,a,e,l),n=ss(null,n,a,!0,p,l)):(n.tag=0,ot&&p&&La(n),Ft(null,n,f,l),n=n.child),n;case 16:a=n.elementType;e:{switch(yo(e,n),e=n.pendingProps,f=a._init,a=f(a._payload),n.type=a,f=n.tag=sg(a),e=bn(a,e),f){case 0:n=as(null,n,a,e,l);break e;case 1:n=kf(null,n,a,e,l);break e;case 11:n=hf(null,n,a,e,l);break e;case 14:n=mf(null,n,a,bn(a.type,e),l);break e}throw Error(r(306,a,""))}return n;case 0:return a=n.type,f=n.pendingProps,f=n.elementType===a?f:bn(a,f),as(e,n,a,f,l);case 1:return a=n.type,f=n.pendingProps,f=n.elementType===a?f:bn(a,f),kf(e,n,a,f,l);case 3:e:{if(vf(n),e===null)throw Error(r(387));a=n.pendingProps,p=n.memoizedState,f=p.element,Lc(e,n),ao(n,a,null,l);var x=n.memoizedState;if(a=x.element,p.isDehydrated)if(p={element:a,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){f=ki(Error(r(423)),n),n=wf(e,n,a,l,f);break e}else if(a!==f){f=ki(Error(r(424)),n),n=wf(e,n,a,l,f);break e}else for(en=ar(n.stateNode.containerInfo.firstChild),Jt=n,ot=!0,wn=null,l=Mc(n,null,a,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(hi(),a===f){n=qn(e,n,l);break e}Ft(e,n,a,l)}n=n.child}return n;case 5:return zc(n),e===null&&za(n),a=n.type,f=n.pendingProps,p=e!==null?e.memoizedProps:null,x=f.children,Ta(a,f)?x=null:p!==null&&Ta(a,p)&&(n.flags|=32),xf(e,n),Ft(e,n,x,l),n.child;case 6:return e===null&&za(n),null;case 13:return bf(e,n,l);case 4:return Wa(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=mi(n,null,a,l):Ft(e,n,a,l),n.child;case 11:return a=n.type,f=n.pendingProps,f=n.elementType===a?f:bn(a,f),hf(e,n,a,f,l);case 7:return Ft(e,n,n.pendingProps,l),n.child;case 8:return Ft(e,n,n.pendingProps.children,l),n.child;case 12:return Ft(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(a=n.type._context,f=n.pendingProps,p=n.memoizedProps,x=f.value,Je(io,a._currentValue),a._currentValue=x,p!==null)if(vn(p.value,x)){if(p.children===f.children&&!Vt.current){n=qn(e,n,l);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var S=p.dependencies;if(S!==null){x=p.child;for(var N=S.firstContext;N!==null;){if(N.context===a){if(p.tag===1){N=Gn(-1,l&-l),N.tag=2;var z=p.updateQueue;if(z!==null){z=z.shared;var W=z.pending;W===null?N.next=N:(N.next=W.next,W.next=N),z.pending=N}}p.lanes|=l,N=p.alternate,N!==null&&(N.lanes|=l),$a(p.return,l,n),S.lanes|=l;break}N=N.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(r(341));x.lanes|=l,S=x.alternate,S!==null&&(S.lanes|=l),$a(x,l,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}Ft(e,n,f.children,l),n=n.child}return n;case 9:return f=n.type,a=n.pendingProps.children,yi(n,l),f=cn(f),a=a(f),n.flags|=1,Ft(e,n,a,l),n.child;case 14:return a=n.type,f=bn(a,n.pendingProps),f=bn(a.type,f),mf(e,n,a,f,l);case 15:return gf(e,n,n.type,n.pendingProps,l);case 17:return a=n.type,f=n.pendingProps,f=n.elementType===a?f:bn(a,f),yo(e,n),n.tag=1,Wt(a)?(e=!0,Zl(n)):e=!1,yi(n,l),af(n,a,f),is(n,a,f,l),ss(null,n,a,!0,e,l);case 19:return Ef(e,n,l);case 22:return yf(e,n,l)}throw Error(r(156,n.tag))};function Kf(e,n){return Il(e,n)}function ag(e,n,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,n,l,a){return new ag(e,n,l,a)}function Ts(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sg(e){if(typeof e=="function")return Ts(e)?1:0;if(e!=null){if(e=e.$$typeof,e===re)return 11;if(e===Y)return 14}return 2}function xr(e,n){var l=e.alternate;return l===null?(l=pn(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function To(e,n,l,a,f,p){var x=2;if(a=e,typeof e=="function")Ts(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case ie:return Wr(l.children,f,p,n);case ce:x=8,f|=8;break;case ge:return e=pn(12,l,n,f|2),e.elementType=ge,e.lanes=p,e;case ve:return e=pn(13,l,n,f),e.elementType=ve,e.lanes=p,e;case le:return e=pn(19,l,n,f),e.elementType=le,e.lanes=p,e;case Te:return Ao(l,f,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:x=10;break e;case te:x=9;break e;case re:x=11;break e;case Y:x=14;break e;case ke:x=16,a=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return n=pn(x,l,n,f),n.elementType=e,n.type=a,n.lanes=p,n}function Wr(e,n,l,a){return e=pn(7,e,a,n),e.lanes=l,e}function Ao(e,n,l,a){return e=pn(22,e,a,n),e.elementType=Te,e.lanes=l,e.stateNode={isHidden:!1},e}function As(e,n,l){return e=pn(6,e,null,n),e.lanes=l,e}function Rs(e,n,l){return n=pn(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ug(e,n,l,a,f){this.tag=n,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=nr(0),this.expirationTimes=nr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nr(0),this.identifierPrefix=a,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Is(e,n,l,a,f,p,x,S,N){return e=new ug(e,n,l,S,N),n===1?(n=1,p===!0&&(n|=8)):n=0,p=pn(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:a,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Va(p),e}function cg(e,n,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:a==null?null:""+a,children:e,containerInfo:n,implementation:l}}function Qf(e){if(!e)return ur;e=e._reactInternals;e:{if(Bn(e)!==e||e.tag!==1)throw Error(r(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Wt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(e.tag===1){var l=e.type;if(Wt(l))return bc(e,l,n)}return n}function Yf(e,n,l,a,f,p,x,S,N){return e=Is(l,a,!0,e,f,p,x,S,N),e.context=Qf(null),l=e.current,a=Bt(),f=gr(l),p=Gn(a,f),p.callback=n??null,dr(l,p,f),e.current.lanes=f,rr(e,f,a),Kt(e,a),e}function Ro(e,n,l,a){var f=n.current,p=Bt(),x=gr(f);return l=Qf(l),n.context===null?n.context=l:n.pendingContext=l,n=Gn(p,x),n.payload={element:e},a=a===void 0?null:a,a!==null&&(n.callback=a),e=dr(f,n,x),e!==null&&(_n(e,f,x,p),oo(e,f,x)),x}function Io(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 Xf(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Ms(e,n){Xf(e,n),(e=e.alternate)&&Xf(e,n)}function fg(){return null}var Zf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Os(e){this._internalRoot=e}Mo.prototype.render=Os.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));Ro(e,n,null,null)},Mo.prototype.unmount=Os.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;$r(function(){Ro(null,e,null,null)}),n[Un]=null}};function Mo(e){this._internalRoot=e}Mo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Mr();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Et.length&&n!==0&&n<Et[l].priority;l++);Et.splice(l,0,e),l===0&&zu(e)}};function Ls(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jf(){}function dg(e,n,l,a,f){if(f){if(typeof a=="function"){var p=a;a=function(){var z=Io(x);p.call(z)}}var x=Yf(n,a,e,0,null,!1,!1,"",Jf);return e._reactRootContainer=x,e[Un]=x.current,Qi(e.nodeType===8?e.parentNode:e),$r(),x}for(;f=e.lastChild;)e.removeChild(f);if(typeof a=="function"){var S=a;a=function(){var z=Io(N);S.call(z)}}var N=Is(e,0,!1,null,null,!1,!1,"",Jf);return e._reactRootContainer=N,e[Un]=N.current,Qi(e.nodeType===8?e.parentNode:e),$r(function(){Ro(n,N,l,a)}),N}function Lo(e,n,l,a,f){var p=l._reactRootContainer;if(p){var x=p;if(typeof f=="function"){var S=f;f=function(){var N=Io(x);S.call(N)}}Ro(n,x,e,f)}else x=dg(l,n,e,f,a);return Io(x)}zi=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=tr(n.pendingLanes);l!==0&&(Di(n,l|1),Kt(n,st()),(Ge&6)===0&&(bi=st()+500,cr()))}break;case 13:$r(function(){var a=Wn(e,1);if(a!==null){var f=Bt();_n(a,e,1,f)}}),Ms(e,1)}},mt=function(e){if(e.tag===13){var n=Wn(e,134217728);if(n!==null){var l=Bt();_n(n,e,134217728,l)}Ms(e,134217728)}},Ye=function(e){if(e.tag===13){var n=gr(e),l=Wn(e,n);if(l!==null){var a=Bt();_n(l,e,n,a)}Ms(e,n)}},Mr=function(){return We},Rn=function(e,n){var l=We;try{return We=e,n()}finally{We=l}},Zr=function(e,n,l){switch(n){case"input":if(Xn(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var a=l[n];if(a!==e&&a.form===e.form){var f=Yl(a);if(!f)throw Error(r(90));Qr(a),Xn(a,f)}}}break;case"textarea":ln(e,l);break;case"select":n=l.value,n!=null&&Nn(e,!!l.multiple,n,!1)}},ne=_s,Re=$r;var pg={usingClientEntryPoint:!1,Events:[Zi,ui,Yl,_,U,_s]},dl={findFiberByHostInstance:Lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hg={bundleType:dl.bundleType,version:dl.version,rendererPackageName:dl.rendererPackageName,rendererConfig:dl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Al(e),e===null?null:e.stateNode},findFiberByHostInstance:dl.findFiberByHostInstance||fg,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 Po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Po.isDisabled&&Po.supportsFiber)try{ze=Po.inject(hg),Fe=Po}catch{}}return Qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pg,Qt.createPortal=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ls(n))throw Error(r(200));return cg(e,n,null,l)},Qt.createRoot=function(e,n){if(!Ls(e))throw Error(r(299));var l=!1,a="",f=Zf;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=Is(e,1,!1,null,null,l,!1,a,f),e[Un]=n.current,Qi(e.nodeType===8?e.parentNode:e),new Os(n)},Qt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=Al(n),e=e===null?null:e.stateNode,e},Qt.flushSync=function(e){return $r(e)},Qt.hydrate=function(e,n,l){if(!Oo(n))throw Error(r(200));return Lo(null,e,n,!0,l)},Qt.hydrateRoot=function(e,n,l){if(!Ls(e))throw Error(r(405));var a=l!=null&&l.hydratedSources||null,f=!1,p="",x=Zf;if(l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),n=Yf(n,null,e,1,l??null,f,!1,p,x),e[Un]=n.current,Qi(e),a)for(e=0;e<a.length;e++)l=a[e],f=l._getVersion,f=f(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,f]:n.mutableSourceEagerHydrationData.push(l,f);return new Mo(n)},Qt.render=function(e,n,l){if(!Oo(n))throw Error(r(200));return Lo(null,e,n,!1,l)},Qt.unmountComponentAtNode=function(e){if(!Oo(e))throw Error(r(40));return e._reactRootContainer?($r(function(){Lo(null,null,e,!1,function(){e._reactRootContainer=null,e[Un]=null})}),!0):!1},Qt.unstable_batchedUpdates=_s,Qt.unstable_renderSubtreeIntoContainer=function(e,n,l,a){if(!Oo(l))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Lo(e,n,l,!1,a)},Qt.version="18.3.1-next-f1338f8080-20240426",Qt}var ad;function Sg(){if(ad)return zs.exports;ad=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),zs.exports=bg(),zs.exports}var sd;function Eg(){if(sd)return Do;sd=1;var t=Sg();return Do.createRoot=t.createRoot,Do.hydrateRoot=t.hydrateRoot,Do}var _g=Eg();const Cg=El(_g);/**
|
|
41
|
+
* @license lucide-react v0.468.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const Ng=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sp=(...t)=>t.filter((i,r,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===r).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v0.468.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var Tg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
+
* @license lucide-react v0.468.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const Ag=se.forwardRef(({color:t="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s="",children:c,iconNode:u,...d},h)=>se.createElement("svg",{ref:h,...Tg,width:i,height:i,stroke:t,strokeWidth:o?Number(r)*24/Number(i):r,className:sp("lucide",s),...d},[...u.map(([m,y])=>se.createElement(m,y)),...Array.isArray(c)?c:[c]]));/**
|
|
56
|
+
* @license lucide-react v0.468.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const Qe=(t,i)=>{const r=se.forwardRef(({className:o,...s},c)=>se.createElement(Ag,{ref:c,iconNode:i,className:sp(`lucide-${Ng(t)}`,o),...s}));return r.displayName=`${t}`,r};/**
|
|
61
|
+
* @license lucide-react v0.468.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const up=Qe("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
|
|
66
|
+
* @license lucide-react v0.468.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const cp=Qe("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
|
|
71
|
+
* @license lucide-react v0.468.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Rg=Qe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
76
|
+
* @license lucide-react v0.468.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const Ig=Qe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
81
|
+
* @license lucide-react v0.468.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const fp=Qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
86
|
+
* @license lucide-react v0.468.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Mg=Qe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
91
|
+
* @license lucide-react v0.468.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const Qo=Qe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
96
|
+
* @license lucide-react v0.468.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const Og=Qe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
101
|
+
* @license lucide-react v0.468.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const dp=Qe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
106
|
+
* @license lucide-react v0.468.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Lg=Qe("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
111
|
+
* @license lucide-react v0.468.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const Pg=Qe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
116
|
+
* @license lucide-react v0.468.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const Dg=Qe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
121
|
+
* @license lucide-react v0.468.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const zg=Qe("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
126
|
+
* @license lucide-react v0.468.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const ud=Qe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
131
|
+
* @license lucide-react v0.468.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const jg=Qe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
136
|
+
* @license lucide-react v0.468.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const Fg=Qe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
141
|
+
* @license lucide-react v0.468.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const Bg=Qe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
146
|
+
* @license lucide-react v0.468.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const Ug=Qe("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
151
|
+
* @license lucide-react v0.468.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const $g=Qe("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);/**
|
|
156
|
+
* @license lucide-react v0.468.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const Hg=Qe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
161
|
+
* @license lucide-react v0.468.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Vg=Qe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
166
|
+
* @license lucide-react v0.468.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Wg=Qe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
171
|
+
* @license lucide-react v0.468.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const Gg=Qe("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
176
|
+
* @license lucide-react v0.468.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const qg=Qe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
181
|
+
* @license lucide-react v0.468.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const Kg=Qe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
186
|
+
* @license lucide-react v0.468.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const Qg=Qe("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
191
|
+
* @license lucide-react v0.468.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const Yg=Qe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
196
|
+
* @license lucide-react v0.468.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const Xg=Qe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
201
|
+
* @license lucide-react v0.468.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Zg=Qe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
206
|
+
* @license lucide-react v0.468.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const Jg=Qe("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
211
|
+
* @license lucide-react v0.468.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const pp=Qe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
216
|
+
* @license lucide-react v0.468.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const hp=Qe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function $t(...t){return t.filter(Boolean).join(" ")}function xl(){return`${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function ey(t,i){return t.length<=i?t:t.slice(0,i-1)+"…"}function ty(t){const i=new Date(t),r=new Date;return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()&&i.getDate()===r.getDate()?i.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):i.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function ny({session:t,isActive:i,onSelect:r,onRemove:o}){return E.jsxs("div",{onClick:r,className:$t("group flex cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-sm transition-colors",i?"bg-accent text-accent-foreground":"hover:bg-accent/50 text-foreground"),children:[E.jsx(Fg,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"}),E.jsxs("div",{className:"min-w-0 flex-1",children:[E.jsx("p",{className:"truncate font-medium",children:t.title}),E.jsx("p",{className:"text-xs text-muted-foreground",children:ty(t.updatedAt)})]}),E.jsx("button",{onClick:s=>{s.stopPropagation(),o()},className:"opacity-0 group-hover:opacity-100 p-1 rounded hover:bg-destructive/10 hover:text-destructive transition-all",title:"Delete",children:E.jsx(Xg,{className:"h-3.5 w-3.5"})})]})}function ry({sessions:t,onNew:i,onSelect:r,onOpenSettings:o}){return E.jsxs("div",{className:"flex h-full flex-col",children:[E.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[E.jsx("span",{className:"text-sm font-semibold text-foreground",children:"NewCraw"}),E.jsx("button",{onClick:i,className:"flex h-7 w-7 items-center justify-center rounded-md hover:bg-accent transition-colors",title:"New Chat",children:E.jsx(Hg,{className:"h-4 w-4"})})]}),E.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin p-2 space-y-0.5",children:t.list.length===0?E.jsxs("div",{className:"px-3 py-8 text-center",children:[E.jsx("p",{className:"text-xs text-muted-foreground",children:"No conversations yet"}),E.jsx("button",{onClick:i,className:"mt-2 text-xs text-primary hover:underline",children:"Start a new chat"})]}):t.list.map(s=>{var c;return E.jsx(ny,{session:s,isActive:s.key===((c=t.active)==null?void 0:c.key),onSelect:()=>r(s.key),onRemove:()=>t.remove(s.key)},s.key)})}),E.jsx("div",{className:"border-t border-border p-2",children:E.jsxs("button",{onClick:o,className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[E.jsx(qg,{className:"h-4 w-4"}),"Settings"]})})]})}function iy({message:t}){return E.jsx("div",{className:"flex justify-end",children:E.jsx("div",{className:"max-w-[80%] rounded-2xl rounded-br-md bg-primary px-4 py-2.5 text-sm text-primary-foreground",children:E.jsx("p",{className:"whitespace-pre-wrap break-words",children:t.content})})})}function ly(t,i){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const oy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ay=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sy={};function cd(t,i){return(sy.jsx?ay:oy).test(t)}const uy=/[ \t\n\f\r]/g;function cy(t){return typeof t=="object"?t.type==="text"?fd(t.value):!1:fd(t)}function fd(t){return t.replace(uy,"")===""}class _l{constructor(i,r,o){this.normal=r,this.property=i,o&&(this.space=o)}}_l.prototype.normal={};_l.prototype.property={};_l.prototype.space=void 0;function mp(t,i){const r={},o={};for(const s of t)Object.assign(r,s.property),Object.assign(o,s.normal);return new _l(r,o,i)}function lu(t){return t.toLowerCase()}class Xt{constructor(i,r){this.attribute=r,this.property=i}}Xt.prototype.attribute="";Xt.prototype.booleanish=!1;Xt.prototype.boolean=!1;Xt.prototype.commaOrSpaceSeparated=!1;Xt.prototype.commaSeparated=!1;Xt.prototype.defined=!1;Xt.prototype.mustUseProperty=!1;Xt.prototype.number=!1;Xt.prototype.overloadedBoolean=!1;Xt.prototype.property="";Xt.prototype.spaceSeparated=!1;Xt.prototype.space=void 0;let fy=0;const Le=Kr(),kt=Kr(),ou=Kr(),Q=Kr(),et=Kr(),Ti=Kr(),nn=Kr();function Kr(){return 2**++fy}const au=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:kt,commaOrSpaceSeparated:nn,commaSeparated:Ti,number:Q,overloadedBoolean:ou,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),Bs=Object.keys(au);class yu extends Xt{constructor(i,r,o,s){let c=-1;if(super(i,r),dd(this,"space",s),typeof o=="number")for(;++c<Bs.length;){const u=Bs[c];dd(this,Bs[c],(o&au[u])===au[u])}}}yu.prototype.defined=!0;function dd(t,i,r){r&&(t[i]=r)}function Ri(t){const i={},r={};for(const[o,s]of Object.entries(t.properties)){const c=new yu(o,t.transform(t.attributes||{},o),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(c.mustUseProperty=!0),i[o]=c,r[lu(o)]=o,r[lu(c.attribute)]=o}return new _l(i,r,t.space)}const gp=Ri({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:et,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:Q,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:et,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:kt,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(t,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function yp(t,i){return i in t?t[i]:i}function xp(t,i){return yp(t,i.toLowerCase())}const dy=Ri({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ti,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:et,autoFocus:Le,autoPlay:Le,blocking:et,capture:null,charSet:null,checked:Le,cite:null,className:et,cols:Q,colSpan:null,content:null,contentEditable:kt,controls:Le,controlsList:et,coords:Q|Ti,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:ou,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:et,height:Q,hidden:ou,high:Q,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:et,itemRef:et,itemScope:Le,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:Q,pattern:null,ping:et,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:et,required:Le,reversed:Le,rows:Q,rowSpan:Q,sandbox:et,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:kt,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:Q,security:null,unselectable:null},space:"html",transform:xp}),py=Ri({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:nn,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:et,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Ti,g2:Ti,glyphName:Ti,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yp}),kp=Ri({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,i){return"xlink:"+i.slice(5).toLowerCase()}}),vp=Ri({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xp}),wp=Ri({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,i){return"xml:"+i.slice(3).toLowerCase()}}),hy={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"},my=/[A-Z]/g,pd=/-[a-z]/g,gy=/^data[-\w.:]+$/i;function yy(t,i){const r=lu(i);let o=i,s=Xt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&gy.test(i)){if(i.charAt(4)==="-"){const c=i.slice(5).replace(pd,ky);o="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=i.slice(4);if(!pd.test(c)){let u=c.replace(my,xy);u.charAt(0)!=="-"&&(u="-"+u),i="data"+u}}s=yu}return new s(o,i)}function xy(t){return"-"+t.toLowerCase()}function ky(t){return t.charAt(1).toUpperCase()}const vy=mp([gp,dy,kp,vp,wp],"html"),xu=mp([gp,py,kp,vp,wp],"svg");function wy(t){return t.join(" ").trim()}var Ei={},Us,hd;function by(){if(hd)return Us;hd=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
|
|
221
|
+
`,m="/",y="*",g="",v="comment",k="declaration";function C(L,R){if(typeof L!="string")throw new TypeError("First argument must be a string");if(!L)return[];R=R||{};var H=1,F=1;function K(le){var Y=le.match(i);Y&&(H+=Y.length);var ke=le.lastIndexOf(h);F=~ke?le.length-ke:F+le.length}function G(){var le={line:H,column:F};return function(Y){return Y.position=new M(le),ge(),Y}}function M(le){this.start=le,this.end={line:H,column:F},this.source=R.source}M.prototype.content=L;function ie(le){var Y=new Error(R.source+":"+H+":"+F+": "+le);if(Y.reason=le,Y.filename=R.source,Y.line=H,Y.column=F,Y.source=L,!R.silent)throw Y}function ce(le){var Y=le.exec(L);if(Y){var ke=Y[0];return K(ke),L=L.slice(ke.length),Y}}function ge(){ce(r)}function D(le){var Y;for(le=le||[];Y=te();)Y!==!1&&le.push(Y);return le}function te(){var le=G();if(!(m!=L.charAt(0)||y!=L.charAt(1))){for(var Y=2;g!=L.charAt(Y)&&(y!=L.charAt(Y)||m!=L.charAt(Y+1));)++Y;if(Y+=2,g===L.charAt(Y-1))return ie("End of comment missing");var ke=L.slice(2,Y-2);return F+=2,K(ke),L=L.slice(Y),F+=2,le({type:v,comment:ke})}}function re(){var le=G(),Y=ce(o);if(Y){if(te(),!ce(s))return ie("property missing ':'");var ke=ce(c),Te=le({type:k,property:I(Y[0].replace(t,g)),value:ke?I(ke[0].replace(t,g)):g});return ce(u),Te}}function ve(){var le=[];D(le);for(var Y;Y=re();)Y!==!1&&(le.push(Y),D(le));return le}return ge(),ve()}function I(L){return L?L.replace(d,g):g}return Us=C,Us}var md;function Sy(){if(md)return Ei;md=1;var t=Ei&&Ei.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=r;const i=t(by());function r(o,s){let c=null;if(!o||typeof o!="string")return c;const u=(0,i.default)(o),d=typeof s=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;d?s(m,y,h):y&&(c=c||{},c[m]=y)}),c}return Ei}var hl={},gd;function Ey(){if(gd)return hl;gd=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||r.test(m)||t.test(m)},u=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),c(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,d):m=m.replace(o,d),m.replace(i,u))};return hl.camelCase=h,hl}var ml,yd;function _y(){if(yd)return ml;yd=1;var t=ml&&ml.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},i=t(Sy()),r=Ey();function o(s,c){var u={};return!s||typeof s!="string"||(0,i.default)(s,function(d,h){d&&h&&(u[(0,r.camelCase)(d,c)]=h)}),u}return o.default=o,ml=o,ml}var Cy=_y();const Ny=El(Cy),bp=Sp("end"),ku=Sp("start");function Sp(t){return i;function i(r){const o=r&&r.position&&r.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Ty(t){const i=ku(t),r=bp(t);if(i&&r)return{start:i,end:r}}function kl(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?xd(t.position):"start"in t||"end"in t?xd(t):"line"in t||"column"in t?su(t):""}function su(t){return kd(t&&t.line)+":"+kd(t&&t.column)}function xd(t){return su(t&&t.start)+"-"+su(t&&t.end)}function kd(t){return t&&typeof t=="number"?t:1}class Dt extends Error{constructor(i,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",c={},u=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof i=="string"?s=i:!c.cause&&i&&(u=!0,s=i.message,c.cause=i),!c.ruleId&&!c.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?c.ruleId=o:(c.source=o.slice(0,h),c.ruleId=o.slice(h+1))}if(!c.place&&c.ancestors&&c.ancestors){const h=c.ancestors[c.ancestors.length-1];h&&(c.place=h.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=kl(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Dt.prototype.file="";Dt.prototype.name="";Dt.prototype.reason="";Dt.prototype.message="";Dt.prototype.stack="";Dt.prototype.column=void 0;Dt.prototype.line=void 0;Dt.prototype.ancestors=void 0;Dt.prototype.cause=void 0;Dt.prototype.fatal=void 0;Dt.prototype.place=void 0;Dt.prototype.ruleId=void 0;Dt.prototype.source=void 0;const vu={}.hasOwnProperty,Ay=new Map,Ry=/[A-Z]/g,Iy=new Set(["table","tbody","thead","tfoot","tr"]),My=new Set(["td","th"]),Ep="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Oy(t,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let o;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Uy(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=By(r,i.jsx,i.jsxs)}const s={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:o,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?xu:vy,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},c=_p(s,t,void 0);return c&&typeof c!="string"?c:s.create(t,s.Fragment,{children:c||void 0},void 0)}function _p(t,i,r){if(i.type==="element")return Ly(t,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return Py(t,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return zy(t,i,r);if(i.type==="mdxjsEsm")return Dy(t,i);if(i.type==="root")return jy(t,i,r);if(i.type==="text")return Fy(t,i)}function Ly(t,i,r){const o=t.schema;let s=o;i.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=xu,t.schema=s),t.ancestors.push(i);const c=Np(t,i.tagName,!1),u=$y(t,i);let d=bu(t,i);return Iy.has(i.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!cy(h):!0})),Cp(t,u,c,i),wu(u,d),t.ancestors.pop(),t.schema=o,t.create(i,c,u,r)}function Py(t,i){if(i.data&&i.data.estree&&t.evaluater){const o=i.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.expression)}bl(t,i.position)}function Dy(t,i){if(i.data&&i.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(i.data.estree);bl(t,i.position)}function zy(t,i,r){const o=t.schema;let s=o;i.name==="svg"&&o.space==="html"&&(s=xu,t.schema=s),t.ancestors.push(i);const c=i.name===null?t.Fragment:Np(t,i.name,!0),u=Hy(t,i),d=bu(t,i);return Cp(t,u,c,i),wu(u,d),t.ancestors.pop(),t.schema=o,t.create(i,c,u,r)}function jy(t,i,r){const o={};return wu(o,bu(t,i)),t.create(i,t.Fragment,o,r)}function Fy(t,i){return i.value}function Cp(t,i,r,o){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(i.node=o)}function wu(t,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(t.children=r)}}function By(t,i,r){return o;function o(s,c,u,d){const m=Array.isArray(u.children)?r:i;return d?m(c,u,d):m(c,u)}}function Uy(t,i){return r;function r(o,s,c,u){const d=Array.isArray(c.children),h=ku(o);return i(s,c,u,d,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function $y(t,i){const r={};let o,s;for(s in i.properties)if(s!=="children"&&vu.call(i.properties,s)){const c=Vy(t,s,i.properties[s]);if(c){const[u,d]=c;t.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&My.has(i.tagName)?o=d:r[u]=d}}if(o){const c=r.style||(r.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function Hy(t,i){const r={};for(const o of i.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const c=o.data.estree.body[0];c.type;const u=c.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else bl(t,i.position);else{const s=o.name;let c;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const d=o.value.data.estree.body[0];d.type,c=t.evaluater.evaluateExpression(d.expression)}else bl(t,i.position);else c=o.value===null?!0:o.value;r[s]=c}return r}function bu(t,i){const r=[];let o=-1;const s=t.passKeys?new Map:Ay;for(;++o<i.children.length;){const c=i.children[o];let u;if(t.passKeys){const h=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(h){const m=s.get(h)||0;u=h+"-"+m,s.set(h,m+1)}}const d=_p(t,c,u);d!==void 0&&r.push(d)}return r}function Vy(t,i,r){const o=yy(t.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?ly(r):wy(r)),o.property==="style"){let s=typeof r=="object"?r:Wy(t,String(r));return t.stylePropertyNameCase==="css"&&(s=Gy(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&o.space?hy[o.property]||o.property:o.attribute,r]}}function Wy(t,i){try{return Ny(i,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const o=r,s=new Dt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Ep+"#cannot-parse-style-attribute",s}}function Np(t,i,r){let o;if(!r)o={type:"Literal",value:i};else if(i.includes(".")){const s=i.split(".");let c=-1,u;for(;++c<s.length;){const d=cd(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}o=u}else o=cd(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(o.type==="Literal"){const s=o.value;return vu.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(o);bl(t)}function bl(t,i){const r=new Dt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Ep+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Gy(t){const i={};let r;for(r in t)vu.call(t,r)&&(i[qy(r)]=t[r]);return i}function qy(t){let i=t.replace(Ry,Ky);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function Ky(t){return"-"+t.toLowerCase()}const $s={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"]},Qy={};function Su(t,i){const r=Qy,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Tp(t,o,s)}function Tp(t,i,r){if(Yy(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(i&&"alt"in t&&t.alt)return t.alt;if("children"in t)return vd(t.children,i,r)}return Array.isArray(t)?vd(t,i,r):""}function vd(t,i,r){const o=[];let s=-1;for(;++s<t.length;)o[s]=Tp(t[s],i,r);return o.join("")}function Yy(t){return!!(t&&typeof t=="object")}const wd=document.createElement("i");function Eu(t){const i="&"+t+";";wd.innerHTML=i;const r=wd.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===i?!1:r}function rn(t,i,r,o){const s=t.length;let c=0,u;if(i<0?i=-i>s?0:s+i:i=i>s?s:i,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(i,r),t.splice(...u);else for(r&&t.splice(i,r);c<o.length;)u=o.slice(c,c+1e4),u.unshift(i,0),t.splice(...u),c+=1e4,i+=1e4}function hn(t,i){return t.length>0?(rn(t,t.length,0,i),t):i}const bd={}.hasOwnProperty;function Ap(t){const i={};let r=-1;for(;++r<t.length;)Xy(i,t[r]);return i}function Xy(t,i){let r;for(r in i){const s=(bd.call(t,r)?t[r]:void 0)||(t[r]={}),c=i[r];let u;if(c)for(u in c){bd.call(s,u)||(s[u]=[]);const d=c[u];Zy(s[u],Array.isArray(d)?d:d?[d]:[])}}}function Zy(t,i){let r=-1;const o=[];for(;++r<i.length;)(i[r].add==="after"?t:o).push(i[r]);rn(t,0,0,o)}function Rp(t,i){const r=Number.parseInt(t,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Cn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ut=wr(/[A-Za-z]/),Pt=wr(/[\dA-Za-z]/),Jy=wr(/[#-'*+\--9=?A-Z^-~]/);function Vo(t){return t!==null&&(t<32||t===127)}const uu=wr(/\d/),ex=wr(/[\dA-Fa-f]/),tx=wr(/[!-/:-@[-`{-~]/);function _e(t){return t!==null&&t<-2}function Xe(t){return t!==null&&(t<0||t===32)}function Be(t){return t===-2||t===-1||t===32}const Yo=wr(new RegExp("\\p{P}|\\p{S}","u")),qr=wr(/\s/);function wr(t){return i;function i(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ii(t){const i=[];let r=-1,o=0,s=0;for(;++r<t.length;){const c=t.charCodeAt(r);let u="";if(c===37&&Pt(t.charCodeAt(r+1))&&Pt(t.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const d=t.charCodeAt(r+1);c<56320&&d>56319&&d<57344?(u=String.fromCharCode(c,d),s=1):u="�"}else u=String.fromCharCode(c);u&&(i.push(t.slice(o,r),encodeURIComponent(u)),o=r+s+1,u=""),s&&(r+=s,s=0)}return i.join("")+t.slice(o)}function Ve(t,i,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let c=0;return u;function u(h){return Be(h)?(t.enter(r),d(h)):i(h)}function d(h){return Be(h)&&c++<s?(t.consume(h),d):(t.exit(r),i(h))}}const nx={tokenize:rx};function rx(t){const i=t.attempt(this.parser.constructs.contentInitial,o,s);let r;return i;function o(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ve(t,i,"linePrefix")}function s(d){return t.enter("paragraph"),c(d)}function c(d){const h=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,u(d)}function u(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return _e(d)?(t.consume(d),t.exit("chunkText"),c):(t.consume(d),u)}}const ix={tokenize:lx},Sd={tokenize:ox};function lx(t){const i=this,r=[];let o=0,s,c,u;return d;function d(F){if(o<r.length){const K=r[o];return i.containerState=K[1],t.attempt(K[0].continuation,h,m)(F)}return m(F)}function h(F){if(o++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,s&&H();const K=i.events.length;let G=K,M;for(;G--;)if(i.events[G][0]==="exit"&&i.events[G][1].type==="chunkFlow"){M=i.events[G][1].end;break}R(o);let ie=K;for(;ie<i.events.length;)i.events[ie][1].end={...M},ie++;return rn(i.events,G+1,0,i.events.slice(K)),i.events.length=ie,m(F)}return d(F)}function m(F){if(o===r.length){if(!s)return v(F);if(s.currentConstruct&&s.currentConstruct.concrete)return C(F);i.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(Sd,y,g)(F)}function y(F){return s&&H(),R(o),v(F)}function g(F){return i.parser.lazy[i.now().line]=o!==r.length,u=i.now().offset,C(F)}function v(F){return i.containerState={},t.attempt(Sd,k,C)(F)}function k(F){return o++,r.push([i.currentConstruct,i.containerState]),v(F)}function C(F){if(F===null){s&&H(),R(0),t.consume(F);return}return s=s||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),I(F)}function I(F){if(F===null){L(t.exit("chunkFlow"),!0),R(0),t.consume(F);return}return _e(F)?(t.consume(F),L(t.exit("chunkFlow")),o=0,i.interrupt=void 0,d):(t.consume(F),I)}function L(F,K){const G=i.sliceStream(F);if(K&&G.push(null),F.previous=c,c&&(c.next=F),c=F,s.defineSkip(F.start),s.write(G),i.parser.lazy[F.start.line]){let M=s.events.length;for(;M--;)if(s.events[M][1].start.offset<u&&(!s.events[M][1].end||s.events[M][1].end.offset>u))return;const ie=i.events.length;let ce=ie,ge,D;for(;ce--;)if(i.events[ce][0]==="exit"&&i.events[ce][1].type==="chunkFlow"){if(ge){D=i.events[ce][1].end;break}ge=!0}for(R(o),M=ie;M<i.events.length;)i.events[M][1].end={...D},M++;rn(i.events,ce+1,0,i.events.slice(ie)),i.events.length=M}}function R(F){let K=r.length;for(;K-- >F;){const G=r[K];i.containerState=G[1],G[0].exit.call(i,t)}r.length=F}function H(){s.write([null]),c=void 0,s=void 0,i.containerState._closeFlow=void 0}}function ox(t,i,r){return Ve(t,t.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ai(t){if(t===null||Xe(t)||qr(t))return 1;if(Yo(t))return 2}function Xo(t,i,r){const o=[];let s=-1;for(;++s<t.length;){const c=t[s].resolveAll;c&&!o.includes(c)&&(i=c(i,r),o.push(c))}return i}const cu={name:"attention",resolveAll:ax,tokenize:sx};function ax(t,i){let r=-1,o,s,c,u,d,h,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(o=r;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&i.sliceSerialize(t[o][1]).charCodeAt(0)===i.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[o][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;h=t[o][1].end.offset-t[o][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[o][1].end},v={...t[r][1].start};Ed(g,-h),Ed(v,h),u={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...t[o][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},c={type:h>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},t[o][1].end={...u.start},t[r][1].start={...d.end},m=[],t[o][1].end.offset-t[o][1].start.offset&&(m=hn(m,[["enter",t[o][1],i],["exit",t[o][1],i]])),m=hn(m,[["enter",s,i],["enter",u,i],["exit",u,i],["enter",c,i]]),m=hn(m,Xo(i.parser.constructs.insideSpan.null,t.slice(o+1,r),i)),m=hn(m,[["exit",c,i],["enter",d,i],["exit",d,i],["exit",s,i]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=hn(m,[["enter",t[r][1],i],["exit",t[r][1],i]])):y=0,rn(t,o-1,r-o+3,m),r=o+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function sx(t,i){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=Ai(o);let c;return u;function u(h){return c=h,t.enter("attentionSequence"),d(h)}function d(h){if(h===c)return t.consume(h),d;const m=t.exit("attentionSequence"),y=Ai(h),g=!y||y===2&&s||r.includes(h),v=!s||s===2&&y||r.includes(o);return m._open=!!(c===42?g:g&&(s||!v)),m._close=!!(c===42?v:v&&(y||!g)),i(h)}}function Ed(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const ux={name:"autolink",tokenize:cx};function cx(t,i,r){let o=0;return s;function s(k){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(k){return Ut(k)?(t.consume(k),u):k===64?r(k):m(k)}function u(k){return k===43||k===45||k===46||Pt(k)?(o=1,d(k)):m(k)}function d(k){return k===58?(t.consume(k),o=0,h):(k===43||k===45||k===46||Pt(k))&&o++<32?(t.consume(k),d):(o=0,m(k))}function h(k){return k===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.exit("autolink"),i):k===null||k===32||k===60||Vo(k)?r(k):(t.consume(k),h)}function m(k){return k===64?(t.consume(k),y):Jy(k)?(t.consume(k),m):r(k)}function y(k){return Pt(k)?g(k):r(k)}function g(k){return k===46?(t.consume(k),o=0,y):k===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.exit("autolink"),i):v(k)}function v(k){if((k===45||Pt(k))&&o++<63){const C=k===45?v:g;return t.consume(k),C}return r(k)}}const Cl={partial:!0,tokenize:fx};function fx(t,i,r){return o;function o(c){return Be(c)?Ve(t,s,"linePrefix")(c):s(c)}function s(c){return c===null||_e(c)?i(c):r(c)}}const Ip={continuation:{tokenize:px},exit:hx,name:"blockQuote",tokenize:dx};function dx(t,i,r){const o=this;return s;function s(u){if(u===62){const d=o.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(u),t.exit("blockQuoteMarker"),c}return r(u)}function c(u){return Be(u)?(t.enter("blockQuotePrefixWhitespace"),t.consume(u),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(u))}}function px(t,i,r){const o=this;return s;function s(u){return Be(u)?Ve(t,c,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):c(u)}function c(u){return t.attempt(Ip,i,r)(u)}}function hx(t){t.exit("blockQuote")}const Mp={name:"characterEscape",tokenize:mx};function mx(t,i,r){return o;function o(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),s}function s(c){return tx(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):r(c)}}const Op={name:"characterReference",tokenize:gx};function gx(t,i,r){const o=this;let s=0,c,u;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),h}function h(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),c=31,u=Pt,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,u=ex,y):(t.enter("characterReferenceValue"),c=7,u=uu,y(g))}function y(g){if(g===59&&s){const v=t.exit("characterReferenceValue");return u===Pt&&!Eu(o.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return u(g)&&s++<c?(t.consume(g),y):r(g)}}const _d={partial:!0,tokenize:xx},Cd={concrete:!0,name:"codeFenced",tokenize:yx};function yx(t,i,r){const o=this,s={partial:!0,tokenize:G};let c=0,u=0,d;return h;function h(M){return m(M)}function m(M){const ie=o.events[o.events.length-1];return c=ie&&ie[1].type==="linePrefix"?ie[2].sliceSerialize(ie[1],!0).length:0,d=M,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===d?(u++,t.consume(M),y):u<3?r(M):(t.exit("codeFencedFenceSequence"),Be(M)?Ve(t,g,"whitespace")(M):g(M))}function g(M){return M===null||_e(M)?(t.exit("codeFencedFence"),o.interrupt?i(M):t.check(_d,I,K)(M)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===null||_e(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(M)):Be(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ve(t,k,"whitespace")(M)):M===96&&M===d?r(M):(t.consume(M),v)}function k(M){return M===null||_e(M)?g(M):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),C(M))}function C(M){return M===null||_e(M)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(M)):M===96&&M===d?r(M):(t.consume(M),C)}function I(M){return t.attempt(s,K,L)(M)}function L(M){return t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),R}function R(M){return c>0&&Be(M)?Ve(t,H,"linePrefix",c+1)(M):H(M)}function H(M){return M===null||_e(M)?t.check(_d,I,K)(M):(t.enter("codeFlowValue"),F(M))}function F(M){return M===null||_e(M)?(t.exit("codeFlowValue"),H(M)):(t.consume(M),F)}function K(M){return t.exit("codeFenced"),i(M)}function G(M,ie,ce){let ge=0;return D;function D(Y){return M.enter("lineEnding"),M.consume(Y),M.exit("lineEnding"),te}function te(Y){return M.enter("codeFencedFence"),Be(Y)?Ve(M,re,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):re(Y)}function re(Y){return Y===d?(M.enter("codeFencedFenceSequence"),ve(Y)):ce(Y)}function ve(Y){return Y===d?(ge++,M.consume(Y),ve):ge>=u?(M.exit("codeFencedFenceSequence"),Be(Y)?Ve(M,le,"whitespace")(Y):le(Y)):ce(Y)}function le(Y){return Y===null||_e(Y)?(M.exit("codeFencedFence"),ie(Y)):ce(Y)}}}function xx(t,i,r){const o=this;return s;function s(u){return u===null?r(u):(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),c)}function c(u){return o.parser.lazy[o.now().line]?r(u):i(u)}}const Hs={name:"codeIndented",tokenize:vx},kx={partial:!0,tokenize:wx};function vx(t,i,r){const o=this;return s;function s(m){return t.enter("codeIndented"),Ve(t,c,"linePrefix",5)(m)}function c(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(m):r(m)}function u(m){return m===null?h(m):_e(m)?t.attempt(kx,u,h)(m):(t.enter("codeFlowValue"),d(m))}function d(m){return m===null||_e(m)?(t.exit("codeFlowValue"),u(m)):(t.consume(m),d)}function h(m){return t.exit("codeIndented"),i(m)}}function wx(t,i,r){const o=this;return s;function s(u){return o.parser.lazy[o.now().line]?r(u):_e(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),s):Ve(t,c,"linePrefix",5)(u)}function c(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(u):_e(u)?s(u):r(u)}}const bx={name:"codeText",previous:Ex,resolve:Sx,tokenize:_x};function Sx(t){let i=t.length-4,r=3,o,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(o=r;++o<i;)if(t[o][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(o=r-1,i++;++o<=i;)s===void 0?o!==i&&t[o][1].type!=="lineEnding"&&(s=o):(o===i||t[o][1].type==="lineEnding")&&(t[s][1].type="codeTextData",o!==s+2&&(t[s][1].end=t[o-1][1].end,t.splice(s+2,o-s-2),i-=o-s-2,o=s+2),s=void 0);return t}function Ex(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _x(t,i,r){let o=0,s,c;return u;function u(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),o++,d):(t.exit("codeTextSequence"),h(g))}function h(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),h):g===96?(c=t.enter("codeTextSequence"),s=0,y(g)):_e(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||_e(g)?(t.exit("codeTextData"),h(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),s++,y):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),i(g)):(c.type="codeTextData",m(g))}}class Cx{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(i,o):i>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(i,r,o){const s=r||0;this.setCursor(Math.trunc(i));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&gl(this.left,o),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),gl(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),gl(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);gl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);gl(this.left,r.reverse())}}}function gl(t,i){let r=0;if(i.length<1e4)t.push(...i);else for(;r<i.length;)t.push(...i.slice(r,r+1e4)),r+=1e4}function Lp(t){const i={};let r=-1,o,s,c,u,d,h,m;const y=new Cx(t);for(;++r<y.length;){for(;r in i;)r=i[r];if(o=y.get(r),r&&o[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,c=0,c<h.length&&h[c][1].type==="lineEndingBlank"&&(c+=2),c<h.length&&h[c][1].type==="content"))for(;++c<h.length&&h[c][1].type!=="content";)h[c][1].type==="chunkText"&&(h[c][1]._isInFirstContentOfListItem=!0,c++);if(o[0]==="enter")o[1].contentType&&(Object.assign(i,Nx(y,r)),r=i[r],m=!0);else if(o[1]._container){for(c=r,s=void 0;c--;)if(u=y.get(c),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=c);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},d=y.slice(s,r),d.unshift(o),y.splice(s,r-s+1,d))}}return rn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Nx(t,i){const r=t.get(i)[1],o=t.get(i)[2];let s=i-1;const c=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,h=[],m={};let y,g,v=-1,k=r,C=0,I=0;const L=[I];for(;k;){for(;t.get(++s)[1]!==k;);c.push(s),k._tokenizer||(y=o.sliceStream(k),k.next||y.push(null),g&&u.defineSkip(k.start),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=k,k=k.next}for(k=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(I=v+1,L.push(I),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(u.events=[],k?(k._tokenizer=void 0,k.previous=void 0):L.pop(),v=L.length;v--;){const R=d.slice(L[v],L[v+1]),H=c.pop();h.push([H,H+R.length-1]),t.splice(H,2,R)}for(h.reverse(),v=-1;++v<h.length;)m[C+h[v][0]]=C+h[v][1],C+=h[v][1]-h[v][0]-1;return m}const Tx={resolve:Rx,tokenize:Ix},Ax={partial:!0,tokenize:Mx};function Rx(t){return Lp(t),t}function Ix(t,i){let r;return o;function o(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?c(d):_e(d)?t.check(Ax,u,c)(d):(t.consume(d),s)}function c(d){return t.exit("chunkContent"),t.exit("content"),i(d)}function u(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function Mx(t,i,r){const o=this;return s;function s(u){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),Ve(t,c,"linePrefix")}function c(u){if(u===null||_e(u))return r(u);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(u):t.interrupt(o.parser.constructs.flow,r,i)(u)}}function Pp(t,i,r,o,s,c,u,d,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(R){return R===60?(t.enter(o),t.enter(s),t.enter(c),t.consume(R),t.exit(c),v):R===null||R===32||R===41||Vo(R)?r(R):(t.enter(o),t.enter(u),t.enter(d),t.enter("chunkString",{contentType:"string"}),I(R))}function v(R){return R===62?(t.enter(c),t.consume(R),t.exit(c),t.exit(s),t.exit(o),i):(t.enter(d),t.enter("chunkString",{contentType:"string"}),k(R))}function k(R){return R===62?(t.exit("chunkString"),t.exit(d),v(R)):R===null||R===60||_e(R)?r(R):(t.consume(R),R===92?C:k)}function C(R){return R===60||R===62||R===92?(t.consume(R),k):k(R)}function I(R){return!y&&(R===null||R===41||Xe(R))?(t.exit("chunkString"),t.exit(d),t.exit(u),t.exit(o),i(R)):y<m&&R===40?(t.consume(R),y++,I):R===41?(t.consume(R),y--,I):R===null||R===32||R===40||Vo(R)?r(R):(t.consume(R),R===92?L:I)}function L(R){return R===40||R===41||R===92?(t.consume(R),I):I(R)}}function Dp(t,i,r,o,s,c){const u=this;let d=0,h;return m;function m(k){return t.enter(o),t.enter(s),t.consume(k),t.exit(s),t.enter(c),y}function y(k){return d>999||k===null||k===91||k===93&&!h||k===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(k):k===93?(t.exit(c),t.enter(s),t.consume(k),t.exit(s),t.exit(o),i):_e(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||k===91||k===93||_e(k)||d++>999?(t.exit("chunkString"),y(k)):(t.consume(k),h||(h=!Be(k)),k===92?v:g)}function v(k){return k===91||k===92||k===93?(t.consume(k),d++,g):g(k)}}function zp(t,i,r,o,s,c){let u;return d;function d(v){return v===34||v===39||v===40?(t.enter(o),t.enter(s),t.consume(v),t.exit(s),u=v===40?41:v,h):r(v)}function h(v){return v===u?(t.enter(s),t.consume(v),t.exit(s),t.exit(o),i):(t.enter(c),m(v))}function m(v){return v===u?(t.exit(c),h(u)):v===null?r(v):_e(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ve(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===u||v===null||_e(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?g:y)}function g(v){return v===u||v===92?(t.consume(v),y):y(v)}}function vl(t,i){let r;return o;function o(s){return _e(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,o):Be(s)?Ve(t,o,r?"linePrefix":"lineSuffix")(s):i(s)}}const Ox={name:"definition",tokenize:Px},Lx={partial:!0,tokenize:Dx};function Px(t,i,r){const o=this;let s;return c;function c(k){return t.enter("definition"),u(k)}function u(k){return Dp.call(o,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function d(k){return s=Cn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),h):r(k)}function h(k){return Xe(k)?vl(t,m)(k):m(k)}function m(k){return Pp(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function y(k){return t.attempt(Lx,g,g)(k)}function g(k){return Be(k)?Ve(t,v,"whitespace")(k):v(k)}function v(k){return k===null||_e(k)?(t.exit("definition"),o.parser.defined.push(s),i(k)):r(k)}}function Dx(t,i,r){return o;function o(d){return Xe(d)?vl(t,s)(d):r(d)}function s(d){return zp(t,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Be(d)?Ve(t,u,"whitespace")(d):u(d)}function u(d){return d===null||_e(d)?i(d):r(d)}}const zx={name:"hardBreakEscape",tokenize:jx};function jx(t,i,r){return o;function o(c){return t.enter("hardBreakEscape"),t.consume(c),s}function s(c){return _e(c)?(t.exit("hardBreakEscape"),i(c)):r(c)}}const Fx={name:"headingAtx",resolve:Bx,tokenize:Ux};function Bx(t,i){let r=t.length-2,o=3,s,c;return t[o][1].type==="whitespace"&&(o+=2),r-2>o&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&t[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:t[o][1].start,end:t[r][1].end},c={type:"chunkText",start:t[o][1].start,end:t[r][1].end,contentType:"text"},rn(t,o,r-o+1,[["enter",s,i],["enter",c,i],["exit",c,i],["exit",s,i]])),t}function Ux(t,i,r){let o=0;return s;function s(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&o++<6?(t.consume(y),u):y===null||Xe(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||_e(y)?(t.exit("atxHeading"),i(y)):Be(y)?Ve(t,d,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Xe(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),m)}}const $x=["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"],Nd=["pre","script","style","textarea"],Hx={concrete:!0,name:"htmlFlow",resolveTo:Gx,tokenize:qx},Vx={partial:!0,tokenize:Qx},Wx={partial:!0,tokenize:Kx};function Gx(t){let i=t.length;for(;i--&&!(t[i][0]==="enter"&&t[i][1].type==="htmlFlow"););return i>1&&t[i-2][1].type==="linePrefix"&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2)),t}function qx(t,i,r){const o=this;let s,c,u,d,h;return m;function m(b){return y(b)}function y(b){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(b),g}function g(b){return b===33?(t.consume(b),v):b===47?(t.consume(b),c=!0,I):b===63?(t.consume(b),s=3,o.interrupt?i:w):Ut(b)?(t.consume(b),u=String.fromCharCode(b),L):r(b)}function v(b){return b===45?(t.consume(b),s=2,k):b===91?(t.consume(b),s=5,d=0,C):Ut(b)?(t.consume(b),s=4,o.interrupt?i:w):r(b)}function k(b){return b===45?(t.consume(b),o.interrupt?i:w):r(b)}function C(b){const Ce="CDATA[";return b===Ce.charCodeAt(d++)?(t.consume(b),d===Ce.length?o.interrupt?i:re:C):r(b)}function I(b){return Ut(b)?(t.consume(b),u=String.fromCharCode(b),L):r(b)}function L(b){if(b===null||b===47||b===62||Xe(b)){const Ce=b===47,Oe=u.toLowerCase();return!Ce&&!c&&Nd.includes(Oe)?(s=1,o.interrupt?i(b):re(b)):$x.includes(u.toLowerCase())?(s=6,Ce?(t.consume(b),R):o.interrupt?i(b):re(b)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(b):c?H(b):F(b))}return b===45||Pt(b)?(t.consume(b),u+=String.fromCharCode(b),L):r(b)}function R(b){return b===62?(t.consume(b),o.interrupt?i:re):r(b)}function H(b){return Be(b)?(t.consume(b),H):D(b)}function F(b){return b===47?(t.consume(b),D):b===58||b===95||Ut(b)?(t.consume(b),K):Be(b)?(t.consume(b),F):D(b)}function K(b){return b===45||b===46||b===58||b===95||Pt(b)?(t.consume(b),K):G(b)}function G(b){return b===61?(t.consume(b),M):Be(b)?(t.consume(b),G):F(b)}function M(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(t.consume(b),h=b,ie):Be(b)?(t.consume(b),M):ce(b)}function ie(b){return b===h?(t.consume(b),h=null,ge):b===null||_e(b)?r(b):(t.consume(b),ie)}function ce(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Xe(b)?G(b):(t.consume(b),ce)}function ge(b){return b===47||b===62||Be(b)?F(b):r(b)}function D(b){return b===62?(t.consume(b),te):r(b)}function te(b){return b===null||_e(b)?re(b):Be(b)?(t.consume(b),te):r(b)}function re(b){return b===45&&s===2?(t.consume(b),ke):b===60&&s===1?(t.consume(b),Te):b===62&&s===4?(t.consume(b),T):b===63&&s===3?(t.consume(b),w):b===93&&s===5?(t.consume(b),oe):_e(b)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Vx,B,ve)(b)):b===null||_e(b)?(t.exit("htmlFlowData"),ve(b)):(t.consume(b),re)}function ve(b){return t.check(Wx,le,B)(b)}function le(b){return t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),Y}function Y(b){return b===null||_e(b)?ve(b):(t.enter("htmlFlowData"),re(b))}function ke(b){return b===45?(t.consume(b),w):re(b)}function Te(b){return b===47?(t.consume(b),u="",$):re(b)}function $(b){if(b===62){const Ce=u.toLowerCase();return Nd.includes(Ce)?(t.consume(b),T):re(b)}return Ut(b)&&u.length<8?(t.consume(b),u+=String.fromCharCode(b),$):re(b)}function oe(b){return b===93?(t.consume(b),w):re(b)}function w(b){return b===62?(t.consume(b),T):b===45&&s===2?(t.consume(b),w):re(b)}function T(b){return b===null||_e(b)?(t.exit("htmlFlowData"),B(b)):(t.consume(b),T)}function B(b){return t.exit("htmlFlow"),i(b)}}function Kx(t,i,r){const o=this;return s;function s(u){return _e(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),c):r(u)}function c(u){return o.parser.lazy[o.now().line]?r(u):i(u)}}function Qx(t,i,r){return o;function o(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Cl,i,r)}}const Yx={name:"htmlText",tokenize:Xx};function Xx(t,i,r){const o=this;let s,c,u;return d;function d(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),h}function h(w){return w===33?(t.consume(w),m):w===47?(t.consume(w),G):w===63?(t.consume(w),F):Ut(w)?(t.consume(w),ce):r(w)}function m(w){return w===45?(t.consume(w),y):w===91?(t.consume(w),c=0,C):Ut(w)?(t.consume(w),H):r(w)}function y(w){return w===45?(t.consume(w),k):r(w)}function g(w){return w===null?r(w):w===45?(t.consume(w),v):_e(w)?(u=g,Te(w)):(t.consume(w),g)}function v(w){return w===45?(t.consume(w),k):g(w)}function k(w){return w===62?ke(w):w===45?v(w):g(w)}function C(w){const T="CDATA[";return w===T.charCodeAt(c++)?(t.consume(w),c===T.length?I:C):r(w)}function I(w){return w===null?r(w):w===93?(t.consume(w),L):_e(w)?(u=I,Te(w)):(t.consume(w),I)}function L(w){return w===93?(t.consume(w),R):I(w)}function R(w){return w===62?ke(w):w===93?(t.consume(w),R):I(w)}function H(w){return w===null||w===62?ke(w):_e(w)?(u=H,Te(w)):(t.consume(w),H)}function F(w){return w===null?r(w):w===63?(t.consume(w),K):_e(w)?(u=F,Te(w)):(t.consume(w),F)}function K(w){return w===62?ke(w):F(w)}function G(w){return Ut(w)?(t.consume(w),M):r(w)}function M(w){return w===45||Pt(w)?(t.consume(w),M):ie(w)}function ie(w){return _e(w)?(u=ie,Te(w)):Be(w)?(t.consume(w),ie):ke(w)}function ce(w){return w===45||Pt(w)?(t.consume(w),ce):w===47||w===62||Xe(w)?ge(w):r(w)}function ge(w){return w===47?(t.consume(w),ke):w===58||w===95||Ut(w)?(t.consume(w),D):_e(w)?(u=ge,Te(w)):Be(w)?(t.consume(w),ge):ke(w)}function D(w){return w===45||w===46||w===58||w===95||Pt(w)?(t.consume(w),D):te(w)}function te(w){return w===61?(t.consume(w),re):_e(w)?(u=te,Te(w)):Be(w)?(t.consume(w),te):ge(w)}function re(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),s=w,ve):_e(w)?(u=re,Te(w)):Be(w)?(t.consume(w),re):(t.consume(w),le)}function ve(w){return w===s?(t.consume(w),s=void 0,Y):w===null?r(w):_e(w)?(u=ve,Te(w)):(t.consume(w),ve)}function le(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||Xe(w)?ge(w):(t.consume(w),le)}function Y(w){return w===47||w===62||Xe(w)?ge(w):r(w)}function ke(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),i):r(w)}function Te(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),$}function $(w){return Be(w)?Ve(t,oe,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):oe(w)}function oe(w){return t.enter("htmlTextData"),u(w)}}const _u={name:"labelEnd",resolveAll:t1,resolveTo:n1,tokenize:r1},Zx={tokenize:i1},Jx={tokenize:l1},e1={tokenize:o1};function t1(t){let i=-1;const r=[];for(;++i<t.length;){const o=t[i][1];if(r.push(t[i]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",i+=s}}return t.length!==r.length&&rn(t,0,t.length,r),t}function n1(t,i){let r=t.length,o=0,s,c,u,d;for(;r--;)if(s=t[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(u=r);const h={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[c][1].start},end:{...t[u][1].end}},y={type:"labelText",start:{...t[c+o+2][1].end},end:{...t[u-2][1].start}};return d=[["enter",h,i],["enter",m,i]],d=hn(d,t.slice(c+1,c+o+3)),d=hn(d,[["enter",y,i]]),d=hn(d,Xo(i.parser.constructs.insideSpan.null,t.slice(c+o+4,u-3),i)),d=hn(d,[["exit",y,i],t[u-2],t[u-1],["exit",m,i]]),d=hn(d,t.slice(u+1)),d=hn(d,[["exit",h,i]]),rn(t,c,t.length,d),t}function r1(t,i,r){const o=this;let s=o.events.length,c,u;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){c=o.events[s][1];break}return d;function d(v){return c?c._inactive?g(v):(u=o.parser.defined.includes(Cn(o.sliceSerialize({start:c.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),h):r(v)}function h(v){return v===40?t.attempt(Zx,y,u?y:g)(v):v===91?t.attempt(Jx,y,u?m:g)(v):u?y(v):g(v)}function m(v){return t.attempt(e1,y,g)(v)}function y(v){return i(v)}function g(v){return c._balanced=!0,r(v)}}function i1(t,i,r){return o;function o(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),s}function s(g){return Xe(g)?vl(t,c)(g):c(g)}function c(g){return g===41?y(g):Pp(t,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Xe(g)?vl(t,h)(g):y(g)}function d(g){return r(g)}function h(g){return g===34||g===39||g===40?zp(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Xe(g)?vl(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),i):r(g)}}function l1(t,i,r){const o=this;return s;function s(d){return Dp.call(o,t,c,u,"reference","referenceMarker","referenceString")(d)}function c(d){return o.parser.defined.includes(Cn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?i(d):r(d)}function u(d){return r(d)}}function o1(t,i,r){return o;function o(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),s}function s(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),i):r(c)}}const a1={name:"labelStartImage",resolveAll:_u.resolveAll,tokenize:s1};function s1(t,i,r){const o=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),c}function c(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):i(d)}}const u1={name:"labelStartLink",resolveAll:_u.resolveAll,tokenize:c1};function c1(t,i,r){const o=this;return s;function s(u){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelLink"),c}function c(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):i(u)}}const Vs={name:"lineEnding",tokenize:f1};function f1(t,i){return r;function r(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Ve(t,i,"linePrefix")}}const Ho={name:"thematicBreak",tokenize:d1};function d1(t,i,r){let o=0,s;return c;function c(m){return t.enter("thematicBreak"),u(m)}function u(m){return s=m,d(m)}function d(m){return m===s?(t.enter("thematicBreakSequence"),h(m)):o>=3&&(m===null||_e(m))?(t.exit("thematicBreak"),i(m)):r(m)}function h(m){return m===s?(t.consume(m),o++,h):(t.exit("thematicBreakSequence"),Be(m)?Ve(t,d,"whitespace")(m):d(m))}}const Yt={continuation:{tokenize:g1},exit:x1,name:"list",tokenize:m1},p1={partial:!0,tokenize:k1},h1={partial:!0,tokenize:y1};function m1(t,i,r){const o=this,s=o.events[o.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return d;function d(k){const C=o.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!o.containerState.marker||k===o.containerState.marker:uu(k)){if(o.containerState.type||(o.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),k===42||k===45?t.check(Ho,r,m)(k):m(k);if(!o.interrupt||k===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(k)}return r(k)}function h(k){return uu(k)&&++u<10?(t.consume(k),h):(!o.interrupt||u<2)&&(o.containerState.marker?k===o.containerState.marker:k===41||k===46)?(t.exit("listItemValue"),m(k)):r(k)}function m(k){return t.enter("listItemMarker"),t.consume(k),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||k,t.check(Cl,o.interrupt?r:y,t.attempt(p1,v,g))}function y(k){return o.containerState.initialBlankLine=!0,c++,v(k)}function g(k){return Be(k)?(t.enter("listItemPrefixWhitespace"),t.consume(k),t.exit("listItemPrefixWhitespace"),v):r(k)}function v(k){return o.containerState.size=c+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(k)}}function g1(t,i,r){const o=this;return o.containerState._closeFlow=void 0,t.check(Cl,s,c);function s(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ve(t,i,"listItemIndent",o.containerState.size+1)(d)}function c(d){return o.containerState.furtherBlankLines||!Be(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(h1,i,u)(d))}function u(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ve(t,t.attempt(Yt,i,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function y1(t,i,r){const o=this;return Ve(t,s,"listItemIndent",o.containerState.size+1);function s(c){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?i(c):r(c)}}function x1(t){t.exit(this.containerState.type)}function k1(t,i,r){const o=this;return Ve(t,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const u=o.events[o.events.length-1];return!Be(c)&&u&&u[1].type==="listItemPrefixWhitespace"?i(c):r(c)}}const Td={name:"setextUnderline",resolveTo:v1,tokenize:w1};function v1(t,i){let r=t.length,o,s,c;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){o=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!c&&t[r][1].type==="definition"&&(c=r);const u={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",c?(t.splice(s,0,["enter",u,i]),t.splice(c+1,0,["exit",t[o][1],i]),t[o][1].end={...t[c][1].end}):t[o][1]=u,t.push(["exit",u,i]),t}function w1(t,i,r){const o=this;let s;return c;function c(m){let y=o.events.length,g;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){g=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(t.enter("setextHeadingLine"),s=m,u(m)):r(m)}function u(m){return t.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(t.consume(m),d):(t.exit("setextHeadingLineSequence"),Be(m)?Ve(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||_e(m)?(t.exit("setextHeadingLine"),i(m)):r(m)}}const b1={tokenize:S1};function S1(t){const i=this,r=t.attempt(Cl,o,t.attempt(this.parser.constructs.flowInitial,s,Ve(t,t.attempt(this.parser.constructs.flow,s,t.attempt(Tx,s)),"linePrefix")));return r;function o(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function s(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),i.currentConstruct=void 0,r}}const E1={resolveAll:Fp()},_1=jp("string"),C1=jp("text");function jp(t){return{resolveAll:Fp(t==="text"?N1:void 0),tokenize:i};function i(r){const o=this,s=this.parser.constructs[t],c=r.attempt(s,u,d);return u;function u(y){return m(y)?c(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),h}function h(y){return m(y)?(r.exit("data"),c(y)):(r.consume(y),h)}function m(y){if(y===null)return!0;const g=s[y];let v=-1;if(g)for(;++v<g.length;){const k=g[v];if(!k.previous||k.previous.call(o,o.previous))return!0}return!1}}}function Fp(t){return i;function i(r,o){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return t?t(r,o):r}}function N1(t,i){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const o=t[r-1][1],s=i.sliceStream(o);let c=s.length,u=-1,d=0,h;for(;c--;){const m=s[c];if(typeof m=="string"){for(u=m.length;m.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(m===-2)h=!0,d++;else if(m!==-1){c++;break}}if(i._contentTypeTextTrailing&&r===t.length&&(d=0),d){const m={type:r===t.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?u:o.start._bufferIndex+u,_index:o.start._index+c,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(t.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return t}const T1={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:Ip},A1={91:Ox},R1={[-2]:Hs,[-1]:Hs,32:Hs},I1={35:Fx,42:Ho,45:[Td,Ho],60:Hx,61:Td,95:Ho,96:Cd,126:Cd},M1={38:Op,92:Mp},O1={[-5]:Vs,[-4]:Vs,[-3]:Vs,33:a1,38:Op,42:cu,60:[ux,Yx],91:u1,92:[zx,Mp],93:_u,95:cu,96:bx},L1={null:[cu,E1]},P1={null:[42,95]},D1={null:[]},z1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:P1,contentInitial:A1,disable:D1,document:T1,flow:I1,flowInitial:R1,insideSpan:L1,string:M1,text:O1},Symbol.toStringTag,{value:"Module"}));function j1(t,i,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},c=[];let u=[],d=[];const h={attempt:ie(G),check:ie(M),consume:H,enter:F,exit:K,interrupt:ie(M,{interrupt:!0})},m={code:null,containerState:{},defineSkip:I,events:[],now:C,parser:t,previous:null,sliceSerialize:v,sliceStream:k,write:g};let y=i.tokenize.call(m,h);return i.resolveAll&&c.push(i),m;function g(te){return u=hn(u,te),L(),u[u.length-1]!==null?[]:(ce(i,0),m.events=Xo(c,m.events,m),m.events)}function v(te,re){return B1(k(te),re)}function k(te){return F1(u,te)}function C(){const{_bufferIndex:te,_index:re,line:ve,column:le,offset:Y}=o;return{_bufferIndex:te,_index:re,line:ve,column:le,offset:Y}}function I(te){s[te.line]=te.column,D()}function L(){let te;for(;o._index<u.length;){const re=u[o._index];if(typeof re=="string")for(te=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===te&&o._bufferIndex<re.length;)R(re.charCodeAt(o._bufferIndex));else R(re)}}function R(te){y=y(te)}function H(te){_e(te)?(o.line++,o.column=1,o.offset+=te===-3?2:1,D()):te!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=te}function F(te,re){const ve=re||{};return ve.type=te,ve.start=C(),m.events.push(["enter",ve,m]),d.push(ve),ve}function K(te){const re=d.pop();return re.end=C(),m.events.push(["exit",re,m]),re}function G(te,re){ce(te,re.from)}function M(te,re){re.restore()}function ie(te,re){return ve;function ve(le,Y,ke){let Te,$,oe,w;return Array.isArray(le)?B(le):"tokenize"in le?B([le]):T(le);function T(we){return He;function He(Pe){const qe=Pe!==null&&we[Pe],tt=Pe!==null&&we.null,mn=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(tt)?tt:tt?[tt]:[]];return B(mn)(Pe)}}function B(we){return Te=we,$=0,we.length===0?ke:b(we[$])}function b(we){return He;function He(Pe){return w=ge(),oe=we,we.partial||(m.currentConstruct=we),we.name&&m.parser.constructs.disable.null.includes(we.name)?Oe():we.tokenize.call(re?Object.assign(Object.create(m),re):m,h,Ce,Oe)(Pe)}}function Ce(we){return te(oe,w),Y}function Oe(we){return w.restore(),++$<Te.length?b(Te[$]):ke}}}function ce(te,re){te.resolveAll&&!c.includes(te)&&c.push(te),te.resolve&&rn(m.events,re,m.events.length-re,te.resolve(m.events.slice(re),m)),te.resolveTo&&(m.events=te.resolveTo(m.events,m))}function ge(){const te=C(),re=m.previous,ve=m.currentConstruct,le=m.events.length,Y=Array.from(d);return{from:le,restore:ke};function ke(){o=te,m.previous=re,m.currentConstruct=ve,m.events.length=le,d=Y,D()}}function D(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function F1(t,i){const r=i.start._index,o=i.start._bufferIndex,s=i.end._index,c=i.end._bufferIndex;let u;if(r===s)u=[t[r].slice(o,c)];else{if(u=t.slice(r,s),o>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(o):u.shift()}c>0&&u.push(t[s].slice(0,c))}return u}function B1(t,i){let r=-1;const o=[];let s;for(;++r<t.length;){const c=t[r];let u;if(typeof c=="string")u=c;else switch(c){case-5:{u="\r";break}case-4:{u=`
|
|
222
|
+
`;break}case-3:{u=`\r
|
|
223
|
+
`;break}case-2:{u=i?" ":" ";break}case-1:{if(!i&&s)continue;u=" ";break}default:u=String.fromCharCode(c)}s=c===-2,o.push(u)}return o.join("")}function U1(t){const o={constructs:Ap([z1,...(t||{}).extensions||[]]),content:s(nx),defined:[],document:s(ix),flow:s(b1),lazy:{},string:s(_1),text:s(C1)};return o;function s(c){return u;function u(d){return j1(o,c,d)}}}function $1(t){for(;!Lp(t););return t}const Ad=/[\0\t\n\r]/g;function H1(){let t=1,i="",r=!0,o;return s;function s(c,u,d){const h=[];let m,y,g,v,k;for(c=i+(typeof c=="string"?c.toString():new TextDecoder(u||void 0).decode(c)),g=0,i="",r&&(c.charCodeAt(0)===65279&&g++,r=void 0);g<c.length;){if(Ad.lastIndex=g,m=Ad.exec(c),v=m&&m.index!==void 0?m.index:c.length,k=c.charCodeAt(v),!m){i=c.slice(g);break}if(k===10&&g===v&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),g<v&&(h.push(c.slice(g,v)),t+=v-g),k){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:o=!0,t=1}g=v+1}return d&&(o&&h.push(-5),i&&h.push(i),h.push(null)),h}}const V1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function W1(t){return t.replace(V1,G1)}function G1(t,i,r){if(i)return i;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return Rp(r.slice(c?2:1),c?16:10)}return Eu(r)||t}const Bp={}.hasOwnProperty;function q1(t,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),K1(r)($1(U1(r).document().write(H1()(t,i,!0))))}function K1(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Zn),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:c(Sr),blockQuote:c(tt),characterEscape:ge,characterReference:ge,codeFenced:c(mn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(mn,u),codeText:c(Qr,u),codeTextData:ge,data:ge,codeFlowValue:ge,definition:c(Yn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(br),hardBreakEscape:c(Er),hardBreakTrailing:c(Er),htmlFlow:c(Xn,u),htmlFlowData:ge,htmlText:c(Xn,u),htmlTextData:ge,image:c(Yr),label:u,link:c(Zn),listItem:c(Nn),listItemValue:v,listOrdered:c(gn,g),listUnordered:c(gn),paragraph:c(_r),reference:b,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(Sr),strong:c(Cr),thematicBreak:c(Nr)},exit:{atxHeading:h(),atxHeadingSequence:G,autolink:h(),autolinkEmail:qe,autolinkProtocol:Pe,blockQuote:h(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:we,characterReference:He,codeFenced:h(L),codeFencedFence:I,codeFencedFenceInfo:k,codeFencedFenceMeta:C,codeFlowValue:D,codeIndented:h(R),codeText:h(Y),codeTextData:D,data:D,definition:h(),definitionDestinationString:K,definitionLabelString:H,definitionTitleString:F,emphasis:h(),hardBreakEscape:h(re),hardBreakTrailing:h(re),htmlFlow:h(ve),htmlFlowData:D,htmlText:h(le),htmlTextData:D,image:h(Te),label:oe,labelText:$,lineEnding:te,link:h(ke),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Ce,resourceDestinationString:w,resourceTitleString:T,resource:B,setextHeading:h(ce),setextHeadingLineSequence:ie,setextHeadingText:M,strong:h(),thematicBreak:h()}};Up(i,(t||{}).mdastExtensions||[]);const r={};return o;function o(j){let J={type:"root",children:[]};const Ne={stack:[J],tokenStack:[],config:i,enter:d,exit:m,buffer:u,resume:y,data:r},De=[];let Ue=-1;for(;++Ue<j.length;)if(j[Ue][1].type==="listOrdered"||j[Ue][1].type==="listUnordered")if(j[Ue][0]==="enter")De.push(Ue);else{const vt=De.pop();Ue=s(j,vt,Ue)}for(Ue=-1;++Ue<j.length;){const vt=i[j[Ue][0]];Bp.call(vt,j[Ue][1].type)&&vt[j[Ue][1].type].call(Object.assign({sliceSerialize:j[Ue][2].sliceSerialize},Ne),j[Ue][1])}if(Ne.tokenStack.length>0){const vt=Ne.tokenStack[Ne.tokenStack.length-1];(vt[1]||Rd).call(Ne,void 0,vt[0])}for(J.position={start:vr(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:vr(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<i.transforms.length;)J=i.transforms[Ue](J)||J;return J}function s(j,J,Ne){let De=J-1,Ue=-1,vt=!1,yn,Ht,xn,zn;for(;++De<=Ne;){const wt=j[De];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?Ue++:Ue--,zn=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(yn&&!zn&&!Ue&&!xn&&(xn=De),zn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:zn=void 0}if(!Ue&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||Ue===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(yn){let on=De;for(Ht=void 0;on--;){const Tt=j[on];if(Tt[1].type==="lineEnding"||Tt[1].type==="lineEndingBlank"){if(Tt[0]==="exit")continue;Ht&&(j[Ht][1].type="lineEndingBlank",vt=!0),Tt[1].type="lineEnding",Ht=on}else if(!(Tt[1].type==="linePrefix"||Tt[1].type==="blockQuotePrefix"||Tt[1].type==="blockQuotePrefixWhitespace"||Tt[1].type==="blockQuoteMarker"||Tt[1].type==="listItemIndent"))break}xn&&(!Ht||xn<Ht)&&(yn._spread=!0),yn.end=Object.assign({},Ht?j[Ht][1].start:wt[1].end),j.splice(Ht||De,0,["exit",yn,wt[2]]),De++,Ne++}if(wt[1].type==="listItemPrefix"){const on={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};yn=on,j.splice(De,0,["enter",on,wt[2]]),De++,Ne++,xn=void 0,zn=!0}}}return j[J][1]._spread=vt,Ne}function c(j,J){return Ne;function Ne(De){d.call(this,j(De),De),J&&J.call(this,De)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(j,J,Ne){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([J,Ne||void 0]),j.position={start:vr(J.start),end:void 0}}function h(j){return J;function J(Ne){j&&j.call(this,Ne),m.call(this,Ne)}}function m(j,J){const Ne=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==j.type&&(J?J.call(this,j,De[0]):(De[1]||Rd).call(this,j,De[0]));else throw new Error("Cannot close `"+j.type+"` ("+kl({start:j.start,end:j.end})+"): it’s not open");Ne.position.end=vr(j.end)}function y(){return Su(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(j){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function k(){const j=this.resume(),J=this.stack[this.stack.length-1];J.lang=j}function C(){const j=this.resume(),J=this.stack[this.stack.length-1];J.meta=j}function I(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const j=this.resume(),J=this.stack[this.stack.length-1];J.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const j=this.resume(),J=this.stack[this.stack.length-1];J.value=j.replace(/(\r?\n|\r)$/g,"")}function H(j){const J=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=J,Ne.identifier=Cn(this.sliceSerialize(j)).toLowerCase()}function F(){const j=this.resume(),J=this.stack[this.stack.length-1];J.title=j}function K(){const j=this.resume(),J=this.stack[this.stack.length-1];J.url=j}function G(j){const J=this.stack[this.stack.length-1];if(!J.depth){const Ne=this.sliceSerialize(j).length;J.depth=Ne}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function ie(j){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function ce(){this.data.setextHeadingSlurpLineEnding=void 0}function ge(j){const Ne=this.stack[this.stack.length-1].children;let De=Ne[Ne.length-1];(!De||De.type!=="text")&&(De=ln(),De.position={start:vr(j.start),end:void 0},Ne.push(De)),this.stack.push(De)}function D(j){const J=this.stack.pop();J.value+=this.sliceSerialize(j),J.position.end=vr(j.end)}function te(j){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=J.children[J.children.length-1];Ne.position.end=vr(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(J.type)&&(ge.call(this,j),D.call(this,j))}function re(){this.data.atHardBreak=!0}function ve(){const j=this.resume(),J=this.stack[this.stack.length-1];J.value=j}function le(){const j=this.resume(),J=this.stack[this.stack.length-1];J.value=j}function Y(){const j=this.resume(),J=this.stack[this.stack.length-1];J.value=j}function ke(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=J,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function Te(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=J,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function $(j){const J=this.sliceSerialize(j),Ne=this.stack[this.stack.length-2];Ne.label=W1(J),Ne.identifier=Cn(J).toLowerCase()}function oe(){const j=this.stack[this.stack.length-1],J=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const De=j.children;Ne.children=De}else Ne.alt=J}function w(){const j=this.resume(),J=this.stack[this.stack.length-1];J.url=j}function T(){const j=this.resume(),J=this.stack[this.stack.length-1];J.title=j}function B(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function Ce(j){const J=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=J,Ne.identifier=Cn(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function Oe(j){this.data.characterReferenceType=j.type}function we(j){const J=this.sliceSerialize(j),Ne=this.data.characterReferenceType;let De;Ne?(De=Rp(J,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=Eu(J);const Ue=this.stack[this.stack.length-1];Ue.value+=De}function He(j){const J=this.stack.pop();J.position.end=vr(j.end)}function Pe(j){D.call(this,j);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(j)}function qe(j){D.call(this,j);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(j)}function tt(){return{type:"blockquote",children:[]}}function mn(){return{type:"code",lang:null,meta:null,value:""}}function Qr(){return{type:"inlineCode",value:""}}function Yn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function br(){return{type:"emphasis",children:[]}}function Sr(){return{type:"heading",depth:0,children:[]}}function Er(){return{type:"break"}}function Xn(){return{type:"html",value:""}}function Yr(){return{type:"image",title:null,url:"",alt:null}}function Zn(){return{type:"link",title:null,url:"",children:[]}}function gn(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Nn(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function _r(){return{type:"paragraph",children:[]}}function Cr(){return{type:"strong",children:[]}}function ln(){return{type:"text",value:""}}function Nr(){return{type:"thematicBreak"}}}function vr(t){return{line:t.line,column:t.column,offset:t.offset}}function Up(t,i){let r=-1;for(;++r<i.length;){const o=i[r];Array.isArray(o)?Up(t,o):Q1(t,o)}}function Q1(t,i){let r;for(r in i)if(Bp.call(i,r))switch(r){case"canContainEols":{const o=i[r];o&&t[r].push(...o);break}case"transforms":{const o=i[r];o&&t[r].push(...o);break}case"enter":case"exit":{const o=i[r];o&&Object.assign(t[r],o);break}}}function Rd(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+kl({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+kl({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+kl({start:i.start,end:i.end})+") is still open")}function Y1(t){const i=this;i.parser=r;function r(o){return q1(o,{...i.data("settings"),...t,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function X1(t,i){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,r),t.applyData(i,r)}function Z1(t,i){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,r),[t.applyData(i,r),{type:"text",value:`
|
|
224
|
+
`}]}function J1(t,i){const r=i.value?i.value+`
|
|
225
|
+
`:"",o={},s=i.lang?i.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return i.meta&&(c.data={meta:i.meta}),t.patch(i,c),c=t.applyData(i,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(i,c),c}function e0(t,i){const r={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function t0(t,i){const r={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function n0(t,i){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(i.identifier).toUpperCase(),s=Ii(o.toLowerCase()),c=t.footnoteOrder.indexOf(o);let u,d=t.footnoteCounts.get(o);d===void 0?(d=0,t.footnoteOrder.push(o),u=t.footnoteOrder.length):u=c+1,d+=1,t.footnoteCounts.set(o,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};t.patch(i,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(i,m),t.applyData(i,m)}function r0(t,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function i0(t,i){if(t.options.allowDangerousHtml){const r={type:"raw",value:i.value};return t.patch(i,r),t.applyData(i,r)}}function $p(t,i){const r=i.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+o}];const s=t.all(i),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=o:s.push({type:"text",value:o}),s}function l0(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return $p(t,i);const s={src:Ii(o.url||""),alt:i.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const c={type:"element",tagName:"img",properties:s,children:[]};return t.patch(i,c),t.applyData(i,c)}function o0(t,i){const r={src:Ii(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(i,o),t.applyData(i,o)}function a0(t,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(i,o),t.applyData(i,o)}function s0(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return $p(t,i);const s={href:Ii(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const c={type:"element",tagName:"a",properties:s,children:t.all(i)};return t.patch(i,c),t.applyData(i,c)}function u0(t,i){const r={href:Ii(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function c0(t,i,r){const o=t.all(i),s=r?f0(r):Hp(i),c={},u=[];if(typeof i.checked=="boolean"){const y=o[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const y=o[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
|
226
|
+
`}),y.type==="element"&&y.tagName==="p"&&!s?u.push(...y.children):u.push(y)}const h=o[o.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
|
|
227
|
+
`});const m={type:"element",tagName:"li",properties:c,children:u};return t.patch(i,m),t.applyData(i,m)}function f0(t){let i=!1;if(t.type==="list"){i=t.spread||!1;const r=t.children;let o=-1;for(;!i&&++o<r.length;)i=Hp(r[o])}return i}function Hp(t){const i=t.spread;return i??t.children.length>1}function d0(t,i){const r={},o=t.all(i);let s=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++s<o.length;){const u=o[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:t.wrap(o,!0)};return t.patch(i,c),t.applyData(i,c)}function p0(t,i){const r={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function h0(t,i){const r={type:"root",children:t.wrap(t.all(i))};return t.patch(i,r),t.applyData(i,r)}function m0(t,i){const r={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function g0(t,i){const r=t.all(i),o=r.shift(),s=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(i.children[0],u),s.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=ku(i.children[1]),h=bp(i.children[i.children.length-1]);d&&h&&(u.position={start:d,end:h}),s.push(u)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(i,c),t.applyData(i,c)}function y0(t,i,r){const o=r?r.children:void 0,c=(o?o.indexOf(i):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:i.children.length;let h=-1;const m=[];for(;++h<d;){const g=i.children[h],v={},k=u?u[h]:void 0;k&&(v.align=k);let C={type:"element",tagName:c,properties:v,children:[]};g&&(C.children=t.all(g),t.patch(g,C),C=t.applyData(g,C)),m.push(C)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(i,y),t.applyData(i,y)}function x0(t,i){const r={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}const Id=9,Md=32;function k0(t){const i=String(t),r=/\r?\n|\r/g;let o=r.exec(i),s=0;const c=[];for(;o;)c.push(Od(i.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(i);return c.push(Od(i.slice(s),s>0,!1)),c.join("")}function Od(t,i,r){let o=0,s=t.length;if(i){let c=t.codePointAt(o);for(;c===Id||c===Md;)o++,c=t.codePointAt(o)}if(r){let c=t.codePointAt(s-1);for(;c===Id||c===Md;)s--,c=t.codePointAt(s-1)}return s>o?t.slice(o,s):""}function v0(t,i){const r={type:"text",value:k0(String(i.value))};return t.patch(i,r),t.applyData(i,r)}function w0(t,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,r),t.applyData(i,r)}const b0={blockquote:X1,break:Z1,code:J1,delete:e0,emphasis:t0,footnoteReference:n0,heading:r0,html:i0,imageReference:l0,image:o0,inlineCode:a0,linkReference:s0,link:u0,listItem:c0,list:d0,paragraph:p0,root:h0,strong:m0,table:g0,tableCell:x0,tableRow:y0,text:v0,thematicBreak:w0,toml:zo,yaml:zo,definition:zo,footnoteDefinition:zo};function zo(){}const Vp=-1,Zo=0,wl=1,Wo=2,Cu=3,Nu=4,Tu=5,Au=6,Wp=7,Gp=8,Ld=typeof self=="object"?self:globalThis,S0=(t,i)=>{const r=(s,c)=>(t.set(c,s),s),o=s=>{if(t.has(s))return t.get(s);const[c,u]=i[s];switch(c){case Zo:case Vp:return r(u,s);case wl:{const d=r([],s);for(const h of u)d.push(o(h));return d}case Wo:{const d=r({},s);for(const[h,m]of u)d[o(h)]=o(m);return d}case Cu:return r(new Date(u),s);case Nu:{const{source:d,flags:h}=u;return r(new RegExp(d,h),s)}case Tu:{const d=r(new Map,s);for(const[h,m]of u)d.set(o(h),o(m));return d}case Au:{const d=r(new Set,s);for(const h of u)d.add(o(h));return d}case Wp:{const{name:d,message:h}=u;return r(new Ld[d](h),s)}case Gp:return r(BigInt(u),s);case"BigInt":return r(Object(BigInt(u)),s);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return r(new DataView(d),u)}}return r(new Ld[c](u),s)};return o},Pd=t=>S0(new Map,t)(0),_i="",{toString:E0}={},{keys:_0}=Object,yl=t=>{const i=typeof t;if(i!=="object"||!t)return[Zo,i];const r=E0.call(t).slice(8,-1);switch(r){case"Array":return[wl,_i];case"Object":return[Wo,_i];case"Date":return[Cu,_i];case"RegExp":return[Nu,_i];case"Map":return[Tu,_i];case"Set":return[Au,_i];case"DataView":return[wl,r]}return r.includes("Array")?[wl,r]:r.includes("Error")?[Wp,r]:[Wo,r]},jo=([t,i])=>t===Zo&&(i==="function"||i==="symbol"),C0=(t,i,r,o)=>{const s=(u,d)=>{const h=o.push(u)-1;return r.set(d,h),h},c=u=>{if(r.has(u))return r.get(u);let[d,h]=yl(u);switch(d){case Zo:{let y=u;switch(h){case"bigint":d=Gp,y=u.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([Vp],u)}return s([d,y],u)}case wl:{if(h){let v=u;return h==="DataView"?v=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(u)),s([h,[...v]],u)}const y=[],g=s([d,y],u);for(const v of u)y.push(c(v));return g}case Wo:{if(h)switch(h){case"BigInt":return s([h,u.toString()],u);case"Boolean":case"Number":case"String":return s([h,u.valueOf()],u)}if(i&&"toJSON"in u)return c(u.toJSON());const y=[],g=s([d,y],u);for(const v of _0(u))(t||!jo(yl(u[v])))&&y.push([c(v),c(u[v])]);return g}case Cu:return s([d,u.toISOString()],u);case Nu:{const{source:y,flags:g}=u;return s([d,{source:y,flags:g}],u)}case Tu:{const y=[],g=s([d,y],u);for(const[v,k]of u)(t||!(jo(yl(v))||jo(yl(k))))&&y.push([c(v),c(k)]);return g}case Au:{const y=[],g=s([d,y],u);for(const v of u)(t||!jo(yl(v)))&&y.push(c(v));return g}}const{message:m}=u;return s([d,{name:h,message:m}],u)};return c},Dd=(t,{json:i,lossy:r}={})=>{const o=[];return C0(!(i||r),!!i,new Map,o)(t),o},Go=typeof structuredClone=="function"?(t,i)=>i&&("json"in i||"lossy"in i)?Pd(Dd(t,i)):structuredClone(t):(t,i)=>Pd(Dd(t,i));function N0(t,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function T0(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function A0(t){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||N0,o=t.options.footnoteBackLabel||T0,s=t.options.footnoteLabel||"Footnotes",c=t.options.footnoteLabelTagName||"h2",u=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[h]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),v=Ii(g.toLowerCase());let k=0;const C=[],I=t.footnoteCounts.get(g);for(;I!==void 0&&++k<=I;){C.length>0&&C.push({type:"text",value:" "});let H=typeof r=="string"?r:r(h,k);typeof H=="string"&&(H={type:"text",value:H}),C.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+v+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,k),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const L=y[y.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const H=L.children[L.children.length-1];H&&H.type==="text"?H.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...C)}else y.push(...C);const R={type:"element",tagName:"li",properties:{id:i+"fn-"+v},children:t.wrap(y,!0)};t.patch(m,R),d.push(R)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Go(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
228
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
|
|
229
|
+
`}]}}const Jo=(function(t){if(t==null)return O0;if(typeof t=="function")return ea(t);if(typeof t=="object")return Array.isArray(t)?R0(t):I0(t);if(typeof t=="string")return M0(t);throw new Error("Expected function, string, or object as test")});function R0(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=Jo(t[r]);return ea(o);function o(...s){let c=-1;for(;++c<i.length;)if(i[c].apply(this,s))return!0;return!1}}function I0(t){const i=t;return ea(r);function r(o){const s=o;let c;for(c in t)if(s[c]!==i[c])return!1;return!0}}function M0(t){return ea(i);function i(r){return r&&r.type===t}}function ea(t){return i;function i(r,o,s){return!!(L0(r)&&t.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function O0(){return!0}function L0(t){return t!==null&&typeof t=="object"&&"type"in t}const qp=[],P0=!0,fu=!1,D0="skip";function Kp(t,i,r,o){let s;typeof i=="function"&&typeof r!="function"?(o=r,r=i):s=i;const c=Jo(s),u=o?-1:1;d(t,void 0,[])();function d(h,m,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const k=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(k?"<"+k+">":""))+")"})}return v;function v(){let k=qp,C,I,L;if((!i||c(h,m,y[y.length-1]||void 0))&&(k=z0(r(h,y)),k[0]===fu))return k;if("children"in h&&h.children){const R=h;if(R.children&&k[0]!==D0)for(I=(o?R.children.length:-1)+u,L=y.concat(R);I>-1&&I<R.children.length;){const H=R.children[I];if(C=d(H,I,L)(),C[0]===fu)return C;I=typeof C[1]=="number"?C[1]:I+u}}return k}}}function z0(t){return Array.isArray(t)?t:typeof t=="number"?[P0,t]:t==null?qp:[t]}function Ru(t,i,r,o){let s,c,u;typeof i=="function"&&typeof r!="function"?(c=void 0,u=i,s=r):(c=i,u=r,s=o),Kp(t,c,d,s);function d(h,m){const y=m[m.length-1],g=y?y.children.indexOf(h):void 0;return u(h,g,y)}}const du={}.hasOwnProperty,j0={};function F0(t,i){const r=i||j0,o=new Map,s=new Map,c=new Map,u={...b0,...r.handlers},d={all:m,applyData:U0,definitionById:o,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:u,one:h,options:r,patch:B0,wrap:H0};return Ru(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?o:s,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function h(y,g){const v=y.type,k=d.handlers[v];if(du.call(d.handlers,v)&&k)return k(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:I,...L}=y,R=Go(L);return R.children=d.all(y),R}return Go(y)}return(d.options.unknownHandler||$0)(d,y,g)}function m(y){const g=[];if("children"in y){const v=y.children;let k=-1;for(;++k<v.length;){const C=d.one(v[k],y);if(C){if(k&&v[k-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=zd(C.value)),!Array.isArray(C)&&C.type==="element")){const I=C.children[0];I&&I.type==="text"&&(I.value=zd(I.value))}Array.isArray(C)?g.push(...C):g.push(C)}}}return g}}function B0(t,i){t.position&&(i.position=Ty(t))}function U0(t,i){let r=i;if(t&&t.data){const o=t.data.hName,s=t.data.hChildren,c=t.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&c&&Object.assign(r.properties,Go(c)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function $0(t,i){const r=i.data||{},o="value"in i&&!(du.call(r,"hProperties")||du.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function H0(t,i){const r=[];let o=-1;for(i&&r.push({type:"text",value:`
|
|
230
|
+
`});++o<t.length;)o&&r.push({type:"text",value:`
|
|
231
|
+
`}),r.push(t[o]);return i&&t.length>0&&r.push({type:"text",value:`
|
|
232
|
+
`}),r}function zd(t){let i=0,r=t.charCodeAt(i);for(;r===9||r===32;)i++,r=t.charCodeAt(i);return t.slice(i)}function jd(t,i){const r=F0(t,i),o=r.one(t,void 0),s=A0(r),c=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
|
|
233
|
+
`},s),c}function V0(t,i){return t&&"run"in t?async function(r,o){const s=jd(r,{file:o,...i});await t.run(s,o)}:function(r,o){return jd(r,{file:o,...t||i})}}function Fd(t){if(t)throw t}var Ws,Bd;function W0(){if(Bd)return Ws;Bd=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},c=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var v;for(v in m);return typeof v>"u"||t.call(m,v)},u=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return Ws=function h(){var m,y,g,v,k,C,I=arguments[0],L=1,R=arguments.length,H=!1;for(typeof I=="boolean"&&(H=I,I=arguments[1]||{},L=2),(I==null||typeof I!="object"&&typeof I!="function")&&(I={});L<R;++L)if(m=arguments[L],m!=null)for(y in m)g=d(I,y),v=d(m,y),I!==v&&(H&&v&&(c(v)||(k=s(v)))?(k?(k=!1,C=g&&s(g)?g:[]):C=g&&c(g)?g:{},u(I,{name:y,newValue:h(H,C,v)})):typeof v<"u"&&u(I,{name:y,newValue:v}));return I},Ws}var G0=W0();const Gs=El(G0);function pu(t){if(typeof t!="object"||t===null)return!1;const i=Object.getPrototypeOf(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function q0(){const t=[],i={run:r,use:o};return i;function r(...s){let c=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...s);function d(h,...m){const y=t[++c];let g=-1;if(h){u(h);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?K0(y,d)(...m):u(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),i}}function K0(t,i){let r;return o;function o(...u){const d=t.length>u.length;let h;d&&u.push(s);try{h=t.apply(this,u)}catch(m){const y=m;if(d&&r)throw y;return s(y)}d||(h&&h.then&&typeof h.then=="function"?h.then(c,s):h instanceof Error?s(h):c(h))}function s(u,...d){r||(r=!0,i(u,...d))}function c(u){s(null,u)}}const Pn={basename:Q0,dirname:Y0,extname:X0,join:Z0,sep:"/"};function Q0(t,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Nl(t);let r=0,o=-1,s=t.length,c;if(i===void 0||i.length===0||i.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(c){r=s+1;break}}else o<0&&(c=!0,o=s+1);return o<0?"":t.slice(r,o)}if(i===t)return"";let u=-1,d=i.length-1;for(;s--;)if(t.codePointAt(s)===47){if(c){r=s+1;break}}else u<0&&(c=!0,u=s+1),d>-1&&(t.codePointAt(s)===i.codePointAt(d--)?d<0&&(o=s):(d=-1,o=u));return r===o?o=u:o<0&&(o=t.length),t.slice(r,o)}function Y0(t){if(Nl(t),t.length===0)return".";let i=-1,r=t.length,o;for(;--r;)if(t.codePointAt(r)===47){if(o){i=r;break}}else o||(o=!0);return i<0?t.codePointAt(0)===47?"/":".":i===1&&t.codePointAt(0)===47?"//":t.slice(0,i)}function X0(t){Nl(t);let i=t.length,r=-1,o=0,s=-1,c=0,u;for(;i--;){const d=t.codePointAt(i);if(d===47){if(u){o=i+1;break}continue}r<0&&(u=!0,r=i+1),d===46?s<0?s=i:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===o+1?"":t.slice(s,r)}function Z0(...t){let i=-1,r;for(;++i<t.length;)Nl(t[i]),t[i]&&(r=r===void 0?t[i]:r+"/"+t[i]);return r===void 0?".":J0(r)}function J0(t){Nl(t);const i=t.codePointAt(0)===47;let r=ek(t,!i);return r.length===0&&!i&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),i?"/"+r:r}function ek(t,i){let r="",o=0,s=-1,c=0,u=-1,d,h;for(;++u<=t.length;){if(u<t.length)d=t.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(s===u-1||c===1))if(s!==u-1&&c===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=u,c=0;continue}}else if(r.length>0){r="",o=0,s=u,c=0;continue}}i&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+t.slice(s+1,u):r=t.slice(s+1,u),o=u-s-1;s=u,c=0}else d===46&&c>-1?c++:c=-1}return r}function Nl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const tk={cwd:nk};function nk(){return"/"}function hu(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function rk(t){if(typeof t=="string")t=new URL(t);else if(!hu(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(t.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return ik(t)}function ik(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=t.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const o=i.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(i)}const qs=["history","path","basename","stem","extname","dirname"];class Qp{constructor(i){let r;i?hu(i)?r={path:i}:typeof i=="string"||lk(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":tk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<qs.length;){const c=qs[o];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)qs.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Pn.basename(this.path):void 0}set basename(i){Qs(i,"basename"),Ks(i,"basename"),this.path=Pn.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Pn.dirname(this.path):void 0}set dirname(i){Ud(this.basename,"dirname"),this.path=Pn.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Pn.extname(this.path):void 0}set extname(i){if(Ks(i,"extname"),Ud(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pn.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){hu(i)&&(i=rk(i)),Qs(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Pn.basename(this.path,this.extname):void 0}set stem(i){Qs(i,"stem"),Ks(i,"stem"),this.path=Pn.join(this.dirname||"",i+(this.extname||""))}fail(i,r,o){const s=this.message(i,r,o);throw s.fatal=!0,s}info(i,r,o){const s=this.message(i,r,o);return s.fatal=void 0,s}message(i,r,o){const s=new Dt(i,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function Ks(t,i){if(t&&t.includes(Pn.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Pn.sep+"`")}function Qs(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function Ud(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function lk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const ok=(function(t){const o=this.constructor.prototype,s=o[t],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,o),c}),ak={}.hasOwnProperty;class Iu extends ok{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=q0()}copy(){const i=new Iu;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];i.use(...o)}return i.data(Gs(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(Zs("data",this.frozen),this.namespace[i]=r,this):ak.call(this.namespace,i)&&this.namespace[i]||void 0:i?(Zs("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(i,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Fo(i),o=this.parser||this.Parser;return Ys("parse",o),o(String(r),r)}process(i,r){const o=this;return this.freeze(),Ys("process",this.parser||this.Parser),Xs("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(c,u){const d=Fo(i),h=o.parse(d);o.run(h,d,function(y,g,v){if(y||!g||!v)return m(y);const k=g,C=o.stringify(k,v);ck(C)?v.value=C:v.result=C,m(y,v)});function m(y,g){y||!g?u(y):c?c(g):r(void 0,g)}}}processSync(i){let r=!1,o;return this.freeze(),Ys("processSync",this.parser||this.Parser),Xs("processSync",this.compiler||this.Compiler),this.process(i,s),Hd("processSync","process",r),o;function s(c,u){r=!0,Fd(c),o=u}}run(i,r,o){$d(i),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?c(void 0,o):new Promise(c);function c(u,d){const h=Fo(r);s.run(i,h,m);function m(y,g,v){const k=g||i;y?d(y):u?u(k):o(void 0,k,v)}}}runSync(i,r){let o=!1,s;return this.run(i,r,c),Hd("runSync","run",o),s;function c(u,d){Fd(u),s=d,o=!0}}stringify(i,r){this.freeze();const o=Fo(r),s=this.compiler||this.Compiler;return Xs("stringify",s),$d(i),s(i,o)}use(i,...r){const o=this.attachers,s=this.namespace;if(Zs("use",this.frozen),i!=null)if(typeof i=="function")h(i,r);else if(typeof i=="object")Array.isArray(i)?d(i):u(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function c(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;h(y,g)}else u(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function u(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(s.settings=Gs(!0,s.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===m){v=g;break}if(v===-1)o.push([m,...y]);else if(y.length>0){let[k,...C]=y;const I=o[v][1];pu(I)&&pu(k)&&(k=Gs(!0,I,k)),o[v]=[m,k,...C]}}}}const sk=new Iu().freeze();function Ys(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Xs(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Zs(t,i){if(i)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $d(t){if(!pu(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Hd(t,i,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function Fo(t){return uk(t)?t:new Qp(t)}function uk(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function ck(t){return typeof t=="string"||fk(t)}function fk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const dk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vd=[],Wd={allowDangerousHtml:!0},pk=/^(https?|ircs?|mailto|xmpp)$/i,hk=[{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:"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 mk(t){const i=gk(t),r=yk(t);return xk(i.runSync(i.parse(r),r),t)}function gk(t){const i=t.rehypePlugins||Vd,r=t.remarkPlugins||Vd,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Wd}:Wd;return sk().use(Y1).use(r).use(V0,o).use(i)}function yk(t){const i=t.children||"",r=new Qp;return typeof i=="string"&&(r.value=i),r}function xk(t,i){const r=i.allowedElements,o=i.allowElement,s=i.components,c=i.disallowedElements,u=i.skipHtml,d=i.unwrapDisallowed,h=i.urlTransform||kk;for(const y of hk)Object.hasOwn(i,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+dk+y.id,void 0);return i.className&&(t={type:"element",tagName:"div",properties:{className:i.className},children:t.type==="root"?t.children:[t]}),Ru(t,m),Oy(t,{Fragment:E.Fragment,components:s,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let k;for(k in $s)if(Object.hasOwn($s,k)&&Object.hasOwn(y.properties,k)){const C=y.properties[k],I=$s[k];(I===null||I.includes(y.tagName))&&(y.properties[k]=h(String(C||""),k,y))}}if(y.type==="element"){let k=r?!r.includes(y.tagName):c?c.includes(y.tagName):!1;if(!k&&o&&typeof g=="number"&&(k=!o(y,g,v)),k&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function kk(t){const i=t.indexOf(":"),r=t.indexOf("?"),o=t.indexOf("#"),s=t.indexOf("/");return i===-1||s!==-1&&i>s||r!==-1&&i>r||o!==-1&&i>o||pk.test(t.slice(0,i))?t:""}function Gd(t,i){const r=String(t);if(typeof i!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(i);for(;s!==-1;)o++,s=r.indexOf(i,s+i.length);return o}function vk(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wk(t,i,r){const s=Jo((r||{}).ignore||[]),c=bk(i);let u=-1;for(;++u<c.length;)Kp(t,"text",d);function d(m,y){let g=-1,v;for(;++g<y.length;){const k=y[g],C=v?v.children:void 0;if(s(k,C?C.indexOf(k):void 0,v))return;v=k}if(v)return h(m,y)}function h(m,y){const g=y[y.length-1],v=c[u][0],k=c[u][1];let C=0;const L=g.children.indexOf(m);let R=!1,H=[];v.lastIndex=0;let F=v.exec(m.value);for(;F;){const K=F.index,G={index:F.index,input:F.input,stack:[...y,m]};let M=k(...F,G);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?v.lastIndex=K+1:(C!==K&&H.push({type:"text",value:m.value.slice(C,K)}),Array.isArray(M)?H.push(...M):M&&H.push(M),C=K+F[0].length,R=!0),!v.global)break;F=v.exec(m.value)}return R?(C<m.value.length&&H.push({type:"text",value:m.value.slice(C)}),g.children.splice(L,1,...H)):H=[m],L+H.length}}function bk(t){const i=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let o=-1;for(;++o<r.length;){const s=r[o];i.push([Sk(s[0]),Ek(s[1])])}return i}function Sk(t){return typeof t=="string"?new RegExp(vk(t),"g"):t}function Ek(t){return typeof t=="function"?t:function(){return t}}const Js="phrasing",eu=["autolink","link","image","label"];function _k(){return{transforms:[Mk],enter:{literalAutolink:Nk,literalAutolinkEmail:tu,literalAutolinkHttp:tu,literalAutolinkWww:tu},exit:{literalAutolink:Ik,literalAutolinkEmail:Rk,literalAutolinkHttp:Tk,literalAutolinkWww:Ak}}}function Ck(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Js,notInConstruct:eu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Js,notInConstruct:eu},{character:":",before:"[ps]",after:"\\/",inConstruct:Js,notInConstruct:eu}]}}function Nk(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function tu(t){this.config.enter.autolinkProtocol.call(this,t)}function Tk(t){this.config.exit.autolinkProtocol.call(this,t)}function Ak(t){this.config.exit.data.call(this,t);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(t)}function Rk(t){this.config.exit.autolinkEmail.call(this,t)}function Ik(t){this.exit(t)}function Mk(t){wk(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ok],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Lk]],{ignore:["link","linkReference"]})}function Ok(t,i,r,o,s){let c="";if(!Yp(s)||(/^w/i.test(i)&&(r=i+r,i="",c="http://"),!Pk(r)))return!1;const u=Dk(r+o);if(!u[0])return!1;const d={type:"link",title:null,url:c+i+u[0],children:[{type:"text",value:i+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function Lk(t,i,r,o){return!Yp(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function Pk(t){const i=t.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function Dk(t){const i=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!i)return[t,void 0];t=t.slice(0,i.index);let r=i[0],o=r.indexOf(")");const s=Gd(t,"(");let c=Gd(t,")");for(;o!==-1&&s>c;)t+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),c++;return[t,r]}function Yp(t,i){const r=t.input.charCodeAt(t.index-1);return(t.index===0||qr(r)||Yo(r))&&(!i||r!==47)}Xp.peek=Wk;function zk(){this.buffer()}function jk(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function Fk(){this.buffer()}function Bk(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Uk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Cn(this.sliceSerialize(t)).toLowerCase(),r.label=i}function $k(t){this.exit(t)}function Hk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Cn(this.sliceSerialize(t)).toLowerCase(),r.label=i}function Vk(t){this.exit(t)}function Wk(){return"["}function Xp(t,i,r,o){const s=r.createTracker(o);let c=s.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return c+=s.move(r.safe(r.associationId(t),{after:"]",before:c})),d(),u(),c+=s.move("]"),c}function Gk(){return{enter:{gfmFootnoteCallString:zk,gfmFootnoteCall:jk,gfmFootnoteDefinitionLabelString:Fk,gfmFootnoteDefinition:Bk},exit:{gfmFootnoteCallString:Uk,gfmFootnoteCall:$k,gfmFootnoteDefinitionLabelString:Hk,gfmFootnoteDefinition:Vk}}}function qk(t){let i=!1;return t&&t.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Xp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,c,u){const d=c.createTracker(u);let h=d.move("[^");const m=c.enter("footnoteDefinition"),y=c.enter("label");return h+=d.move(c.safe(c.associationId(o),{before:h,after:"]"})),y(),h+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),h+=d.move((i?`
|
|
234
|
+
`:" ")+c.indentLines(c.containerFlow(o,d.current()),i?Zp:Kk))),m(),h}}function Kk(t,i,r){return i===0?t:Zp(t,i,r)}function Zp(t,i,r){return(r?"":" ")+t}const Qk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Jp.peek=ev;function Yk(){return{canContainEols:["delete"],enter:{strikethrough:Zk},exit:{strikethrough:Jk}}}function Xk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qk}],handlers:{delete:Jp}}}function Zk(t){this.enter({type:"delete",children:[]},t)}function Jk(t){this.exit(t)}function Jp(t,i,r,o){const s=r.createTracker(o),c=r.enter("strikethrough");let u=s.move("~~");return u+=r.containerPhrasing(t,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),c(),u}function ev(){return"~"}function tv(t){return t.length}function nv(t,i){const r=i||{},o=(r.align||[]).concat(),s=r.stringLength||tv,c=[],u=[],d=[],h=[];let m=0,y=-1;for(;++y<t.length;){const I=[],L=[];let R=-1;for(t[y].length>m&&(m=t[y].length);++R<t[y].length;){const H=rv(t[y][R]);if(r.alignDelimiters!==!1){const F=s(H);L[R]=F,(h[R]===void 0||F>h[R])&&(h[R]=F)}I.push(H)}u[y]=I,d[y]=L}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<m;)c[g]=qd(o[g]);else{const I=qd(o);for(;++g<m;)c[g]=I}g=-1;const v=[],k=[];for(;++g<m;){const I=c[g];let L="",R="";I===99?(L=":",R=":"):I===108?L=":":I===114&&(R=":");let H=r.alignDelimiters===!1?1:Math.max(1,h[g]-L.length-R.length);const F=L+"-".repeat(H)+R;r.alignDelimiters!==!1&&(H=L.length+H+R.length,H>h[g]&&(h[g]=H),k[g]=H),v[g]=F}u.splice(1,0,v),d.splice(1,0,k),y=-1;const C=[];for(;++y<u.length;){const I=u[y],L=d[y];g=-1;const R=[];for(;++g<m;){const H=I[g]||"";let F="",K="";if(r.alignDelimiters!==!1){const G=h[g]-(L[g]||0),M=c[g];M===114?F=" ".repeat(G):M===99?G%2?(F=" ".repeat(G/2+.5),K=" ".repeat(G/2-.5)):(F=" ".repeat(G/2),K=F):K=" ".repeat(G)}r.delimiterStart!==!1&&!g&&R.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&H==="")&&(r.delimiterStart!==!1||g)&&R.push(" "),r.alignDelimiters!==!1&&R.push(F),R.push(H),r.alignDelimiters!==!1&&R.push(K),r.padding!==!1&&R.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&R.push("|")}C.push(r.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return C.join(`
|
|
235
|
+
`)}function rv(t){return t==null?"":String(t)}function qd(t){const i=typeof t=="string"?t.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function iv(t,i,r,o){const s=r.enter("blockquote"),c=r.createTracker(o);c.move("> "),c.shift(2);const u=r.indentLines(r.containerFlow(t,c.current()),lv);return s(),u}function lv(t,i,r){return">"+(r?"":" ")+t}function ov(t,i){return Kd(t,i.inConstruct,!0)&&!Kd(t,i.notInConstruct,!1)}function Kd(t,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let o=-1;for(;++o<i.length;)if(t.includes(i[o]))return!0;return!1}function Qd(t,i,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
|
|
236
|
+
`&&ov(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
237
|
+
`}function av(t,i){const r=String(t);let o=r.indexOf(i),s=o,c=0,u=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++c>u&&(u=c):c=1,s=o+i.length,o=r.indexOf(i,s);return u}function sv(t,i){return!!(i.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function uv(t){const i=t.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function cv(t,i,r,o){const s=uv(r),c=t.value||"",u=s==="`"?"GraveAccent":"Tilde";if(sv(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(c,fv);return g(),v}const d=r.createTracker(o),h=s.repeat(Math.max(av(c,s)+1,3)),m=r.enter("codeFenced");let y=d.move(h);if(t.lang){const g=r.enter(`codeFencedLang${u}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${u}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
|
|
238
|
+
`,encode:["`"],...d.current()})),g()}return y+=d.move(`
|
|
239
|
+
`),c&&(y+=d.move(c+`
|
|
240
|
+
`)),y+=d.move(h),m(),y}function fv(t,i,r){return(r?"":" ")+t}function Mu(t){const i=t.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function dv(t,i,r,o){const s=Mu(r),c=s==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const h=r.createTracker(o);let m=h.move("[");return m+=h.move(r.safe(r.associationId(t),{before:m,after:"]",...h.current()})),m+=h.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(d=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":`
|
|
241
|
+
`,...h.current()}))),d(),t.title&&(d=r.enter(`title${c}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),d()),u(),m}function pv(t){const i=t.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function Sl(t){return"&#x"+t.toString(16).toUpperCase()+";"}function qo(t,i,r){const o=Ai(t),s=Ai(i);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}eh.peek=hv;function eh(t,i,r,o){const s=pv(r),c=r.enter("emphasis"),u=r.createTracker(o),d=u.move(s);let h=u.move(r.containerPhrasing(t,{after:s,before:d,...u.current()}));const m=h.charCodeAt(0),y=qo(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Sl(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=qo(o.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Sl(g));const k=u.move(s);return c(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+h+k}function hv(t,i,r){return r.options.emphasis||"*"}function mv(t,i){let r=!1;return Ru(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,fu}),!!((!t.depth||t.depth<3)&&Su(t)&&(i.options.setext||r))}function gv(t,i,r,o){const s=Math.max(Math.min(6,t.depth||1),1),c=r.createTracker(o);if(mv(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...c.current(),before:`
|
|
242
|
+
`,after:`
|
|
243
|
+
`});return g(),y(),v+`
|
|
244
|
+
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
245
|
+
`))+1))}const u="#".repeat(s),d=r.enter("headingAtx"),h=r.enter("phrasing");c.move(u+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
|
|
246
|
+
`,...c.current()});return/^[\t ]/.test(m)&&(m=Sl(m.charCodeAt(0))+m.slice(1)),m=m?u+" "+m:u,r.options.closeAtx&&(m+=" "+u),h(),d(),m}th.peek=yv;function th(t){return t.value||""}function yv(){return"<"}nh.peek=xv;function nh(t,i,r,o){const s=Mu(r),c=s==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const h=r.createTracker(o);let m=h.move("![");return m+=h.move(r.safe(t.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(d=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":")",...h.current()}))),d(),t.title&&(d=r.enter(`title${c}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),d()),m+=h.move(")"),u(),m}function xv(){return"!"}rh.peek=kv;function rh(t,i,r,o){const s=t.referenceType,c=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(o);let h=d.move("![");const m=r.safe(t.alt,{before:h,after:"]",...d.current()});h+=d.move(m+"]["),u();const y=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...d.current()});return u(),r.stack=y,c(),s==="full"||!m||m!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function kv(){return"!"}ih.peek=vv;function ih(t,i,r){let o=t.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++c<r.unsafe.length;){const u=r.unsafe[c],d=r.compilePattern(u);let h;if(u.atBreak)for(;h=d.exec(o);){let m=h.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(h.index+1)}}return s+o+s}function vv(){return"`"}function lh(t,i){const r=Su(t);return!!(!i.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}oh.peek=wv;function oh(t,i,r,o){const s=Mu(r),c=s==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let d,h;if(lh(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=u.move("<");return g+=u.move(r.containerPhrasing(t,{before:g,after:">",...u.current()})),g+=u.move(">"),d(),r.stack=y,g}d=r.enter("link"),h=r.enter("label");let m=u.move("[");return m+=u.move(r.containerPhrasing(t,{before:m,after:"](",...u.current()})),m+=u.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=r.enter("destinationLiteral"),m+=u.move("<"),m+=u.move(r.safe(t.url,{before:m,after:">",...u.current()})),m+=u.move(">")):(h=r.enter("destinationRaw"),m+=u.move(r.safe(t.url,{before:m,after:t.title?" ":")",...u.current()}))),h(),t.title&&(h=r.enter(`title${c}`),m+=u.move(" "+s),m+=u.move(r.safe(t.title,{before:m,after:s,...u.current()})),m+=u.move(s),h()),m+=u.move(")"),d(),m}function wv(t,i,r){return lh(t,r)?"<":"["}ah.peek=bv;function ah(t,i,r,o){const s=t.referenceType,c=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(o);let h=d.move("[");const m=r.containerPhrasing(t,{before:h,after:"]",...d.current()});h+=d.move(m+"]["),u();const y=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...d.current()});return u(),r.stack=y,c(),s==="full"||!m||m!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function bv(){return"["}function Ou(t){const i=t.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function Sv(t){const i=Ou(t),r=t.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Ev(t){const i=t.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function sh(t){const i=t.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function _v(t,i,r,o){const s=r.enter("list"),c=r.bulletCurrent;let u=t.ordered?Ev(r):Ou(r);const d=t.ordered?u==="."?")":".":Sv(r);let h=i&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),sh(r)===u&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=d),r.bulletCurrent=u;const m=r.containerFlow(t,o);return r.bulletLastUsed=u,r.bulletCurrent=c,s(),m}function Cv(t){const i=t.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function Nv(t,i,r,o){const s=Cv(r);let c=r.bulletCurrent||Ou(r);i&&i.type==="list"&&i.ordered&&(c=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(t))+c);let u=c.length+1;(s==="tab"||s==="mixed"&&(i&&i.type==="list"&&i.spread||t.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(o);d.move(c+" ".repeat(u-c.length)),d.shift(u);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,d.current()),y);return h(),m;function y(g,v,k){return v?(k?"":" ".repeat(u))+g:(k?c:c+" ".repeat(u-c.length))+g}}function Tv(t,i,r,o){const s=r.enter("paragraph"),c=r.enter("phrasing"),u=r.containerPhrasing(t,o);return c(),s(),u}const Av=Jo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Rv(t,i,r,o){return(t.children.some(function(u){return Av(u)})?r.containerPhrasing:r.containerFlow).call(r,t,o)}function Iv(t){const i=t.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}uh.peek=Mv;function uh(t,i,r,o){const s=Iv(r),c=r.enter("strong"),u=r.createTracker(o),d=u.move(s+s);let h=u.move(r.containerPhrasing(t,{after:s,before:d,...u.current()}));const m=h.charCodeAt(0),y=qo(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Sl(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=qo(o.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Sl(g));const k=u.move(s+s);return c(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+h+k}function Mv(t,i,r){return r.options.strong||"*"}function Ov(t,i,r,o){return r.safe(t.value,o)}function Lv(t){const i=t.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function Pv(t,i,r){const o=(sh(r)+(r.options.ruleSpaces?" ":"")).repeat(Lv(r));return r.options.ruleSpaces?o.slice(0,-1):o}const ch={blockquote:iv,break:Qd,code:cv,definition:dv,emphasis:eh,hardBreak:Qd,heading:gv,html:th,image:nh,imageReference:rh,inlineCode:ih,link:oh,linkReference:ah,list:_v,listItem:Nv,paragraph:Tv,root:Rv,strong:uh,text:Ov,thematicBreak:Pv};function Dv(){return{enter:{table:zv,tableData:Yd,tableHeader:Yd,tableRow:Fv},exit:{codeText:Bv,table:jv,tableData:nu,tableHeader:nu,tableRow:nu}}}function zv(t){const i=t._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function jv(t){this.exit(t),this.data.inTable=void 0}function Fv(t){this.enter({type:"tableRow",children:[]},t)}function nu(t){this.exit(t)}function Yd(t){this.enter({type:"tableCell",children:[]},t)}function Bv(t){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,Uv));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(t)}function Uv(t,i){return i==="|"?i:t}function $v(t){const i=t||{},r=i.tableCellPadding,o=i.tablePipeAlign,s=i.stringLength,c=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
247
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:h,tableRow:d}};function u(k,C,I,L){return m(y(k,I,L),k.align)}function d(k,C,I,L){const R=g(k,I,L),H=m([R]);return H.slice(0,H.indexOf(`
|
|
248
|
+
`))}function h(k,C,I,L){const R=I.enter("tableCell"),H=I.enter("phrasing"),F=I.containerPhrasing(k,{...L,before:c,after:c});return H(),R(),F}function m(k,C){return nv(k,{align:C,alignDelimiters:o,padding:r,stringLength:s})}function y(k,C,I){const L=k.children;let R=-1;const H=[],F=C.enter("table");for(;++R<L.length;)H[R]=g(L[R],C,I);return F(),H}function g(k,C,I){const L=k.children;let R=-1;const H=[],F=C.enter("tableRow");for(;++R<L.length;)H[R]=h(L[R],k,C,I);return F(),H}function v(k,C,I){let L=ch.inlineCode(k,C,I);return I.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}function Hv(){return{exit:{taskListCheckValueChecked:Xd,taskListCheckValueUnchecked:Xd,paragraph:Wv}}}function Vv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Gv}}}function Xd(t){const i=this.stack[this.stack.length-2];i.type,i.checked=t.type==="taskListCheckValueChecked"}function Wv(t){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=i.children;let c=-1,u;for(;++c<s.length;){const d=s[c];if(d.type==="paragraph"){u=d;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function Gv(t,i,r,o){const s=t.children[0],c=typeof t.checked=="boolean"&&s&&s.type==="paragraph",u="["+(t.checked?"x":" ")+"] ",d=r.createTracker(o);c&&d.move(u);let h=ch.listItem(t,i,r,{...o,...d.current()});return c&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+u}}function qv(){return[_k(),Gk(),Yk(),Dv(),Hv()]}function Kv(t){return{extensions:[Ck(),qk(t),Xk(),$v(t),Vv()]}}const Qv={tokenize:tw,partial:!0},fh={tokenize:nw,partial:!0},dh={tokenize:rw,partial:!0},ph={tokenize:iw,partial:!0},Yv={tokenize:lw,partial:!0},hh={name:"wwwAutolink",tokenize:Jv,previous:gh},mh={name:"protocolAutolink",tokenize:ew,previous:yh},Qn={name:"emailAutolink",tokenize:Zv,previous:xh},Dn={};function Xv(){return{text:Dn}}let Gr=48;for(;Gr<123;)Dn[Gr]=Qn,Gr++,Gr===58?Gr=65:Gr===91&&(Gr=97);Dn[43]=Qn;Dn[45]=Qn;Dn[46]=Qn;Dn[95]=Qn;Dn[72]=[Qn,mh];Dn[104]=[Qn,mh];Dn[87]=[Qn,hh];Dn[119]=[Qn,hh];function Zv(t,i,r){const o=this;let s,c;return u;function u(g){return!mu(g)||!xh.call(o,o.previous)||Lu(o.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return mu(g)?(t.consume(g),d):g===64?(t.consume(g),h):r(g)}function h(g){return g===46?t.check(Yv,y,m)(g):g===45||g===95||Pt(g)?(c=!0,t.consume(g),h):y(g)}function m(g){return t.consume(g),s=!0,h}function y(g){return c&&s&&Ut(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(g)):r(g)}}function Jv(t,i,r){const o=this;return s;function s(u){return u!==87&&u!==119||!gh.call(o,o.previous)||Lu(o.events)?r(u):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Qv,t.attempt(fh,t.attempt(dh,c),r),r)(u))}function c(u){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(u)}}function ew(t,i,r){const o=this;let s="",c=!1;return u;function u(g){return(g===72||g===104)&&yh.call(o,o.previous)&&!Lu(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Ut(g)&&s.length<5)return s+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="https")return t.consume(g),h}return r(g)}function h(g){return g===47?(t.consume(g),c?m:(c=!0,h)):r(g)}function m(g){return g===null||Vo(g)||Xe(g)||qr(g)||Yo(g)?r(g):t.attempt(fh,t.attempt(dh,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(g)}}function tw(t,i,r){let o=0;return s;function s(u){return(u===87||u===119)&&o<3?(o++,t.consume(u),s):u===46&&o===3?(t.consume(u),c):r(u)}function c(u){return u===null?r(u):i(u)}}function nw(t,i,r){let o,s,c;return u;function u(m){return m===46||m===95?t.check(ph,h,d)(m):m===null||Xe(m)||qr(m)||m!==45&&Yo(m)?h(m):(c=!0,t.consume(m),u)}function d(m){return m===95?o=!0:(s=o,o=void 0),t.consume(m),u}function h(m){return s||o||!c?r(m):i(m)}}function rw(t,i){let r=0,o=0;return s;function s(u){return u===40?(r++,t.consume(u),s):u===41&&o<r?c(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?t.check(ph,i,c)(u):u===null||Xe(u)||qr(u)?i(u):(t.consume(u),s)}function c(u){return u===41&&o++,t.consume(u),s}}function iw(t,i,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),o):d===38?(t.consume(d),c):d===93?(t.consume(d),s):d===60||d===null||Xe(d)||qr(d)?i(d):r(d)}function s(d){return d===null||d===40||d===91||Xe(d)||qr(d)?i(d):o(d)}function c(d){return Ut(d)?u(d):r(d)}function u(d){return d===59?(t.consume(d),o):Ut(d)?(t.consume(d),u):r(d)}}function lw(t,i,r){return o;function o(c){return t.consume(c),s}function s(c){return Pt(c)?r(c):i(c)}}function gh(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Xe(t)}function yh(t){return!Ut(t)}function xh(t){return!(t===47||mu(t))}function mu(t){return t===43||t===45||t===46||t===95||Pt(t)}function Lu(t){let i=t.length,r=!1;for(;i--;){const o=t[i][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const ow={tokenize:hw,partial:!0};function aw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:fw,continuation:{tokenize:dw},exit:pw}},text:{91:{name:"gfmFootnoteCall",tokenize:cw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sw,resolveTo:uw}}}}function sw(t,i,r){const o=this;let s=o.events.length;const c=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;s--;){const h=o.events[s][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!u||!u._balanced)return r(h);const m=Cn(o.sliceSerialize({start:u.end,end:o.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?r(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),i(h))}}function uw(t,i){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[t[r+1],t[r+2],["enter",o,i],t[r+3],t[r+4],["enter",s,i],["exit",s,i],["enter",c,i],["enter",u,i],["exit",u,i],["exit",c,i],t[t.length-2],t[t.length-1],["exit",o,i]];return t.splice(r,t.length-r+1,...d),t}function cw(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c=0,u;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(c>999||g===93&&!u||g===null||g===91||Xe(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return s.includes(Cn(o.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):r(g)}return Xe(g)||(u=!0),c++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),c++,m):m(g)}}function fw(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c,u=0,d;return h;function h(C){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(C){return C===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(C)}function y(C){if(u>999||C===93&&!d||C===null||C===91||Xe(C))return r(C);if(C===93){t.exit("chunkString");const I=t.exit("gfmFootnoteDefinitionLabelString");return c=Cn(o.sliceSerialize(I)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Xe(C)||(d=!0),u++,t.consume(C),C===92?g:y}function g(C){return C===91||C===92||C===93?(t.consume(C),u++,y):y(C)}function v(C){return C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),s.includes(c)||s.push(c),Ve(t,k,"gfmFootnoteDefinitionWhitespace")):r(C)}function k(C){return i(C)}}function dw(t,i,r){return t.check(Cl,i,t.attempt(ow,i,r))}function pw(t){t.exit("gfmFootnoteDefinition")}function hw(t,i,r){const o=this;return Ve(t,s,"gfmFootnoteDefinitionIndent",5);function s(c){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?i(c):r(c)}}function mw(t){let r=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:c,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(u,d){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let m=h;for(;m--;)if(u[m][0]==="exit"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[m][1].end.offset-u[m][1].start.offset){u[h][1].type="strikethroughSequence",u[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[m][1].start),end:Object.assign({},u[h][1].end)},g={type:"strikethroughText",start:Object.assign({},u[m][1].end),end:Object.assign({},u[h][1].start)},v=[["enter",y,d],["enter",u[m][1],d],["exit",u[m][1],d],["enter",g,d]],k=d.parser.constructs.insideSpan.null;k&&rn(v,v.length,0,Xo(k,u.slice(m+1,h),d)),rn(v,v.length,0,[["exit",g,d],["enter",u[h][1],d],["exit",u[h][1],d],["exit",y,d]]),rn(u,m-1,h-m+3,v),h=m+v.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function c(u,d,h){const m=this.previous,y=this.events;let g=0;return v;function v(C){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(C):(u.enter("strikethroughSequenceTemporary"),k(C))}function k(C){const I=Ai(m);if(C===126)return g>1?h(C):(u.consume(C),g++,k);if(g<2&&!r)return h(C);const L=u.exit("strikethroughSequenceTemporary"),R=Ai(C);return L._open=!R||R===2&&!!I,L._close=!I||I===2&&!!R,d(C)}}}class gw{constructor(){this.map=[]}add(i,r,o){yw(this,i,r,o)}consume(i){if(this.map.sort(function(c,u){return c[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];o.push(i.slice()),i.length=0;let s=o.pop();for(;s;){for(const c of s)i.push(c);s=o.pop()}this.map.length=0}}function yw(t,i,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=r,t.map[s][2].push(...o);return}s+=1}t.map.push([i,r,o])}}function xw(t,i){let r=!1;const o=[];for(;i<t.length;){const s=t[i];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const c=o.length-1;o[c]=o[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return o}function kw(){return{flow:{null:{name:"table",tokenize:vw,resolveAll:ww}}}}function vw(t,i,r){const o=this;let s=0,c=0,u;return d;function d(D){let te=o.events.length-1;for(;te>-1;){const le=o.events[te][1].type;if(le==="lineEnding"||le==="linePrefix")te--;else break}const re=te>-1?o.events[te][1].type:null,ve=re==="tableHead"||re==="tableRow"?M:h;return ve===M&&o.parser.lazy[o.now().line]?r(D):ve(D)}function h(D){return t.enter("tableHead"),t.enter("tableRow"),m(D)}function m(D){return D===124||(u=!0,c+=1),y(D)}function y(D){return D===null?r(D):_e(D)?c>1?(c=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),k):r(D):Be(D)?Ve(t,y,"whitespace")(D):(c+=1,u&&(u=!1,s+=1),D===124?(t.enter("tableCellDivider"),t.consume(D),t.exit("tableCellDivider"),u=!0,y):(t.enter("data"),g(D)))}function g(D){return D===null||D===124||Xe(D)?(t.exit("data"),y(D)):(t.consume(D),D===92?v:g)}function v(D){return D===92||D===124?(t.consume(D),g):g(D)}function k(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(D):(t.enter("tableDelimiterRow"),u=!1,Be(D)?Ve(t,C,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):C(D))}function C(D){return D===45||D===58?L(D):D===124?(u=!0,t.enter("tableCellDivider"),t.consume(D),t.exit("tableCellDivider"),I):G(D)}function I(D){return Be(D)?Ve(t,L,"whitespace")(D):L(D)}function L(D){return D===58?(c+=1,u=!0,t.enter("tableDelimiterMarker"),t.consume(D),t.exit("tableDelimiterMarker"),R):D===45?(c+=1,R(D)):D===null||_e(D)?K(D):G(D)}function R(D){return D===45?(t.enter("tableDelimiterFiller"),H(D)):G(D)}function H(D){return D===45?(t.consume(D),H):D===58?(u=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(D),t.exit("tableDelimiterMarker"),F):(t.exit("tableDelimiterFiller"),F(D))}function F(D){return Be(D)?Ve(t,K,"whitespace")(D):K(D)}function K(D){return D===124?C(D):D===null||_e(D)?!u||s!==c?G(D):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(D)):G(D)}function G(D){return r(D)}function M(D){return t.enter("tableRow"),ie(D)}function ie(D){return D===124?(t.enter("tableCellDivider"),t.consume(D),t.exit("tableCellDivider"),ie):D===null||_e(D)?(t.exit("tableRow"),i(D)):Be(D)?Ve(t,ie,"whitespace")(D):(t.enter("data"),ce(D))}function ce(D){return D===null||D===124||Xe(D)?(t.exit("data"),ie(D)):(t.consume(D),D===92?ge:ce)}function ge(D){return D===92||D===124?(t.consume(D),ce):ce(D)}}function ww(t,i){let r=-1,o=!0,s=0,c=[0,0,0,0],u=[0,0,0,0],d=!1,h=0,m,y,g;const v=new gw;for(;++r<t.length;){const k=t[r],C=k[1];k[0]==="enter"?C.type==="tableHead"?(d=!1,h!==0&&(Zd(v,i,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},v.add(r,0,[["enter",m,i]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(o=!0,g=void 0,c=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},v.add(r,0,[["enter",y,i]])),s=C.type==="tableDelimiterRow"?2:y?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],g=Bo(v,i,c,s,void 0,g),c=[0,0,0,0]),u[2]=r)):C.type==="tableCellDivider"&&(o?o=!1:(c[1]!==0&&(u[0]=u[1],g=Bo(v,i,c,s,void 0,g)),c=u,u=[c[1],r,0,0])):C.type==="tableHead"?(d=!0,h=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(h=r,c[1]!==0?(u[0]=u[1],g=Bo(v,i,c,s,r,g)):u[1]!==0&&(g=Bo(v,i,u,s,r,g)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(u[3]=r)}for(h!==0&&Zd(v,i,h,m,y),v.consume(i.events),r=-1;++r<i.events.length;){const k=i.events[r];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=xw(i.events,r))}return t}function Bo(t,i,r,o,s,c){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(c.end=Object.assign({},Ci(i.events,r[0])),t.add(r[0],0,[["exit",c,i]]));const h=Ci(i.events,r[1]);if(c={type:u,start:Object.assign({},h),end:Object.assign({},h)},t.add(r[1],0,[["enter",c,i]]),r[2]!==0){const m=Ci(i.events,r[2]),y=Ci(i.events,r[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,i]]),o!==2){const v=i.events[r[2]],k=i.events[r[3]];if(v[1].end=Object.assign({},k[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,I=r[3]-r[2]-1;t.add(C,I,[])}}t.add(r[3]+1,0,[["exit",g,i]])}return s!==void 0&&(c.end=Object.assign({},Ci(i.events,s)),t.add(s,0,[["exit",c,i]]),c=void 0),c}function Zd(t,i,r,o,s){const c=[],u=Ci(i.events,r);s&&(s.end=Object.assign({},u),c.push(["exit",s,i])),o.end=Object.assign({},u),c.push(["exit",o,i]),t.add(r+1,0,c)}function Ci(t,i){const r=t[i],o=r[0]==="enter"?"start":"end";return r[1][o]}const bw={name:"tasklistCheck",tokenize:Ew};function Sw(){return{text:{91:bw}}}function Ew(t,i,r){const o=this;return s;function s(h){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),c)}function c(h){return Xe(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),u):r(h)}function u(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(h)}function d(h){return _e(h)?i(h):Be(h)?t.check({tokenize:_w},i,r)(h):r(h)}}function _w(t,i,r){return Ve(t,o,"whitespace");function o(s){return s===null?r(s):i(s)}}function Cw(t){return Ap([Xv(),aw(),mw(t),kw(),Sw()])}const Nw={};function Tw(t){const i=this,r=t||Nw,o=i.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),c=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(Cw(r)),c.push(qv()),u.push(Kv(r))}function Aw({className:t,children:i,...r}){const o=/language-(\w+)/.exec(t??"");return o?E.jsx(Rw,{language:o[1]??"",code:String(i).replace(/\n$/,"")}):E.jsx("code",{className:"rounded-md border border-border bg-muted px-1.5 py-0.5 text-sm font-mono",...r,children:i})}function Rw({language:t,code:i}){const[r,o]=se.useState(!1),s=se.useCallback(()=>{navigator.clipboard.writeText(i),o(!0),setTimeout(()=>o(!1),2e3)},[i]);return E.jsxs("div",{className:"group relative my-3 overflow-hidden rounded-lg border border-border",children:[E.jsxs("div",{className:"flex items-center justify-between bg-muted/50 px-4 py-1.5 text-xs text-muted-foreground",children:[E.jsx("span",{children:t}),E.jsxs("button",{onClick:s,className:"flex items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100 hover:text-foreground",children:[r?E.jsx(fp,{className:"h-3.5 w-3.5"}):E.jsx(dp,{className:"h-3.5 w-3.5"}),r?"Copied":"Copy"]})]}),E.jsx("pre",{className:"overflow-x-auto bg-muted/30 p-4",children:E.jsx("code",{className:"text-sm font-mono leading-relaxed",children:i})})]})}function kh({content:t,className:i}){return E.jsx("div",{className:$t("prose prose-sm dark:prose-invert max-w-none",i),children:E.jsx(mk,{remarkPlugins:[Tw],components:{code:Aw,a:({children:r,href:o,...s})=>E.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-2 hover:text-primary/80",...s,children:r}),table:({children:r,...o})=>E.jsx("div",{className:"my-3 overflow-x-auto",children:E.jsx("table",{className:"min-w-full border-collapse text-sm",...o,children:r})}),th:({children:r,...o})=>E.jsx("th",{className:"border border-border bg-muted/50 px-3 py-1.5 text-left font-medium",...o,children:r}),td:({children:r,...o})=>E.jsx("td",{className:"border border-border px-3 py-1.5",...o,children:r})},children:t})})}function Iw({content:t}){const[i,r]=se.useState(!1);return t?E.jsxs("div",{className:"my-2",children:[E.jsxs("button",{onClick:()=>r(!i),className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[E.jsx(Qo,{className:$t("h-3.5 w-3.5 transition-transform",i&&"rotate-90")}),E.jsx(Ig,{className:"h-3.5 w-3.5"}),E.jsx("span",{children:"Thinking"})]}),i&&E.jsx("div",{className:"mt-1.5 ml-5 rounded-md border border-border bg-muted/30 p-3 text-xs text-muted-foreground whitespace-pre-wrap font-mono leading-relaxed",children:t})]}):null}const Mw={pending:E.jsx(ud,{className:"h-3.5 w-3.5 animate-spin text-muted-foreground"}),running:E.jsx(ud,{className:"h-3.5 w-3.5 animate-spin text-primary"}),done:E.jsx(Og,{className:"h-3.5 w-3.5 text-emerald-500"})};function Ow({tool:t}){const[i,r]=se.useState(!1);return E.jsxs("div",{className:"my-2 rounded-md border border-border overflow-hidden",children:[E.jsxs("button",{onClick:()=>r(!i),className:"flex w-full items-center gap-2 px-3 py-2 text-xs hover:bg-muted/50 transition-colors",children:[E.jsx(Qo,{className:$t("h-3.5 w-3.5 flex-shrink-0 transition-transform text-muted-foreground",i&&"rotate-90")}),E.jsx(Jg,{className:"h-3.5 w-3.5 flex-shrink-0 text-muted-foreground"}),E.jsx("span",{className:"font-medium text-foreground",children:t.name}),E.jsx("span",{className:"flex-1"}),Mw[t.status]]}),i&&E.jsxs("div",{className:"border-t border-border bg-muted/20 px-3 py-2 text-xs font-mono space-y-2",children:[E.jsxs("div",{children:[E.jsx("span",{className:"text-muted-foreground",children:"Input: "}),E.jsx("span",{className:"text-foreground whitespace-pre-wrap break-all",children:t.input})]}),t.result&&E.jsxs("div",{children:[E.jsx("span",{className:"text-muted-foreground",children:"Result: "}),E.jsx("span",{className:"text-foreground whitespace-pre-wrap break-all",children:t.result})]})]})]})}const Lw={planning:{icon:E.jsx(zg,{className:"h-3.5 w-3.5"}),label:"Planning",color:"text-blue-500",bgColor:"bg-blue-500/10 border-blue-500/20"},reflection:{icon:E.jsx(Dg,{className:"h-3.5 w-3.5"}),label:"Reflection",color:"text-amber-500",bgColor:"bg-amber-500/10 border-amber-500/20"},verification:{icon:E.jsx(Kg,{className:"h-3.5 w-3.5"}),label:"Verification",color:"text-emerald-500",bgColor:"bg-emerald-500/10 border-emerald-500/20"},backtrack:{icon:E.jsx(Wg,{className:"h-3.5 w-3.5"}),label:"Backtrack",color:"text-orange-500",bgColor:"bg-orange-500/10 border-orange-500/20"},loop_intervention:{icon:E.jsx(Zg,{className:"h-3.5 w-3.5"}),label:"Loop Detected",color:"text-red-400",bgColor:"bg-red-500/10 border-red-500/20"},replan:{icon:E.jsx(Vg,{className:"h-3.5 w-3.5"}),label:"Re-evaluating",color:"text-violet-500",bgColor:"bg-violet-500/10 border-violet-500/20"},loop_break:{icon:E.jsx(Ug,{className:"h-3.5 w-3.5"}),label:"Loop Break",color:"text-red-500",bgColor:"bg-red-500/10 border-red-500/20"}};function Pw(t){const i=[];return t.iteration&&i.push(`iter ${t.iteration}`),t.level&&i.push(`${t.level}`),t.complexity&&i.push(`${t.complexity}`),t.consecutiveErrors&&i.push(`${t.consecutiveErrors} errors`),t.count&&i.push(`${t.count}x`),i.length>0?i.join(" · "):null}function Dw({step:t}){const[i,r]=se.useState(!1),o=Lw[t.reasoningType],s=Pw(t.metadata);return E.jsxs("div",{className:$t("my-1.5 rounded-md border overflow-hidden",o.bgColor),children:[E.jsxs("button",{onClick:()=>r(!i),className:"flex w-full items-center gap-2 px-3 py-1.5 text-xs transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[E.jsx(Qo,{className:$t("h-3 w-3 flex-shrink-0 transition-transform text-muted-foreground",i&&"rotate-90")}),E.jsx("span",{className:$t("flex-shrink-0",o.color),children:o.icon}),E.jsx("span",{className:$t("font-medium",o.color),children:o.label}),s&&E.jsxs("span",{className:"text-muted-foreground ml-1",children:["(",s,")"]}),E.jsx("span",{className:"flex-1"})]}),i&&E.jsx("div",{className:"border-t border-inherit px-3 py-2 text-xs text-muted-foreground whitespace-pre-wrap font-mono leading-relaxed bg-background/50",children:t.content})]})}function zw({steps:t}){return!t||t.length===0?null:E.jsx("div",{className:"space-y-0.5",children:t.map(i=>E.jsx(Dw,{step:i},i.id))})}function Jd(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function jw({usage:t}){return E.jsxs("div",{className:"flex items-center gap-3 mt-2 pt-2 border-t border-border/50 text-[10px] text-muted-foreground/60 select-none",children:[E.jsxs("div",{className:"flex items-center gap-1",title:"Input tokens (this turn)",children:[E.jsx(up,{className:"h-2.5 w-2.5"}),E.jsx("span",{children:Jd(t.inputTokens)})]}),E.jsxs("div",{className:"flex items-center gap-1",title:"Output tokens (this turn)",children:[E.jsx(cp,{className:"h-2.5 w-2.5"}),E.jsx("span",{children:Jd(t.outputTokens)})]}),t.costUSD>0&&E.jsxs("div",{className:"flex items-center gap-1",title:"Cost (this turn)",children:[E.jsx(hp,{className:"h-2.5 w-2.5"}),E.jsxs("span",{children:["$",t.costUSD>.5?t.costUSD.toFixed(2):t.costUSD.toFixed(4)]})]})]})}const ep=/<artifact\s+type="([^"]+)"\s+title="([^"]+)"(?:\s+language="([^"]+)")?>([\s\S]*?)<\/artifact>/g;let tp=0;function vh(){return new RegExp(ep.source,ep.flags)}function Fw(t){const i=[];return{cleanText:t.replace(vh(),(o,s,c,u,d)=>(tp++,i.push({id:`artifact-${Date.now()}-${tp}`,type:s,title:c,content:d.trim(),language:u||Bw(s,c),createdAt:Date.now()}),`📎 *[${c}]*`)),artifacts:i}}function Bw(t,i){var s;if(t!=="code")return;const r=(s=i.split(".").pop())==null?void 0:s.toLowerCase();return r?{py:"python",js:"javascript",ts:"typescript",tsx:"tsx",jsx:"jsx",rs:"rust",go:"go",java:"java",rb:"ruby",sh:"bash",sql:"sql",css:"css",html:"html",json:"json",yaml:"yaml",yml:"yaml",md:"markdown",toml:"toml"}[r]:void 0}function Uw(t){return vh().test(t)}function $w({message:t,onArtifact:i}){var c,u;const r=se.useRef(new Set),{displayContent:o,parsedArtifacts:s}=se.useMemo(()=>{if(!t.content||!Uw(t.content))return{displayContent:t.content,parsedArtifacts:[]};const{cleanText:d,artifacts:h}=Fw(t.content);return{displayContent:d,parsedArtifacts:h}},[t.content]);return se.useEffect(()=>{if(!(!i||s.length===0))for(const d of s)r.current.has(d.id)||(r.current.add(d.id),i(d))},[s,i]),E.jsxs("div",{className:"flex gap-3",children:[E.jsx("div",{className:"flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full bg-secondary",children:E.jsx(Rg,{className:"h-4 w-4 text-secondary-foreground"})}),E.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[t.thinking&&E.jsx(Iw,{content:t.thinking}),t.reasoningSteps&&t.reasoningSteps.length>0&&E.jsx(zw,{steps:t.reasoningSteps}),(c=t.toolCalls)==null?void 0:c.map(d=>E.jsx(Ow,{tool:d},d.id)),o&&E.jsx(kh,{content:o}),t.status==="streaming"&&!t.content&&!((u=t.toolCalls)!=null&&u.length)&&E.jsxs("div",{className:"flex items-center gap-1.5 py-2",children:[E.jsx("span",{className:"h-2 w-2 animate-bounce rounded-full bg-primary [animation-delay:-0.3s]"}),E.jsx("span",{className:"h-2 w-2 animate-bounce rounded-full bg-primary [animation-delay:-0.15s]"}),E.jsx("span",{className:"h-2 w-2 animate-bounce rounded-full bg-primary"})]}),t.status==="error"&&!t.content&&E.jsx("p",{className:"text-sm text-destructive",children:"An error occurred. Please try again."}),t.status==="complete"&&t.usage&&E.jsx(jw,{usage:t.usage})]})]})}function Hw({messages:t,isStreaming:i,onArtifact:r}){const o=se.useRef(null),s=se.useRef(null);return se.useEffect(()=>{var c;(c=o.current)==null||c.scrollIntoView({behavior:i?"auto":"smooth"})},[t,i]),t.length===0?E.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:E.jsxs("div",{className:"text-center space-y-3",children:[E.jsx("div",{className:"text-4xl",children:"🤖"}),E.jsx("h2",{className:"text-lg font-medium text-foreground",children:"How can I help?"}),E.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Ask me anything about your code, run commands, edit files, or search the web."})]})}):E.jsx("div",{ref:s,className:"min-h-0 flex-1 overflow-y-auto scrollbar-thin px-4 py-4",children:E.jsxs("div",{className:"mx-auto max-w-3xl space-y-6",children:[t.map(c=>c.role==="user"?E.jsx(iy,{message:c},c.id):E.jsx($w,{message:c,onArtifact:r},c.id)),E.jsx("div",{ref:o})]})})}function Vw({onSend:t,onAbort:i,isStreaming:r,disabled:o}){const[s,c]=se.useState(""),u=se.useRef(null);se.useEffect(()=>{var y;r||(y=u.current)==null||y.focus()},[r]);const d=se.useCallback(()=>{const y=u.current;y&&(y.style.height="auto",y.style.height=`${Math.min(y.scrollHeight,200)}px`)},[]),h=se.useCallback(()=>{const y=s.trim();!y||o||(t(y),c(""),u.current&&(u.current.style.height="auto"))},[s,t,o]),m=se.useCallback(y=>{if(y.key==="Enter"&&!y.shiftKey){if(y.preventDefault(),r)return;h()}},[h,r]);return E.jsx("div",{className:"border-t border-border px-4 py-3",children:E.jsxs("div",{className:"mx-auto max-w-3xl",children:[E.jsxs("div",{className:"flex items-end gap-2 rounded-xl border border-border bg-background p-2 shadow-sm focus-within:ring-1 focus-within:ring-ring transition-shadow",children:[E.jsx("textarea",{ref:u,value:s,onChange:y=>{c(y.target.value),d()},onKeyDown:m,placeholder:"Type a message...",rows:1,disabled:o,className:$t("flex-1 resize-none bg-transparent px-2 py-1.5 text-sm outline-none placeholder:text-muted-foreground","max-h-[200px] scrollbar-thin")}),r?E.jsx("button",{onClick:i,className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:E.jsx(Qg,{className:"h-4 w-4"})}):E.jsx("button",{onClick:h,disabled:!s.trim()||o,className:$t("flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg transition-colors",s.trim()&&!o?"bg-primary text-primary-foreground hover:bg-primary/90":"bg-muted text-muted-foreground cursor-not-allowed"),title:"Send",children:E.jsx(Gg,{className:"h-4 w-4"})})]}),E.jsx("p",{className:"mt-1.5 text-center text-[11px] text-muted-foreground/60",children:"Enter to send · Shift+Enter for new line"})]})})}function ru(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function Ww(t){return t===0?"$0":t>.5?`$${t.toFixed(2)}`:`$${t.toFixed(4)}`}const Gw={started:"Starting...",thinking:"Thinking",completed:"Done"};function qw({status:t,usage:i,isStreaming:r}){if(!t&&!i)return null;const o=(t==null?void 0:t.model)??"unknown",s=(t==null?void 0:t.state)??"",c=(t==null?void 0:t.iteration)??0,u=Gw[s]??s;return E.jsxs("div",{className:"flex h-7 flex-shrink-0 items-center gap-4 border-t border-border bg-muted/30 px-4 text-[11px] text-muted-foreground select-none overflow-x-auto",children:[E.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[E.jsx(Lg,{className:"h-3 w-3"}),E.jsx("span",{className:"font-medium text-foreground/70",children:o})]}),r&&u&&E.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[E.jsx("span",{className:$t("h-1.5 w-1.5 rounded-full",s==="thinking"?"bg-amber-400 animate-pulse":"bg-emerald-400")}),E.jsx("span",{children:u}),c>0&&E.jsxs("span",{className:"text-muted-foreground/60",children:["· iter ",c]})]}),!r&&(t==null?void 0:t.state)==="completed"&&E.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[E.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-400"}),E.jsx("span",{children:"Done"}),c>0&&E.jsxs("span",{className:"text-muted-foreground/60",children:["· ",c," iterations"]}),((t==null?void 0:t.toolCallCount)??0)>0&&E.jsxs("span",{className:"text-muted-foreground/60",children:["· ",t.toolCallCount," tools"]})]}),E.jsx("div",{className:"flex-1"}),i&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",title:"Input tokens",children:[E.jsx(up,{className:"h-3 w-3"}),E.jsx("span",{children:ru(i.totalInputTokens)})]}),E.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",title:"Output tokens",children:[E.jsx(cp,{className:"h-3 w-3"}),E.jsx("span",{children:ru(i.totalOutputTokens)})]}),(i.totalCacheReadTokens>0||i.totalCacheCreationTokens>0)&&E.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",title:"Cache tokens (read + creation)",children:[E.jsx(Pg,{className:"h-3 w-3"}),E.jsx("span",{children:ru(i.totalCacheReadTokens+i.totalCacheCreationTokens)})]}),i.costUSD>0&&E.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",title:"Cost",children:[E.jsx(hp,{className:"h-3 w-3"}),E.jsx("span",{children:Ww(i.costUSD)})]})]})]})}function Kw({chat:t,onArtifact:i}){return E.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[E.jsx(Hw,{messages:t.messages,isStreaming:t.isStreaming,onArtifact:i}),E.jsx(Vw,{onSend:t.send,onAbort:t.abort,isStreaming:t.isStreaming,disabled:!1}),E.jsx(qw,{status:t.statusInfo,usage:t.latestUsage,isStreaming:t.isStreaming})]})}function Qw({config:t,onConfigChange:i,theme:r,onClose:o}){const[s,c]=se.useState(t.baseUrl),[u,d]=se.useState(t.authToken??""),h=()=>{i({baseUrl:s.replace(/\/+$/,"")||window.location.origin,authToken:u.trim()||void 0}),o()};return E.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:E.jsxs("div",{className:"w-full max-w-md rounded-xl border border-border bg-background p-6 shadow-lg mx-4",children:[E.jsxs("div",{className:"flex items-center justify-between mb-6",children:[E.jsx("h2",{className:"text-lg font-semibold",children:"Settings"}),E.jsx("button",{onClick:o,className:"rounded-md p-1 hover:bg-accent transition-colors",children:E.jsx(pp,{className:"h-5 w-5"})})]}),E.jsxs("div",{className:"space-y-5",children:[E.jsxs("div",{children:[E.jsx("label",{className:"text-sm font-medium text-foreground",children:"Theme"}),E.jsxs("div",{className:"mt-2 flex gap-2",children:[E.jsxs("button",{onClick:()=>{r.isDark&&r.toggle()},className:`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm transition-colors ${r.isDark?"border-border text-muted-foreground hover:bg-accent":"border-primary bg-primary/5 text-primary"}`,children:[E.jsx(Yg,{className:"h-4 w-4"}),"Light"]}),E.jsxs("button",{onClick:()=>{r.isDark||r.toggle()},className:`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm transition-colors ${r.isDark?"border-primary bg-primary/5 text-primary":"border-border text-muted-foreground hover:bg-accent"}`,children:[E.jsx(Bg,{className:"h-4 w-4"}),"Dark"]})]})]}),E.jsxs("div",{children:[E.jsx("label",{className:"text-sm font-medium text-foreground",children:"Gateway URL"}),E.jsx("input",{type:"text",value:s,onChange:m=>c(m.target.value),placeholder:"http://localhost:3100",className:"mt-1.5 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring"}),E.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"The base URL of your NewCraw Gateway server"})]}),E.jsxs("div",{children:[E.jsx("label",{className:"text-sm font-medium text-foreground",children:"Auth Token"}),E.jsx("input",{type:"password",value:u,onChange:m=>d(m.target.value),placeholder:"Optional",className:"mt-1.5 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring"}),E.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"If the Gateway requires authentication (--auth-token)"})]})]}),E.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[E.jsx("button",{onClick:o,className:"rounded-lg border border-border px-4 py-2 text-sm hover:bg-accent transition-colors",children:"Cancel"}),E.jsx("button",{onClick:h,className:"rounded-lg bg-primary px-4 py-2 text-sm text-primary-foreground hover:bg-primary/90 transition-colors",children:"Save"})]})]})})}const Yw={connected:{color:"bg-emerald-500",label:"Connected"},disconnected:{color:"bg-red-500",label:"Disconnected"},checking:{color:"bg-yellow-500 animate-pulse",label:"Connecting..."}};function Xw({status:t}){const i=Yw[t];return E.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[E.jsx("span",{className:$t("h-2 w-2 rounded-full",i.color)}),E.jsx("span",{children:i.label})]})}var iu,np;function Zw(){if(np)return iu;np=1;function t(_){return _ instanceof Map?_.clear=_.delete=_.set=function(){throw new Error("map is read-only")}:_ instanceof Set&&(_.add=_.clear=_.delete=function(){throw new Error("set is read-only")}),Object.freeze(_),Object.getOwnPropertyNames(_).forEach(U=>{const ne=_[U],Re=typeof ne;(Re==="object"||Re==="function")&&!Object.isFrozen(ne)&&t(ne)}),_}class i{constructor(U){U.data===void 0&&(U.data={}),this.data=U.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(_){return _.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(_,...U){const ne=Object.create(null);for(const Re in _)ne[Re]=_[Re];return U.forEach(function(Re){for(const nt in Re)ne[nt]=Re[nt]}),ne}const s="</span>",c=_=>!!_.scope,u=(_,{prefix:U})=>{if(_.startsWith("language:"))return _.replace("language:","language-");if(_.includes(".")){const ne=_.split(".");return[`${U}${ne.shift()}`,...ne.map((Re,nt)=>`${Re}${"_".repeat(nt+1)}`)].join(" ")}return`${U}${_}`};class d{constructor(U,ne){this.buffer="",this.classPrefix=ne.classPrefix,U.walk(this)}addText(U){this.buffer+=r(U)}openNode(U){if(!c(U))return;const ne=u(U.scope,{prefix:this.classPrefix});this.span(ne)}closeNode(U){c(U)&&(this.buffer+=s)}value(){return this.buffer}span(U){this.buffer+=`<span class="${U}">`}}const h=(_={})=>{const U={children:[]};return Object.assign(U,_),U};class m{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(U){this.top.children.push(U)}openNode(U){const ne=h({scope:U});this.add(ne),this.stack.push(ne)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(U){return this.constructor._walk(U,this.rootNode)}static _walk(U,ne){return typeof ne=="string"?U.addText(ne):ne.children&&(U.openNode(ne),ne.children.forEach(Re=>this._walk(U,Re)),U.closeNode(ne)),U}static _collapse(U){typeof U!="string"&&U.children&&(U.children.every(ne=>typeof ne=="string")?U.children=[U.children.join("")]:U.children.forEach(ne=>{m._collapse(ne)}))}}class y extends m{constructor(U){super(),this.options=U}addText(U){U!==""&&this.add(U)}startScope(U){this.openNode(U)}endScope(){this.closeNode()}__addSublanguage(U,ne){const Re=U.root;ne&&(Re.scope=`language:${ne}`),this.add(Re)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(_){return _?typeof _=="string"?_:_.source:null}function v(_){return I("(?=",_,")")}function k(_){return I("(?:",_,")*")}function C(_){return I("(?:",_,")?")}function I(..._){return _.map(ne=>g(ne)).join("")}function L(_){const U=_[_.length-1];return typeof U=="object"&&U.constructor===Object?(_.splice(_.length-1,1),U):{}}function R(..._){return"("+(L(_).capture?"":"?:")+_.map(Re=>g(Re)).join("|")+")"}function H(_){return new RegExp(_.toString()+"|").exec("").length-1}function F(_,U){const ne=_&&_.exec(U);return ne&&ne.index===0}const K=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function G(_,{joinWith:U}){let ne=0;return _.map(Re=>{ne+=1;const nt=ne;let lt=g(Re),fe="";for(;lt.length>0;){const ue=K.exec(lt);if(!ue){fe+=lt;break}fe+=lt.substring(0,ue.index),lt=lt.substring(ue.index+ue[0].length),ue[0][0]==="\\"&&ue[1]?fe+="\\"+String(Number(ue[1])+nt):(fe+=ue[0],ue[0]==="("&&ne++)}return fe}).map(Re=>`(${Re})`).join(U)}const M=/\b\B/,ie="[a-zA-Z]\\w*",ce="[a-zA-Z_]\\w*",ge="\\b\\d+(\\.\\d+)?",D="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",te="\\b(0b[01]+)",re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ve=(_={})=>{const U=/^#![ ]*\//;return _.binary&&(_.begin=I(U,/.*\b/,_.binary,/\b.*/)),o({scope:"meta",begin:U,end:/$/,relevance:0,"on:begin":(ne,Re)=>{ne.index!==0&&Re.ignoreMatch()}},_)},le={begin:"\\\\[\\s\\S]",relevance:0},Y={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},ke={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},Te={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(_,U,ne={}){const Re=o({scope:"comment",begin:_,end:U,contains:[]},ne);Re.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const nt=R("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Re.contains.push({begin:I(/[ ]+/,"(",nt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Re},oe=$("//","$"),w=$("/\\*","\\*/"),T=$("#","$"),B={scope:"number",begin:ge,relevance:0},b={scope:"number",begin:D,relevance:0},Ce={scope:"number",begin:te,relevance:0},Oe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},we={scope:"title",begin:ie,relevance:0},He={scope:"title",begin:ce,relevance:0},Pe={begin:"\\.\\s*"+ce,relevance:0};var tt=Object.freeze({__proto__:null,APOS_STRING_MODE:Y,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:te,COMMENT:$,C_BLOCK_COMMENT_MODE:w,C_LINE_COMMENT_MODE:oe,C_NUMBER_MODE:b,C_NUMBER_RE:D,END_SAME_AS_BEGIN:function(_){return Object.assign(_,{"on:begin":(U,ne)=>{ne.data._beginMatch=U[1]},"on:end":(U,ne)=>{ne.data._beginMatch!==U[1]&&ne.ignoreMatch()}})},HASH_COMMENT_MODE:T,IDENT_RE:ie,MATCH_NOTHING_RE:M,METHOD_GUARD:Pe,NUMBER_MODE:B,NUMBER_RE:ge,PHRASAL_WORDS_MODE:Te,QUOTE_STRING_MODE:ke,REGEXP_MODE:Oe,RE_STARTERS_RE:re,SHEBANG:ve,TITLE_MODE:we,UNDERSCORE_IDENT_RE:ce,UNDERSCORE_TITLE_MODE:He});function mn(_,U){_.input[_.index-1]==="."&&U.ignoreMatch()}function Qr(_,U){_.className!==void 0&&(_.scope=_.className,delete _.className)}function Yn(_,U){U&&_.beginKeywords&&(_.begin="\\b("+_.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",_.__beforeBegin=mn,_.keywords=_.keywords||_.beginKeywords,delete _.beginKeywords,_.relevance===void 0&&(_.relevance=0))}function br(_,U){Array.isArray(_.illegal)&&(_.illegal=R(..._.illegal))}function Sr(_,U){if(_.match){if(_.begin||_.end)throw new Error("begin & end are not supported with match");_.begin=_.match,delete _.match}}function Er(_,U){_.relevance===void 0&&(_.relevance=1)}const Xn=(_,U)=>{if(!_.beforeMatch)return;if(_.starts)throw new Error("beforeMatch cannot be used with starts");const ne=Object.assign({},_);Object.keys(_).forEach(Re=>{delete _[Re]}),_.keywords=ne.keywords,_.begin=I(ne.beforeMatch,v(ne.begin)),_.starts={relevance:0,contains:[Object.assign(ne,{endsParent:!0})]},_.relevance=0,delete ne.beforeMatch},Yr=["of","and","for","in","not","or","if","then","parent","list","value"],Zn="keyword";function gn(_,U,ne=Zn){const Re=Object.create(null);return typeof _=="string"?nt(ne,_.split(" ")):Array.isArray(_)?nt(ne,_):Object.keys(_).forEach(function(lt){Object.assign(Re,gn(_[lt],U,lt))}),Re;function nt(lt,fe){U&&(fe=fe.map(ue=>ue.toLowerCase())),fe.forEach(function(ue){const be=ue.split("|");Re[be[0]]=[lt,Nn(be[0],be[1])]})}}function Nn(_,U){return U?Number(U):_r(_)?0:1}function _r(_){return Yr.includes(_.toLowerCase())}const Cr={},ln=_=>{console.error(_)},Nr=(_,...U)=>{console.log(`WARN: ${_}`,...U)},j=(_,U)=>{Cr[`${_}/${U}`]||(console.log(`Deprecated as of ${_}. ${U}`),Cr[`${_}/${U}`]=!0)},J=new Error;function Ne(_,U,{key:ne}){let Re=0;const nt=_[ne],lt={},fe={};for(let ue=1;ue<=U.length;ue++)fe[ue+Re]=nt[ue],lt[ue+Re]=!0,Re+=H(U[ue-1]);_[ne]=fe,_[ne]._emit=lt,_[ne]._multi=!0}function De(_){if(Array.isArray(_.begin)){if(_.skip||_.excludeBegin||_.returnBegin)throw ln("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if(typeof _.beginScope!="object"||_.beginScope===null)throw ln("beginScope must be object"),J;Ne(_,_.begin,{key:"beginScope"}),_.begin=G(_.begin,{joinWith:""})}}function Ue(_){if(Array.isArray(_.end)){if(_.skip||_.excludeEnd||_.returnEnd)throw ln("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if(typeof _.endScope!="object"||_.endScope===null)throw ln("endScope must be object"),J;Ne(_,_.end,{key:"endScope"}),_.end=G(_.end,{joinWith:""})}}function vt(_){_.scope&&typeof _.scope=="object"&&_.scope!==null&&(_.beginScope=_.scope,delete _.scope)}function yn(_){vt(_),typeof _.beginScope=="string"&&(_.beginScope={_wrap:_.beginScope}),typeof _.endScope=="string"&&(_.endScope={_wrap:_.endScope}),De(_),Ue(_)}function Ht(_){function U(fe,ue){return new RegExp(g(fe),"m"+(_.case_insensitive?"i":"")+(_.unicodeRegex?"u":"")+(ue?"g":""))}class ne{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ue,be){be.position=this.position++,this.matchIndexes[this.matchAt]=be,this.regexes.push([be,ue]),this.matchAt+=H(ue)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ue=this.regexes.map(be=>be[1]);this.matcherRe=U(G(ue,{joinWith:"|"}),!0),this.lastIndex=0}exec(ue){this.matcherRe.lastIndex=this.lastIndex;const be=this.matcherRe.exec(ue);if(!be)return null;const yt=be.findIndex((Tn,er)=>er>0&&Tn!==void 0),Ze=this.matchIndexes[yt];return be.splice(0,yt),Object.assign(be,Ze)}}class Re{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ue){if(this.multiRegexes[ue])return this.multiRegexes[ue];const be=new ne;return this.rules.slice(ue).forEach(([yt,Ze])=>be.addRule(yt,Ze)),be.compile(),this.multiRegexes[ue]=be,be}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ue,be){this.rules.push([ue,be]),be.type==="begin"&&this.count++}exec(ue){const be=this.getMatcher(this.regexIndex);be.lastIndex=this.lastIndex;let yt=be.exec(ue);if(this.resumingScanAtSamePosition()&&!(yt&&yt.index===this.lastIndex)){const Ze=this.getMatcher(0);Ze.lastIndex=this.lastIndex+1,yt=Ze.exec(ue)}return yt&&(this.regexIndex+=yt.position+1,this.regexIndex===this.count&&this.considerAll()),yt}}function nt(fe){const ue=new Re;return fe.contains.forEach(be=>ue.addRule(be.begin,{rule:be,type:"begin"})),fe.terminatorEnd&&ue.addRule(fe.terminatorEnd,{type:"end"}),fe.illegal&&ue.addRule(fe.illegal,{type:"illegal"}),ue}function lt(fe,ue){const be=fe;if(fe.isCompiled)return be;[Qr,Sr,yn,Xn].forEach(Ze=>Ze(fe,ue)),_.compilerExtensions.forEach(Ze=>Ze(fe,ue)),fe.__beforeBegin=null,[Yn,br,Er].forEach(Ze=>Ze(fe,ue)),fe.isCompiled=!0;let yt=null;return typeof fe.keywords=="object"&&fe.keywords.$pattern&&(fe.keywords=Object.assign({},fe.keywords),yt=fe.keywords.$pattern,delete fe.keywords.$pattern),yt=yt||/\w+/,fe.keywords&&(fe.keywords=gn(fe.keywords,_.case_insensitive)),be.keywordPatternRe=U(yt,!0),ue&&(fe.begin||(fe.begin=/\B|\b/),be.beginRe=U(be.begin),!fe.end&&!fe.endsWithParent&&(fe.end=/\B|\b/),fe.end&&(be.endRe=U(be.end)),be.terminatorEnd=g(be.end)||"",fe.endsWithParent&&ue.terminatorEnd&&(be.terminatorEnd+=(fe.end?"|":"")+ue.terminatorEnd)),fe.illegal&&(be.illegalRe=U(fe.illegal)),fe.contains||(fe.contains=[]),fe.contains=[].concat(...fe.contains.map(function(Ze){return zn(Ze==="self"?fe:Ze)})),fe.contains.forEach(function(Ze){lt(Ze,be)}),fe.starts&<(fe.starts,ue),be.matcher=nt(be),be}if(_.compilerExtensions||(_.compilerExtensions=[]),_.contains&&_.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return _.classNameAliases=o(_.classNameAliases||{}),lt(_)}function xn(_){return _?_.endsWithParent||xn(_.starts):!1}function zn(_){return _.variants&&!_.cachedVariants&&(_.cachedVariants=_.variants.map(function(U){return o(_,{variants:null},U)})),_.cachedVariants?_.cachedVariants:xn(_)?o(_,{starts:_.starts?o(_.starts):null}):Object.isFrozen(_)?o(_):_}var wt="11.11.1";class on extends Error{constructor(U,ne){super(U),this.name="HTMLInjectionError",this.html=ne}}const Tt=r,Xr=o,Zr=Symbol("nomatch"),Jn=7,jn=function(_){const U=Object.create(null),ne=Object.create(null),Re=[];let nt=!0;const lt="Could not find the language '{}', did you forget to load/include a language module?",fe={disableAutodetect:!0,name:"Plain text",contains:[]};let ue={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function be(X){return ue.noHighlightRe.test(X)}function yt(X){let xe=X.className+" ";xe+=X.parentNode?X.parentNode.className:"";const ze=ue.languageDetectRe.exec(xe);if(ze){const Fe=kn(ze[1]);return Fe||(Nr(lt.replace("{}",ze[1])),Nr("Falling back to no-highlight mode for this block.",X)),Fe?ze[1]:"no-highlight"}return xe.split(/\s+/).find(Fe=>be(Fe)||kn(Fe))}function Ze(X,xe,ze){let Fe="",ht="";typeof xe=="object"?(Fe=X,ze=xe.ignoreIllegals,ht=xe.language):(j("10.7.0","highlight(lang, code, ...args) has been deprecated."),j("10.7.0",`Please use highlight(code, options) instead.
|
|
249
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ht=X,Fe=xe),ze===void 0&&(ze=!0);const ut={code:Fe,language:ht};Ar("before:highlight",ut);const An=ut.result?ut.result:Tn(ut.language,ut.code,ze);return An.code=ut.code,Ar("after:highlight",An),An}function Tn(X,xe,ze,Fe){const ht=Object.create(null);function ut(ee,de){return ee.keywords[de]}function An(){if(!Me.keywords){mt.addText(Ye);return}let ee=0;Me.keywordPatternRe.lastIndex=0;let de=Me.keywordPatternRe.exec(Ye),Ae="";for(;de;){Ae+=Ye.substring(ee,de.index);const $e=an.case_insensitive?de[0].toLowerCase():de[0],dt=ut(Me,$e);if(dt){const[Et,oa]=dt;if(mt.addText(Ae),Ae="",ht[$e]=(ht[$e]||0)+1,ht[$e]<=Jn&&(Mr+=oa),Et.startsWith("_"))Ae+=de[0];else{const Pl=an.classNameAliases[Et]||Et;jt(de[0],Pl)}}else Ae+=de[0];ee=Me.keywordPatternRe.lastIndex,de=Me.keywordPatternRe.exec(Ye)}Ae+=Ye.substring(ee),mt.addText(Ae)}function ti(){if(Ye==="")return;let ee=null;if(typeof Me.subLanguage=="string"){if(!U[Me.subLanguage]){mt.addText(Ye);return}ee=Tn(Me.subLanguage,Ye,!0,zi[Me.subLanguage]),zi[Me.subLanguage]=ee._top}else ee=Tr(Ye,Me.subLanguage.length?Me.subLanguage:null);Me.relevance>0&&(Mr+=ee.relevance),mt.__addSublanguage(ee._emitter,ee.language)}function zt(){Me.subLanguage!=null?ti():An(),Ye=""}function jt(ee,de){ee!==""&&(mt.startScope(de),mt.addText(ee),mt.endScope())}function Rr(ee,de){let Ae=1;const $e=de.length-1;for(;Ae<=$e;){if(!ee._emit[Ae]){Ae++;continue}const dt=an.classNameAliases[ee[Ae]]||ee[Ae],Et=de[Ae];dt?jt(Et,dt):(Ye=Et,An(),Ye=""),Ae++}}function tr(ee,de){return ee.scope&&typeof ee.scope=="string"&&mt.openNode(an.classNameAliases[ee.scope]||ee.scope),ee.beginScope&&(ee.beginScope._wrap?(jt(Ye,an.classNameAliases[ee.beginScope._wrap]||ee.beginScope._wrap),Ye=""):ee.beginScope._multi&&(Rr(ee.beginScope,de),Ye="")),Me=Object.create(ee,{parent:{value:Me}}),Me}function Ir(ee,de,Ae){let $e=F(ee.endRe,Ae);if($e){if(ee["on:end"]){const dt=new i(ee);ee["on:end"](de,dt),dt.isMatchIgnored&&($e=!1)}if($e){for(;ee.endsParent&&ee.parent;)ee=ee.parent;return ee}}if(ee.endsWithParent)return Ir(ee.parent,de,Ae)}function ia(ee){return Me.matcher.regexIndex===0?(Ye+=ee[0],1):(ir=!0,0)}function la(ee){const de=ee[0],Ae=ee.rule,$e=new i(Ae),dt=[Ae.__beforeBegin,Ae["on:begin"]];for(const Et of dt)if(Et&&(Et(ee,$e),$e.isMatchIgnored))return ia(de);return Ae.skip?Ye+=de:(Ae.excludeBegin&&(Ye+=de),zt(),!Ae.returnBegin&&!Ae.excludeBegin&&(Ye=de)),tr(Ae,ee),Ae.returnBegin?0:de.length}function Pi(ee){const de=ee[0],Ae=xe.substring(ee.index),$e=Ir(Me,ee,Ae);if(!$e)return Zr;const dt=Me;Me.endScope&&Me.endScope._wrap?(zt(),jt(de,Me.endScope._wrap)):Me.endScope&&Me.endScope._multi?(zt(),Rr(Me.endScope,ee)):dt.skip?Ye+=de:(dt.returnEnd||dt.excludeEnd||(Ye+=de),zt(),dt.excludeEnd&&(Ye=de));do Me.scope&&mt.closeNode(),!Me.skip&&!Me.subLanguage&&(Mr+=Me.relevance),Me=Me.parent;while(Me!==$e.parent);return $e.starts&&tr($e.starts,ee),dt.returnEnd?0:de.length}function Ll(){const ee=[];for(let de=Me;de!==an;de=de.parent)de.scope&&ee.unshift(de.scope);ee.forEach(de=>mt.openNode(de))}let nr={};function rr(ee,de){const Ae=de&&de[0];if(Ye+=ee,Ae==null)return zt(),0;if(nr.type==="begin"&&de.type==="end"&&nr.index===de.index&&Ae===""){if(Ye+=xe.slice(de.index,de.index+1),!nt){const $e=new Error(`0 width match regex (${X})`);throw $e.languageName=X,$e.badRule=nr.rule,$e}return 1}if(nr=de,de.type==="begin")return la(de);if(de.type==="illegal"&&!ze){const $e=new Error('Illegal lexeme "'+Ae+'" for mode "'+(Me.scope||"<unnamed>")+'"');throw $e.mode=Me,$e}else if(de.type==="end"){const $e=Pi(de);if($e!==Zr)return $e}if(de.type==="illegal"&&Ae==="")return Ye+=`
|
|
250
|
+
`,1;if(Or>1e5&&Or>de.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ye+=Ae,Ae.length}const an=kn(X);if(!an)throw ln(lt.replace("{}",X)),new Error('Unknown language: "'+X+'"');const Di=Ht(an);let We="",Me=Fe||Di;const zi={},mt=new ue.__emitter(ue);Ll();let Ye="",Mr=0,Rn=0,Or=0,ir=!1;try{if(an.__emitTokens)an.__emitTokens(xe,mt);else{for(Me.matcher.considerAll();;){Or++,ir?ir=!1:Me.matcher.considerAll(),Me.matcher.lastIndex=Rn;const ee=Me.matcher.exec(xe);if(!ee)break;const de=xe.substring(Rn,ee.index),Ae=rr(de,ee);Rn=ee.index+Ae}rr(xe.substring(Rn))}return mt.finalize(),We=mt.toHTML(),{language:X,value:We,relevance:Mr,illegal:!1,_emitter:mt,_top:Me}}catch(ee){if(ee.message&&ee.message.includes("Illegal"))return{language:X,value:Tt(xe),illegal:!0,relevance:0,_illegalBy:{message:ee.message,index:Rn,context:xe.slice(Rn-100,Rn+100),mode:ee.mode,resultSoFar:We},_emitter:mt};if(nt)return{language:X,value:Tt(xe),illegal:!1,relevance:0,errorRaised:ee,_emitter:mt,_top:Me};throw ee}}function er(X){const xe={value:Tt(X),illegal:!1,relevance:0,_top:fe,_emitter:new ue.__emitter(ue)};return xe._emitter.addText(X),xe}function Tr(X,xe){xe=xe||ue.languages||Object.keys(U);const ze=er(X),Fe=xe.filter(kn).filter(Ol).map(zt=>Tn(zt,X,!1));Fe.unshift(ze);const ht=Fe.sort((zt,jt)=>{if(zt.relevance!==jt.relevance)return jt.relevance-zt.relevance;if(zt.language&&jt.language){if(kn(zt.language).supersetOf===jt.language)return 1;if(kn(jt.language).supersetOf===zt.language)return-1}return 0}),[ut,An]=ht,ti=ut;return ti.secondBest=An,ti}function ta(X,xe,ze){const Fe=xe&&ne[xe]||ze;X.classList.add("hljs"),X.classList.add(`language-${Fe}`)}function Mi(X){let xe=null;const ze=yt(X);if(be(ze))return;if(Ar("before:highlightElement",{el:X,language:ze}),X.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",X);return}if(X.children.length>0&&(ue.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(X)),ue.throwUnescapedHTML))throw new on("One of your code blocks includes unescaped HTML.",X.innerHTML);xe=X;const Fe=xe.textContent,ht=ze?Ze(Fe,{language:ze,ignoreIllegals:!0}):Tr(Fe);X.innerHTML=ht.value,X.dataset.highlighted="yes",ta(X,ze,ht.language),X.result={language:ht.language,re:ht.relevance,relevance:ht.relevance},ht.secondBest&&(X.secondBest={language:ht.secondBest.language,relevance:ht.secondBest.relevance}),Ar("after:highlightElement",{el:X,result:ht,text:Fe})}function na(X){ue=Xr(ue,X)}const Bn=()=>{Jr(),j("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Tl(){Jr(),j("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Oi=!1;function Jr(){function X(){Jr()}if(document.readyState==="loading"){Oi||window.addEventListener("DOMContentLoaded",X,!1),Oi=!0;return}document.querySelectorAll(ue.cssSelector).forEach(Mi)}function Al(X,xe){let ze=null;try{ze=xe(_)}catch(Fe){if(ln("Language definition for '{}' could not be registered.".replace("{}",X)),nt)ln(Fe);else throw Fe;ze=fe}ze.name||(ze.name=X),U[X]=ze,ze.rawDefinition=xe.bind(null,_),ze.aliases&&Ml(ze.aliases,{languageName:X})}function Rl(X){delete U[X];for(const xe of Object.keys(ne))ne[xe]===X&&delete ne[xe]}function Il(){return Object.keys(U)}function kn(X){return X=(X||"").toLowerCase(),U[X]||U[ne[X]]}function Ml(X,{languageName:xe}){typeof X=="string"&&(X=[X]),X.forEach(ze=>{ne[ze.toLowerCase()]=xe})}function Ol(X){const xe=kn(X);return xe&&!xe.disableAutodetect}function st(X){X["before:highlightBlock"]&&!X["before:highlightElement"]&&(X["before:highlightElement"]=xe=>{X["before:highlightBlock"](Object.assign({block:xe.el},xe))}),X["after:highlightBlock"]&&!X["after:highlightElement"]&&(X["after:highlightElement"]=xe=>{X["after:highlightBlock"](Object.assign({block:xe.el},xe))})}function ra(X){st(X),Re.push(X)}function Li(X){const xe=Re.indexOf(X);xe!==-1&&Re.splice(xe,1)}function Ar(X,xe){const ze=X;Re.forEach(function(Fe){Fe[ze]&&Fe[ze](xe)})}function ei(X){return j("10.7.0","highlightBlock will be removed entirely in v12.0"),j("10.7.0","Please use highlightElement now."),Mi(X)}Object.assign(_,{highlight:Ze,highlightAuto:Tr,highlightAll:Jr,highlightElement:Mi,highlightBlock:ei,configure:na,initHighlighting:Bn,initHighlightingOnLoad:Tl,registerLanguage:Al,unregisterLanguage:Rl,listLanguages:Il,getLanguage:kn,registerAliases:Ml,autoDetection:Ol,inherit:Xr,addPlugin:ra,removePlugin:Li}),_.debugMode=function(){nt=!1},_.safeMode=function(){nt=!0},_.versionString=wt,_.regex={concat:I,lookahead:v,either:R,optional:C,anyNumberOfTimes:k};for(const X in tt)typeof tt[X]=="object"&&t(tt[X]);return Object.assign(_,tt),_},Fn=jn({});return Fn.newInstance=()=>jn({}),iu=Fn,Fn.HighlightJS=Fn,Fn.default=Fn,iu}var Jw=Zw();const at=El(Jw),rp="[A-Za-z$_][0-9A-Za-z$_]*",eb=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],tb=["true","false","null","undefined","NaN","Infinity"],wh=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],bh=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Sh=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nb=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rb=[].concat(Sh,wh,bh);function Eh(t){const i=t.regex,r=($,{after:oe})=>{const w="</"+$[0].slice(1);return $.input.indexOf(w,oe)!==-1},o=rp,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:($,oe)=>{const w=$[0].length+$.index,T=$.input[w];if(T==="<"||T===","){oe.ignoreMatch();return}T===">"&&(r($,{after:w})||oe.ignoreMatch());let B;const b=$.input.substring(w);if(B=b.match(/^\s*=/)){oe.ignoreMatch();return}if((B=b.match(/^\s+extends\s+/))&&B.index===0){oe.ignoreMatch();return}}},d={$pattern:rp,keyword:eb,literal:tb,built_in:rb,"variable.language":nb},h="[0-9](_?[0-9])*",m=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${y})((${m})|\\.)?|(${m}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\b((${m})\\b|\\.)?|(${m})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,v]},H={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},F=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,k,C,I,L,{match:/\$\d+/},g];v.contains=F.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(F)});const K=[].concat(H,v.contains),G=K.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(K)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G},ie={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,i.concat(o,"(",i.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ce={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...wh,...bh]}},ge={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},te={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re($){return i.concat("(?!",$.join("|"),")")}const ve={match:i.concat(/\b/,re([...Sh,"super","import"].map($=>`${$}\\s*\\(`)),o,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:i.concat(/\./,i.lookahead(i.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ke="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Te={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(ke)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ce},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),ge,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,k,C,I,L,H,{match:/\$\d+/},g,ce,{scope:"attr",match:o+i.lookahead(":"),relevance:0},Te,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[H,t.REGEXP_MODE,{className:"function",begin:ke,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,t.inherit(t.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},ve,te,ie,Y,{match:/\$[(.]/}]}}const Ko="[A-Za-z$_][0-9A-Za-z$_]*",_h=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ch=["true","false","null","undefined","NaN","Infinity"],Nh=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Th=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ah=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Rh=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ih=[].concat(Ah,Nh,Th);function ib(t){const i=t.regex,r=($,{after:oe})=>{const w="</"+$[0].slice(1);return $.input.indexOf(w,oe)!==-1},o=Ko,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:($,oe)=>{const w=$[0].length+$.index,T=$.input[w];if(T==="<"||T===","){oe.ignoreMatch();return}T===">"&&(r($,{after:w})||oe.ignoreMatch());let B;const b=$.input.substring(w);if(B=b.match(/^\s*=/)){oe.ignoreMatch();return}if((B=b.match(/^\s+extends\s+/))&&B.index===0){oe.ignoreMatch();return}}},d={$pattern:Ko,keyword:_h,literal:Ch,built_in:Ih,"variable.language":Rh},h="[0-9](_?[0-9])*",m=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${y})((${m})|\\.)?|(${m}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\b((${m})\\b|\\.)?|(${m})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,v]},H={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},F=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,k,C,I,L,{match:/\$\d+/},g];v.contains=F.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(F)});const K=[].concat(H,v.contains),G=K.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(K)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G},ie={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,i.concat(o,"(",i.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ce={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Nh,...Th]}},ge={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},te={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re($){return i.concat("(?!",$.join("|"),")")}const ve={match:i.concat(/\b/,re([...Ah,"super","import"].map($=>`${$}\\s*\\(`)),o,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:i.concat(/\./,i.lookahead(i.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ke="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Te={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(ke)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ce},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),ge,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,k,C,I,L,H,{match:/\$\d+/},g,ce,{scope:"attr",match:o+i.lookahead(":"),relevance:0},Te,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[H,t.REGEXP_MODE,{className:"function",begin:ke,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,t.inherit(t.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},ve,te,ie,Y,{match:/\$[(.]/}]}}function Mh(t){const i=t.regex,r=ib(t),o=Ko,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[r.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],m={$pattern:Ko,keyword:_h.concat(h),literal:Ch,built_in:Ih.concat(s),"variable.language":Rh},y={className:"meta",begin:"@"+o},g=(I,L,R)=>{const H=I.contains.findIndex(F=>F.label===L);if(H===-1)throw new Error("can not find mode to replace");I.contains.splice(H,1,R)};Object.assign(r.keywords,m),r.exports.PARAMS_CONTAINS.push(y);const v=r.contains.find(I=>I.scope==="attr"),k=Object.assign({},v,{match:i.concat(o,i.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,v,k]),r.contains=r.contains.concat([y,c,u,k]),g(r,"shebang",t.SHEBANG()),g(r,"use_strict",d);const C=r.contains.find(I=>I.label==="func.def");return C.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function Oh(t){const i=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},y={begin:/\{\{/,relevance:0},g={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h,y,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h,y,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,y,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,y,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},v="[0-9](_?[0-9])*",k=`(\\b(${v}))?\\.(${v})|\\b(${v})\\.`,C=`\\b|${o.join("|")}`,I={className:"number",relevance:0,variants:[{begin:`(\\b(${v})|(${k}))[eE][+-]?(${v})[jJ]?(?=${C})`},{begin:`(${k})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${v})[jJ](?=${C})`}]},L={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},R={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",h,I,g,t.HASH_COMMENT_MODE]}]};return m.contains=[g,I,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[h,I,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,L,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[R]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[I,R,g]}]}}function lb(t){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[i,r,t.QUOTE_STRING_MODE,s,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Lh(t){const i=t.regex,r=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=t.inherit(c,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,h,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,h,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(/</,i.lookahead(i.concat(r,i.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:m}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ob=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ab=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sb=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],ub=[...ab,...sb],cb=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),fb=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),db=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),pb=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function hb(t){const i=t.regex,r=ob(t),o={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",c=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,o,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+fb.join("|")+")"},{begin:":(:)?("+db.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+pb.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:i.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:cb.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ub.join("|")+")\\b"}]}}function Pu(t){const i=t.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,s]};s.contains.push(d);const h={match:/\\"/},m={className:"string",begin:/'/,end:/'/},y={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},v=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],k=t.SHEBANG({binary:`(${v.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},I=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],L=["true","false"],R={match:/(\/[a-z._-]+)+/},H=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],F=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],K=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],G=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:I,literal:L,built_in:[...H,...F,"set","shopt",...K,...G]},contains:[k,t.SHEBANG(),C,g,c,u,R,d,h,m,y,r]}}function mb(t){const i=t.regex,r=t.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],y=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],v=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],k=y,C=[...m,...h].filter(G=>!y.includes(G)),I={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},L={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},R={match:i.concat(/\b/,i.either(...k),/\s*\(/),relevance:0,keywords:{built_in:k}};function H(G){return i.concat(/\b/,i.either(...G.map(M=>M.replace(/\s+/,"\\s+"))),/\b/)}const F={scope:"keyword",match:H(v),relevance:0};function K(G,{exceptions:M,when:ie}={}){const ce=ie;return M=M||[],G.map(ge=>ge.match(/\|\d+$/)||M.includes(ge)?ge:ce(ge)?`${ge}|0`:ge)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:K(C,{when:G=>G.length<3}),literal:c,type:d,built_in:g},contains:[{scope:"type",match:H(u)},F,R,I,o,s,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,L]}}function Ph(t){const i="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,s]},d=t.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),v={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},k={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},C={begin:/\{/,end:/\}/,contains:[k],illegal:"\\n",relevance:0},I={begin:"\\[",end:"\\]",contains:[k],illegal:"\\n",relevance:0},L=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},v,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},C,I,c,u],R=[...L];return R.pop(),R.push(d),k.contains=R,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:L}}function Dh(t){const i=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},y={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=t.inherit(m,{contains:[]}),v=t.inherit(y,{contains:[]});m.contains.push(v),y.contains.push(g);let k=[r,h];return[m,y,g,v].forEach(R=>{R.contains=R.contains.concat(k)}),k=k.concat(m,y),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:k},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:k}]}]},r,c,m,y,{className:"quote",begin:"^>\\s+",contains:k,end:"$"},s,o,h,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function gb(t){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,illegal:/["']/}]}]}}function yb(t){const i=t.regex,r=/(r#)?/,o=i.concat(r,t.UNDERSCORE_IDENT_RE),s=i.concat(r,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,i.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",d=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],m=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],y=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:y,keyword:d,literal:h,built_in:m},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:m,type:y}},{className:"punctuation",begin:"->"},c]}}var Ni="[0-9](_*[0-9])*",Uo=`\\.(${Ni})`,$o="[0-9a-fA-F](_*[0-9a-fA-F])*",ip={className:"number",variants:[{begin:`(\\b(${Ni})((${Uo})|\\.)?|(${Uo}))[eE][+-]?(${Ni})[fFdD]?\\b`},{begin:`\\b(${Ni})((${Uo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Uo})[fFdD]?\\b`},{begin:`\\b(${Ni})[fFdD]\\b`},{begin:`\\b0[xX]((${$o})\\.?|(${$o})?\\.(${$o}))[pP][+-]?(${Ni})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${$o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function zh(t,i,r){return r===-1?"":t.replace(i,o=>zh(t,i,r-1))}function xb(t){const i=t.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",o=r+zh("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[i.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+o+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,ip,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},ip,m]}}at.registerLanguage("javascript",Eh);at.registerLanguage("js",Eh);at.registerLanguage("typescript",Mh);at.registerLanguage("ts",Mh);at.registerLanguage("python",Oh);at.registerLanguage("py",Oh);at.registerLanguage("json",lb);at.registerLanguage("html",Lh);at.registerLanguage("xml",Lh);at.registerLanguage("css",hb);at.registerLanguage("bash",Pu);at.registerLanguage("sh",Pu);at.registerLanguage("shell",Pu);at.registerLanguage("sql",mb);at.registerLanguage("yaml",Ph);at.registerLanguage("yml",Ph);at.registerLanguage("markdown",Dh);at.registerLanguage("md",Dh);at.registerLanguage("go",gb);at.registerLanguage("rust",yb);at.registerLanguage("java",xb);function lp({artifact:t}){const[i,r]=se.useState(!1),o=se.useCallback(()=>{navigator.clipboard.writeText(t.content).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)})},[t.content]),s=se.useMemo(()=>{var u;const c=(u=t.language)==null?void 0:u.toLowerCase();if(c&&at.getLanguage(c))try{return at.highlight(t.content,{language:c}).value}catch{}try{return at.highlightAuto(t.content).value}catch{return null}},[t.content,t.language]);return E.jsxs("div",{className:"flex flex-col h-full",children:[E.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border bg-muted/50",children:[E.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:t.language??"code"}),E.jsxs("button",{onClick:o,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[i?E.jsx(fp,{className:"h-3.5 w-3.5"}):E.jsx(dp,{className:"h-3.5 w-3.5"}),i?"Copied":"Copy"]})]}),E.jsx("pre",{className:"flex-1 overflow-auto p-4 text-sm font-mono leading-relaxed bg-zinc-950 text-zinc-100",children:s?E.jsx("code",{dangerouslySetInnerHTML:{__html:s}}):E.jsx("code",{children:t.content})})]})}function kb({artifact:t}){return E.jsx("div",{className:"flex-1 overflow-auto p-4 prose prose-sm dark:prose-invert max-w-none",children:E.jsx(kh,{content:t.content})})}function vb({artifact:t}){const i=t.type==="html"?t.content:`<html><body><pre>${wb(t.content)}</pre></body></html>`;return E.jsx("div",{className:"flex-1 overflow-hidden bg-white",children:E.jsx("iframe",{srcDoc:i,sandbox:"allow-scripts",className:"w-full h-full border-0",title:t.title})})}function wb(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function bb({artifact:t}){const i=t.content.startsWith("data:")||t.content.startsWith("http")?t.content:`data:image/png;base64,${t.content}`;return E.jsx("div",{className:"flex-1 flex items-center justify-center overflow-auto p-4 bg-zinc-50 dark:bg-zinc-900",children:E.jsx("img",{src:i,alt:t.title,className:"max-w-full max-h-full object-contain rounded shadow-lg"})})}function Sb({artifacts:t,onClose:i}){const[r,o]=se.useState(t.length-1),s=t[r];return s?E.jsxs("div",{className:"flex h-full flex-col border-l border-border bg-background",children:[E.jsxs("div",{className:"flex items-center gap-1 border-b border-border px-2 py-1.5 overflow-x-auto",children:[E.jsx("div",{className:"flex items-center gap-1 flex-1 min-w-0 overflow-x-auto",children:t.map((c,u)=>E.jsx("button",{onClick:()=>o(u),className:$t("shrink-0 rounded px-2.5 py-1 text-xs transition-colors truncate max-w-[140px]",u===r?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent/50"),title:c.title,children:c.title},c.id))}),E.jsxs("div",{className:"flex items-center gap-0.5 shrink-0 ml-1",children:[t.length>1&&E.jsxs(E.Fragment,{children:[E.jsx("button",{onClick:()=>o(Math.max(0,r-1)),disabled:r===0,className:"p-1 rounded hover:bg-accent disabled:opacity-30",children:E.jsx(Mg,{className:"h-3.5 w-3.5"})}),E.jsxs("span",{className:"text-[10px] text-muted-foreground tabular-nums px-0.5",children:[r+1,"/",t.length]}),E.jsx("button",{onClick:()=>o(Math.min(t.length-1,r+1)),disabled:r===t.length-1,className:"p-1 rounded hover:bg-accent disabled:opacity-30",children:E.jsx(Qo,{className:"h-3.5 w-3.5"})})]}),E.jsx("button",{onClick:i,className:"p-1 rounded hover:bg-accent ml-1",children:E.jsx(pp,{className:"h-3.5 w-3.5"})})]})]}),E.jsx("div",{className:"flex-1 min-h-0",children:E.jsx(Eb,{artifact:s})})]}):null}function Eb({artifact:t}){switch(t.type){case"code":return E.jsx(lp,{artifact:t});case"markdown":case"csv":return E.jsx(kb,{artifact:t});case"html":return E.jsx(vb,{artifact:t});case"image":return E.jsx(bb,{artifact:t});default:return E.jsx(lp,{artifact:t})}}function _b(t,i,r,o){const s=new AbortController;return(async()=>{var u;try{const d={"Content-Type":"application/json"};t.authToken&&(d.Authorization=`Bearer ${t.authToken}`);const h=await fetch(`${t.baseUrl}/api/chat/stream`,{method:"POST",headers:d,body:JSON.stringify({message:i,sessionKey:r}),signal:s.signal});if(!h.ok){const v=await h.text().catch(()=>h.statusText);o.onError(`HTTP ${h.status}: ${v}`);return}const m=(u=h.body)==null?void 0:u.getReader();if(!m){o.onError("No response body");return}const y=new TextDecoder;let g="";for(;;){const{done:v,value:k}=await m.read();if(v)break;g+=y.decode(k,{stream:!0});const C=g.split(`
|
|
251
|
+
`);g=C.pop()??"";let I="";for(const L of C)if(L.startsWith("event: "))I=L.slice(7).trim();else if(L.startsWith("data: ")&&I){try{const R=JSON.parse(L.slice(6));Cb(I,R,o)}catch{}I=""}}o.onDone()}catch(d){if(d instanceof DOMException&&d.name==="AbortError")return;o.onError(d instanceof Error?d.message:"Unknown error")}})(),s}function Cb(t,i,r){switch(t){case"text":r.onText(i.content??"");break;case"thinking":r.onThinking(i.content??"");break;case"tool_call":r.onToolCall(i.content??"");break;case"tool_result":r.onToolResult(i.content??"");break;case"reasoning":r.onReasoning(i.content??"");break;case"status":r.onStatus(i.content??"");break;case"usage":r.onUsage(i.content??"");break;case"done":r.onDone();break;case"error":r.onError(i.error??i.content??"Unknown error");break}}const jh="newcraw-sessions",Du="newcraw-messages:";function op(){try{const t=localStorage.getItem(jh);return t?JSON.parse(t):[]}catch{return[]}}function Nb(t){localStorage.setItem(jh,JSON.stringify(t))}function Tb(t){try{const i=localStorage.getItem(Du+t);return i?JSON.parse(i):[]}catch{return[]}}function ap(t,i){localStorage.setItem(Du+t,JSON.stringify(i))}function Ab(){const[t,i]=se.useState(op),[r,o]=se.useState(()=>{var g;return((g=op()[0])==null?void 0:g.key)??null});se.useEffect(()=>{Nb(t)},[t]);const s=t.find(y=>y.key===r)??null,c=se.useCallback(()=>{const y={key:`web:${xl()}`,title:"New Chat",createdAt:Date.now(),updatedAt:Date.now(),messageCount:0};return i(g=>[y,...g]),o(y.key),y},[]),u=se.useCallback(y=>{o(y)},[]),d=se.useCallback(y=>{i(g=>g.filter(v=>v.key!==y)),localStorage.removeItem(Du+y),r===y&&o(g=>{var k;return((k=t.filter(C=>C.key!==y)[0])==null?void 0:k.key)??null})},[r,t]),h=se.useCallback((y,g)=>{i(v=>v.map(k=>k.key===y?{...k,title:ey(g,50)}:k))},[]),m=se.useCallback((y,g)=>{i(v=>v.map(k=>k.key===y?{...k,...g}:k))},[]);return{list:t,active:s,create:c,select:u,remove:d,updateTitle:h,updateMeta:m}}function Rb(t,i){const[r,o]=se.useState([]),[s,c]=se.useState(!1),[u,d]=se.useState(null),[h,m]=se.useState(null),y=se.useRef(null),g=se.useRef(i);se.useEffect(()=>{var I;g.current=i,o(i?Tb(i):[]),c(!1),(I=y.current)==null||I.abort(),y.current=null},[i]),se.useEffect(()=>{i&&r.length>0&&ap(i,r)},[r,i]);const v=se.useCallback(I=>{if(!i||!I.trim()||s)return;const L={id:xl(),role:"user",content:I.trim(),status:"complete",timestamp:Date.now()},R=xl(),H={id:R,role:"assistant",content:"",thinking:"",toolCalls:[],reasoningSteps:[],status:"streaming",timestamp:Date.now()};o(K=>[...K,L,H]),c(!0);const F=_b(t,I.trim(),i,{onText(K){o(G=>G.map(M=>M.id===R?{...M,content:M.content+K}:M))},onThinking(K){o(G=>G.map(M=>M.id===R?{...M,thinking:(M.thinking??"")+K}:M))},onToolCall(K){const G={id:xl(),name:Ib(K),input:K,status:"running"};o(M=>M.map(ie=>ie.id===R?{...ie,toolCalls:[...ie.toolCalls??[],G]}:ie))},onToolResult(K){o(G=>G.map(M=>{if(M.id!==R)return M;const ie=[...M.toolCalls??[]],ce=ie.findLast(ge=>ge.status==="running");return ce&&(ce.result=K,ce.status="done"),{...M,toolCalls:ie}}))},onReasoning(K){try{const G=JSON.parse(K),M={id:xl(),reasoningType:G.reasoningType,content:G.content,metadata:G.metadata??{},timestamp:Date.now()};o(ie=>ie.map(ce=>ce.id===R?{...ce,reasoningSteps:[...ce.reasoningSteps??[],M]}:ce))}catch{}},onStatus(K){try{const G=JSON.parse(K);d(G)}catch{}},onUsage(K){try{const G=JSON.parse(K);m(G),o(M=>M.map(ie=>ie.id===R?{...ie,usage:G}:ie))}catch{}},onDone(){o(K=>K.map(G=>G.id===R?{...G,status:"complete"}:G)),c(!1),y.current=null},onError(K){o(G=>G.map(M=>M.id===R?{...M,content:M.content||K,status:"error"}:M)),c(!1),y.current=null}});y.current=F},[t,i,s]),k=se.useCallback(()=>{var I;(I=y.current)==null||I.abort(),y.current=null,c(!1),o(L=>L.map(R=>R.status==="streaming"?{...R,status:"complete"}:R))},[]),C=se.useCallback(()=>{o([]),i&&ap(i,[])},[i]);return{messages:r,isStreaming:s,statusInfo:u,latestUsage:h,send:v,abort:k,clear:C}}function Ib(t){const i=t.match(/^(\w+)\(/);return(i==null?void 0:i[1])??"tool"}function Mb({config:t,onConfigChange:i,theme:r,sessions:o,connection:s}){var ge,D;const[c,u]=se.useState(!1),[d,h]=se.useState(!1),[m,y]=se.useState([]),[g,v]=se.useState(!1),[k,C]=se.useState(480),I=se.useRef(!1),L=se.useRef(0),R=se.useRef(0),H=Rb(t,((ge=o.active)==null?void 0:ge.key)??null),F=se.useCallback(()=>{o.create(),u(!1),y([]),v(!1)},[o]),K=se.useCallback(te=>{o.select(te),u(!1),y([]),v(!1)},[o]),G=se.useCallback(te=>{y(re=>[...re,te]),v(!0)},[]),M=se.useCallback(()=>{v(!1)},[]),ie=se.useCallback(te=>{te.preventDefault(),I.current=!0,L.current=te.clientX,R.current=k;const re=le=>{if(!I.current)return;const Y=L.current-le.clientX,ke=Math.min(Math.max(R.current+Y,280),900);C(ke)},ve=()=>{I.current=!1,document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",ve),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",re),document.addEventListener("mouseup",ve)},[k]),ce=g&&m.length>0;return E.jsxs("div",{className:"flex h-dvh w-full overflow-hidden",children:[c&&E.jsx("div",{className:"fixed inset-0 z-30 bg-black/40 md:hidden",onClick:()=>u(!1)}),E.jsx("aside",{className:$t("fixed inset-y-0 left-0 z-40 w-64 flex-shrink-0 border-r border-border bg-background transition-transform duration-200 md:static md:translate-x-0",c?"translate-x-0":"-translate-x-full"),children:E.jsx(ry,{sessions:o,onNew:F,onSelect:K,onOpenSettings:()=>h(!0)})}),E.jsxs("main",{className:"flex min-w-0 flex-1 flex-col",children:[E.jsxs("header",{className:"flex h-12 flex-shrink-0 items-center gap-3 border-b border-border px-4",children:[E.jsx("button",{className:"md:hidden p-1 rounded-md hover:bg-accent",onClick:()=>u(!0),children:E.jsx(jg,{className:"h-5 w-5"})}),E.jsx("h1",{className:"text-sm font-medium truncate flex-1",children:((D=o.active)==null?void 0:D.title)??"NewCraw"}),m.length>0&&!g&&E.jsxs("button",{onClick:()=>v(!0),className:"flex items-center gap-1.5 px-2 py-1 text-xs rounded-md hover:bg-accent text-muted-foreground hover:text-foreground transition-colors",children:[E.jsx($g,{className:"h-3.5 w-3.5"}),E.jsxs("span",{children:[m.length," artifact",m.length>1?"s":""]})]}),E.jsx(Xw,{status:s.status})]}),E.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[E.jsx("div",{className:$t("flex min-h-0 min-w-0 flex-1 flex-col",ce&&"lg:max-w-[60%]"),children:E.jsx(Kw,{chat:H,config:t,onArtifact:G})}),ce&&E.jsxs("div",{className:"hidden lg:flex relative",style:{width:k},children:[E.jsx("div",{onMouseDown:ie,className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-primary/30 active:bg-primary/50 z-10 transition-colors"}),E.jsx(Sb,{artifacts:m,onClose:M})]})]})]}),d&&E.jsx(Qw,{config:t,onConfigChange:i,theme:r,onClose:()=>h(!1)})]})}function Ob(){const[t,i]=se.useState(()=>{const o=localStorage.getItem("newcraw-theme");return o?o==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches});se.useEffect(()=>{const o=document.documentElement;t?o.classList.add("dark"):o.classList.remove("dark"),localStorage.setItem("newcraw-theme",t?"dark":"light")},[t]);const r=se.useCallback(()=>i(o=>!o),[]);return{isDark:t,toggle:r}}function Lb(t){const[i,r]=se.useState("checking"),o=se.useRef(),s=se.useCallback(async()=>{r("checking");try{const c=await fetch(`${t.baseUrl}/health`,{signal:AbortSignal.timeout(5e3)});r(c.ok?"connected":"disconnected")}catch{r("disconnected")}},[t.baseUrl]);return se.useEffect(()=>(s(),o.current=setInterval(s,3e4),()=>clearInterval(o.current)),[s]),{status:i,check:s}}const Pb={baseUrl:window.location.origin};function Db(){const[t,i]=se.useState(()=>{const u=localStorage.getItem("newcraw-gateway-config");return u?JSON.parse(u):Pb}),r=se.useCallback(u=>{i(u),localStorage.setItem("newcraw-gateway-config",JSON.stringify(u))},[]),o=Ob(),s=Ab(),c=Lb(t);return E.jsx(Mb,{config:t,onConfigChange:r,theme:o,sessions:s,connection:c})}Cg.createRoot(document.getElementById("root")).render(E.jsx(kg.StrictMode,{children:E.jsx(Db,{})}));
|