illusion-code 0.1.0__py3-none-any.whl
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.
- illusion/__init__.py +24 -0
- illusion/__main__.py +15 -0
- illusion/_frontend/dist/index.mjs +39208 -0
- illusion/_frontend/package.json +27 -0
- illusion/_frontend/src/App.tsx +624 -0
- illusion/_frontend/src/components/CommandPicker.tsx +98 -0
- illusion/_frontend/src/components/Composer.tsx +55 -0
- illusion/_frontend/src/components/ComposerController.tsx +128 -0
- illusion/_frontend/src/components/ConversationView.tsx +750 -0
- illusion/_frontend/src/components/Footer.tsx +25 -0
- illusion/_frontend/src/components/MarkdownContent.tsx +537 -0
- illusion/_frontend/src/components/MarkdownTable.tsx +245 -0
- illusion/_frontend/src/components/ModalHost.tsx +425 -0
- illusion/_frontend/src/components/MultilineTextInput.tsx +250 -0
- illusion/_frontend/src/components/PromptInput.tsx +64 -0
- illusion/_frontend/src/components/SelectModal.tsx +78 -0
- illusion/_frontend/src/components/SidePanel.tsx +175 -0
- illusion/_frontend/src/components/Spinner.tsx +77 -0
- illusion/_frontend/src/components/StatusBar.tsx +142 -0
- illusion/_frontend/src/components/SwarmPanel.tsx +141 -0
- illusion/_frontend/src/components/TodoPanel.tsx +126 -0
- illusion/_frontend/src/components/ToolCallDisplay.tsx +202 -0
- illusion/_frontend/src/components/TranscriptPane.tsx +79 -0
- illusion/_frontend/src/components/WelcomeBanner.tsx +37 -0
- illusion/_frontend/src/hooks/useBackendSession.ts +468 -0
- illusion/_frontend/src/hooks/useTerminalSize.ts +9 -0
- illusion/_frontend/src/i18n.ts +78 -0
- illusion/_frontend/src/index.tsx +42 -0
- illusion/_frontend/src/theme/ThemeContext.tsx +19 -0
- illusion/_frontend/src/theme/builtinThemes.ts +89 -0
- illusion/_frontend/src/types.ts +110 -0
- illusion/_frontend/src/utils/markdown.ts +33 -0
- illusion/_frontend/src/utils/thinking.ts +191 -0
- illusion/_frontend/tsconfig.json +13 -0
- illusion/_web_dist/assets/index-BseIw-ik.css +10 -0
- illusion/_web_dist/assets/index-C_0ZWMuW.js +82 -0
- illusion/_web_dist/index.html +16 -0
- illusion/api/__init__.py +36 -0
- illusion/api/client.py +568 -0
- illusion/api/codex_client.py +563 -0
- illusion/api/compat.py +138 -0
- illusion/api/effort.py +128 -0
- illusion/api/errors.py +57 -0
- illusion/api/openai_client.py +819 -0
- illusion/api/provider.py +148 -0
- illusion/api/registry.py +479 -0
- illusion/api/usage.py +45 -0
- illusion/auth/__init__.py +50 -0
- illusion/auth/copilot.py +419 -0
- illusion/auth/external.py +612 -0
- illusion/auth/flows.py +58 -0
- illusion/auth/manager.py +214 -0
- illusion/auth/storage.py +372 -0
- illusion/bridge/__init__.py +38 -0
- illusion/bridge/manager.py +190 -0
- illusion/bridge/session_runner.py +84 -0
- illusion/bridge/types.py +113 -0
- illusion/bridge/work_secret.py +131 -0
- illusion/cli.py +1228 -0
- illusion/commands/__init__.py +32 -0
- illusion/commands/registry.py +1934 -0
- illusion/config/__init__.py +39 -0
- illusion/config/i18n.py +522 -0
- illusion/config/paths.py +259 -0
- illusion/config/settings.py +564 -0
- illusion/coordinator/__init__.py +41 -0
- illusion/coordinator/agent_definitions.py +1093 -0
- illusion/coordinator/coordinator_mode.py +127 -0
- illusion/engine/__init__.py +95 -0
- illusion/engine/cost_tracker.py +55 -0
- illusion/engine/messages.py +369 -0
- illusion/engine/query.py +632 -0
- illusion/engine/query_engine.py +343 -0
- illusion/engine/stream_events.py +169 -0
- illusion/hooks/__init__.py +67 -0
- illusion/hooks/events.py +43 -0
- illusion/hooks/executor.py +397 -0
- illusion/hooks/hot_reload.py +74 -0
- illusion/hooks/loader.py +133 -0
- illusion/hooks/schemas.py +121 -0
- illusion/hooks/types.py +86 -0
- illusion/mcp/__init__.py +104 -0
- illusion/mcp/client.py +377 -0
- illusion/mcp/config.py +140 -0
- illusion/mcp/types.py +175 -0
- illusion/memory/__init__.py +36 -0
- illusion/memory/manager.py +94 -0
- illusion/memory/memdir.py +58 -0
- illusion/memory/paths.py +57 -0
- illusion/memory/scan.py +120 -0
- illusion/memory/search.py +83 -0
- illusion/memory/types.py +43 -0
- illusion/output_styles/__init__.py +15 -0
- illusion/output_styles/loader.py +64 -0
- illusion/permissions/__init__.py +39 -0
- illusion/permissions/checker.py +174 -0
- illusion/permissions/modes.py +38 -0
- illusion/platforms.py +148 -0
- illusion/plugins/__init__.py +71 -0
- illusion/plugins/bundled/__init__.py +0 -0
- illusion/plugins/installer.py +59 -0
- illusion/plugins/loader.py +301 -0
- illusion/plugins/schemas.py +51 -0
- illusion/plugins/types.py +56 -0
- illusion/prompts/__init__.py +29 -0
- illusion/prompts/claudemd.py +74 -0
- illusion/prompts/context.py +187 -0
- illusion/prompts/environment.py +189 -0
- illusion/prompts/system_prompt.py +155 -0
- illusion/py.typed +0 -0
- illusion/sandbox/__init__.py +29 -0
- illusion/sandbox/adapter.py +174 -0
- illusion/services/__init__.py +59 -0
- illusion/services/compact/__init__.py +1015 -0
- illusion/services/cron.py +338 -0
- illusion/services/cron_scheduler.py +715 -0
- illusion/services/file_history.py +258 -0
- illusion/services/lsp/__init__.py +455 -0
- illusion/services/session_storage.py +237 -0
- illusion/services/token_estimation.py +72 -0
- illusion/skills/__init__.py +60 -0
- illusion/skills/bundled/__init__.py +110 -0
- illusion/skills/bundled/content/batch.md +86 -0
- illusion/skills/bundled/content/coding-guidelines.md +70 -0
- illusion/skills/bundled/content/debug.md +38 -0
- illusion/skills/bundled/content/loop.md +82 -0
- illusion/skills/bundled/content/remember.md +105 -0
- illusion/skills/bundled/content/simplify.md +53 -0
- illusion/skills/bundled/content/skillify.md +113 -0
- illusion/skills/bundled/content/stuck.md +54 -0
- illusion/skills/bundled/content/update-config.md +329 -0
- illusion/skills/bundled/content/verify.md +74 -0
- illusion/skills/loader.py +219 -0
- illusion/skills/registry.py +40 -0
- illusion/skills/types.py +24 -0
- illusion/state/__init__.py +18 -0
- illusion/state/app_state.py +67 -0
- illusion/state/store.py +93 -0
- illusion/swarm/__init__.py +71 -0
- illusion/swarm/agent_executor.py +857 -0
- illusion/swarm/in_process.py +259 -0
- illusion/swarm/subprocess_backend.py +136 -0
- illusion/swarm/team_helpers.py +123 -0
- illusion/swarm/types.py +159 -0
- illusion/swarm/worktree.py +347 -0
- illusion/tasks/__init__.py +33 -0
- illusion/tasks/local_agent_task.py +42 -0
- illusion/tasks/local_shell_task.py +27 -0
- illusion/tasks/manager.py +377 -0
- illusion/tasks/stop_task.py +21 -0
- illusion/tasks/types.py +88 -0
- illusion/tools/__init__.py +126 -0
- illusion/tools/agent_tool.py +388 -0
- illusion/tools/ask_user_question_tool.py +186 -0
- illusion/tools/base.py +149 -0
- illusion/tools/bash_tool.py +413 -0
- illusion/tools/config_tool.py +90 -0
- illusion/tools/cron_tool.py +473 -0
- illusion/tools/enter_plan_mode_tool.py +147 -0
- illusion/tools/enter_worktree_tool.py +188 -0
- illusion/tools/exit_plan_mode_tool.py +69 -0
- illusion/tools/exit_worktree_tool.py +225 -0
- illusion/tools/file_edit_tool.py +283 -0
- illusion/tools/file_read_tool.py +294 -0
- illusion/tools/file_write_tool.py +184 -0
- illusion/tools/glob_tool.py +165 -0
- illusion/tools/grep_tool.py +190 -0
- illusion/tools/list_mcp_resources_tool.py +80 -0
- illusion/tools/lsp_tool.py +333 -0
- illusion/tools/mcp_auth_tool.py +100 -0
- illusion/tools/mcp_tool.py +75 -0
- illusion/tools/notebook_edit_tool.py +242 -0
- illusion/tools/powershell_tool.py +334 -0
- illusion/tools/read_mcp_resource_tool.py +63 -0
- illusion/tools/repl_tool.py +100 -0
- illusion/tools/send_message_tool.py +112 -0
- illusion/tools/shell_common.py +187 -0
- illusion/tools/skill_tool.py +86 -0
- illusion/tools/sleep_tool.py +62 -0
- illusion/tools/structured_output_tool.py +58 -0
- illusion/tools/task_create_tool.py +98 -0
- illusion/tools/task_get_tool.py +94 -0
- illusion/tools/task_list_tool.py +94 -0
- illusion/tools/task_output_tool.py +55 -0
- illusion/tools/task_stop_tool.py +52 -0
- illusion/tools/task_update_tool.py +224 -0
- illusion/tools/team_create_tool.py +236 -0
- illusion/tools/team_delete_tool.py +104 -0
- illusion/tools/todo_write_tool.py +198 -0
- illusion/tools/tool_search_tool.py +156 -0
- illusion/tools/web_fetch_tool.py +264 -0
- illusion/tools/web_search_tool.py +186 -0
- illusion/ui/__init__.py +23 -0
- illusion/ui/app.py +258 -0
- illusion/ui/backend_host.py +1180 -0
- illusion/ui/input.py +86 -0
- illusion/ui/output.py +363 -0
- illusion/ui/permission_dialog.py +47 -0
- illusion/ui/permission_store.py +99 -0
- illusion/ui/protocol.py +384 -0
- illusion/ui/react_launcher.py +280 -0
- illusion/ui/runtime.py +787 -0
- illusion/ui/textual_app.py +603 -0
- illusion/ui/web/__init__.py +10 -0
- illusion/ui/web/server.py +87 -0
- illusion/ui/web/ws_host.py +1197 -0
- illusion/utils/__init__.py +0 -0
- illusion/utils/ripgrep.py +299 -0
- illusion/utils/shell.py +248 -0
- illusion_code-0.1.0.dist-info/METADATA +1159 -0
- illusion_code-0.1.0.dist-info/RECORD +214 -0
- illusion_code-0.1.0.dist-info/WHEEL +4 -0
- illusion_code-0.1.0.dist-info/entry_points.txt +2 -0
- illusion_code-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vl={exports:{}},Xa={},Ql={exports:{}},Ze={};/**
|
|
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 wp;function eb(){if(wp)return Ze;wp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function T(M){return M===null||typeof M!="object"?null:(M=E&&M[E]||M["@@iterator"],typeof M=="function"?M:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,I={};function L(M,K,k){this.props=M,this.context=K,this.refs=I,this.updater=k||_}L.prototype.isReactComponent={},L.prototype.setState=function(M,K){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,K,"setState")},L.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function O(){}O.prototype=L.prototype;function F(M,K,k){this.props=M,this.context=K,this.refs=I,this.updater=k||_}var Y=F.prototype=new O;Y.constructor=F,x(Y,L.prototype),Y.isPureReactComponent=!0;var V=Array.isArray,ee=Object.prototype.hasOwnProperty,B={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function ne(M,K,k){var se,Se={},xe=null,$e=null;if(K!=null)for(se in K.ref!==void 0&&($e=K.ref),K.key!==void 0&&(xe=""+K.key),K)ee.call(K,se)&&!G.hasOwnProperty(se)&&(Se[se]=K[se]);var Fe=arguments.length-2;if(Fe===1)Se.children=k;else if(1<Fe){for(var Ke=Array(Fe),ut=0;ut<Fe;ut++)Ke[ut]=arguments[ut+2];Se.children=Ke}if(M&&M.defaultProps)for(se in Fe=M.defaultProps,Fe)Se[se]===void 0&&(Se[se]=Fe[se]);return{$$typeof:e,type:M,key:xe,ref:$e,props:Se,_owner:B.current}}function Ee(M,K){return{$$typeof:e,type:M.type,key:K,ref:M.ref,props:M.props,_owner:M._owner}}function U(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function _e(M){var K={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(k){return K[k]})}var ue=/\/+/g;function Oe(M,K){return typeof M=="object"&&M!==null&&M.key!=null?_e(""+M.key):K.toString(36)}function he(M,K,k,se,Se){var xe=typeof M;(xe==="undefined"||xe==="boolean")&&(M=null);var $e=!1;if(M===null)$e=!0;else switch(xe){case"string":case"number":$e=!0;break;case"object":switch(M.$$typeof){case e:case t:$e=!0}}if($e)return $e=M,Se=Se($e),M=se===""?"."+Oe($e,0):se,V(Se)?(k="",M!=null&&(k=M.replace(ue,"$&/")+"/"),he(Se,K,k,"",function(ut){return ut})):Se!=null&&(U(Se)&&(Se=Ee(Se,k+(!Se.key||$e&&$e.key===Se.key?"":(""+Se.key).replace(ue,"$&/")+"/")+M)),K.push(Se)),1;if($e=0,se=se===""?".":se+":",V(M))for(var Fe=0;Fe<M.length;Fe++){xe=M[Fe];var Ke=se+Oe(xe,Fe);$e+=he(xe,K,k,Ke,Se)}else if(Ke=T(M),typeof Ke=="function")for(M=Ke.call(M),Fe=0;!(xe=M.next()).done;)xe=xe.value,Ke=se+Oe(xe,Fe++),$e+=he(xe,K,k,Ke,Se);else if(xe==="object")throw K=String(M),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return $e}function te(M,K,k){if(M==null)return M;var se=[],Se=0;return he(M,se,"","",function(xe){return K.call(k,xe,Se++)}),se}function we(M){if(M._status===-1){var K=M._result;K=K(),K.then(function(k){(M._status===0||M._status===-1)&&(M._status=1,M._result=k)},function(k){(M._status===0||M._status===-1)&&(M._status=2,M._result=k)}),M._status===-1&&(M._status=0,M._result=K)}if(M._status===1)return M._result.default;throw M._result}var Le={current:null},X={transition:null},Te={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:X,ReactCurrentOwner:B};function S(){throw Error("act(...) is not supported in production builds of React.")}return Ze.Children={map:te,forEach:function(M,K,k){te(M,function(){K.apply(this,arguments)},k)},count:function(M){var K=0;return te(M,function(){K++}),K},toArray:function(M){return te(M,function(K){return K})||[]},only:function(M){if(!U(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ze.Component=L,Ze.Fragment=r,Ze.Profiler=o,Ze.PureComponent=F,Ze.StrictMode=a,Ze.Suspense=h,Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Te,Ze.act=S,Ze.cloneElement=function(M,K,k){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var se=x({},M.props),Se=M.key,xe=M.ref,$e=M._owner;if(K!=null){if(K.ref!==void 0&&(xe=K.ref,$e=B.current),K.key!==void 0&&(Se=""+K.key),M.type&&M.type.defaultProps)var Fe=M.type.defaultProps;for(Ke in K)ee.call(K,Ke)&&!G.hasOwnProperty(Ke)&&(se[Ke]=K[Ke]===void 0&&Fe!==void 0?Fe[Ke]:K[Ke])}var Ke=arguments.length-2;if(Ke===1)se.children=k;else if(1<Ke){Fe=Array(Ke);for(var ut=0;ut<Ke;ut++)Fe[ut]=arguments[ut+2];se.children=Fe}return{$$typeof:e,type:M.type,key:Se,ref:xe,props:se,_owner:$e}},Ze.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:u,_context:M},M.Consumer=M},Ze.createElement=ne,Ze.createFactory=function(M){var K=ne.bind(null,M);return K.type=M,K},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(M){return{$$typeof:d,render:M}},Ze.isValidElement=U,Ze.lazy=function(M){return{$$typeof:b,_payload:{_status:-1,_result:M},_init:we}},Ze.memo=function(M,K){return{$$typeof:m,type:M,compare:K===void 0?null:K}},Ze.startTransition=function(M){var K=X.transition;X.transition={};try{M()}finally{X.transition=K}},Ze.unstable_act=S,Ze.useCallback=function(M,K){return Le.current.useCallback(M,K)},Ze.useContext=function(M){return Le.current.useContext(M)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(M){return Le.current.useDeferredValue(M)},Ze.useEffect=function(M,K){return Le.current.useEffect(M,K)},Ze.useId=function(){return Le.current.useId()},Ze.useImperativeHandle=function(M,K,k){return Le.current.useImperativeHandle(M,K,k)},Ze.useInsertionEffect=function(M,K){return Le.current.useInsertionEffect(M,K)},Ze.useLayoutEffect=function(M,K){return Le.current.useLayoutEffect(M,K)},Ze.useMemo=function(M,K){return Le.current.useMemo(M,K)},Ze.useReducer=function(M,K,k){return Le.current.useReducer(M,K,k)},Ze.useRef=function(M){return Le.current.useRef(M)},Ze.useState=function(M){return Le.current.useState(M)},Ze.useSyncExternalStore=function(M,K,k){return Le.current.useSyncExternalStore(M,K,k)},Ze.useTransition=function(){return Le.current.useTransition()},Ze.version="18.3.1",Ze}var Ip;function zc(){return Ip||(Ip=1,Ql.exports=eb()),Ql.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 vp;function tb(){if(vp)return Xa;vp=1;var e=zc(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(d,h,m){var b,E={},T=null,_=null;m!==void 0&&(T=""+m),h.key!==void 0&&(T=""+h.key),h.ref!==void 0&&(_=h.ref);for(b in h)a.call(h,b)&&!u.hasOwnProperty(b)&&(E[b]=h[b]);if(d&&d.defaultProps)for(b in h=d.defaultProps,h)E[b]===void 0&&(E[b]=h[b]);return{$$typeof:t,type:d,key:T,ref:_,props:E,_owner:o.current}}return Xa.Fragment=r,Xa.jsx=l,Xa.jsxs=l,Xa}var Op;function nb(){return Op||(Op=1,Vl.exports=tb()),Vl.exports}var C=nb(),J=zc();const rb=_s(J);var Mo={},Xl={exports:{}},Cn={},Zl={exports:{}},Jl={};/**
|
|
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 Rp;function ib(){return Rp||(Rp=1,(function(e){function t(X,Te){var S=X.length;X.push(Te);e:for(;0<S;){var M=S-1>>>1,K=X[M];if(0<o(K,Te))X[M]=Te,X[S]=K,S=M;else break e}}function r(X){return X.length===0?null:X[0]}function a(X){if(X.length===0)return null;var Te=X[0],S=X.pop();if(S!==Te){X[0]=S;e:for(var M=0,K=X.length,k=K>>>1;M<k;){var se=2*(M+1)-1,Se=X[se],xe=se+1,$e=X[xe];if(0>o(Se,S))xe<K&&0>o($e,Se)?(X[M]=$e,X[xe]=S,M=xe):(X[M]=Se,X[se]=S,M=se);else if(xe<K&&0>o($e,S))X[M]=$e,X[xe]=S,M=xe;else break e}}return Te}function o(X,Te){var S=X.sortIndex-Te.sortIndex;return S!==0?S:X.id-Te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var h=[],m=[],b=1,E=null,T=3,_=!1,x=!1,I=!1,L=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(X){for(var Te=r(m);Te!==null;){if(Te.callback===null)a(m);else if(Te.startTime<=X)a(m),Te.sortIndex=Te.expirationTime,t(h,Te);else break;Te=r(m)}}function V(X){if(I=!1,Y(X),!x)if(r(h)!==null)x=!0,we(ee);else{var Te=r(m);Te!==null&&Le(V,Te.startTime-X)}}function ee(X,Te){x=!1,I&&(I=!1,O(ne),ne=-1),_=!0;var S=T;try{for(Y(Te),E=r(h);E!==null&&(!(E.expirationTime>Te)||X&&!_e());){var M=E.callback;if(typeof M=="function"){E.callback=null,T=E.priorityLevel;var K=M(E.expirationTime<=Te);Te=e.unstable_now(),typeof K=="function"?E.callback=K:E===r(h)&&a(h),Y(Te)}else a(h);E=r(h)}if(E!==null)var k=!0;else{var se=r(m);se!==null&&Le(V,se.startTime-Te),k=!1}return k}finally{E=null,T=S,_=!1}}var B=!1,G=null,ne=-1,Ee=5,U=-1;function _e(){return!(e.unstable_now()-U<Ee)}function ue(){if(G!==null){var X=e.unstable_now();U=X;var Te=!0;try{Te=G(!0,X)}finally{Te?Oe():(B=!1,G=null)}}else B=!1}var Oe;if(typeof F=="function")Oe=function(){F(ue)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,te=he.port2;he.port1.onmessage=ue,Oe=function(){te.postMessage(null)}}else Oe=function(){L(ue,0)};function we(X){G=X,B||(B=!0,Oe())}function Le(X,Te){ne=L(function(){X(e.unstable_now())},Te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){x||_||(x=!0,we(ee))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(X){switch(T){case 1:case 2:case 3:var Te=3;break;default:Te=T}var S=T;T=Te;try{return X()}finally{T=S}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,Te){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var S=T;T=X;try{return Te()}finally{T=S}},e.unstable_scheduleCallback=function(X,Te,S){var M=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?M+S:M):S=M,X){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=S+K,X={id:b++,callback:Te,priorityLevel:X,startTime:S,expirationTime:K,sortIndex:-1},S>M?(X.sortIndex=S,t(m,X),r(h)===null&&X===r(m)&&(I?(O(ne),ne=-1):I=!0,Le(V,S-M))):(X.sortIndex=K,t(h,X),x||_||(x=!0,we(ee))),X},e.unstable_shouldYield=_e,e.unstable_wrapCallback=function(X){var Te=T;return function(){var S=T;T=Te;try{return X.apply(this,arguments)}finally{T=S}}}})(Jl)),Jl}var Lp;function ab(){return Lp||(Lp=1,Zl.exports=ib()),Zl.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 Dp;function sb(){if(Dp)return Cn;Dp=1;var e=zc(),t=ab();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,o={};function u(n,i){l(n,i),l(n+"Capture",i)}function l(n,i){for(o[n]=i,n=0;n<i.length;n++)a.add(i[n])}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]*$/,b={},E={};function T(n){return h.call(E,n)?!0:h.call(b,n)?!1:m.test(n)?E[n]=!0:(b[n]=!0,!1)}function _(n,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function x(n,i,s,c){if(i===null||typeof i>"u"||_(n,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function I(n,i,s,c,p,g,y){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=y}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){L[n]=new I(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];L[i]=new I(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){L[n]=new I(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){L[n]=new I(n,2,!1,n,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(n){L[n]=new I(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){L[n]=new I(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){L[n]=new I(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){L[n]=new I(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){L[n]=new I(n,5,!1,n.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function F(n){return n[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(n){var i=n.replace(O,F);L[i]=new I(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(O,F);L[i]=new I(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(O,F);L[i]=new I(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){L[n]=new I(n,1,!1,n.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(n){L[n]=new I(n,1,!1,n.toLowerCase(),null,!0,!0)});function Y(n,i,s,c){var p=L.hasOwnProperty(i)?L[i]:null;(p!==null?p.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(x(i,s,p,c)&&(s=null),c||p===null?T(i)&&(s===null?n.removeAttribute(i):n.setAttribute(i,""+s)):p.mustUseProperty?n[p.propertyName]=s===null?p.type===3?!1:"":s:(i=p.attributeName,c=p.attributeNamespace,s===null?n.removeAttribute(i):(p=p.type,s=p===3||p===4&&s===!0?"":""+s,c?n.setAttributeNS(c,i,s):n.setAttribute(i,s))))}var V=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ee=Symbol.for("react.element"),B=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),X=Symbol.iterator;function Te(n){return n===null||typeof n!="object"?null:(n=X&&n[X]||n["@@iterator"],typeof n=="function"?n:null)}var S=Object.assign,M;function K(n){if(M===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return`
|
|
34
|
+
`+M+n}var k=!1;function se(n,i){if(!n||k)return"";k=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(W){var c=W}Reflect.construct(n,[],i)}else{try{i.call()}catch(W){c=W}n.call(i.prototype)}else{try{throw Error()}catch(W){c=W}n()}}catch(W){if(W&&c&&typeof W.stack=="string"){for(var p=W.stack.split(`
|
|
35
|
+
`),g=c.stack.split(`
|
|
36
|
+
`),y=p.length-1,w=g.length-1;1<=y&&0<=w&&p[y]!==g[w];)w--;for(;1<=y&&0<=w;y--,w--)if(p[y]!==g[w]){if(y!==1||w!==1)do if(y--,w--,0>w||p[y]!==g[w]){var D=`
|
|
37
|
+
`+p[y].replace(" at new "," at ");return n.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",n.displayName)),D}while(1<=y&&0<=w);break}}}finally{k=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?K(n):""}function Se(n){switch(n.tag){case 5:return K(n.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return n=se(n.type,!1),n;case 11:return n=se(n.type.render,!1),n;case 1:return n=se(n.type,!0),n;default:return""}}function xe(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case G:return"Fragment";case B:return"Portal";case Ee:return"Profiler";case ne:return"StrictMode";case Oe:return"Suspense";case he:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case _e:return(n.displayName||"Context")+".Consumer";case U:return(n._context.displayName||"Context")+".Provider";case ue:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case te:return i=n.displayName||null,i!==null?i:xe(n.type)||"Memo";case we:i=n._payload,n=n._init;try{return xe(n(i))}catch{}}return null}function $e(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(i);case 8:return i===ne?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Fe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ke(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ut(n){var i=Ke(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,g=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return p.call(this)},set:function(y){c=""+y,g.call(this,y)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(y){c=""+y},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ht(n){n._valueTracker||(n._valueTracker=ut(n))}function Qn(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=Ke(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function zt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Un(n,i){var s=i.checked;return S({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function tn(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=Fe(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function We(n,i){i=i.checked,i!=null&&Y(n,"checked",i,!1)}function Dt(n,i){We(n,i);var s=Fe(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?dn(n,i.type,s):i.hasOwnProperty("defaultValue")&&dn(n,i.type,Fe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function $t(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function dn(n,i,s){(i!=="number"||zt(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var mt=Array.isArray;function On(n,i,s,c){if(n=n.options,i){i={};for(var p=0;p<s.length;p++)i["$"+s[p]]=!0;for(s=0;s<n.length;s++)p=i.hasOwnProperty("$"+n[s].value),n[s].selected!==p&&(n[s].selected=p),p&&c&&(n[s].defaultSelected=!0)}else{for(s=""+Fe(s),i=null,p=0;p<n.length;p++){if(n[p].value===s){n[p].selected=!0,c&&(n[p].defaultSelected=!0);return}i!==null||n[p].disabled||(i=n[p])}i!==null&&(i.selected=!0)}}function Rn(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return S({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function fn(n,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(mt(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}n._wrapperState={initialValue:Fe(s)}}function nn(n,i){var s=Fe(i.value),c=Fe(i.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),i.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),c!=null&&(n.defaultValue=""+c)}function Xn(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function Q(n){switch(n){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 fe(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?Q(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Be,je=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,p){MSApp.execUnsafeLocalFunction(function(){return n(i,s,c,p)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(Be=Be||document.createElement("div"),Be.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Be.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function Ve(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var dt={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},Mt=["Webkit","ms","Moz","O"];Object.keys(dt).forEach(function(n){Mt.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),dt[i]=dt[n]})});function Zt(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||dt.hasOwnProperty(n)&&dt[n]?(""+i).trim():i+"px"}function yn(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,p=Zt(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,p):n[s]=p}}var Hn=S({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 Ct(n,i){if(i){if(Hn[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function pn(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Pt=null;function _r(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ct=null,jt=null,be=null;function hn(n){if(n=Pa(n)){if(typeof ct!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Vs(i),ct(n.stateNode,n.type,i))}}function R(n){jt?be?be.push(n):be=[n]:jt=n}function $(){if(jt){var n=jt,i=be;if(be=jt=null,hn(n),i)for(n=0;n<i.length;n++)hn(i[n])}}function Z(n,i){return n(i)}function Ne(){}var it=!1;function Me(n,i,s){if(it)return n(i,s);it=!0;try{return Z(n,i,s)}finally{it=!1,(jt!==null||be!==null)&&(Ne(),$())}}function de(n,i){var s=n.stateNode;if(s===null)return null;var c=Vs(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var oe=!1;if(d)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){oe=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch{oe=!1}function Bt(n,i,s,c,p,g,y,w,D){var W=Array.prototype.slice.call(arguments,3);try{i.apply(s,W)}catch(ae){this.onError(ae)}}var gt=!1,or=null,Or=!1,ri=null,mu={onError:function(n){gt=!0,or=n}};function ga(n,i,s,c,p,g,y,w,D){gt=!1,or=null,Bt.apply(mu,arguments)}function gu(n,i,s,c,p,g,y,w,D){if(ga.apply(this,arguments),gt){if(gt){var W=or;gt=!1,or=null}else throw Error(r(198));Or||(Or=!0,ri=W)}}function Tr(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function Cs(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Ea(n){if(Tr(n)!==n)throw Error(r(188))}function wi(n){var i=n.alternate;if(!i){if(i=Tr(n),i===null)throw Error(r(188));return i!==n?null:n}for(var s=n,c=i;;){var p=s.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){s=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===s)return Ea(p),n;if(g===c)return Ea(p),i;g=g.sibling}throw Error(r(188))}if(s.return!==c.return)s=p,c=g;else{for(var y=!1,w=p.child;w;){if(w===s){y=!0,s=p,c=g;break}if(w===c){y=!0,c=p,s=g;break}w=w.sibling}if(!y){for(w=g.child;w;){if(w===s){y=!0,s=g,c=p;break}if(w===c){y=!0,c=g,s=p;break}w=w.sibling}if(!y)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:i}function ws(n){return n=wi(n),n!==null?Is(n):null}function Is(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Is(n);if(i!==null)return i;n=n.sibling}return null}var vs=t.unstable_scheduleCallback,Zn=t.unstable_cancelCallback,Os=t.unstable_shouldYield,Rs=t.unstable_requestPaint,St=t.unstable_now,Eu=t.unstable_getCurrentPriorityLevel,ba=t.unstable_ImmediatePriority,ii=t.unstable_UserBlockingPriority,Ii=t.unstable_NormalPriority,me=t.unstable_LowPriority,De=t.unstable_IdlePriority,Xe=null,et=null;function vt(n){if(et&&typeof et.onCommitFiberRoot=="function")try{et.onCommitFiberRoot(Xe,n,void 0,(n.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:mn,ur=Math.log,vi=Math.LN2;function mn(n){return n>>>=0,n===0?32:31-(ur(n)/vi|0)|0}var gn=64,ai=4194304;function Rr(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function si(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,p=n.suspendedLanes,g=n.pingedLanes,y=s&268435455;if(y!==0){var w=y&~p;w!==0?c=Rr(w):(g&=y,g!==0&&(c=Rr(g)))}else y=s&~p,y!==0?c=Rr(y):g!==0&&(c=Rr(g));if(c===0)return 0;if(i!==0&&i!==c&&(i&p)===0&&(p=c&-c,g=i&-i,p>=g||p===16&&(g&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)s=31-xt(i),p=1<<s,c|=n[s],i&=~p;return c}function bu(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 _u(n,i){for(var s=n.suspendedLanes,c=n.pingedLanes,p=n.expirationTimes,g=n.pendingLanes;0<g;){var y=31-xt(g),w=1<<y,D=p[y];D===-1?((w&s)===0||(w&c)!==0)&&(p[y]=bu(w,i)):D<=i&&(n.expiredLanes|=w),g&=~w}}function _a(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Ls(){var n=gn;return gn<<=1,(gn&4194240)===0&&(gn=64),n}function Lr(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function Dr(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-xt(i),n[i]=s}function zn(n,i){var s=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<s;){var p=31-xt(s),g=1<<p;i[p]=0,c[p]=-1,n[p]=-1,s&=~g}}function Ta(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var c=31-xt(s),p=1<<c;p&i|n[c]&i&&(n[c]|=i),s&=~p}}var st=0;function qe(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var ya,Ot,ft,oi,lr,ui=!1,Mr=[],ye=null,ke=null,Ye=null,nt=new Map,wt=new Map,Gt=[],Tu="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 Ds(n,i){switch(n){case"focusin":case"focusout":ye=null;break;case"dragenter":case"dragleave":ke=null;break;case"mouseover":case"mouseout":Ye=null;break;case"pointerover":case"pointerout":nt.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":wt.delete(i.pointerId)}}function Na(n,i,s,c,p,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},i!==null&&(i=Pa(i),i!==null&&Ot(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),n)}function Sg(n,i,s,c,p){switch(i){case"focusin":return ye=Na(ye,n,i,s,c,p),!0;case"dragenter":return ke=Na(ke,n,i,s,c,p),!0;case"mouseover":return Ye=Na(Ye,n,i,s,c,p),!0;case"pointerover":var g=p.pointerId;return nt.set(g,Na(nt.get(g)||null,n,i,s,c,p)),!0;case"gotpointercapture":return g=p.pointerId,wt.set(g,Na(wt.get(g)||null,n,i,s,c,p)),!0}return!1}function dd(n){var i=li(n.target);if(i!==null){var s=Tr(i);if(s!==null){if(i=s.tag,i===13){if(i=Cs(s),i!==null){n.blockedOn=i,lr(n.priority,function(){ft(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ms(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Nu(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Pt=c,s.target.dispatchEvent(c),Pt=null}else return i=Pa(s),i!==null&&Ot(i),n.blockedOn=s,!1;i.shift()}return!0}function fd(n,i,s){Ms(n)&&s.delete(i)}function xg(){ui=!1,ye!==null&&Ms(ye)&&(ye=null),ke!==null&&Ms(ke)&&(ke=null),Ye!==null&&Ms(Ye)&&(Ye=null),nt.forEach(fd),wt.forEach(fd)}function Sa(n,i){n.blockedOn===i&&(n.blockedOn=null,ui||(ui=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,xg)))}function xa(n){function i(p){return Sa(p,n)}if(0<Mr.length){Sa(Mr[0],n);for(var s=1;s<Mr.length;s++){var c=Mr[s];c.blockedOn===n&&(c.blockedOn=null)}}for(ye!==null&&Sa(ye,n),ke!==null&&Sa(ke,n),Ye!==null&&Sa(Ye,n),nt.forEach(i),wt.forEach(i),s=0;s<Gt.length;s++)c=Gt[s],c.blockedOn===n&&(c.blockedOn=null);for(;0<Gt.length&&(s=Gt[0],s.blockedOn===null);)dd(s),s.blockedOn===null&&Gt.shift()}var Oi=V.ReactCurrentBatchConfig,Ps=!0;function Ag(n,i,s,c){var p=st,g=Oi.transition;Oi.transition=null;try{st=1,yu(n,i,s,c)}finally{st=p,Oi.transition=g}}function kg(n,i,s,c){var p=st,g=Oi.transition;Oi.transition=null;try{st=4,yu(n,i,s,c)}finally{st=p,Oi.transition=g}}function yu(n,i,s,c){if(Ps){var p=Nu(n,i,s,c);if(p===null)Uu(n,i,c,Bs,s),Ds(n,c);else if(Sg(p,n,i,s,c))c.stopPropagation();else if(Ds(n,c),i&4&&-1<Tu.indexOf(n)){for(;p!==null;){var g=Pa(p);if(g!==null&&ya(g),g=Nu(n,i,s,c),g===null&&Uu(n,i,c,Bs,s),g===p)break;p=g}p!==null&&c.stopPropagation()}else Uu(n,i,c,null,s)}}var Bs=null;function Nu(n,i,s,c){if(Bs=null,n=_r(c),n=li(n),n!==null)if(i=Tr(n),i===null)n=null;else if(s=i.tag,s===13){if(n=Cs(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Bs=n,null}function pd(n){switch(n){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(Eu()){case ba:return 1;case ii:return 4;case Ii:case me:return 16;case De:return 536870912;default:return 16}default:return 16}}var Pr=null,Su=null,Fs=null;function hd(){if(Fs)return Fs;var n,i=Su,s=i.length,c,p="value"in Pr?Pr.value:Pr.textContent,g=p.length;for(n=0;n<s&&i[n]===p[n];n++);var y=s-n;for(c=1;c<=y&&i[s-c]===p[g-c];c++);return Fs=p.slice(n,1<c?1-c:void 0)}function Us(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Hs(){return!0}function md(){return!1}function Ln(n){function i(s,c,p,g,y){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=y,this.currentTarget=null;for(var w in n)n.hasOwnProperty(w)&&(s=n[w],this[w]=s?s(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Hs:md,this.isPropagationStopped=md,this}return S(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Hs)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Hs)},persist:function(){},isPersistent:Hs}),i}var Ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xu=Ln(Ri),Aa=S({},Ri,{view:0,detail:0}),Cg=Ln(Aa),Au,ku,ka,zs=S({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ka&&(ka&&n.type==="mousemove"?(Au=n.screenX-ka.screenX,ku=n.screenY-ka.screenY):ku=Au=0,ka=n),Au)},movementY:function(n){return"movementY"in n?n.movementY:ku}}),gd=Ln(zs),wg=S({},zs,{dataTransfer:0}),Ig=Ln(wg),vg=S({},Aa,{relatedTarget:0}),Cu=Ln(vg),Og=S({},Ri,{animationName:0,elapsedTime:0,pseudoElement:0}),Rg=Ln(Og),Lg=S({},Ri,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Dg=Ln(Lg),Mg=S({},Ri,{data:0}),Ed=Ln(Mg),Pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bg={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"},Fg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ug(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Fg[n])?!!i[n]:!1}function wu(){return Ug}var Hg=S({},Aa,{key:function(n){if(n.key){var i=Pg[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Us(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Bg[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wu,charCode:function(n){return n.type==="keypress"?Us(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Us(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),zg=Ln(Hg),$g=S({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bd=Ln($g),jg=S({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wu}),Yg=Ln(jg),Wg=S({},Ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gg=Ln(Wg),qg=S({},zs,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Kg=Ln(qg),Vg=[9,13,27,32],Iu=d&&"CompositionEvent"in window,Ca=null;d&&"documentMode"in document&&(Ca=document.documentMode);var Qg=d&&"TextEvent"in window&&!Ca,_d=d&&(!Iu||Ca&&8<Ca&&11>=Ca),Td=" ",yd=!1;function Nd(n,i){switch(n){case"keyup":return Vg.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sd(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Li=!1;function Xg(n,i){switch(n){case"compositionend":return Sd(i);case"keypress":return i.which!==32?null:(yd=!0,Td);case"textInput":return n=i.data,n===Td&&yd?null:n;default:return null}}function Zg(n,i){if(Li)return n==="compositionend"||!Iu&&Nd(n,i)?(n=hd(),Fs=Su=Pr=null,Li=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return _d&&i.locale!=="ko"?null:i.data;default:return null}}var Jg={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 xd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!Jg[n.type]:i==="textarea"}function Ad(n,i,s,c){R(c),i=Gs(i,"onChange"),0<i.length&&(s=new xu("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var wa=null,Ia=null;function eE(n){jd(n,0)}function $s(n){var i=Fi(n);if(Qn(i))return n}function tE(n,i){if(n==="change")return i}var kd=!1;if(d){var vu;if(d){var Ou="oninput"in document;if(!Ou){var Cd=document.createElement("div");Cd.setAttribute("oninput","return;"),Ou=typeof Cd.oninput=="function"}vu=Ou}else vu=!1;kd=vu&&(!document.documentMode||9<document.documentMode)}function wd(){wa&&(wa.detachEvent("onpropertychange",Id),Ia=wa=null)}function Id(n){if(n.propertyName==="value"&&$s(Ia)){var i=[];Ad(i,Ia,n,_r(n)),Me(eE,i)}}function nE(n,i,s){n==="focusin"?(wd(),wa=i,Ia=s,wa.attachEvent("onpropertychange",Id)):n==="focusout"&&wd()}function rE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $s(Ia)}function iE(n,i){if(n==="click")return $s(i)}function aE(n,i){if(n==="input"||n==="change")return $s(i)}function sE(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Jn=typeof Object.is=="function"?Object.is:sE;function va(n,i){if(Jn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var p=s[c];if(!h.call(i,p)||!Jn(n[p],i[p]))return!1}return!0}function vd(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Od(n,i){var s=vd(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=i&&c>=i)return{node:s,offset:i-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=vd(s)}}function Rd(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Rd(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Ld(){for(var n=window,i=zt();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=zt(n.document)}return i}function Ru(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function oE(n){var i=Ld(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&Rd(s.ownerDocument.documentElement,s)){if(c!==null&&Ru(s)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var p=s.textContent.length,g=Math.min(c.start,p);c=c.end===void 0?g:Math.min(c.end,p),!n.extend&&g>c&&(p=c,c=g,g=p),p=Od(s,g);var y=Od(s,c);p&&y&&(n.rangeCount!==1||n.anchorNode!==p.node||n.anchorOffset!==p.offset||n.focusNode!==y.node||n.focusOffset!==y.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),n.removeAllRanges(),g>c?(n.addRange(i),n.extend(y.node,y.offset)):(i.setEnd(y.node,y.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)n=i[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var uE=d&&"documentMode"in document&&11>=document.documentMode,Di=null,Lu=null,Oa=null,Du=!1;function Dd(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Du||Di==null||Di!==zt(c)||(c=Di,"selectionStart"in c&&Ru(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Oa&&va(Oa,c)||(Oa=c,c=Gs(Lu,"onSelect"),0<c.length&&(i=new xu("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=Di)))}function js(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var Mi={animationend:js("Animation","AnimationEnd"),animationiteration:js("Animation","AnimationIteration"),animationstart:js("Animation","AnimationStart"),transitionend:js("Transition","TransitionEnd")},Mu={},Md={};d&&(Md=document.createElement("div").style,"AnimationEvent"in window||(delete Mi.animationend.animation,delete Mi.animationiteration.animation,delete Mi.animationstart.animation),"TransitionEvent"in window||delete Mi.transitionend.transition);function Ys(n){if(Mu[n])return Mu[n];if(!Mi[n])return n;var i=Mi[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in Md)return Mu[n]=i[s];return n}var Pd=Ys("animationend"),Bd=Ys("animationiteration"),Fd=Ys("animationstart"),Ud=Ys("transitionend"),Hd=new Map,zd="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 Br(n,i){Hd.set(n,i),u(i,[n])}for(var Pu=0;Pu<zd.length;Pu++){var Bu=zd[Pu],lE=Bu.toLowerCase(),cE=Bu[0].toUpperCase()+Bu.slice(1);Br(lE,"on"+cE)}Br(Pd,"onAnimationEnd"),Br(Bd,"onAnimationIteration"),Br(Fd,"onAnimationStart"),Br("dblclick","onDoubleClick"),Br("focusin","onFocus"),Br("focusout","onBlur"),Br(Ud,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ra="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(" "),dE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ra));function $d(n,i,s){var c=n.type||"unknown-event";n.currentTarget=s,gu(c,i,void 0,n),n.currentTarget=null}function jd(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],p=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var y=c.length-1;0<=y;y--){var w=c[y],D=w.instance,W=w.currentTarget;if(w=w.listener,D!==g&&p.isPropagationStopped())break e;$d(p,w,W),g=D}else for(y=0;y<c.length;y++){if(w=c[y],D=w.instance,W=w.currentTarget,w=w.listener,D!==g&&p.isPropagationStopped())break e;$d(p,w,W),g=D}}}if(Or)throw n=ri,Or=!1,ri=null,n}function _t(n,i){var s=i[Wu];s===void 0&&(s=i[Wu]=new Set);var c=n+"__bubble";s.has(c)||(Yd(i,n,2,!1),s.add(c))}function Fu(n,i,s){var c=0;i&&(c|=4),Yd(s,n,c,i)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function La(n){if(!n[Ws]){n[Ws]=!0,a.forEach(function(s){s!=="selectionchange"&&(dE.has(s)||Fu(s,!1,n),Fu(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ws]||(i[Ws]=!0,Fu("selectionchange",!1,i))}}function Yd(n,i,s,c){switch(pd(i)){case 1:var p=Ag;break;case 4:p=kg;break;default:p=yu}s=p.bind(null,i,s,n),p=void 0,!oe||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),c?p!==void 0?n.addEventListener(i,s,{capture:!0,passive:p}):n.addEventListener(i,s,!0):p!==void 0?n.addEventListener(i,s,{passive:p}):n.addEventListener(i,s,!1)}function Uu(n,i,s,c,p){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var y=c.tag;if(y===3||y===4){var w=c.stateNode.containerInfo;if(w===p||w.nodeType===8&&w.parentNode===p)break;if(y===4)for(y=c.return;y!==null;){var D=y.tag;if((D===3||D===4)&&(D=y.stateNode.containerInfo,D===p||D.nodeType===8&&D.parentNode===p))return;y=y.return}for(;w!==null;){if(y=li(w),y===null)return;if(D=y.tag,D===5||D===6){c=g=y;continue e}w=w.parentNode}}c=c.return}Me(function(){var W=g,ae=_r(s),le=[];e:{var re=Hd.get(n);if(re!==void 0){var Ae=xu,Ie=n;switch(n){case"keypress":if(Us(s)===0)break e;case"keydown":case"keyup":Ae=zg;break;case"focusin":Ie="focus",Ae=Cu;break;case"focusout":Ie="blur",Ae=Cu;break;case"beforeblur":case"afterblur":Ae=Cu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ae=gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ae=Ig;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ae=Yg;break;case Pd:case Bd:case Fd:Ae=Rg;break;case Ud:Ae=Gg;break;case"scroll":Ae=Cg;break;case"wheel":Ae=Kg;break;case"copy":case"cut":case"paste":Ae=Dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ae=bd}var ve=(i&4)!==0,Rt=!ve&&n==="scroll",H=ve?re!==null?re+"Capture":null:re;ve=[];for(var P=W,j;P!==null;){j=P;var ge=j.stateNode;if(j.tag===5&&ge!==null&&(j=ge,H!==null&&(ge=de(P,H),ge!=null&&ve.push(Da(P,ge,j)))),Rt)break;P=P.return}0<ve.length&&(re=new Ae(re,Ie,null,s,ae),le.push({event:re,listeners:ve}))}}if((i&7)===0){e:{if(re=n==="mouseover"||n==="pointerover",Ae=n==="mouseout"||n==="pointerout",re&&s!==Pt&&(Ie=s.relatedTarget||s.fromElement)&&(li(Ie)||Ie[yr]))break e;if((Ae||re)&&(re=ae.window===ae?ae:(re=ae.ownerDocument)?re.defaultView||re.parentWindow:window,Ae?(Ie=s.relatedTarget||s.toElement,Ae=W,Ie=Ie?li(Ie):null,Ie!==null&&(Rt=Tr(Ie),Ie!==Rt||Ie.tag!==5&&Ie.tag!==6)&&(Ie=null)):(Ae=null,Ie=W),Ae!==Ie)){if(ve=gd,ge="onMouseLeave",H="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(ve=bd,ge="onPointerLeave",H="onPointerEnter",P="pointer"),Rt=Ae==null?re:Fi(Ae),j=Ie==null?re:Fi(Ie),re=new ve(ge,P+"leave",Ae,s,ae),re.target=Rt,re.relatedTarget=j,ge=null,li(ae)===W&&(ve=new ve(H,P+"enter",Ie,s,ae),ve.target=j,ve.relatedTarget=Rt,ge=ve),Rt=ge,Ae&&Ie)t:{for(ve=Ae,H=Ie,P=0,j=ve;j;j=Pi(j))P++;for(j=0,ge=H;ge;ge=Pi(ge))j++;for(;0<P-j;)ve=Pi(ve),P--;for(;0<j-P;)H=Pi(H),j--;for(;P--;){if(ve===H||H!==null&&ve===H.alternate)break t;ve=Pi(ve),H=Pi(H)}ve=null}else ve=null;Ae!==null&&Wd(le,re,Ae,ve,!1),Ie!==null&&Rt!==null&&Wd(le,Rt,Ie,ve,!0)}}e:{if(re=W?Fi(W):window,Ae=re.nodeName&&re.nodeName.toLowerCase(),Ae==="select"||Ae==="input"&&re.type==="file")var Re=tE;else if(xd(re))if(kd)Re=aE;else{Re=rE;var Ue=nE}else(Ae=re.nodeName)&&Ae.toLowerCase()==="input"&&(re.type==="checkbox"||re.type==="radio")&&(Re=iE);if(Re&&(Re=Re(n,W))){Ad(le,Re,s,ae);break e}Ue&&Ue(n,re,W),n==="focusout"&&(Ue=re._wrapperState)&&Ue.controlled&&re.type==="number"&&dn(re,"number",re.value)}switch(Ue=W?Fi(W):window,n){case"focusin":(xd(Ue)||Ue.contentEditable==="true")&&(Di=Ue,Lu=W,Oa=null);break;case"focusout":Oa=Lu=Di=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,Dd(le,s,ae);break;case"selectionchange":if(uE)break;case"keydown":case"keyup":Dd(le,s,ae)}var He;if(Iu)e:{switch(n){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Li?Nd(n,s)&&(Ge="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ge="onCompositionStart");Ge&&(_d&&s.locale!=="ko"&&(Li||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Li&&(He=hd()):(Pr=ae,Su="value"in Pr?Pr.value:Pr.textContent,Li=!0)),Ue=Gs(W,Ge),0<Ue.length&&(Ge=new Ed(Ge,n,null,s,ae),le.push({event:Ge,listeners:Ue}),He?Ge.data=He:(He=Sd(s),He!==null&&(Ge.data=He)))),(He=Qg?Xg(n,s):Zg(n,s))&&(W=Gs(W,"onBeforeInput"),0<W.length&&(ae=new Ed("onBeforeInput","beforeinput",null,s,ae),le.push({event:ae,listeners:W}),ae.data=He))}jd(le,i)})}function Da(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Gs(n,i){for(var s=i+"Capture",c=[];n!==null;){var p=n,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=de(n,s),g!=null&&c.unshift(Da(n,g,p)),g=de(n,i),g!=null&&c.push(Da(n,g,p))),n=n.return}return c}function Pi(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Wd(n,i,s,c,p){for(var g=i._reactName,y=[];s!==null&&s!==c;){var w=s,D=w.alternate,W=w.stateNode;if(D!==null&&D===c)break;w.tag===5&&W!==null&&(w=W,p?(D=de(s,g),D!=null&&y.unshift(Da(s,D,w))):p||(D=de(s,g),D!=null&&y.push(Da(s,D,w)))),s=s.return}y.length!==0&&n.push({event:i,listeners:y})}var fE=/\r\n?/g,pE=/\u0000|\uFFFD/g;function Gd(n){return(typeof n=="string"?n:""+n).replace(fE,`
|
|
38
|
+
`).replace(pE,"")}function qs(n,i,s){if(i=Gd(i),Gd(n)!==i&&s)throw Error(r(425))}function Ks(){}var Hu=null,zu=null;function $u(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ju=typeof setTimeout=="function"?setTimeout:void 0,hE=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,mE=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(n){return qd.resolve(null).then(n).catch(gE)}:ju;function gE(n){setTimeout(function(){throw n})}function Yu(n,i){var s=i,c=0;do{var p=s.nextSibling;if(n.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"){if(c===0){n.removeChild(p),xa(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=p}while(s);xa(i)}function Fr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function Kd(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var Bi=Math.random().toString(36).slice(2),cr="__reactFiber$"+Bi,Ma="__reactProps$"+Bi,yr="__reactContainer$"+Bi,Wu="__reactEvents$"+Bi,EE="__reactListeners$"+Bi,bE="__reactHandles$"+Bi;function li(n){var i=n[cr];if(i)return i;for(var s=n.parentNode;s;){if(i=s[yr]||s[cr]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=Kd(n);n!==null;){if(s=n[cr])return s;n=Kd(n)}return i}n=s,s=n.parentNode}return null}function Pa(n){return n=n[cr]||n[yr],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Fi(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Vs(n){return n[Ma]||null}var Gu=[],Ui=-1;function Ur(n){return{current:n}}function Tt(n){0>Ui||(n.current=Gu[Ui],Gu[Ui]=null,Ui--)}function Et(n,i){Ui++,Gu[Ui]=n.current,n.current=i}var Hr={},rn=Ur(Hr),Nn=Ur(!1),ci=Hr;function Hi(n,i){var s=n.type.contextTypes;if(!s)return Hr;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in s)p[g]=i[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=p),p}function Sn(n){return n=n.childContextTypes,n!=null}function Qs(){Tt(Nn),Tt(rn)}function Vd(n,i,s){if(rn.current!==Hr)throw Error(r(168));Et(rn,i),Et(Nn,s)}function Qd(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var p in c)if(!(p in i))throw Error(r(108,$e(n)||"Unknown",p));return S({},s,c)}function Xs(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Hr,ci=rn.current,Et(rn,n),Et(Nn,Nn.current),!0}function Xd(n,i,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=Qd(n,i,ci),c.__reactInternalMemoizedMergedChildContext=n,Tt(Nn),Tt(rn),Et(rn,n)):Tt(Nn),Et(Nn,s)}var Nr=null,Zs=!1,qu=!1;function Zd(n){Nr===null?Nr=[n]:Nr.push(n)}function _E(n){Zs=!0,Zd(n)}function zr(){if(!qu&&Nr!==null){qu=!0;var n=0,i=st;try{var s=Nr;for(st=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}Nr=null,Zs=!1}catch(p){throw Nr!==null&&(Nr=Nr.slice(n+1)),vs(ba,zr),p}finally{st=i,qu=!1}}return null}var zi=[],$i=0,Js=null,eo=0,$n=[],jn=0,di=null,Sr=1,xr="";function fi(n,i){zi[$i++]=eo,zi[$i++]=Js,Js=n,eo=i}function Jd(n,i,s){$n[jn++]=Sr,$n[jn++]=xr,$n[jn++]=di,di=n;var c=Sr;n=xr;var p=32-xt(c)-1;c&=~(1<<p),s+=1;var g=32-xt(i)+p;if(30<g){var y=p-p%5;g=(c&(1<<y)-1).toString(32),c>>=y,p-=y,Sr=1<<32-xt(i)+p|s<<p|c,xr=g+n}else Sr=1<<g|s<<p|c,xr=n}function Ku(n){n.return!==null&&(fi(n,1),Jd(n,1,0))}function Vu(n){for(;n===Js;)Js=zi[--$i],zi[$i]=null,eo=zi[--$i],zi[$i]=null;for(;n===di;)di=$n[--jn],$n[jn]=null,xr=$n[--jn],$n[jn]=null,Sr=$n[--jn],$n[jn]=null}var Dn=null,Mn=null,yt=!1,er=null;function ef(n,i){var s=qn(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function tf(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Dn=n,Mn=Fr(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Dn=n,Mn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=di!==null?{id:Sr,overflow:xr}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=qn(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Dn=n,Mn=null,!0):!1;default:return!1}}function Qu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Xu(n){if(yt){var i=Mn;if(i){var s=i;if(!tf(n,i)){if(Qu(n))throw Error(r(418));i=Fr(s.nextSibling);var c=Dn;i&&tf(n,i)?ef(c,s):(n.flags=n.flags&-4097|2,yt=!1,Dn=n)}}else{if(Qu(n))throw Error(r(418));n.flags=n.flags&-4097|2,yt=!1,Dn=n}}}function nf(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Dn=n}function to(n){if(n!==Dn)return!1;if(!yt)return nf(n),yt=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!$u(n.type,n.memoizedProps)),i&&(i=Mn)){if(Qu(n))throw rf(),Error(r(418));for(;i;)ef(n,i),i=Fr(i.nextSibling)}if(nf(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(i===0){Mn=Fr(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}n=n.nextSibling}Mn=null}}else Mn=Dn?Fr(n.stateNode.nextSibling):null;return!0}function rf(){for(var n=Mn;n;)n=Fr(n.nextSibling)}function ji(){Mn=Dn=null,yt=!1}function Zu(n){er===null?er=[n]:er.push(n)}var TE=V.ReactCurrentBatchConfig;function Ba(n,i,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,n));var p=c,g=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(y){var w=p.refs;y===null?delete w[g]:w[g]=y},i._stringRef=g,i)}if(typeof n!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,n))}return n}function no(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function af(n){var i=n._init;return i(n._payload)}function sf(n){function i(H,P){if(n){var j=H.deletions;j===null?(H.deletions=[P],H.flags|=16):j.push(P)}}function s(H,P){if(!n)return null;for(;P!==null;)i(H,P),P=P.sibling;return null}function c(H,P){for(H=new Map;P!==null;)P.key!==null?H.set(P.key,P):H.set(P.index,P),P=P.sibling;return H}function p(H,P){return H=Vr(H,P),H.index=0,H.sibling=null,H}function g(H,P,j){return H.index=j,n?(j=H.alternate,j!==null?(j=j.index,j<P?(H.flags|=2,P):j):(H.flags|=2,P)):(H.flags|=1048576,P)}function y(H){return n&&H.alternate===null&&(H.flags|=2),H}function w(H,P,j,ge){return P===null||P.tag!==6?(P=jl(j,H.mode,ge),P.return=H,P):(P=p(P,j),P.return=H,P)}function D(H,P,j,ge){var Re=j.type;return Re===G?ae(H,P,j.props.children,ge,j.key):P!==null&&(P.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===we&&af(Re)===P.type)?(ge=p(P,j.props),ge.ref=Ba(H,P,j),ge.return=H,ge):(ge=Co(j.type,j.key,j.props,null,H.mode,ge),ge.ref=Ba(H,P,j),ge.return=H,ge)}function W(H,P,j,ge){return P===null||P.tag!==4||P.stateNode.containerInfo!==j.containerInfo||P.stateNode.implementation!==j.implementation?(P=Yl(j,H.mode,ge),P.return=H,P):(P=p(P,j.children||[]),P.return=H,P)}function ae(H,P,j,ge,Re){return P===null||P.tag!==7?(P=Ti(j,H.mode,ge,Re),P.return=H,P):(P=p(P,j),P.return=H,P)}function le(H,P,j){if(typeof P=="string"&&P!==""||typeof P=="number")return P=jl(""+P,H.mode,j),P.return=H,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ee:return j=Co(P.type,P.key,P.props,null,H.mode,j),j.ref=Ba(H,null,P),j.return=H,j;case B:return P=Yl(P,H.mode,j),P.return=H,P;case we:var ge=P._init;return le(H,ge(P._payload),j)}if(mt(P)||Te(P))return P=Ti(P,H.mode,j,null),P.return=H,P;no(H,P)}return null}function re(H,P,j,ge){var Re=P!==null?P.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return Re!==null?null:w(H,P,""+j,ge);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case ee:return j.key===Re?D(H,P,j,ge):null;case B:return j.key===Re?W(H,P,j,ge):null;case we:return Re=j._init,re(H,P,Re(j._payload),ge)}if(mt(j)||Te(j))return Re!==null?null:ae(H,P,j,ge,null);no(H,j)}return null}function Ae(H,P,j,ge,Re){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return H=H.get(j)||null,w(P,H,""+ge,Re);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case ee:return H=H.get(ge.key===null?j:ge.key)||null,D(P,H,ge,Re);case B:return H=H.get(ge.key===null?j:ge.key)||null,W(P,H,ge,Re);case we:var Ue=ge._init;return Ae(H,P,j,Ue(ge._payload),Re)}if(mt(ge)||Te(ge))return H=H.get(j)||null,ae(P,H,ge,Re,null);no(P,ge)}return null}function Ie(H,P,j,ge){for(var Re=null,Ue=null,He=P,Ge=P=0,Vt=null;He!==null&&Ge<j.length;Ge++){He.index>Ge?(Vt=He,He=null):Vt=He.sibling;var lt=re(H,He,j[Ge],ge);if(lt===null){He===null&&(He=Vt);break}n&&He&<.alternate===null&&i(H,He),P=g(lt,P,Ge),Ue===null?Re=lt:Ue.sibling=lt,Ue=lt,He=Vt}if(Ge===j.length)return s(H,He),yt&&fi(H,Ge),Re;if(He===null){for(;Ge<j.length;Ge++)He=le(H,j[Ge],ge),He!==null&&(P=g(He,P,Ge),Ue===null?Re=He:Ue.sibling=He,Ue=He);return yt&&fi(H,Ge),Re}for(He=c(H,He);Ge<j.length;Ge++)Vt=Ae(He,H,Ge,j[Ge],ge),Vt!==null&&(n&&Vt.alternate!==null&&He.delete(Vt.key===null?Ge:Vt.key),P=g(Vt,P,Ge),Ue===null?Re=Vt:Ue.sibling=Vt,Ue=Vt);return n&&He.forEach(function(Qr){return i(H,Qr)}),yt&&fi(H,Ge),Re}function ve(H,P,j,ge){var Re=Te(j);if(typeof Re!="function")throw Error(r(150));if(j=Re.call(j),j==null)throw Error(r(151));for(var Ue=Re=null,He=P,Ge=P=0,Vt=null,lt=j.next();He!==null&&!lt.done;Ge++,lt=j.next()){He.index>Ge?(Vt=He,He=null):Vt=He.sibling;var Qr=re(H,He,lt.value,ge);if(Qr===null){He===null&&(He=Vt);break}n&&He&&Qr.alternate===null&&i(H,He),P=g(Qr,P,Ge),Ue===null?Re=Qr:Ue.sibling=Qr,Ue=Qr,He=Vt}if(lt.done)return s(H,He),yt&&fi(H,Ge),Re;if(He===null){for(;!lt.done;Ge++,lt=j.next())lt=le(H,lt.value,ge),lt!==null&&(P=g(lt,P,Ge),Ue===null?Re=lt:Ue.sibling=lt,Ue=lt);return yt&&fi(H,Ge),Re}for(He=c(H,He);!lt.done;Ge++,lt=j.next())lt=Ae(He,H,Ge,lt.value,ge),lt!==null&&(n&<.alternate!==null&&He.delete(lt.key===null?Ge:lt.key),P=g(lt,P,Ge),Ue===null?Re=lt:Ue.sibling=lt,Ue=lt);return n&&He.forEach(function(JE){return i(H,JE)}),yt&&fi(H,Ge),Re}function Rt(H,P,j,ge){if(typeof j=="object"&&j!==null&&j.type===G&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case ee:e:{for(var Re=j.key,Ue=P;Ue!==null;){if(Ue.key===Re){if(Re=j.type,Re===G){if(Ue.tag===7){s(H,Ue.sibling),P=p(Ue,j.props.children),P.return=H,H=P;break e}}else if(Ue.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===we&&af(Re)===Ue.type){s(H,Ue.sibling),P=p(Ue,j.props),P.ref=Ba(H,Ue,j),P.return=H,H=P;break e}s(H,Ue);break}else i(H,Ue);Ue=Ue.sibling}j.type===G?(P=Ti(j.props.children,H.mode,ge,j.key),P.return=H,H=P):(ge=Co(j.type,j.key,j.props,null,H.mode,ge),ge.ref=Ba(H,P,j),ge.return=H,H=ge)}return y(H);case B:e:{for(Ue=j.key;P!==null;){if(P.key===Ue)if(P.tag===4&&P.stateNode.containerInfo===j.containerInfo&&P.stateNode.implementation===j.implementation){s(H,P.sibling),P=p(P,j.children||[]),P.return=H,H=P;break e}else{s(H,P);break}else i(H,P);P=P.sibling}P=Yl(j,H.mode,ge),P.return=H,H=P}return y(H);case we:return Ue=j._init,Rt(H,P,Ue(j._payload),ge)}if(mt(j))return Ie(H,P,j,ge);if(Te(j))return ve(H,P,j,ge);no(H,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,P!==null&&P.tag===6?(s(H,P.sibling),P=p(P,j),P.return=H,H=P):(s(H,P),P=jl(j,H.mode,ge),P.return=H,H=P),y(H)):s(H,P)}return Rt}var Yi=sf(!0),of=sf(!1),ro=Ur(null),io=null,Wi=null,Ju=null;function el(){Ju=Wi=io=null}function tl(n){var i=ro.current;Tt(ro),n._currentValue=i}function nl(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function Gi(n,i){io=n,Ju=Wi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(xn=!0),n.firstContext=null)}function Yn(n){var i=n._currentValue;if(Ju!==n)if(n={context:n,memoizedValue:i,next:null},Wi===null){if(io===null)throw Error(r(308));Wi=n,io.dependencies={lanes:0,firstContext:n}}else Wi=Wi.next=n;return i}var pi=null;function rl(n){pi===null?pi=[n]:pi.push(n)}function uf(n,i,s,c){var p=i.interleaved;return p===null?(s.next=s,rl(i)):(s.next=p.next,p.next=s),i.interleaved=s,Ar(n,c)}function Ar(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var $r=!1;function il(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lf(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function kr(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function jr(n,i,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(ot&2)!==0){var p=c.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),c.pending=i,Ar(n,s)}return p=c.interleaved,p===null?(i.next=i,rl(c)):(i.next=p.next,p.next=i),c.interleaved=i,Ar(n,s)}function ao(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Ta(n,s)}}function cf(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var p=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var y={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?p=g=y:g=g.next=y,s=s.next}while(s!==null);g===null?p=g=i:g=g.next=i}else p=g=i;s={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function so(n,i,s,c){var p=n.updateQueue;$r=!1;var g=p.firstBaseUpdate,y=p.lastBaseUpdate,w=p.shared.pending;if(w!==null){p.shared.pending=null;var D=w,W=D.next;D.next=null,y===null?g=W:y.next=W,y=D;var ae=n.alternate;ae!==null&&(ae=ae.updateQueue,w=ae.lastBaseUpdate,w!==y&&(w===null?ae.firstBaseUpdate=W:w.next=W,ae.lastBaseUpdate=D))}if(g!==null){var le=p.baseState;y=0,ae=W=D=null,w=g;do{var re=w.lane,Ae=w.eventTime;if((c&re)===re){ae!==null&&(ae=ae.next={eventTime:Ae,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Ie=n,ve=w;switch(re=i,Ae=s,ve.tag){case 1:if(Ie=ve.payload,typeof Ie=="function"){le=Ie.call(Ae,le,re);break e}le=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=ve.payload,re=typeof Ie=="function"?Ie.call(Ae,le,re):Ie,re==null)break e;le=S({},le,re);break e;case 2:$r=!0}}w.callback!==null&&w.lane!==0&&(n.flags|=64,re=p.effects,re===null?p.effects=[w]:re.push(w))}else Ae={eventTime:Ae,lane:re,tag:w.tag,payload:w.payload,callback:w.callback,next:null},ae===null?(W=ae=Ae,D=le):ae=ae.next=Ae,y|=re;if(w=w.next,w===null){if(w=p.shared.pending,w===null)break;re=w,w=re.next,re.next=null,p.lastBaseUpdate=re,p.shared.pending=null}}while(!0);if(ae===null&&(D=le),p.baseState=D,p.firstBaseUpdate=W,p.lastBaseUpdate=ae,i=p.shared.interleaved,i!==null){p=i;do y|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);gi|=y,n.lanes=y,n.memoizedState=le}}function df(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],p=c.callback;if(p!==null){if(c.callback=null,c=s,typeof p!="function")throw Error(r(191,p));p.call(c)}}}var Fa={},dr=Ur(Fa),Ua=Ur(Fa),Ha=Ur(Fa);function hi(n){if(n===Fa)throw Error(r(174));return n}function al(n,i){switch(Et(Ha,i),Et(Ua,n),Et(dr,Fa),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:fe(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=fe(i,n)}Tt(dr),Et(dr,i)}function qi(){Tt(dr),Tt(Ua),Tt(Ha)}function ff(n){hi(Ha.current);var i=hi(dr.current),s=fe(i,n.type);i!==s&&(Et(Ua,n),Et(dr,s))}function sl(n){Ua.current===n&&(Tt(dr),Tt(Ua))}var At=Ur(0);function oo(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ol=[];function ul(){for(var n=0;n<ol.length;n++)ol[n]._workInProgressVersionPrimary=null;ol.length=0}var uo=V.ReactCurrentDispatcher,ll=V.ReactCurrentBatchConfig,mi=0,kt=null,Yt=null,qt=null,lo=!1,za=!1,$a=0,yE=0;function an(){throw Error(r(321))}function cl(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!Jn(n[s],i[s]))return!1;return!0}function dl(n,i,s,c,p,g){if(mi=g,kt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,uo.current=n===null||n.memoizedState===null?AE:kE,n=s(c,p),za){g=0;do{if(za=!1,$a=0,25<=g)throw Error(r(301));g+=1,qt=Yt=null,i.updateQueue=null,uo.current=CE,n=s(c,p)}while(za)}if(uo.current=po,i=Yt!==null&&Yt.next!==null,mi=0,qt=Yt=kt=null,lo=!1,i)throw Error(r(300));return n}function fl(){var n=$a!==0;return $a=0,n}function fr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?kt.memoizedState=qt=n:qt=qt.next=n,qt}function Wn(){if(Yt===null){var n=kt.alternate;n=n!==null?n.memoizedState:null}else n=Yt.next;var i=qt===null?kt.memoizedState:qt.next;if(i!==null)qt=i,Yt=n;else{if(n===null)throw Error(r(310));Yt=n,n={memoizedState:Yt.memoizedState,baseState:Yt.baseState,baseQueue:Yt.baseQueue,queue:Yt.queue,next:null},qt===null?kt.memoizedState=qt=n:qt=qt.next=n}return qt}function ja(n,i){return typeof i=="function"?i(n):i}function pl(n){var i=Wn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=Yt,p=c.baseQueue,g=s.pending;if(g!==null){if(p!==null){var y=p.next;p.next=g.next,g.next=y}c.baseQueue=p=g,s.pending=null}if(p!==null){g=p.next,c=c.baseState;var w=y=null,D=null,W=g;do{var ae=W.lane;if((mi&ae)===ae)D!==null&&(D=D.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),c=W.hasEagerState?W.eagerState:n(c,W.action);else{var le={lane:ae,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};D===null?(w=D=le,y=c):D=D.next=le,kt.lanes|=ae,gi|=ae}W=W.next}while(W!==null&&W!==g);D===null?y=c:D.next=w,Jn(c,i.memoizedState)||(xn=!0),i.memoizedState=c,i.baseState=y,i.baseQueue=D,s.lastRenderedState=c}if(n=s.interleaved,n!==null){p=n;do g=p.lane,kt.lanes|=g,gi|=g,p=p.next;while(p!==n)}else p===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function hl(n){var i=Wn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=s.dispatch,p=s.pending,g=i.memoizedState;if(p!==null){s.pending=null;var y=p=p.next;do g=n(g,y.action),y=y.next;while(y!==p);Jn(g,i.memoizedState)||(xn=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,c]}function pf(){}function hf(n,i){var s=kt,c=Wn(),p=i(),g=!Jn(c.memoizedState,p);if(g&&(c.memoizedState=p,xn=!0),c=c.queue,ml(Ef.bind(null,s,c,n),[n]),c.getSnapshot!==i||g||qt!==null&&qt.memoizedState.tag&1){if(s.flags|=2048,Ya(9,gf.bind(null,s,c,p,i),void 0,null),Kt===null)throw Error(r(349));(mi&30)!==0||mf(s,i,p)}return p}function mf(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=kt.updateQueue,i===null?(i={lastEffect:null,stores:null},kt.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function gf(n,i,s,c){i.value=s,i.getSnapshot=c,bf(i)&&_f(n)}function Ef(n,i,s){return s(function(){bf(i)&&_f(n)})}function bf(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!Jn(n,s)}catch{return!0}}function _f(n){var i=Ar(n,1);i!==null&&ir(i,n,1,-1)}function Tf(n){var i=fr();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:n},i.queue=n,n=n.dispatch=xE.bind(null,kt,n),[i.memoizedState,n]}function Ya(n,i,s,c){return n={tag:n,create:i,destroy:s,deps:c,next:null},i=kt.updateQueue,i===null?(i={lastEffect:null,stores:null},kt.updateQueue=i,i.lastEffect=n.next=n):(s=i.lastEffect,s===null?i.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,i.lastEffect=n)),n}function yf(){return Wn().memoizedState}function co(n,i,s,c){var p=fr();kt.flags|=n,p.memoizedState=Ya(1|i,s,void 0,c===void 0?null:c)}function fo(n,i,s,c){var p=Wn();c=c===void 0?null:c;var g=void 0;if(Yt!==null){var y=Yt.memoizedState;if(g=y.destroy,c!==null&&cl(c,y.deps)){p.memoizedState=Ya(i,s,g,c);return}}kt.flags|=n,p.memoizedState=Ya(1|i,s,g,c)}function Nf(n,i){return co(8390656,8,n,i)}function ml(n,i){return fo(2048,8,n,i)}function Sf(n,i){return fo(4,2,n,i)}function xf(n,i){return fo(4,4,n,i)}function Af(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function kf(n,i,s){return s=s!=null?s.concat([n]):null,fo(4,4,Af.bind(null,i,n),s)}function gl(){}function Cf(n,i){var s=Wn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&cl(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function wf(n,i){var s=Wn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&cl(i,c[1])?c[0]:(n=n(),s.memoizedState=[n,i],n)}function If(n,i,s){return(mi&21)===0?(n.baseState&&(n.baseState=!1,xn=!0),n.memoizedState=s):(Jn(s,i)||(s=Ls(),kt.lanes|=s,gi|=s,n.baseState=!0),i)}function NE(n,i){var s=st;st=s!==0&&4>s?s:4,n(!0);var c=ll.transition;ll.transition={};try{n(!1),i()}finally{st=s,ll.transition=c}}function vf(){return Wn().memoizedState}function SE(n,i,s){var c=qr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Of(n))Rf(i,s);else if(s=uf(n,i,s,c),s!==null){var p=bn();ir(s,n,c,p),Lf(s,i,c)}}function xE(n,i,s){var c=qr(n),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Of(n))Rf(i,p);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var y=i.lastRenderedState,w=g(y,s);if(p.hasEagerState=!0,p.eagerState=w,Jn(w,y)){var D=i.interleaved;D===null?(p.next=p,rl(i)):(p.next=D.next,D.next=p),i.interleaved=p;return}}catch{}finally{}s=uf(n,i,p,c),s!==null&&(p=bn(),ir(s,n,c,p),Lf(s,i,c))}}function Of(n){var i=n.alternate;return n===kt||i!==null&&i===kt}function Rf(n,i){za=lo=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function Lf(n,i,s){if((s&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Ta(n,s)}}var po={readContext:Yn,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useInsertionEffect:an,useLayoutEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useMutableSource:an,useSyncExternalStore:an,useId:an,unstable_isNewReconciler:!1},AE={readContext:Yn,useCallback:function(n,i){return fr().memoizedState=[n,i===void 0?null:i],n},useContext:Yn,useEffect:Nf,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,co(4194308,4,Af.bind(null,i,n),s)},useLayoutEffect:function(n,i){return co(4194308,4,n,i)},useInsertionEffect:function(n,i){return co(4,2,n,i)},useMemo:function(n,i){var s=fr();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=fr();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=SE.bind(null,kt,n),[c.memoizedState,n]},useRef:function(n){var i=fr();return n={current:n},i.memoizedState=n},useState:Tf,useDebugValue:gl,useDeferredValue:function(n){return fr().memoizedState=n},useTransition:function(){var n=Tf(!1),i=n[0];return n=NE.bind(null,n[1]),fr().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=kt,p=fr();if(yt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),Kt===null)throw Error(r(349));(mi&30)!==0||mf(c,i,s)}p.memoizedState=s;var g={value:s,getSnapshot:i};return p.queue=g,Nf(Ef.bind(null,c,g,n),[n]),c.flags|=2048,Ya(9,gf.bind(null,c,g,s,i),void 0,null),s},useId:function(){var n=fr(),i=Kt.identifierPrefix;if(yt){var s=xr,c=Sr;s=(c&~(1<<32-xt(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=$a++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=yE++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},kE={readContext:Yn,useCallback:Cf,useContext:Yn,useEffect:ml,useImperativeHandle:kf,useInsertionEffect:Sf,useLayoutEffect:xf,useMemo:wf,useReducer:pl,useRef:yf,useState:function(){return pl(ja)},useDebugValue:gl,useDeferredValue:function(n){var i=Wn();return If(i,Yt.memoizedState,n)},useTransition:function(){var n=pl(ja)[0],i=Wn().memoizedState;return[n,i]},useMutableSource:pf,useSyncExternalStore:hf,useId:vf,unstable_isNewReconciler:!1},CE={readContext:Yn,useCallback:Cf,useContext:Yn,useEffect:ml,useImperativeHandle:kf,useInsertionEffect:Sf,useLayoutEffect:xf,useMemo:wf,useReducer:hl,useRef:yf,useState:function(){return hl(ja)},useDebugValue:gl,useDeferredValue:function(n){var i=Wn();return Yt===null?i.memoizedState=n:If(i,Yt.memoizedState,n)},useTransition:function(){var n=hl(ja)[0],i=Wn().memoizedState;return[n,i]},useMutableSource:pf,useSyncExternalStore:hf,useId:vf,unstable_isNewReconciler:!1};function tr(n,i){if(n&&n.defaultProps){i=S({},i),n=n.defaultProps;for(var s in n)i[s]===void 0&&(i[s]=n[s]);return i}return i}function El(n,i,s,c){i=n.memoizedState,s=s(c,i),s=s==null?i:S({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var ho={isMounted:function(n){return(n=n._reactInternals)?Tr(n)===n:!1},enqueueSetState:function(n,i,s){n=n._reactInternals;var c=bn(),p=qr(n),g=kr(c,p);g.payload=i,s!=null&&(g.callback=s),i=jr(n,g,p),i!==null&&(ir(i,n,p,c),ao(i,n,p))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var c=bn(),p=qr(n),g=kr(c,p);g.tag=1,g.payload=i,s!=null&&(g.callback=s),i=jr(n,g,p),i!==null&&(ir(i,n,p,c),ao(i,n,p))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=bn(),c=qr(n),p=kr(s,c);p.tag=2,i!=null&&(p.callback=i),i=jr(n,p,c),i!==null&&(ir(i,n,c,s),ao(i,n,c))}};function Df(n,i,s,c,p,g,y){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,y):i.prototype&&i.prototype.isPureReactComponent?!va(s,c)||!va(p,g):!0}function Mf(n,i,s){var c=!1,p=Hr,g=i.contextType;return typeof g=="object"&&g!==null?g=Yn(g):(p=Sn(i)?ci:rn.current,c=i.contextTypes,g=(c=c!=null)?Hi(n,p):Hr),i=new i(s,g),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ho,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=p,n.__reactInternalMemoizedMaskedChildContext=g),i}function Pf(n,i,s,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==n&&ho.enqueueReplaceState(i,i.state,null)}function bl(n,i,s,c){var p=n.stateNode;p.props=s,p.state=n.memoizedState,p.refs={},il(n);var g=i.contextType;typeof g=="object"&&g!==null?p.context=Yn(g):(g=Sn(i)?ci:rn.current,p.context=Hi(n,g)),p.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(El(n,i,g,s),p.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&ho.enqueueReplaceState(p,p.state,null),so(n,s,p,c),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308)}function Ki(n,i){try{var s="",c=i;do s+=Se(c),c=c.return;while(c);var p=s}catch(g){p=`
|
|
39
|
+
Error generating stack: `+g.message+`
|
|
40
|
+
`+g.stack}return{value:n,source:i,stack:p,digest:null}}function _l(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function Tl(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var wE=typeof WeakMap=="function"?WeakMap:Map;function Bf(n,i,s){s=kr(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){yo||(yo=!0,Ml=c),Tl(n,i)},s}function Ff(n,i,s){s=kr(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var p=i.value;s.payload=function(){return c(p)},s.callback=function(){Tl(n,i)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){Tl(n,i),typeof c!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})}),s}function Uf(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new wE;var p=new Set;c.set(i,p)}else p=c.get(i),p===void 0&&(p=new Set,c.set(i,p));p.has(s)||(p.add(s),n=$E.bind(null,n,i,s),i.then(n,n))}function Hf(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function zf(n,i,s,c,p){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=kr(-1,1),i.tag=2,jr(s,i,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=p,n)}var IE=V.ReactCurrentOwner,xn=!1;function En(n,i,s,c){i.child=n===null?of(i,null,s,c):Yi(i,n.child,s,c)}function $f(n,i,s,c,p){s=s.render;var g=i.ref;return Gi(i,p),c=dl(n,i,s,c,g,p),s=fl(),n!==null&&!xn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~p,Cr(n,i,p)):(yt&&s&&Ku(i),i.flags|=1,En(n,i,c,p),i.child)}function jf(n,i,s,c,p){if(n===null){var g=s.type;return typeof g=="function"&&!$l(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=g,Yf(n,i,g,c,p)):(n=Co(s.type,null,c,i,i.mode,p),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,(n.lanes&p)===0){var y=g.memoizedProps;if(s=s.compare,s=s!==null?s:va,s(y,c)&&n.ref===i.ref)return Cr(n,i,p)}return i.flags|=1,n=Vr(g,c),n.ref=i.ref,n.return=i,i.child=n}function Yf(n,i,s,c,p){if(n!==null){var g=n.memoizedProps;if(va(g,c)&&n.ref===i.ref)if(xn=!1,i.pendingProps=c=g,(n.lanes&p)!==0)(n.flags&131072)!==0&&(xn=!0);else return i.lanes=n.lanes,Cr(n,i,p)}return yl(n,i,s,c,p)}function Wf(n,i,s){var c=i.pendingProps,p=c.children,g=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Et(Qi,Pn),Pn|=s;else{if((s&1073741824)===0)return n=g!==null?g.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,Et(Qi,Pn),Pn|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:s,Et(Qi,Pn),Pn|=c}else g!==null?(c=g.baseLanes|s,i.memoizedState=null):c=s,Et(Qi,Pn),Pn|=c;return En(n,i,p,s),i.child}function Gf(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function yl(n,i,s,c,p){var g=Sn(s)?ci:rn.current;return g=Hi(i,g),Gi(i,p),s=dl(n,i,s,c,g,p),c=fl(),n!==null&&!xn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~p,Cr(n,i,p)):(yt&&c&&Ku(i),i.flags|=1,En(n,i,s,p),i.child)}function qf(n,i,s,c,p){if(Sn(s)){var g=!0;Xs(i)}else g=!1;if(Gi(i,p),i.stateNode===null)go(n,i),Mf(i,s,c),bl(i,s,c,p),c=!0;else if(n===null){var y=i.stateNode,w=i.memoizedProps;y.props=w;var D=y.context,W=s.contextType;typeof W=="object"&&W!==null?W=Yn(W):(W=Sn(s)?ci:rn.current,W=Hi(i,W));var ae=s.getDerivedStateFromProps,le=typeof ae=="function"||typeof y.getSnapshotBeforeUpdate=="function";le||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==c||D!==W)&&Pf(i,y,c,W),$r=!1;var re=i.memoizedState;y.state=re,so(i,c,y,p),D=i.memoizedState,w!==c||re!==D||Nn.current||$r?(typeof ae=="function"&&(El(i,s,ae,c),D=i.memoizedState),(w=$r||Df(i,s,w,c,re,D,W))?(le||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=D),y.props=c,y.state=D,y.context=W,c=w):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{y=i.stateNode,lf(n,i),w=i.memoizedProps,W=i.type===i.elementType?w:tr(i.type,w),y.props=W,le=i.pendingProps,re=y.context,D=s.contextType,typeof D=="object"&&D!==null?D=Yn(D):(D=Sn(s)?ci:rn.current,D=Hi(i,D));var Ae=s.getDerivedStateFromProps;(ae=typeof Ae=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==le||re!==D)&&Pf(i,y,c,D),$r=!1,re=i.memoizedState,y.state=re,so(i,c,y,p);var Ie=i.memoizedState;w!==le||re!==Ie||Nn.current||$r?(typeof Ae=="function"&&(El(i,s,Ae,c),Ie=i.memoizedState),(W=$r||Df(i,s,W,c,re,Ie,D)||!1)?(ae||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,Ie,D),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,Ie,D)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===n.memoizedProps&&re===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&re===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=Ie),y.props=c,y.state=Ie,y.context=D,c=W):(typeof y.componentDidUpdate!="function"||w===n.memoizedProps&&re===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&re===n.memoizedState||(i.flags|=1024),c=!1)}return Nl(n,i,s,c,g,p)}function Nl(n,i,s,c,p,g){Gf(n,i);var y=(i.flags&128)!==0;if(!c&&!y)return p&&Xd(i,s,!1),Cr(n,i,g);c=i.stateNode,IE.current=i;var w=y&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&y?(i.child=Yi(i,n.child,null,g),i.child=Yi(i,null,w,g)):En(n,i,w,g),i.memoizedState=c.state,p&&Xd(i,s,!0),i.child}function Kf(n){var i=n.stateNode;i.pendingContext?Vd(n,i.pendingContext,i.pendingContext!==i.context):i.context&&Vd(n,i.context,!1),al(n,i.containerInfo)}function Vf(n,i,s,c,p){return ji(),Zu(p),i.flags|=256,En(n,i,s,c),i.child}var Sl={dehydrated:null,treeContext:null,retryLane:0};function xl(n){return{baseLanes:n,cachePool:null,transitions:null}}function Qf(n,i,s){var c=i.pendingProps,p=At.current,g=!1,y=(i.flags&128)!==0,w;if((w=y)||(w=n!==null&&n.memoizedState===null?!1:(p&2)!==0),w?(g=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(p|=1),Et(At,p&1),n===null)return Xu(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(y=c.children,n=c.fallback,g?(c=i.mode,g=i.child,y={mode:"hidden",children:y},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=y):g=wo(y,c,0,null),n=Ti(n,c,s,null),g.return=i,n.return=i,g.sibling=n,i.child=g,i.child.memoizedState=xl(s),i.memoizedState=Sl,n):Al(i,y));if(p=n.memoizedState,p!==null&&(w=p.dehydrated,w!==null))return vE(n,i,y,c,w,p,s);if(g){g=c.fallback,y=i.mode,p=n.child,w=p.sibling;var D={mode:"hidden",children:c.children};return(y&1)===0&&i.child!==p?(c=i.child,c.childLanes=0,c.pendingProps=D,i.deletions=null):(c=Vr(p,D),c.subtreeFlags=p.subtreeFlags&14680064),w!==null?g=Vr(w,g):(g=Ti(g,y,s,null),g.flags|=2),g.return=i,c.return=i,c.sibling=g,i.child=c,c=g,g=i.child,y=n.child.memoizedState,y=y===null?xl(s):{baseLanes:y.baseLanes|s,cachePool:null,transitions:y.transitions},g.memoizedState=y,g.childLanes=n.childLanes&~s,i.memoizedState=Sl,c}return g=n.child,n=g.sibling,c=Vr(g,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,n!==null&&(s=i.deletions,s===null?(i.deletions=[n],i.flags|=16):s.push(n)),i.child=c,i.memoizedState=null,c}function Al(n,i){return i=wo({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function mo(n,i,s,c){return c!==null&&Zu(c),Yi(i,n.child,null,s),n=Al(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function vE(n,i,s,c,p,g,y){if(s)return i.flags&256?(i.flags&=-257,c=_l(Error(r(422))),mo(n,i,y,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(g=c.fallback,p=i.mode,c=wo({mode:"visible",children:c.children},p,0,null),g=Ti(g,p,y,null),g.flags|=2,c.return=i,g.return=i,c.sibling=g,i.child=c,(i.mode&1)!==0&&Yi(i,n.child,null,y),i.child.memoizedState=xl(y),i.memoizedState=Sl,g);if((i.mode&1)===0)return mo(n,i,y,null);if(p.data==="$!"){if(c=p.nextSibling&&p.nextSibling.dataset,c)var w=c.dgst;return c=w,g=Error(r(419)),c=_l(g,c,void 0),mo(n,i,y,c)}if(w=(y&n.childLanes)!==0,xn||w){if(c=Kt,c!==null){switch(y&-y){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(c.suspendedLanes|y))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,Ar(n,p),ir(c,n,p,-1))}return zl(),c=_l(Error(r(421))),mo(n,i,y,c)}return p.data==="$?"?(i.flags|=128,i.child=n.child,i=jE.bind(null,n),p._reactRetry=i,null):(n=g.treeContext,Mn=Fr(p.nextSibling),Dn=i,yt=!0,er=null,n!==null&&($n[jn++]=Sr,$n[jn++]=xr,$n[jn++]=di,Sr=n.id,xr=n.overflow,di=i),i=Al(i,c.children),i.flags|=4096,i)}function Xf(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),nl(n.return,i,s)}function kl(n,i,s,c,p){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function Zf(n,i,s){var c=i.pendingProps,p=c.revealOrder,g=c.tail;if(En(n,i,c.children,s),c=At.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Xf(n,s,i);else if(n.tag===19)Xf(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(Et(At,c),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(s=i.child,p=null;s!==null;)n=s.alternate,n!==null&&oo(n)===null&&(p=s),s=s.sibling;s=p,s===null?(p=i.child,i.child=null):(p=s.sibling,s.sibling=null),kl(i,!1,p,s,g);break;case"backwards":for(s=null,p=i.child,i.child=null;p!==null;){if(n=p.alternate,n!==null&&oo(n)===null){i.child=p;break}n=p.sibling,p.sibling=s,s=p,p=n}kl(i,!0,s,null,g);break;case"together":kl(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function go(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Cr(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),gi|=i.lanes,(s&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,s=Vr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=Vr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function OE(n,i,s){switch(i.tag){case 3:Kf(i),ji();break;case 5:ff(i);break;case 1:Sn(i.type)&&Xs(i);break;case 4:al(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,p=i.memoizedProps.value;Et(ro,c._currentValue),c._currentValue=p;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(Et(At,At.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?Qf(n,i,s):(Et(At,At.current&1),n=Cr(n,i,s),n!==null?n.sibling:null);Et(At,At.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(n.flags&128)!==0){if(c)return Zf(n,i,s);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Et(At,At.current),c)break;return null;case 22:case 23:return i.lanes=0,Wf(n,i,s)}return Cr(n,i,s)}var Jf,Cl,ep,tp;Jf=function(n,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Cl=function(){},ep=function(n,i,s,c){var p=n.memoizedProps;if(p!==c){n=i.stateNode,hi(dr.current);var g=null;switch(s){case"input":p=Un(n,p),c=Un(n,c),g=[];break;case"select":p=S({},p,{value:void 0}),c=S({},c,{value:void 0}),g=[];break;case"textarea":p=Rn(n,p),c=Rn(n,c),g=[];break;default:typeof p.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Ks)}Ct(s,c);var y;s=null;for(W in p)if(!c.hasOwnProperty(W)&&p.hasOwnProperty(W)&&p[W]!=null)if(W==="style"){var w=p[W];for(y in w)w.hasOwnProperty(y)&&(s||(s={}),s[y]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(o.hasOwnProperty(W)?g||(g=[]):(g=g||[]).push(W,null));for(W in c){var D=c[W];if(w=p!=null?p[W]:void 0,c.hasOwnProperty(W)&&D!==w&&(D!=null||w!=null))if(W==="style")if(w){for(y in w)!w.hasOwnProperty(y)||D&&D.hasOwnProperty(y)||(s||(s={}),s[y]="");for(y in D)D.hasOwnProperty(y)&&w[y]!==D[y]&&(s||(s={}),s[y]=D[y])}else s||(g||(g=[]),g.push(W,s)),s=D;else W==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,w=w?w.__html:void 0,D!=null&&w!==D&&(g=g||[]).push(W,D)):W==="children"?typeof D!="string"&&typeof D!="number"||(g=g||[]).push(W,""+D):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(o.hasOwnProperty(W)?(D!=null&&W==="onScroll"&&_t("scroll",n),g||w===D||(g=[])):(g=g||[]).push(W,D))}s&&(g=g||[]).push("style",s);var W=g;(i.updateQueue=W)&&(i.flags|=4)}},tp=function(n,i,s,c){s!==c&&(i.flags|=4)};function Wa(n,i){if(!yt)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function sn(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(i)for(var p=n.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags&14680064,c|=p.flags&14680064,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=c,n.childLanes=s,i}function RE(n,i,s){var c=i.pendingProps;switch(Vu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(i),null;case 1:return Sn(i.type)&&Qs(),sn(i),null;case 3:return c=i.stateNode,qi(),Tt(Nn),Tt(rn),ul(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(to(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,er!==null&&(Fl(er),er=null))),Cl(n,i),sn(i),null;case 5:sl(i);var p=hi(Ha.current);if(s=i.type,n!==null&&i.stateNode!=null)ep(n,i,s,c,p),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return sn(i),null}if(n=hi(dr.current),to(i)){c=i.stateNode,s=i.type;var g=i.memoizedProps;switch(c[cr]=i,c[Ma]=g,n=(i.mode&1)!==0,s){case"dialog":_t("cancel",c),_t("close",c);break;case"iframe":case"object":case"embed":_t("load",c);break;case"video":case"audio":for(p=0;p<Ra.length;p++)_t(Ra[p],c);break;case"source":_t("error",c);break;case"img":case"image":case"link":_t("error",c),_t("load",c);break;case"details":_t("toggle",c);break;case"input":tn(c,g),_t("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!g.multiple},_t("invalid",c);break;case"textarea":fn(c,g),_t("invalid",c)}Ct(s,g),p=null;for(var y in g)if(g.hasOwnProperty(y)){var w=g[y];y==="children"?typeof w=="string"?c.textContent!==w&&(g.suppressHydrationWarning!==!0&&qs(c.textContent,w,n),p=["children",w]):typeof w=="number"&&c.textContent!==""+w&&(g.suppressHydrationWarning!==!0&&qs(c.textContent,w,n),p=["children",""+w]):o.hasOwnProperty(y)&&w!=null&&y==="onScroll"&&_t("scroll",c)}switch(s){case"input":Ht(c),$t(c,g,!0);break;case"textarea":Ht(c),Xn(c);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(c.onclick=Ks)}c=p,i.updateQueue=c,c!==null&&(i.flags|=4)}else{y=p.nodeType===9?p:p.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Q(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=y.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=y.createElement(s,{is:c.is}):(n=y.createElement(s),s==="select"&&(y=n,c.multiple?y.multiple=!0:c.size&&(y.size=c.size))):n=y.createElementNS(n,s),n[cr]=i,n[Ma]=c,Jf(n,i,!1,!1),i.stateNode=n;e:{switch(y=pn(s,c),s){case"dialog":_t("cancel",n),_t("close",n),p=c;break;case"iframe":case"object":case"embed":_t("load",n),p=c;break;case"video":case"audio":for(p=0;p<Ra.length;p++)_t(Ra[p],n);p=c;break;case"source":_t("error",n),p=c;break;case"img":case"image":case"link":_t("error",n),_t("load",n),p=c;break;case"details":_t("toggle",n),p=c;break;case"input":tn(n,c),p=Un(n,c),_t("invalid",n);break;case"option":p=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},p=S({},c,{value:void 0}),_t("invalid",n);break;case"textarea":fn(n,c),p=Rn(n,c),_t("invalid",n);break;default:p=c}Ct(s,p),w=p;for(g in w)if(w.hasOwnProperty(g)){var D=w[g];g==="style"?yn(n,D):g==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&je(n,D)):g==="children"?typeof D=="string"?(s!=="textarea"||D!=="")&&Ve(n,D):typeof D=="number"&&Ve(n,""+D):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?D!=null&&g==="onScroll"&&_t("scroll",n):D!=null&&Y(n,g,D,y))}switch(s){case"input":Ht(n),$t(n,c,!1);break;case"textarea":Ht(n),Xn(n);break;case"option":c.value!=null&&n.setAttribute("value",""+Fe(c.value));break;case"select":n.multiple=!!c.multiple,g=c.value,g!=null?On(n,!!c.multiple,g,!1):c.defaultValue!=null&&On(n,!!c.multiple,c.defaultValue,!0);break;default:typeof p.onClick=="function"&&(n.onclick=Ks)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return sn(i),null;case 6:if(n&&i.stateNode!=null)tp(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=hi(Ha.current),hi(dr.current),to(i)){if(c=i.stateNode,s=i.memoizedProps,c[cr]=i,(g=c.nodeValue!==s)&&(n=Dn,n!==null))switch(n.tag){case 3:qs(c.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&qs(c.nodeValue,s,(n.mode&1)!==0)}g&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[cr]=i,i.stateNode=c}return sn(i),null;case 13:if(Tt(At),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(yt&&Mn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)rf(),ji(),i.flags|=98560,g=!1;else if(g=to(i),c!==null&&c.dehydrated!==null){if(n===null){if(!g)throw Error(r(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[cr]=i}else ji(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;sn(i),g=!1}else er!==null&&(Fl(er),er=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(At.current&1)!==0?Wt===0&&(Wt=3):zl())),i.updateQueue!==null&&(i.flags|=4),sn(i),null);case 4:return qi(),Cl(n,i),n===null&&La(i.stateNode.containerInfo),sn(i),null;case 10:return tl(i.type._context),sn(i),null;case 17:return Sn(i.type)&&Qs(),sn(i),null;case 19:if(Tt(At),g=i.memoizedState,g===null)return sn(i),null;if(c=(i.flags&128)!==0,y=g.rendering,y===null)if(c)Wa(g,!1);else{if(Wt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(y=oo(n),y!==null){for(i.flags|=128,Wa(g,!1),c=y.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)g=s,n=c,g.flags&=14680066,y=g.alternate,y===null?(g.childLanes=0,g.lanes=n,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=y.childLanes,g.lanes=y.lanes,g.child=y.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=y.memoizedProps,g.memoizedState=y.memoizedState,g.updateQueue=y.updateQueue,g.type=y.type,n=y.dependencies,g.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return Et(At,At.current&1|2),i.child}n=n.sibling}g.tail!==null&&St()>Xi&&(i.flags|=128,c=!0,Wa(g,!1),i.lanes=4194304)}else{if(!c)if(n=oo(y),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Wa(g,!0),g.tail===null&&g.tailMode==="hidden"&&!y.alternate&&!yt)return sn(i),null}else 2*St()-g.renderingStartTime>Xi&&s!==1073741824&&(i.flags|=128,c=!0,Wa(g,!1),i.lanes=4194304);g.isBackwards?(y.sibling=i.child,i.child=y):(s=g.last,s!==null?s.sibling=y:i.child=y,g.last=y)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=St(),i.sibling=null,s=At.current,Et(At,c?s&1|2:s&1),i):(sn(i),null);case 22:case 23:return Hl(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(Pn&1073741824)!==0&&(sn(i),i.subtreeFlags&6&&(i.flags|=8192)):sn(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function LE(n,i){switch(Vu(i),i.tag){case 1:return Sn(i.type)&&Qs(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return qi(),Tt(Nn),Tt(rn),ul(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return sl(i),null;case 13:if(Tt(At),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));ji()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Tt(At),null;case 4:return qi(),null;case 10:return tl(i.type._context),null;case 22:case 23:return Hl(),null;case 24:return null;default:return null}}var Eo=!1,on=!1,DE=typeof WeakSet=="function"?WeakSet:Set,Ce=null;function Vi(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){It(n,i,c)}else s.current=null}function wl(n,i,s){try{s()}catch(c){It(n,i,c)}}var np=!1;function ME(n,i){if(Hu=Ps,n=Ld(),Ru(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var y=0,w=-1,D=-1,W=0,ae=0,le=n,re=null;t:for(;;){for(var Ae;le!==s||p!==0&&le.nodeType!==3||(w=y+p),le!==g||c!==0&&le.nodeType!==3||(D=y+c),le.nodeType===3&&(y+=le.nodeValue.length),(Ae=le.firstChild)!==null;)re=le,le=Ae;for(;;){if(le===n)break t;if(re===s&&++W===p&&(w=y),re===g&&++ae===c&&(D=y),(Ae=le.nextSibling)!==null)break;le=re,re=le.parentNode}le=Ae}s=w===-1||D===-1?null:{start:w,end:D}}else s=null}s=s||{start:0,end:0}}else s=null;for(zu={focusedElem:n,selectionRange:s},Ps=!1,Ce=i;Ce!==null;)if(i=Ce,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Ce=n;else for(;Ce!==null;){i=Ce;try{var Ie=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(Ie!==null){var ve=Ie.memoizedProps,Rt=Ie.memoizedState,H=i.stateNode,P=H.getSnapshotBeforeUpdate(i.elementType===i.type?ve:tr(i.type,ve),Rt);H.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var j=i.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ge){It(i,i.return,ge)}if(n=i.sibling,n!==null){n.return=i.return,Ce=n;break}Ce=i.return}return Ie=np,np=!1,Ie}function Ga(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&n)===n){var g=p.destroy;p.destroy=void 0,g!==void 0&&wl(i,s,g)}p=p.next}while(p!==c)}}function bo(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function Il(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function rp(n){var i=n.alternate;i!==null&&(n.alternate=null,rp(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[cr],delete i[Ma],delete i[Wu],delete i[EE],delete i[bE])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function ip(n){return n.tag===5||n.tag===3||n.tag===4}function ap(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ip(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function vl(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ks));else if(c!==4&&(n=n.child,n!==null))for(vl(n,i,s),n=n.sibling;n!==null;)vl(n,i,s),n=n.sibling}function Ol(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Ol(n,i,s),n=n.sibling;n!==null;)Ol(n,i,s),n=n.sibling}var Jt=null,nr=!1;function Yr(n,i,s){for(s=s.child;s!==null;)sp(n,i,s),s=s.sibling}function sp(n,i,s){if(et&&typeof et.onCommitFiberUnmount=="function")try{et.onCommitFiberUnmount(Xe,s)}catch{}switch(s.tag){case 5:on||Vi(s,i);case 6:var c=Jt,p=nr;Jt=null,Yr(n,i,s),Jt=c,nr=p,Jt!==null&&(nr?(n=Jt,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):Jt.removeChild(s.stateNode));break;case 18:Jt!==null&&(nr?(n=Jt,s=s.stateNode,n.nodeType===8?Yu(n.parentNode,s):n.nodeType===1&&Yu(n,s),xa(n)):Yu(Jt,s.stateNode));break;case 4:c=Jt,p=nr,Jt=s.stateNode.containerInfo,nr=!0,Yr(n,i,s),Jt=c,nr=p;break;case 0:case 11:case 14:case 15:if(!on&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var g=p,y=g.destroy;g=g.tag,y!==void 0&&((g&2)!==0||(g&4)!==0)&&wl(s,i,y),p=p.next}while(p!==c)}Yr(n,i,s);break;case 1:if(!on&&(Vi(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(w){It(s,i,w)}Yr(n,i,s);break;case 21:Yr(n,i,s);break;case 22:s.mode&1?(on=(c=on)||s.memoizedState!==null,Yr(n,i,s),on=c):Yr(n,i,s);break;default:Yr(n,i,s)}}function op(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new DE),i.forEach(function(c){var p=YE.bind(null,n,c);s.has(c)||(s.add(c),c.then(p,p))})}}function rr(n,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var p=s[c];try{var g=n,y=i,w=y;e:for(;w!==null;){switch(w.tag){case 5:Jt=w.stateNode,nr=!1;break e;case 3:Jt=w.stateNode.containerInfo,nr=!0;break e;case 4:Jt=w.stateNode.containerInfo,nr=!0;break e}w=w.return}if(Jt===null)throw Error(r(160));sp(g,y,p),Jt=null,nr=!1;var D=p.alternate;D!==null&&(D.return=null),p.return=null}catch(W){It(p,i,W)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)up(i,n),i=i.sibling}function up(n,i){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(rr(i,n),pr(n),c&4){try{Ga(3,n,n.return),bo(3,n)}catch(ve){It(n,n.return,ve)}try{Ga(5,n,n.return)}catch(ve){It(n,n.return,ve)}}break;case 1:rr(i,n),pr(n),c&512&&s!==null&&Vi(s,s.return);break;case 5:if(rr(i,n),pr(n),c&512&&s!==null&&Vi(s,s.return),n.flags&32){var p=n.stateNode;try{Ve(p,"")}catch(ve){It(n,n.return,ve)}}if(c&4&&(p=n.stateNode,p!=null)){var g=n.memoizedProps,y=s!==null?s.memoizedProps:g,w=n.type,D=n.updateQueue;if(n.updateQueue=null,D!==null)try{w==="input"&&g.type==="radio"&&g.name!=null&&We(p,g),pn(w,y);var W=pn(w,g);for(y=0;y<D.length;y+=2){var ae=D[y],le=D[y+1];ae==="style"?yn(p,le):ae==="dangerouslySetInnerHTML"?je(p,le):ae==="children"?Ve(p,le):Y(p,ae,le,W)}switch(w){case"input":Dt(p,g);break;case"textarea":nn(p,g);break;case"select":var re=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var Ae=g.value;Ae!=null?On(p,!!g.multiple,Ae,!1):re!==!!g.multiple&&(g.defaultValue!=null?On(p,!!g.multiple,g.defaultValue,!0):On(p,!!g.multiple,g.multiple?[]:"",!1))}p[Ma]=g}catch(ve){It(n,n.return,ve)}}break;case 6:if(rr(i,n),pr(n),c&4){if(n.stateNode===null)throw Error(r(162));p=n.stateNode,g=n.memoizedProps;try{p.nodeValue=g}catch(ve){It(n,n.return,ve)}}break;case 3:if(rr(i,n),pr(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{xa(i.containerInfo)}catch(ve){It(n,n.return,ve)}break;case 4:rr(i,n),pr(n);break;case 13:rr(i,n),pr(n),p=n.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Dl=St())),c&4&&op(n);break;case 22:if(ae=s!==null&&s.memoizedState!==null,n.mode&1?(on=(W=on)||ae,rr(i,n),on=W):rr(i,n),pr(n),c&8192){if(W=n.memoizedState!==null,(n.stateNode.isHidden=W)&&!ae&&(n.mode&1)!==0)for(Ce=n,ae=n.child;ae!==null;){for(le=Ce=ae;Ce!==null;){switch(re=Ce,Ae=re.child,re.tag){case 0:case 11:case 14:case 15:Ga(4,re,re.return);break;case 1:Vi(re,re.return);var Ie=re.stateNode;if(typeof Ie.componentWillUnmount=="function"){c=re,s=re.return;try{i=c,Ie.props=i.memoizedProps,Ie.state=i.memoizedState,Ie.componentWillUnmount()}catch(ve){It(c,s,ve)}}break;case 5:Vi(re,re.return);break;case 22:if(re.memoizedState!==null){dp(le);continue}}Ae!==null?(Ae.return=re,Ce=Ae):dp(le)}ae=ae.sibling}e:for(ae=null,le=n;;){if(le.tag===5){if(ae===null){ae=le;try{p=le.stateNode,W?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(w=le.stateNode,D=le.memoizedProps.style,y=D!=null&&D.hasOwnProperty("display")?D.display:null,w.style.display=Zt("display",y))}catch(ve){It(n,n.return,ve)}}}else if(le.tag===6){if(ae===null)try{le.stateNode.nodeValue=W?"":le.memoizedProps}catch(ve){It(n,n.return,ve)}}else if((le.tag!==22&&le.tag!==23||le.memoizedState===null||le===n)&&le.child!==null){le.child.return=le,le=le.child;continue}if(le===n)break e;for(;le.sibling===null;){if(le.return===null||le.return===n)break e;ae===le&&(ae=null),le=le.return}ae===le&&(ae=null),le.sibling.return=le.return,le=le.sibling}}break;case 19:rr(i,n),pr(n),c&4&&op(n);break;case 21:break;default:rr(i,n),pr(n)}}function pr(n){var i=n.flags;if(i&2){try{e:{for(var s=n.return;s!==null;){if(ip(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var p=c.stateNode;c.flags&32&&(Ve(p,""),c.flags&=-33);var g=ap(n);Ol(n,g,p);break;case 3:case 4:var y=c.stateNode.containerInfo,w=ap(n);vl(n,w,y);break;default:throw Error(r(161))}}catch(D){It(n,n.return,D)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function PE(n,i,s){Ce=n,lp(n)}function lp(n,i,s){for(var c=(n.mode&1)!==0;Ce!==null;){var p=Ce,g=p.child;if(p.tag===22&&c){var y=p.memoizedState!==null||Eo;if(!y){var w=p.alternate,D=w!==null&&w.memoizedState!==null||on;w=Eo;var W=on;if(Eo=y,(on=D)&&!W)for(Ce=p;Ce!==null;)y=Ce,D=y.child,y.tag===22&&y.memoizedState!==null?fp(p):D!==null?(D.return=y,Ce=D):fp(p);for(;g!==null;)Ce=g,lp(g),g=g.sibling;Ce=p,Eo=w,on=W}cp(n)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,Ce=g):cp(n)}}function cp(n){for(;Ce!==null;){var i=Ce;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:on||bo(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!on)if(s===null)c.componentDidMount();else{var p=i.elementType===i.type?s.memoizedProps:tr(i.type,s.memoizedProps);c.componentDidUpdate(p,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&df(i,g,c);break;case 3:var y=i.updateQueue;if(y!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}df(i,y,s)}break;case 5:var w=i.stateNode;if(s===null&&i.flags&4){s=w;var D=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&s.focus();break;case"img":D.src&&(s.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var W=i.alternate;if(W!==null){var ae=W.memoizedState;if(ae!==null){var le=ae.dehydrated;le!==null&&xa(le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}on||i.flags&512&&Il(i)}catch(re){It(i,i.return,re)}}if(i===n){Ce=null;break}if(s=i.sibling,s!==null){s.return=i.return,Ce=s;break}Ce=i.return}}function dp(n){for(;Ce!==null;){var i=Ce;if(i===n){Ce=null;break}var s=i.sibling;if(s!==null){s.return=i.return,Ce=s;break}Ce=i.return}}function fp(n){for(;Ce!==null;){var i=Ce;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{bo(4,i)}catch(D){It(i,s,D)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var p=i.return;try{c.componentDidMount()}catch(D){It(i,p,D)}}var g=i.return;try{Il(i)}catch(D){It(i,g,D)}break;case 5:var y=i.return;try{Il(i)}catch(D){It(i,y,D)}}}catch(D){It(i,i.return,D)}if(i===n){Ce=null;break}var w=i.sibling;if(w!==null){w.return=i.return,Ce=w;break}Ce=i.return}}var BE=Math.ceil,_o=V.ReactCurrentDispatcher,Rl=V.ReactCurrentOwner,Gn=V.ReactCurrentBatchConfig,ot=0,Kt=null,Ft=null,en=0,Pn=0,Qi=Ur(0),Wt=0,qa=null,gi=0,To=0,Ll=0,Ka=null,An=null,Dl=0,Xi=1/0,wr=null,yo=!1,Ml=null,Wr=null,No=!1,Gr=null,So=0,Va=0,Pl=null,xo=-1,Ao=0;function bn(){return(ot&6)!==0?St():xo!==-1?xo:xo=St()}function qr(n){return(n.mode&1)===0?1:(ot&2)!==0&&en!==0?en&-en:TE.transition!==null?(Ao===0&&(Ao=Ls()),Ao):(n=st,n!==0||(n=window.event,n=n===void 0?16:pd(n.type)),n)}function ir(n,i,s,c){if(50<Va)throw Va=0,Pl=null,Error(r(185));Dr(n,s,c),((ot&2)===0||n!==Kt)&&(n===Kt&&((ot&2)===0&&(To|=s),Wt===4&&Kr(n,en)),kn(n,c),s===1&&ot===0&&(i.mode&1)===0&&(Xi=St()+500,Zs&&zr()))}function kn(n,i){var s=n.callbackNode;_u(n,i);var c=si(n,n===Kt?en:0);if(c===0)s!==null&&Zn(s),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(s!=null&&Zn(s),i===1)n.tag===0?_E(hp.bind(null,n)):Zd(hp.bind(null,n)),mE(function(){(ot&6)===0&&zr()}),s=null;else{switch(qe(c)){case 1:s=ba;break;case 4:s=ii;break;case 16:s=Ii;break;case 536870912:s=De;break;default:s=Ii}s=Np(s,pp.bind(null,n))}n.callbackPriority=i,n.callbackNode=s}}function pp(n,i){if(xo=-1,Ao=0,(ot&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Zi()&&n.callbackNode!==s)return null;var c=si(n,n===Kt?en:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=ko(n,c);else{i=c;var p=ot;ot|=2;var g=gp();(Kt!==n||en!==i)&&(wr=null,Xi=St()+500,bi(n,i));do try{HE();break}catch(w){mp(n,w)}while(!0);el(),_o.current=g,ot=p,Ft!==null?i=0:(Kt=null,en=0,i=Wt)}if(i!==0){if(i===2&&(p=_a(n),p!==0&&(c=p,i=Bl(n,p))),i===1)throw s=qa,bi(n,0),Kr(n,c),kn(n,St()),s;if(i===6)Kr(n,c);else{if(p=n.current.alternate,(c&30)===0&&!FE(p)&&(i=ko(n,c),i===2&&(g=_a(n),g!==0&&(c=g,i=Bl(n,g))),i===1))throw s=qa,bi(n,0),Kr(n,c),kn(n,St()),s;switch(n.finishedWork=p,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:_i(n,An,wr);break;case 3:if(Kr(n,c),(c&130023424)===c&&(i=Dl+500-St(),10<i)){if(si(n,0)!==0)break;if(p=n.suspendedLanes,(p&c)!==c){bn(),n.pingedLanes|=n.suspendedLanes&p;break}n.timeoutHandle=ju(_i.bind(null,n,An,wr),i);break}_i(n,An,wr);break;case 4:if(Kr(n,c),(c&4194240)===c)break;for(i=n.eventTimes,p=-1;0<c;){var y=31-xt(c);g=1<<y,y=i[y],y>p&&(p=y),c&=~g}if(c=p,c=St()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*BE(c/1960))-c,10<c){n.timeoutHandle=ju(_i.bind(null,n,An,wr),c);break}_i(n,An,wr);break;case 5:_i(n,An,wr);break;default:throw Error(r(329))}}}return kn(n,St()),n.callbackNode===s?pp.bind(null,n):null}function Bl(n,i){var s=Ka;return n.current.memoizedState.isDehydrated&&(bi(n,i).flags|=256),n=ko(n,i),n!==2&&(i=An,An=s,i!==null&&Fl(i)),n}function Fl(n){An===null?An=n:An.push.apply(An,n)}function FE(n){for(var i=n;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var p=s[c],g=p.getSnapshot;p=p.value;try{if(!Jn(g(),p))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Kr(n,i){for(i&=~Ll,i&=~To,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var s=31-xt(i),c=1<<s;n[s]=-1,i&=~c}}function hp(n){if((ot&6)!==0)throw Error(r(327));Zi();var i=si(n,0);if((i&1)===0)return kn(n,St()),null;var s=ko(n,i);if(n.tag!==0&&s===2){var c=_a(n);c!==0&&(i=c,s=Bl(n,c))}if(s===1)throw s=qa,bi(n,0),Kr(n,i),kn(n,St()),s;if(s===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,_i(n,An,wr),kn(n,St()),null}function Ul(n,i){var s=ot;ot|=1;try{return n(i)}finally{ot=s,ot===0&&(Xi=St()+500,Zs&&zr())}}function Ei(n){Gr!==null&&Gr.tag===0&&(ot&6)===0&&Zi();var i=ot;ot|=1;var s=Gn.transition,c=st;try{if(Gn.transition=null,st=1,n)return n()}finally{st=c,Gn.transition=s,ot=i,(ot&6)===0&&zr()}}function Hl(){Pn=Qi.current,Tt(Qi)}function bi(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,hE(s)),Ft!==null)for(s=Ft.return;s!==null;){var c=s;switch(Vu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Qs();break;case 3:qi(),Tt(Nn),Tt(rn),ul();break;case 5:sl(c);break;case 4:qi();break;case 13:Tt(At);break;case 19:Tt(At);break;case 10:tl(c.type._context);break;case 22:case 23:Hl()}s=s.return}if(Kt=n,Ft=n=Vr(n.current,null),en=Pn=i,Wt=0,qa=null,Ll=To=gi=0,An=Ka=null,pi!==null){for(i=0;i<pi.length;i++)if(s=pi[i],c=s.interleaved,c!==null){s.interleaved=null;var p=c.next,g=s.pending;if(g!==null){var y=g.next;g.next=p,c.next=y}s.pending=c}pi=null}return n}function mp(n,i){do{var s=Ft;try{if(el(),uo.current=po,lo){for(var c=kt.memoizedState;c!==null;){var p=c.queue;p!==null&&(p.pending=null),c=c.next}lo=!1}if(mi=0,qt=Yt=kt=null,za=!1,$a=0,Rl.current=null,s===null||s.return===null){Wt=1,qa=i,Ft=null;break}e:{var g=n,y=s.return,w=s,D=i;if(i=en,w.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var W=D,ae=w,le=ae.tag;if((ae.mode&1)===0&&(le===0||le===11||le===15)){var re=ae.alternate;re?(ae.updateQueue=re.updateQueue,ae.memoizedState=re.memoizedState,ae.lanes=re.lanes):(ae.updateQueue=null,ae.memoizedState=null)}var Ae=Hf(y);if(Ae!==null){Ae.flags&=-257,zf(Ae,y,w,g,i),Ae.mode&1&&Uf(g,W,i),i=Ae,D=W;var Ie=i.updateQueue;if(Ie===null){var ve=new Set;ve.add(D),i.updateQueue=ve}else Ie.add(D);break e}else{if((i&1)===0){Uf(g,W,i),zl();break e}D=Error(r(426))}}else if(yt&&w.mode&1){var Rt=Hf(y);if(Rt!==null){(Rt.flags&65536)===0&&(Rt.flags|=256),zf(Rt,y,w,g,i),Zu(Ki(D,w));break e}}g=D=Ki(D,w),Wt!==4&&(Wt=2),Ka===null?Ka=[g]:Ka.push(g),g=y;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var H=Bf(g,D,i);cf(g,H);break e;case 1:w=D;var P=g.type,j=g.stateNode;if((g.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Wr===null||!Wr.has(j)))){g.flags|=65536,i&=-i,g.lanes|=i;var ge=Ff(g,w,i);cf(g,ge);break e}}g=g.return}while(g!==null)}bp(s)}catch(Re){i=Re,Ft===s&&s!==null&&(Ft=s=s.return);continue}break}while(!0)}function gp(){var n=_o.current;return _o.current=po,n===null?po:n}function zl(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Kt===null||(gi&268435455)===0&&(To&268435455)===0||Kr(Kt,en)}function ko(n,i){var s=ot;ot|=2;var c=gp();(Kt!==n||en!==i)&&(wr=null,bi(n,i));do try{UE();break}catch(p){mp(n,p)}while(!0);if(el(),ot=s,_o.current=c,Ft!==null)throw Error(r(261));return Kt=null,en=0,Wt}function UE(){for(;Ft!==null;)Ep(Ft)}function HE(){for(;Ft!==null&&!Os();)Ep(Ft)}function Ep(n){var i=yp(n.alternate,n,Pn);n.memoizedProps=n.pendingProps,i===null?bp(n):Ft=i,Rl.current=null}function bp(n){var i=n;do{var s=i.alternate;if(n=i.return,(i.flags&32768)===0){if(s=RE(s,i,Pn),s!==null){Ft=s;return}}else{if(s=LE(s,i),s!==null){s.flags&=32767,Ft=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{Wt=6,Ft=null;return}}if(i=i.sibling,i!==null){Ft=i;return}Ft=i=n}while(i!==null);Wt===0&&(Wt=5)}function _i(n,i,s){var c=st,p=Gn.transition;try{Gn.transition=null,st=1,zE(n,i,s,c)}finally{Gn.transition=p,st=c}return null}function zE(n,i,s,c){do Zi();while(Gr!==null);if((ot&6)!==0)throw Error(r(327));s=n.finishedWork;var p=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var g=s.lanes|s.childLanes;if(zn(n,g),n===Kt&&(Ft=Kt=null,en=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||No||(No=!0,Np(Ii,function(){return Zi(),null})),g=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||g){g=Gn.transition,Gn.transition=null;var y=st;st=1;var w=ot;ot|=4,Rl.current=null,ME(n,s),up(s,n),oE(zu),Ps=!!Hu,zu=Hu=null,n.current=s,PE(s),Rs(),ot=w,st=y,Gn.transition=g}else n.current=s;if(No&&(No=!1,Gr=n,So=p),g=n.pendingLanes,g===0&&(Wr=null),vt(s.stateNode),kn(n,St()),i!==null)for(c=n.onRecoverableError,s=0;s<i.length;s++)p=i[s],c(p.value,{componentStack:p.stack,digest:p.digest});if(yo)throw yo=!1,n=Ml,Ml=null,n;return(So&1)!==0&&n.tag!==0&&Zi(),g=n.pendingLanes,(g&1)!==0?n===Pl?Va++:(Va=0,Pl=n):Va=0,zr(),null}function Zi(){if(Gr!==null){var n=qe(So),i=Gn.transition,s=st;try{if(Gn.transition=null,st=16>n?16:n,Gr===null)var c=!1;else{if(n=Gr,Gr=null,So=0,(ot&6)!==0)throw Error(r(331));var p=ot;for(ot|=4,Ce=n.current;Ce!==null;){var g=Ce,y=g.child;if((Ce.flags&16)!==0){var w=g.deletions;if(w!==null){for(var D=0;D<w.length;D++){var W=w[D];for(Ce=W;Ce!==null;){var ae=Ce;switch(ae.tag){case 0:case 11:case 15:Ga(8,ae,g)}var le=ae.child;if(le!==null)le.return=ae,Ce=le;else for(;Ce!==null;){ae=Ce;var re=ae.sibling,Ae=ae.return;if(rp(ae),ae===W){Ce=null;break}if(re!==null){re.return=Ae,Ce=re;break}Ce=Ae}}}var Ie=g.alternate;if(Ie!==null){var ve=Ie.child;if(ve!==null){Ie.child=null;do{var Rt=ve.sibling;ve.sibling=null,ve=Rt}while(ve!==null)}}Ce=g}}if((g.subtreeFlags&2064)!==0&&y!==null)y.return=g,Ce=y;else e:for(;Ce!==null;){if(g=Ce,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ga(9,g,g.return)}var H=g.sibling;if(H!==null){H.return=g.return,Ce=H;break e}Ce=g.return}}var P=n.current;for(Ce=P;Ce!==null;){y=Ce;var j=y.child;if((y.subtreeFlags&2064)!==0&&j!==null)j.return=y,Ce=j;else e:for(y=P;Ce!==null;){if(w=Ce,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:bo(9,w)}}catch(Re){It(w,w.return,Re)}if(w===y){Ce=null;break e}var ge=w.sibling;if(ge!==null){ge.return=w.return,Ce=ge;break e}Ce=w.return}}if(ot=p,zr(),et&&typeof et.onPostCommitFiberRoot=="function")try{et.onPostCommitFiberRoot(Xe,n)}catch{}c=!0}return c}finally{st=s,Gn.transition=i}}return!1}function _p(n,i,s){i=Ki(s,i),i=Bf(n,i,1),n=jr(n,i,1),i=bn(),n!==null&&(Dr(n,1,i),kn(n,i))}function It(n,i,s){if(n.tag===3)_p(n,n,s);else for(;i!==null;){if(i.tag===3){_p(i,n,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Wr===null||!Wr.has(c))){n=Ki(s,n),n=Ff(i,n,1),i=jr(i,n,1),n=bn(),i!==null&&(Dr(i,1,n),kn(i,n));break}}i=i.return}}function $E(n,i,s){var c=n.pingCache;c!==null&&c.delete(i),i=bn(),n.pingedLanes|=n.suspendedLanes&s,Kt===n&&(en&s)===s&&(Wt===4||Wt===3&&(en&130023424)===en&&500>St()-Dl?bi(n,0):Ll|=s),kn(n,i)}function Tp(n,i){i===0&&((n.mode&1)===0?i=1:(i=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var s=bn();n=Ar(n,i),n!==null&&(Dr(n,i,s),kn(n,s))}function jE(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Tp(n,s)}function YE(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,p=n.memoizedState;p!==null&&(s=p.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Tp(n,s)}var yp;yp=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||Nn.current)xn=!0;else{if((n.lanes&s)===0&&(i.flags&128)===0)return xn=!1,OE(n,i,s);xn=(n.flags&131072)!==0}else xn=!1,yt&&(i.flags&1048576)!==0&&Jd(i,eo,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;go(n,i),n=i.pendingProps;var p=Hi(i,rn.current);Gi(i,s),p=dl(null,i,c,n,p,s);var g=fl();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Sn(c)?(g=!0,Xs(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,il(i),p.updater=ho,i.stateNode=p,p._reactInternals=i,bl(i,c,n,s),i=Nl(null,i,c,!0,g,s)):(i.tag=0,yt&&g&&Ku(i),En(null,i,p,s),i=i.child),i;case 16:c=i.elementType;e:{switch(go(n,i),n=i.pendingProps,p=c._init,c=p(c._payload),i.type=c,p=i.tag=GE(c),n=tr(c,n),p){case 0:i=yl(null,i,c,n,s);break e;case 1:i=qf(null,i,c,n,s);break e;case 11:i=$f(null,i,c,n,s);break e;case 14:i=jf(null,i,c,tr(c.type,n),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:tr(c,p),yl(n,i,c,p,s);case 1:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:tr(c,p),qf(n,i,c,p,s);case 3:e:{if(Kf(i),n===null)throw Error(r(387));c=i.pendingProps,g=i.memoizedState,p=g.element,lf(n,i),so(i,c,null,s);var y=i.memoizedState;if(c=y.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=Ki(Error(r(423)),i),i=Vf(n,i,c,s,p);break e}else if(c!==p){p=Ki(Error(r(424)),i),i=Vf(n,i,c,s,p);break e}else for(Mn=Fr(i.stateNode.containerInfo.firstChild),Dn=i,yt=!0,er=null,s=of(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ji(),c===p){i=Cr(n,i,s);break e}En(n,i,c,s)}i=i.child}return i;case 5:return ff(i),n===null&&Xu(i),c=i.type,p=i.pendingProps,g=n!==null?n.memoizedProps:null,y=p.children,$u(c,p)?y=null:g!==null&&$u(c,g)&&(i.flags|=32),Gf(n,i),En(n,i,y,s),i.child;case 6:return n===null&&Xu(i),null;case 13:return Qf(n,i,s);case 4:return al(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=Yi(i,null,c,s):En(n,i,c,s),i.child;case 11:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:tr(c,p),$f(n,i,c,p,s);case 7:return En(n,i,i.pendingProps,s),i.child;case 8:return En(n,i,i.pendingProps.children,s),i.child;case 12:return En(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,p=i.pendingProps,g=i.memoizedProps,y=p.value,Et(ro,c._currentValue),c._currentValue=y,g!==null)if(Jn(g.value,y)){if(g.children===p.children&&!Nn.current){i=Cr(n,i,s);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var w=g.dependencies;if(w!==null){y=g.child;for(var D=w.firstContext;D!==null;){if(D.context===c){if(g.tag===1){D=kr(-1,s&-s),D.tag=2;var W=g.updateQueue;if(W!==null){W=W.shared;var ae=W.pending;ae===null?D.next=D:(D.next=ae.next,ae.next=D),W.pending=D}}g.lanes|=s,D=g.alternate,D!==null&&(D.lanes|=s),nl(g.return,s,i),w.lanes|=s;break}D=D.next}}else if(g.tag===10)y=g.type===i.type?null:g.child;else if(g.tag===18){if(y=g.return,y===null)throw Error(r(341));y.lanes|=s,w=y.alternate,w!==null&&(w.lanes|=s),nl(y,s,i),y=g.sibling}else y=g.child;if(y!==null)y.return=g;else for(y=g;y!==null;){if(y===i){y=null;break}if(g=y.sibling,g!==null){g.return=y.return,y=g;break}y=y.return}g=y}En(n,i,p.children,s),i=i.child}return i;case 9:return p=i.type,c=i.pendingProps.children,Gi(i,s),p=Yn(p),c=c(p),i.flags|=1,En(n,i,c,s),i.child;case 14:return c=i.type,p=tr(c,i.pendingProps),p=tr(c.type,p),jf(n,i,c,p,s);case 15:return Yf(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:tr(c,p),go(n,i),i.tag=1,Sn(c)?(n=!0,Xs(i)):n=!1,Gi(i,s),Mf(i,c,p),bl(i,c,p,s),Nl(null,i,c,!0,n,s);case 19:return Zf(n,i,s);case 22:return Wf(n,i,s)}throw Error(r(156,i.tag))};function Np(n,i){return vs(n,i)}function WE(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qn(n,i,s,c){return new WE(n,i,s,c)}function $l(n){return n=n.prototype,!(!n||!n.isReactComponent)}function GE(n){if(typeof n=="function")return $l(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ue)return 11;if(n===te)return 14}return 2}function Vr(n,i){var s=n.alternate;return s===null?(s=qn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Co(n,i,s,c,p,g){var y=2;if(c=n,typeof n=="function")$l(n)&&(y=1);else if(typeof n=="string")y=5;else e:switch(n){case G:return Ti(s.children,p,g,i);case ne:y=8,p|=8;break;case Ee:return n=qn(12,s,i,p|2),n.elementType=Ee,n.lanes=g,n;case Oe:return n=qn(13,s,i,p),n.elementType=Oe,n.lanes=g,n;case he:return n=qn(19,s,i,p),n.elementType=he,n.lanes=g,n;case Le:return wo(s,p,g,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case U:y=10;break e;case _e:y=9;break e;case ue:y=11;break e;case te:y=14;break e;case we:y=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=qn(y,s,i,p),i.elementType=n,i.type=c,i.lanes=g,i}function Ti(n,i,s,c){return n=qn(7,n,c,i),n.lanes=s,n}function wo(n,i,s,c){return n=qn(22,n,c,i),n.elementType=Le,n.lanes=s,n.stateNode={isHidden:!1},n}function jl(n,i,s){return n=qn(6,n,null,i),n.lanes=s,n}function Yl(n,i,s){return i=qn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function qE(n,i,s,c,p){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lr(0),this.expirationTimes=Lr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lr(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Wl(n,i,s,c,p,g,y,w,D){return n=new qE(n,i,s,w,D),i===1?(i=1,g===!0&&(i|=8)):i=0,g=qn(3,null,null,i),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},il(g),n}function KE(n,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:c==null?null:""+c,children:n,containerInfo:i,implementation:s}}function Sp(n){if(!n)return Hr;n=n._reactInternals;e:{if(Tr(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Sn(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var s=n.type;if(Sn(s))return Qd(n,s,i)}return i}function xp(n,i,s,c,p,g,y,w,D){return n=Wl(s,c,!0,n,p,g,y,w,D),n.context=Sp(null),s=n.current,c=bn(),p=qr(s),g=kr(c,p),g.callback=i??null,jr(s,g,p),n.current.lanes=p,Dr(n,p,c),kn(n,c),n}function Io(n,i,s,c){var p=i.current,g=bn(),y=qr(p);return s=Sp(s),i.context===null?i.context=s:i.pendingContext=s,i=kr(g,y),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=jr(p,i,y),n!==null&&(ir(n,p,y,g),ao(n,p,y)),y}function vo(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Ap(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function Gl(n,i){Ap(n,i),(n=n.alternate)&&Ap(n,i)}function VE(){return null}var kp=typeof reportError=="function"?reportError:function(n){console.error(n)};function ql(n){this._internalRoot=n}Oo.prototype.render=ql.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));Io(n,i,null,null)},Oo.prototype.unmount=ql.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Ei(function(){Io(null,n,null,null)}),i[yr]=null}};function Oo(n){this._internalRoot=n}Oo.prototype.unstable_scheduleHydration=function(n){if(n){var i=oi();n={blockedOn:null,target:n,priority:i};for(var s=0;s<Gt.length&&i!==0&&i<Gt[s].priority;s++);Gt.splice(s,0,n),s===0&&dd(n)}};function Kl(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Ro(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Cp(){}function QE(n,i,s,c,p){if(p){if(typeof c=="function"){var g=c;c=function(){var W=vo(y);g.call(W)}}var y=xp(i,c,n,0,null,!1,!1,"",Cp);return n._reactRootContainer=y,n[yr]=y.current,La(n.nodeType===8?n.parentNode:n),Ei(),y}for(;p=n.lastChild;)n.removeChild(p);if(typeof c=="function"){var w=c;c=function(){var W=vo(D);w.call(W)}}var D=Wl(n,0,!1,null,null,!1,!1,"",Cp);return n._reactRootContainer=D,n[yr]=D.current,La(n.nodeType===8?n.parentNode:n),Ei(function(){Io(i,D,s,c)}),D}function Lo(n,i,s,c,p){var g=s._reactRootContainer;if(g){var y=g;if(typeof p=="function"){var w=p;p=function(){var D=vo(y);w.call(D)}}Io(i,y,n,p)}else y=QE(s,i,n,p,c);return vo(y)}ya=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var s=Rr(i.pendingLanes);s!==0&&(Ta(i,s|1),kn(i,St()),(ot&6)===0&&(Xi=St()+500,zr()))}break;case 13:Ei(function(){var c=Ar(n,1);if(c!==null){var p=bn();ir(c,n,1,p)}}),Gl(n,1)}},Ot=function(n){if(n.tag===13){var i=Ar(n,134217728);if(i!==null){var s=bn();ir(i,n,134217728,s)}Gl(n,134217728)}},ft=function(n){if(n.tag===13){var i=qr(n),s=Ar(n,i);if(s!==null){var c=bn();ir(s,n,i,c)}Gl(n,i)}},oi=function(){return st},lr=function(n,i){var s=st;try{return st=n,i()}finally{st=s}},ct=function(n,i,s){switch(i){case"input":if(Dt(n,s),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==n&&c.form===n.form){var p=Vs(c);if(!p)throw Error(r(90));Qn(c),Dt(c,p)}}}break;case"textarea":nn(n,s);break;case"select":i=s.value,i!=null&&On(n,!!s.multiple,i,!1)}},Z=Ul,Ne=Ei;var XE={usingClientEntryPoint:!1,Events:[Pa,Fi,Vs,R,$,Ul]},Qa={findFiberByHostInstance:li,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ZE={bundleType:Qa.bundleType,version:Qa.version,rendererPackageName:Qa.rendererPackageName,rendererConfig:Qa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:V.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=ws(n),n===null?null:n.stateNode},findFiberByHostInstance:Qa.findFiberByHostInstance||VE,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 Do=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Do.isDisabled&&Do.supportsFiber)try{Xe=Do.inject(ZE),et=Do}catch{}}return Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=XE,Cn.createPortal=function(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kl(i))throw Error(r(200));return KE(n,i,null,s)},Cn.createRoot=function(n,i){if(!Kl(n))throw Error(r(299));var s=!1,c="",p=kp;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=Wl(n,1,!1,null,null,s,!1,c,p),n[yr]=i.current,La(n.nodeType===8?n.parentNode:n),new ql(i)},Cn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=ws(i),n=n===null?null:n.stateNode,n},Cn.flushSync=function(n){return Ei(n)},Cn.hydrate=function(n,i,s){if(!Ro(i))throw Error(r(200));return Lo(null,n,i,!0,s)},Cn.hydrateRoot=function(n,i,s){if(!Kl(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,p=!1,g="",y=kp;if(s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),i=xp(i,null,n,1,s??null,p,!1,g,y),n[yr]=i.current,La(n),c)for(n=0;n<c.length;n++)s=c[n],p=s._getVersion,p=p(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,p]:i.mutableSourceEagerHydrationData.push(s,p);return new Oo(i)},Cn.render=function(n,i,s){if(!Ro(i))throw Error(r(200));return Lo(null,n,i,!1,s)},Cn.unmountComponentAtNode=function(n){if(!Ro(n))throw Error(r(40));return n._reactRootContainer?(Ei(function(){Lo(null,null,n,!1,function(){n._reactRootContainer=null,n[yr]=null})}),!0):!1},Cn.unstable_batchedUpdates=Ul,Cn.unstable_renderSubtreeIntoContainer=function(n,i,s,c){if(!Ro(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Lo(n,i,s,!1,c)},Cn.version="18.3.1-next-f1338f8080-20240426",Cn}var Mp;function ob(){if(Mp)return Xl.exports;Mp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xl.exports=sb(),Xl.exports}var Pp;function ub(){if(Pp)return Mo;Pp=1;var e=ob();return Mo.createRoot=e.createRoot,Mo.hydrateRoot=e.hydrateRoot,Mo}var lb=ub();const cb=_s(lb);function Bp(e){return typeof e=="string"&&e.toLowerCase().startsWith("en")?"en":"zh-CN"}const Fp={welcome:"欢迎使用 Illusion Code",thinking:"思考中...",tool_using:"正在使用工具...",error_occurred:"发生错误",task_stopped:"任务已停止",no_active_task:"没有活动任务",session_busy:"会话忙,请稍候",press_enter:"按 Enter 发送,Shift+Enter 换行",input_placeholder:"随便问点什么…",send:"发送",new_session:"新建会话",load_more:"加载更多",settings:"设置",help:"帮助",back:"返回",build_anything:"构建任何东西",mode:"模式",model:"模型",effort:"思考强度",mode_default:"默认",mode_plan:"计划",mode_auto:"自动",effort_low:"低",effort_medium:"中",effort_high:"高",effort_xhigh:"超高",effort_max:"最大",effort_default:"默认",sidebar_title:"illusion code",resume_session:"会话列表",delete_session:"删除会话",language:"语言",current:"当前",permission_request:"权限请求",allow:"允许",deny:"拒绝",always_allow:"总是允许",cancel:"取消",connecting:"正在连接...",disconnected:"连接已断开",reconnecting:"正在重连...",thinking_process:"思考过程",confirm_delete:"确认删除",confirm_delete_session:"确定要删除此会话吗?此操作不可撤销。",delete_all:"清除所有",no_sessions:"没有可删除的会话",status_panel:"状态",session_info:"会话",context_usage:"上下文",cwd:"工作目录",connected_status:"连接状态",permission:"权限",thinking_level:"思考强度",tokens:"tokens",collapse_panel:"收起侧栏",expand_panel:"展开侧栏",context_window:"上下文窗口",question_submit:"提交",question_placeholder:"输入你的回答...",multi_select_confirm:"确认"},db={welcome:"Welcome to Illusion Code",thinking:"Thinking...",tool_using:"Using tools...",error_occurred:"An error occurred",task_stopped:"Task stopped",no_active_task:"No active task",session_busy:"Session busy, please wait",press_enter:"Press Enter to send, Shift+Enter for new line",input_placeholder:"Ask anything...",send:"Send",new_session:"New Session",load_more:"Load more",settings:"Settings",help:"Help",back:"Back",build_anything:"Build anything",mode:"Mode",model:"Model",effort:"Effort",mode_default:"Default",mode_plan:"Plan",mode_auto:"Auto",effort_low:"Low",effort_medium:"Medium",effort_high:"High",effort_xhigh:"XHigh",effort_max:"Max",effort_default:"Default",sidebar_title:"illusion code",resume_session:"Sessions",delete_session:"Delete Session",language:"Language",current:"Current",permission_request:"Permission Request",allow:"Allow",deny:"Deny",always_allow:"Always Allow",cancel:"Cancel",connecting:"Connecting...",disconnected:"Disconnected",reconnecting:"Reconnecting...",thinking_process:"Thinking",confirm_delete:"Confirm Delete",confirm_delete_session:"Are you sure you want to delete this session? This cannot be undone.",delete_all:"Delete All",no_sessions:"No sessions to delete",status_panel:"Status",session_info:"Session",context_usage:"Context",cwd:"Working Dir",connected_status:"Connection",permission:"Permission",thinking_level:"Thinking",tokens:"tokens",collapse_panel:"Collapse",expand_panel:"Expand",context_window:"Context Window",question_submit:"Submit",question_placeholder:"Type your answer...",multi_select_confirm:"Confirm"};function rt(e,t){return e==="en"?db[t]||Fp[t]||t:Fp[t]||t}const fb=8,pb=16,hb=/^\s{2,}\w[\w-]*\s*\(.*\)\s*$/;function Up(e){const r=e.split(`
|
|
41
|
+
`).filter(a=>!hb.test(a));return r.length>0?r.join(`
|
|
42
|
+
`):e}function mb(e){const[t,r]=J.useState([]),[a,o]=J.useState(""),[u,l]=J.useState(""),[d,h]=J.useState({}),[m,b]=J.useState([]),[E,T]=J.useState([]),[_,x]=J.useState([]),[I,L]=J.useState([]),[O,F]=J.useState([]),[Y,V]=J.useState([]),[ee,B]=J.useState(null),[G,ne]=J.useState([]),[Ee,U]=J.useState([]),[_e,ue]=J.useState(!1),[Oe,he]=J.useState(!1),[te,we]=J.useState(!0),[Le,X]=J.useState([]),[Te,S]=J.useState([]),[M,K]=J.useState([]),[k,se]=J.useState([]),[Se,xe]=J.useState(null),[$e,Fe]=J.useState(!1),[Ke,ut]=J.useState([]),[Ht,Qn]=J.useState([]),zt=J.useRef(null),Un=J.useRef(""),tn=J.useRef(""),We=J.useRef(null),Dt=J.useRef(""),$t=J.useRef(""),dn=J.useRef(!1),mt=J.useRef([]),On=J.useRef(!0),Rn=J.useRef(null),fn=J.useRef(null),nn=J.useRef(null),Xn=J.useRef(!1),Q=J.useCallback(ct=>{fn.current=ct},[]),fe=J.useCallback(ct=>{nn.current=ct},[]),Be=J.useCallback(()=>{Xn.current=!0},[]),je=J.useCallback(ct=>{r(jt=>[...jt,ct])},[]),Ve=J.useCallback(()=>{const ct=tn.current;if(!ct)return;tn.current="",$t.current+=ct;let jt=$t.current.replace(/<think\b[^>]*>[\s\S]*?<\/think\b[^>]*>/gi,"").replace(/<\/think\b[^>]*>/gi,"").replace(/<think\b[^>]*>/gi,"").replace(/<th(?:i(?:n(?:k)?)?)?\s*$/i,"");Un.current=jt,o(jt)},[]),dt=J.useCallback(()=>{tn.current="",Un.current="",$t.current="",We.current&&(clearTimeout(We.current),We.current=null),o(""),Dt.current="",l("")},[]),Mt=J.useCallback(ct=>{const jt=zt.current;!jt||jt.readyState!==WebSocket.OPEN||jt.send(JSON.stringify(ct))},[]),Zt=J.useCallback(()=>{ue(!0)},[]),yn=J.useCallback(()=>{r([]),dt()},[dt]),Hn=J.useCallback(()=>{Qn([])},[]),Ct=J.useCallback(()=>{B(null)},[]),pn=J.useCallback(ct=>{Mt({type:"select_command",command:ct})},[Mt]),Pt=J.useCallback(ct=>{Mt({type:"apply_select_command",command:"effort",value:ct})},[Mt]),_r=J.useCallback(ct=>{Mt({type:"apply_select_command",command:"model",value:ct})},[Mt]);return J.useEffect(()=>{const ct=new WebSocket(e);zt.current=ct,ct.onopen=()=>Fe(!0),ct.onclose=()=>{Fe(!1),he(!1)},ct.onerror=()=>Fe(!1),ct.onmessage=be=>{let hn;try{hn=JSON.parse(be.data)}catch{return}jt(hn)};function jt(be){var hn,R;if(be.type==="ready"){he(!0),h(be.state??{});const $=(hn=be.state)==null?void 0:hn.show_thinking;typeof $=="boolean"&&(we($),On.current=$),b(be.tasks??[]),T(be.commands??[]),x(be.mcp_servers??[]),setTimeout(()=>{const Z=zt.current;Z&&Z.readyState===WebSocket.OPEN&&(Rn.current="skills",Z.send(JSON.stringify({type:"submit_line",line:"/skills"})))},300);return}if(be.type==="state_snapshot"){const $=be.state??{},Z=typeof d.model=="string"?d.model:"",Ne=typeof $.model=="string"?$.model:"";if(Ne&&Ne!==Z){const oe=zt.current;oe&&oe.readyState===WebSocket.OPEN&&oe.send(JSON.stringify({type:"select_command",command:"model"}))}const it=typeof d.effort=="string"?d.effort:"",Me=typeof $.effort=="string"?$.effort:"";if(Me&&Me!==it){const oe=zt.current;oe&&oe.readyState===WebSocket.OPEN&&oe.send(JSON.stringify({type:"select_command",command:"effort"}))}h($);const de=$.show_thinking;typeof de=="boolean"&&(we(de),On.current=de),x(be.mcp_servers??[]);return}if(be.type==="tasks_snapshot"){b(be.tasks??[]);return}if(be.type==="assistant_delta"){dn.current=!1,ue(!0),be.reasoning&&(Dt.current+=be.reasoning,l(Dt.current));const $=be.message??"";if(!$)return;if(tn.current+=$,tn.current.length>=pb){Ve();return}We.current||(We.current=setTimeout(()=>{We.current=null,Ve()},fb));return}if(be.type==="assistant_complete"){if(We.current&&(clearTimeout(We.current),We.current=null),Ve(),!dn.current){const $=be.message??$t.current,Z=(be.reasoning??Dt.current)||void 0;($.trim()||(Z??"").trim())&&je({role:"assistant",text:Up($),reasoning:Z})}dn.current=!1,dt();return}if(be.type==="line_complete"){dt(),mt.current=[],S([]),xe(null),ue(!1);return}if(be.type==="transcript_item"&&be.item){if(be.item.role==="user"&&be.item.text.startsWith("/"))return;je(be.item);return}if((be.type==="tool_started"||be.type==="tool_completed")&&be.item){if(be.type==="tool_started"){if($t.current.trim()||tn.current||Dt.current.trim()){We.current&&(clearTimeout(We.current),We.current=null),Ve();const oe=$t.current,Pe=Dt.current||void 0;(oe.trim()||(Pe??"").trim())&&je({role:"assistant",text:Up(oe),reasoning:Pe}),dt(),dn.current=!0}ue(!0);const Me=be.item.tool_input??be.tool_input,de=be.item.tool_use_id??be.tool_use_id??"";mt.current=[...mt.current,{tool_name:be.item.tool_name??be.tool_name??"tool",tool_use_id:de,tool_input:Me&&Object.keys(Me).length>0?Me:void 0}],S(mt.current);return}const $=be.item.tool_use_id??be.tool_use_id??"",Z=mt.current.findIndex(Me=>Me.tool_use_id===$);let Ne=be.item.tool_name??be.tool_name??"tool",it=be.item.tool_input??void 0;if(Z!==-1){const Me=mt.current[Z];Ne=Me.tool_name||Ne,it=Me.tool_input||it,mt.current=mt.current.filter(de=>de.tool_use_id!==$),S(mt.current)}je({role:"tool",text:Ne,tool_name:Ne,tool_input:it,tool_use_id:$||void 0}),je({...be.item,role:"tool_result",tool_name:Ne,tool_use_id:$||void 0,is_error:be.item.is_error??be.is_error??void 0});return}if(be.type==="tool_input_updated"){const $=be.tool_use_id;mt.current=mt.current.map(Z=>Z.tool_use_id===$?{...Z,tool_input:be.tool_input??void 0}:Z),S(mt.current);return}if(be.type==="clear_transcript"){r([]),dt(),mt.current=[],S([]);return}if(be.type==="replace_transcript"&&be.items){r(be.items.filter($=>!($.role==="user"&&$.text.startsWith("/")))),dt(),mt.current=[],S([]);return}if(be.type==="select_request"){const $=be.modal??{},Z=String($.command??""),Ne=be.select_options??[],it=Xn.current;if(Xn.current=!1,Z==="resume"){if(ut(Ne.map(Me=>({value:String(Me.value??""),label:String(Me.label??"")}))),!it&&fn.current){const Me=String($.title??Z),de=Ne.map(oe=>({value:String(oe.value??""),label:String(oe.label??""),description:oe.description?String(oe.description):void 0,active:oe.active===!0}));fn.current({command:Z,title:Me,options:de})}ue(!1);return}if(Z==="delete"){if(it)Qn(Ne.map(Me=>({value:String(Me.value??""),label:String(Me.label??"")})));else if(fn.current){const Me=String($.title??Z),de=Ne.map(oe=>({value:String(oe.value??""),label:String(oe.label??""),description:oe.description?String(oe.description):void 0,active:oe.active===!0}));fn.current({command:Z,title:Me,options:de})}ue(!1);return}if(Z==="effort"){const Me=Ne.map(de=>({value:String(de.value??""),label:String(de.label??""),active:de.active===!0}));ne(Me),ue(!1);return}if(Z==="model"){const Me=Ne.map(de=>({value:String(de.value??""),label:String(de.label??""),active:de.active===!0}));U(Me),ue(!1);return}if(Z==="permissions"){const Me=(R=Ne.find(de=>de.active))==null?void 0:R.value;Me&&h(de=>({...de,permission_mode:Me})),ue(!1);return}if(fn.current){const Me=String($.title??Z),de=Ne.map(oe=>({value:String(oe.value??""),label:String(oe.label??""),description:oe.description?String(oe.description):void 0,active:oe.active===!0}));fn.current({command:Z,title:Me,options:de})}ue(!1);return}if(be.type==="modal_request"){B(be.modal??null);return}if(be.type==="error"){je({role:"system",text:`error: ${be.message??"unknown error"}`}),dt(),ue(!1);return}if(be.type==="todo_update"&&be.todo_items!=null){X(be.todo_items);return}if(be.type==="swarm_status"){be.swarm_teammates!=null&&K(be.swarm_teammates),be.swarm_notifications!=null&&se($=>[...$,...be.swarm_notifications].slice(-20));return}if(be.type==="plan_mode_change"&&be.plan_mode!=null){h($=>({...$,permission_mode:be.plan_mode}));return}if(be.type==="command_result"&&be.command_result_data){const $=be.command_result_data.message??"",Z=Rn.current;if(Z){if(Rn.current=null,Z==="skills"){L(gb($)),setTimeout(()=>{const Ne=zt.current;Ne&&Ne.readyState===WebSocket.OPEN&&(Rn.current="plugins",Ne.send(JSON.stringify({type:"submit_line",line:"/plugin list"})))},100);return}if(Z==="plugins"){F(Eb($)),setTimeout(()=>{const Ne=zt.current;Ne&&Ne.readyState===WebSocket.OPEN&&(Rn.current="rules",Ne.send(JSON.stringify({type:"submit_line",line:"/rules"})))},100);return}if(Z==="rules"){V(bb($));return}}nn.current&&nn.current($,be.command_result_data.type||"info");return}if(be.type==="bg_agent_status"){xe(be.message??null);return}be.type==="shutdown"&&ct.close()}return()=>{ct.close(),zt.current=null}},[e,je,Ve,dt]),J.useMemo(()=>({staticItems:t,assistantBuffer:a,streamingReasoning:u,status:d,tasks:m,commands:E,mcpServers:_,skills:I,plugins:O,rules:Y,modal:ee,effortOptions:G,modelOptions:Ee,busy:_e,ready:Oe,showThinking:te,todoItems:Le,pendingToolCalls:Te,swarmTeammates:M,swarmNotifications:k,bgAgentLabel:Se,connected:$e,sessions:Ke,deleteSessions:Ht,clearDeleteSessions:Hn,suppressInlineOptions:Be,clearModal:Ct,requestSelectCommand:pn,setEffortValue:Pt,setModelValue:_r,sendRequest:Mt,clearStaticItems:yn,setBusyTrue:Zt,setOnSelectRequest:Q,setOnCommandResult:fe}),[t,a,u,d,m,E,_,I,O,Y,ee,G,Ee,_e,Oe,te,Le,Te,M,k,Se,$e,Ke,Ht,Hn,Be,Ct,pn,Pt,_r,Mt,yn,Zt,Q,fe])}function gb(e){const t=[];for(const r of e.split(`
|
|
43
|
+
`)){const a=r.match(/^-?\s*(.+?)\s*\[(\w+)\]\s*:\s*(.*)$/);if(a){t.push({name:a[1].trim(),description:a[3].trim(),source:a[2].trim()});continue}const o=r.match(/^-?\s*(.+?)\s*\[(\w+)\]\s*$/);o&&t.push({name:o[1].trim(),description:"",source:o[2].trim()})}return t}function Eb(e){const t=[];for(const r of e.split(`
|
|
44
|
+
`)){const a=r.match(/^-?\s*(.+?)\s*\[(\w+)\]\s*$/);a&&t.push({name:a[1].trim(),description:"",enabled:a[2]==="enabled",skill_count:0,mcp_count:0,command_count:0})}return t}function bb(e){const t=[];for(const r of e.split(`
|
|
45
|
+
`)){const a=r.match(/^\s*\d+\.\s*(.+?)\s*[—-]/);a&&t.push({name:a[1].trim(),source:"project"})}return t}function _b({lang:e,connected:t,sessions:r,onNewSession:a,onSelectSession:o,onListSessions:u,onDeleteSessions:l,collapsed:d,onToggle:h,width:m=280}){const[b,E]=J.useState(!1);return d?C.jsx("div",{className:"w-14 bg-surface-card border-r border-border-light flex flex-col items-center py-4 shrink-0 select-none",children:C.jsx("button",{onClick:h,className:"w-9 h-9 flex items-center justify-center rounded-lg text-content-secondary hover:bg-surface-hover hover:text-content-primary transition-colors cursor-pointer",title:"展开侧边栏",children:C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:C.jsx("path",{d:"M6 3l5 5-5 5"})})})}):C.jsxs("aside",{className:"bg-surface-card border-r border-border-light flex flex-col h-full shrink-0 select-none",style:{width:`${m}px`},children:[C.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-light",children:[C.jsx("button",{onClick:h,className:"w-8 h-8 flex items-center justify-center rounded-lg text-content-secondary hover:text-content-primary hover:bg-surface-hover transition-colors cursor-pointer",title:"收起侧边栏",children:C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:C.jsx("path",{d:"M10 3l-5 5 5 5"})})}),C.jsx("span",{className:"font-display font-semibold text-content-primary text-sm tracking-wider",children:rt(e,"sidebar_title")}),C.jsxs("div",{className:"relative",children:[C.jsx("button",{onClick:()=>E(!b),className:"w-8 h-8 flex items-center justify-center rounded-lg text-content-secondary hover:text-content-primary hover:bg-surface-hover transition-colors cursor-pointer",children:C.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("circle",{cx:"8",cy:"4",r:"1.5"}),C.jsx("circle",{cx:"8",cy:"8",r:"1.5"}),C.jsx("circle",{cx:"8",cy:"12",r:"1.5"})]})}),b&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>E(!1)}),C.jsx("div",{className:"absolute right-0 top-full mt-2 bg-white border border-border-light rounded-xl shadow-lg z-20 min-w-[160px] py-1",children:C.jsx("button",{onClick:()=>{l(),E(!1)},className:"w-full text-left px-3 py-2 text-sm text-danger hover:bg-red-50 transition-colors cursor-pointer",children:rt(e,"delete_session")})})]})]})]}),C.jsx("div",{className:"px-4 py-3",children:C.jsxs("button",{onClick:a,disabled:!t,className:"w-full text-left px-3 py-2 rounded-lg text-sm text-content-primary hover:bg-surface-hover transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed flex items-center gap-2 border border-border-light bg-white",children:[C.jsx("span",{className:"w-5 h-5 rounded-md bg-primary flex items-center justify-center text-white font-bold text-xs",children:"+"}),rt(e,"new_session")]})}),C.jsxs("div",{className:"flex-1 overflow-y-auto px-3",children:[C.jsx("div",{className:"py-2 text-[11px] text-content-secondary font-medium px-1 uppercase tracking-wider",children:rt(e,"resume_session")}),r.length>0?C.jsx("div",{className:"space-y-0.5",children:r.map(T=>C.jsx("button",{onClick:()=>o(T.value),className:"w-full text-left px-3 py-2 rounded-lg text-sm text-content-secondary hover:bg-surface-hover hover:text-content-primary transition-colors cursor-pointer",title:T.label,children:C.jsx("span",{className:"line-clamp-2 leading-relaxed",children:T.label})},T.value))}):C.jsx("button",{onClick:u,disabled:!t,className:"w-full text-left px-3 py-2 rounded-lg text-sm text-content-disabled hover:bg-surface-hover hover:text-content-secondary transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",children:rt(e,"load_more")})]}),C.jsx("div",{className:"px-4 py-3 border-t border-border-light",children:C.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[C.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${t?"bg-green-500":"bg-red-500"}`}),C.jsx("span",{className:"text-content-secondary",children:t?"Connected":rt(e,"disconnected")})]})})]})}function Hp(e){const t=[],r=String(e||"");let a=r.indexOf(","),o=0,u=!1;for(;!u;){a===-1&&(a=r.length,u=!0);const l=r.slice(o,a).trim();(l||!u)&&t.push(l),o=a+1,a=r.indexOf(",",o)}return t}function lm(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Tb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nb={};function zp(e,t){return(Nb.jsx?yb:Tb).test(e)}const Sb=/[ \t\n\f\r]/g;function xb(e){return typeof e=="object"?e.type==="text"?$p(e.value):!1:$p(e)}function $p(e){return e.replace(Sb,"")===""}class Ts{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Ts.prototype.normal={};Ts.prototype.property={};Ts.prototype.space=void 0;function cm(e,t){const r={},a={};for(const o of e)Object.assign(r,o.property),Object.assign(a,o.normal);return new Ts(r,a,t)}function ms(e){return e.toLowerCase()}class vn{constructor(t,r){this.attribute=r,this.property=t}}vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;let Ab=0;const Qe=Ai(),Ut=Ai(),Ac=Ai(),pe=Ai(),bt=Ai(),sa=Ai(),Bn=Ai();function Ai(){return 2**++Ab}const kc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:Ut,commaOrSpaceSeparated:Bn,commaSeparated:sa,number:pe,overloadedBoolean:Ac,spaceSeparated:bt},Symbol.toStringTag,{value:"Module"})),ec=Object.keys(kc);class $c extends vn{constructor(t,r,a,o){let u=-1;if(super(t,r),jp(this,"space",o),typeof a=="number")for(;++u<ec.length;){const l=ec[u];jp(this,ec[u],(a&kc[l])===kc[l])}}}$c.prototype.defined=!0;function jp(e,t,r){r&&(e[t]=r)}function ca(e){const t={},r={};for(const[a,o]of Object.entries(e.properties)){const u=new $c(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),t[a]=u,r[ms(a)]=a,r[ms(u.attribute)]=a}return new Ts(t,r,e.space)}const dm=ca({properties:{ariaActiveDescendant:null,ariaAtomic:Ut,ariaAutoComplete:null,ariaBusy:Ut,ariaChecked:Ut,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:bt,ariaCurrent:null,ariaDescribedBy:bt,ariaDetails:null,ariaDisabled:Ut,ariaDropEffect:bt,ariaErrorMessage:null,ariaExpanded:Ut,ariaFlowTo:bt,ariaGrabbed:Ut,ariaHasPopup:null,ariaHidden:Ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bt,ariaLevel:pe,ariaLive:null,ariaModal:Ut,ariaMultiLine:Ut,ariaMultiSelectable:Ut,ariaOrientation:null,ariaOwns:bt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Ut,ariaReadOnly:Ut,ariaRelevant:null,ariaRequired:Ut,ariaRoleDescription:bt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Ut,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fm(e,t){return t in e?e[t]:t}function pm(e,t){return fm(e,t.toLowerCase())}const kb=ca({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:sa,acceptCharset:bt,accessKey:bt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:bt,autoFocus:Qe,autoPlay:Qe,blocking:bt,capture:null,charSet:null,checked:Qe,cite:null,className:bt,cols:pe,colSpan:null,content:null,contentEditable:Ut,controls:Qe,controlsList:bt,coords:pe|sa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:Ac,draggable:Ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:bt,height:pe,hidden:Ac,high:pe,href:null,hrefLang:null,htmlFor:bt,httpEquiv:bt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:bt,itemRef:bt,itemScope:Qe,itemType:bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,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:Qe,optimum:pe,pattern:null,ping:bt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:bt,required:Qe,reversed:Qe,rows:pe,rowSpan:pe,sandbox:bt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:Ut,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Ut,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:pm}),Cb=ca({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:Bn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:bt,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:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,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:sa,g2:sa,glyphName:sa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,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:pe,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:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bn,rev:Bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bn,requiredFeatures:Bn,requiredFonts:Bn,requiredFormats:Bn,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:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fm}),hm=ca({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mm=ca({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pm}),gm=ca({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),wb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ib=/[A-Z]/g,Yp=/-[a-z]/g,vb=/^data[-\w.:]+$/i;function au(e,t){const r=ms(t);let a=t,o=vn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&vb.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(Yp,Rb);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!Yp.test(u)){let l=u.replace(Ib,Ob);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=$c}return new o(a,t)}function Ob(e){return"-"+e.toLowerCase()}function Rb(e){return e.charAt(1).toUpperCase()}const ys=cm([dm,kb,hm,mm,gm],"html"),ti=cm([dm,Cb,hm,mm,gm],"svg");function Wp(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Em(e){return e.join(" ").trim()}var Ji={},tc,Gp;function Lb(){if(Gp)return tc;Gp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
|
|
46
|
+
`,m="/",b="*",E="",T="comment",_="declaration";function x(L,O){if(typeof L!="string")throw new TypeError("First argument must be a string");if(!L)return[];O=O||{};var F=1,Y=1;function V(he){var te=he.match(t);te&&(F+=te.length);var we=he.lastIndexOf(h);Y=~we?he.length-we:Y+he.length}function ee(){var he={line:F,column:Y};return function(te){return te.position=new B(he),Ee(),te}}function B(he){this.start=he,this.end={line:F,column:Y},this.source=O.source}B.prototype.content=L;function G(he){var te=new Error(O.source+":"+F+":"+Y+": "+he);if(te.reason=he,te.filename=O.source,te.line=F,te.column=Y,te.source=L,!O.silent)throw te}function ne(he){var te=he.exec(L);if(te){var we=te[0];return V(we),L=L.slice(we.length),te}}function Ee(){ne(r)}function U(he){var te;for(he=he||[];te=_e();)te!==!1&&he.push(te);return he}function _e(){var he=ee();if(!(m!=L.charAt(0)||b!=L.charAt(1))){for(var te=2;E!=L.charAt(te)&&(b!=L.charAt(te)||m!=L.charAt(te+1));)++te;if(te+=2,E===L.charAt(te-1))return G("End of comment missing");var we=L.slice(2,te-2);return Y+=2,V(we),L=L.slice(te),Y+=2,he({type:T,comment:we})}}function ue(){var he=ee(),te=ne(a);if(te){if(_e(),!ne(o))return G("property missing ':'");var we=ne(u),Le=he({type:_,property:I(te[0].replace(e,E)),value:we?I(we[0].replace(e,E)):E});return ne(l),Le}}function Oe(){var he=[];U(he);for(var te;te=ue();)te!==!1&&(he.push(te),U(he));return he}return Ee(),Oe()}function I(L){return L?L.replace(d,E):E}return tc=x,tc}var qp;function Db(){if(qp)return Ji;qp=1;var e=Ji&&Ji.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=r;const t=e(Lb());function r(a,o){let u=null;if(!a||typeof a!="string")return u;const l=(0,t.default)(a),d=typeof o=="function";return l.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:b}=h;d?o(m,b,h):b&&(u=u||{},u[m]=b)}),u}return Ji}var Za={},Kp;function Mb(){if(Kp)return Za;Kp=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||r.test(m)||e.test(m)},l=function(m,b){return b.toUpperCase()},d=function(m,b){return"".concat(b,"-")},h=function(m,b){return b===void 0&&(b={}),u(m)?m:(m=m.toLowerCase(),b.reactCompat?m=m.replace(o,d):m=m.replace(a,d),m.replace(t,l))};return Za.camelCase=h,Za}var Ja,Vp;function Pb(){if(Vp)return Ja;Vp=1;var e=Ja&&Ja.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Db()),r=Mb();function a(o,u){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(l[(0,r.camelCase)(d,u)]=h)}),l}return a.default=a,Ja=a,Ja}var Bb=Pb();const Fb=_s(Bb),su=bm("end"),Er=bm("start");function bm(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Ub(e){const t=Er(e),r=su(e);if(t&&r)return{start:t,end:r}}function os(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qp(e.position):"start"in e||"end"in e?Qp(e):"line"in e||"column"in e?Cc(e):""}function Cc(e){return Xp(e&&e.line)+":"+Xp(e&&e.column)}function Qp(e){return Cc(e&&e.start)+"-"+Cc(e&&e.end)}function Xp(e){return e&&typeof e=="number"?e:1}class ln extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",u={},l=!1;if(r&&("line"in r&&"column"in r?u={place:r}:"start"in r&&"end"in r?u={place:r}:"type"in r?u={ancestors:[r],place:r.position}:u={...r}),typeof t=="string"?o=t:!u.cause&&t&&(l=!0,o=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?u.ruleId=a:(u.source=a.slice(0,h),u.ruleId=a.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=os(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ln.prototype.file="";ln.prototype.name="";ln.prototype.reason="";ln.prototype.message="";ln.prototype.stack="";ln.prototype.column=void 0;ln.prototype.line=void 0;ln.prototype.ancestors=void 0;ln.prototype.cause=void 0;ln.prototype.fatal=void 0;ln.prototype.place=void 0;ln.prototype.ruleId=void 0;ln.prototype.source=void 0;const jc={}.hasOwnProperty,Hb=new Map,zb=/[A-Z]/g,$b=new Set(["table","tbody","thead","tfoot","tr"]),jb=new Set(["td","th"]),_m="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yb(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=Zb(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=Xb(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ti:ys,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=Tm(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function Tm(e,t,r){if(t.type==="element")return Wb(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Gb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Kb(e,t,r);if(t.type==="mdxjsEsm")return qb(e,t);if(t.type==="root")return Vb(e,t,r);if(t.type==="text")return Qb(e,t)}function Wb(e,t,r){const a=e.schema;let o=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=ti,e.schema=o),e.ancestors.push(t);const u=Nm(e,t.tagName,!1),l=Jb(e,t);let d=Wc(e,t);return $b.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!xb(h):!0})),ym(e,l,u,t),Yc(l,d),e.ancestors.pop(),e.schema=a,e.create(t,u,l,r)}function Gb(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}gs(e,t.position)}function qb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gs(e,t.position)}function Kb(e,t,r){const a=e.schema;let o=a;t.name==="svg"&&a.space==="html"&&(o=ti,e.schema=o),e.ancestors.push(t);const u=t.name===null?e.Fragment:Nm(e,t.name,!0),l=e1(e,t),d=Wc(e,t);return ym(e,l,u,t),Yc(l,d),e.ancestors.pop(),e.schema=a,e.create(t,u,l,r)}function Vb(e,t,r){const a={};return Yc(a,Wc(e,t)),e.create(t,e.Fragment,a,r)}function Qb(e,t){return t.value}function ym(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Yc(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Xb(e,t,r){return a;function a(o,u,l,d){const m=Array.isArray(l.children)?r:t;return d?m(u,l,d):m(u,l)}}function Zb(e,t){return r;function r(a,o,u,l){const d=Array.isArray(u.children),h=Er(a);return t(o,u,l,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function Jb(e,t){const r={};let a,o;for(o in t.properties)if(o!=="children"&&jc.call(t.properties,o)){const u=t1(e,o,t.properties[o]);if(u){const[l,d]=u;e.tableCellAlignToStyle&&l==="align"&&typeof d=="string"&&jb.has(t.tagName)?a=d:r[l]=d}}if(a){const u=r.style||(r.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function e1(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const l=u.expression;l.type;const d=l.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else gs(e,t.position);else{const o=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else gs(e,t.position);else u=a.value===null?!0:a.value;r[o]=u}return r}function Wc(e,t){const r=[];let a=-1;const o=e.passKeys?new Map:Hb;for(;++a<t.children.length;){const u=t.children[a];let l;if(e.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const m=o.get(h)||0;l=h+"-"+m,o.set(h,m+1)}}const d=Tm(e,u,l);d!==void 0&&r.push(d)}return r}function t1(e,t,r){const a=au(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?lm(r):Em(r)),a.property==="style"){let o=typeof r=="object"?r:n1(e,String(r));return e.stylePropertyNameCase==="css"&&(o=r1(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?wb[a.property]||a.property:a.attribute,r]}}function n1(e,t){try{return Fb(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,o=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=_m+"#cannot-parse-style-attribute",o}}function Nm(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let u=-1,l;for(;++u<o.length;){const d=zp(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};l=l?{type:"MemberExpression",object:l,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=l}else a=zp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const o=a.value;return jc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);gs(e)}function gs(e,t){const r=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=_m+"#cannot-handle-mdx-estrees-without-createevaluater",r}function r1(e){const t={};let r;for(r in e)jc.call(e,r)&&(t[i1(r)]=e[r]);return t}function i1(e){let t=e.replace(zb,a1);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function a1(e){return"-"+e.toLowerCase()}const nc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},s1={};function Gc(e,t){const r=s1,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Sm(e,a,o)}function Sm(e,t,r){if(o1(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zp(e.children,t,r)}return Array.isArray(e)?Zp(e,t,r):""}function Zp(e,t,r){const a=[];let o=-1;for(;++o<e.length;)a[o]=Sm(e[o],t,r);return a.join("")}function o1(e){return!!(e&&typeof e=="object")}const Jp=document.createElement("i");function qc(e){const t="&"+e+";";Jp.innerHTML=t;const r=Jp.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Fn(e,t,r,a){const o=e.length;let u=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,a.length<1e4)l=Array.from(a),l.unshift(t,r),e.splice(...l);else for(r&&e.splice(t,r);u<a.length;)l=a.slice(u,u+1e4),l.unshift(t,0),e.splice(...l),u+=1e4,t+=1e4}function Kn(e,t){return e.length>0?(Fn(e,e.length,0,t),e):t}const eh={}.hasOwnProperty;function xm(e){const t={};let r=-1;for(;++r<e.length;)u1(t,e[r]);return t}function u1(e,t){let r;for(r in t){const o=(eh.call(e,r)?e[r]:void 0)||(e[r]={}),u=t[r];let l;if(u)for(l in u){eh.call(o,l)||(o[l]=[]);const d=u[l];l1(o[l],Array.isArray(d)?d:d?[d]:[])}}}function l1(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);Fn(e,0,0,a)}function Am(e,t){const r=Number.parseInt(e,t);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 ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tn=ni(/[A-Za-z]/),un=ni(/[\dA-Za-z]/),c1=ni(/[#-'*+\--9=?A-Z^-~]/);function Xo(e){return e!==null&&(e<32||e===127)}const wc=ni(/\d/),d1=ni(/[\dA-Fa-f]/),f1=ni(/[!-/:-@[-`{-~]/);function ze(e){return e!==null&&e<-2}function ht(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const ou=ni(new RegExp("\\p{P}|\\p{S}","u")),xi=ni(/\s/);function ni(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function da(e){const t=[];let r=-1,a=0,o=0;for(;++r<e.length;){const u=e.charCodeAt(r);let l="";if(u===37&&un(e.charCodeAt(r+1))&&un(e.charCodeAt(r+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(r+1);u<56320&&d>56319&&d<57344?(l=String.fromCharCode(u,d),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(a,r),encodeURIComponent(l)),a=r+o+1,l=""),o&&(r+=o,o=0)}return t.join("")+e.slice(a)}function at(e,t,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let u=0;return l;function l(h){return tt(h)?(e.enter(r),d(h)):t(h)}function d(h){return tt(h)&&u++<o?(e.consume(h),d):(e.exit(r),t(h))}}const p1={tokenize:h1};function h1(e){const t=e.attempt(this.parser.constructs.contentInitial,a,o);let r;return t;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),at(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),u(d)}function u(d){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,l(d)}function l(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return ze(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),l)}}const m1={tokenize:g1},th={tokenize:E1};function g1(e){const t=this,r=[];let a=0,o,u,l;return d;function d(Y){if(a<r.length){const V=r[a];return t.containerState=V[1],e.attempt(V[0].continuation,h,m)(Y)}return m(Y)}function h(Y){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&F();const V=t.events.length;let ee=V,B;for(;ee--;)if(t.events[ee][0]==="exit"&&t.events[ee][1].type==="chunkFlow"){B=t.events[ee][1].end;break}O(a);let G=V;for(;G<t.events.length;)t.events[G][1].end={...B},G++;return Fn(t.events,ee+1,0,t.events.slice(V)),t.events.length=G,m(Y)}return d(Y)}function m(Y){if(a===r.length){if(!o)return T(Y);if(o.currentConstruct&&o.currentConstruct.concrete)return x(Y);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(th,b,E)(Y)}function b(Y){return o&&F(),O(a),T(Y)}function E(Y){return t.parser.lazy[t.now().line]=a!==r.length,l=t.now().offset,x(Y)}function T(Y){return t.containerState={},e.attempt(th,_,x)(Y)}function _(Y){return a++,r.push([t.currentConstruct,t.containerState]),T(Y)}function x(Y){if(Y===null){o&&F(),O(0),e.consume(Y);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),I(Y)}function I(Y){if(Y===null){L(e.exit("chunkFlow"),!0),O(0),e.consume(Y);return}return ze(Y)?(e.consume(Y),L(e.exit("chunkFlow")),a=0,t.interrupt=void 0,d):(e.consume(Y),I)}function L(Y,V){const ee=t.sliceStream(Y);if(V&&ee.push(null),Y.previous=u,u&&(u.next=Y),u=Y,o.defineSkip(Y.start),o.write(ee),t.parser.lazy[Y.start.line]){let B=o.events.length;for(;B--;)if(o.events[B][1].start.offset<l&&(!o.events[B][1].end||o.events[B][1].end.offset>l))return;const G=t.events.length;let ne=G,Ee,U;for(;ne--;)if(t.events[ne][0]==="exit"&&t.events[ne][1].type==="chunkFlow"){if(Ee){U=t.events[ne][1].end;break}Ee=!0}for(O(a),B=G;B<t.events.length;)t.events[B][1].end={...U},B++;Fn(t.events,ne+1,0,t.events.slice(G)),t.events.length=B}}function O(Y){let V=r.length;for(;V-- >Y;){const ee=r[V];t.containerState=ee[1],ee[0].exit.call(t,e)}r.length=Y}function F(){o.write([null]),u=void 0,o=void 0,t.containerState._closeFlow=void 0}}function E1(e,t,r){return at(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oa(e){if(e===null||ht(e)||xi(e))return 1;if(ou(e))return 2}function uu(e,t,r){const a=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!a.includes(u)&&(t=u(t,r),a.push(u))}return t}const Ic={name:"attention",resolveAll:b1,tokenize:_1};function b1(e,t){let r=-1,a,o,u,l,d,h,m,b;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E={...e[a][1].end},T={...e[r][1].start};nh(E,-h),nh(T,h),l={type:h>1?"strongSequence":"emphasisSequence",start:E,end:{...e[a][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:T},u={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},o={type:h>1?"strong":"emphasis",start:{...l.start},end:{...d.end}},e[a][1].end={...l.start},e[r][1].start={...d.end},m=[],e[a][1].end.offset-e[a][1].start.offset&&(m=Kn(m,[["enter",e[a][1],t],["exit",e[a][1],t]])),m=Kn(m,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",u,t]]),m=Kn(m,uu(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),m=Kn(m,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(b=2,m=Kn(m,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,Fn(e,a-1,r-a+3,m),r=a+m.length-b-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function _1(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=oa(a);let u;return l;function l(h){return u=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===u)return e.consume(h),d;const m=e.exit("attentionSequence"),b=oa(h),E=!b||b===2&&o||r.includes(h),T=!o||o===2&&b||r.includes(a);return m._open=!!(u===42?E:E&&(o||!T)),m._close=!!(u===42?T:T&&(b||!E)),t(h)}}function nh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const T1={name:"autolink",tokenize:y1};function y1(e,t,r){let a=0;return o;function o(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(_){return Tn(_)?(e.consume(_),l):_===64?r(_):m(_)}function l(_){return _===43||_===45||_===46||un(_)?(a=1,d(_)):m(_)}function d(_){return _===58?(e.consume(_),a=0,h):(_===43||_===45||_===46||un(_))&&a++<32?(e.consume(_),d):(a=0,m(_))}function h(_){return _===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):_===null||_===32||_===60||Xo(_)?r(_):(e.consume(_),h)}function m(_){return _===64?(e.consume(_),b):c1(_)?(e.consume(_),m):r(_)}function b(_){return un(_)?E(_):r(_)}function E(_){return _===46?(e.consume(_),a=0,b):_===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):T(_)}function T(_){if((_===45||un(_))&&a++<63){const x=_===45?T:E;return e.consume(_),x}return r(_)}}const Ns={partial:!0,tokenize:N1};function N1(e,t,r){return a;function a(u){return tt(u)?at(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||ze(u)?t(u):r(u)}}const km={continuation:{tokenize:x1},exit:A1,name:"blockQuote",tokenize:S1};function S1(e,t,r){const a=this;return o;function o(l){if(l===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),u}return r(l)}function u(l){return tt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function x1(e,t,r){const a=this;return o;function o(l){return tt(l)?at(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):u(l)}function u(l){return e.attempt(km,t,r)(l)}}function A1(e){e.exit("blockQuote")}const Cm={name:"characterEscape",tokenize:k1};function k1(e,t,r){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return f1(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(u)}}const wm={name:"characterReference",tokenize:C1};function C1(e,t,r){const a=this;let o=0,u,l;return d;function d(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),h}function h(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,l=un,b(E))}function m(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,l=d1,b):(e.enter("characterReferenceValue"),u=7,l=wc,b(E))}function b(E){if(E===59&&o){const T=e.exit("characterReferenceValue");return l===un&&!qc(a.sliceSerialize(T))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(E)&&o++<u?(e.consume(E),b):r(E)}}const rh={partial:!0,tokenize:I1},ih={concrete:!0,name:"codeFenced",tokenize:w1};function w1(e,t,r){const a=this,o={partial:!0,tokenize:ee};let u=0,l=0,d;return h;function h(B){return m(B)}function m(B){const G=a.events[a.events.length-1];return u=G&&G[1].type==="linePrefix"?G[2].sliceSerialize(G[1],!0).length:0,d=B,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(B)}function b(B){return B===d?(l++,e.consume(B),b):l<3?r(B):(e.exit("codeFencedFenceSequence"),tt(B)?at(e,E,"whitespace")(B):E(B))}function E(B){return B===null||ze(B)?(e.exit("codeFencedFence"),a.interrupt?t(B):e.check(rh,I,V)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(B))}function T(B){return B===null||ze(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(B)):tt(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),at(e,_,"whitespace")(B)):B===96&&B===d?r(B):(e.consume(B),T)}function _(B){return B===null||ze(B)?E(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(B))}function x(B){return B===null||ze(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(B)):B===96&&B===d?r(B):(e.consume(B),x)}function I(B){return e.attempt(o,V,L)(B)}function L(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),O}function O(B){return u>0&&tt(B)?at(e,F,"linePrefix",u+1)(B):F(B)}function F(B){return B===null||ze(B)?e.check(rh,I,V)(B):(e.enter("codeFlowValue"),Y(B))}function Y(B){return B===null||ze(B)?(e.exit("codeFlowValue"),F(B)):(e.consume(B),Y)}function V(B){return e.exit("codeFenced"),t(B)}function ee(B,G,ne){let Ee=0;return U;function U(te){return B.enter("lineEnding"),B.consume(te),B.exit("lineEnding"),_e}function _e(te){return B.enter("codeFencedFence"),tt(te)?at(B,ue,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):ue(te)}function ue(te){return te===d?(B.enter("codeFencedFenceSequence"),Oe(te)):ne(te)}function Oe(te){return te===d?(Ee++,B.consume(te),Oe):Ee>=l?(B.exit("codeFencedFenceSequence"),tt(te)?at(B,he,"whitespace")(te):he(te)):ne(te)}function he(te){return te===null||ze(te)?(B.exit("codeFencedFence"),G(te)):ne(te)}}}function I1(e,t,r){const a=this;return o;function o(l){return l===null?r(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u)}function u(l){return a.parser.lazy[a.now().line]?r(l):t(l)}}const rc={name:"codeIndented",tokenize:O1},v1={partial:!0,tokenize:R1};function O1(e,t,r){const a=this;return o;function o(m){return e.enter("codeIndented"),at(e,u,"linePrefix",5)(m)}function u(m){const b=a.events[a.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?l(m):r(m)}function l(m){return m===null?h(m):ze(m)?e.attempt(v1,l,h)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||ze(m)?(e.exit("codeFlowValue"),l(m)):(e.consume(m),d)}function h(m){return e.exit("codeIndented"),t(m)}}function R1(e,t,r){const a=this;return o;function o(l){return a.parser.lazy[a.now().line]?r(l):ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):at(e,u,"linePrefix",5)(l)}function u(l){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(l):ze(l)?o(l):r(l)}}const L1={name:"codeText",previous:M1,resolve:D1,tokenize:P1};function D1(e){let t=e.length-4,r=3,a,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)o===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(o=a):(a===t||e[a][1].type==="lineEnding")&&(e[o][1].type="codeTextData",a!==o+2&&(e[o][1].end=e[a-1][1].end,e.splice(o+2,a-o-2),t-=a-o-2,a=o+2),o=void 0);return e}function M1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function P1(e,t,r){let a=0,o,u;return l;function l(E){return e.enter("codeText"),e.enter("codeTextSequence"),d(E)}function d(E){return E===96?(e.consume(E),a++,d):(e.exit("codeTextSequence"),h(E))}function h(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),h):E===96?(u=e.enter("codeTextSequence"),o=0,b(E)):ze(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):(e.enter("codeTextData"),m(E))}function m(E){return E===null||E===32||E===96||ze(E)?(e.exit("codeTextData"),h(E)):(e.consume(E),m)}function b(E){return E===96?(e.consume(E),o++,b):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(u.type="codeTextData",m(E))}}class B1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const o=r||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&es(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),es(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),es(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);es(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);es(this.left,r.reverse())}}}function es(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Im(e){const t={};let r=-1,a,o,u,l,d,h,m;const b=new B1(e);for(;++r<b.length;){for(;r in t;)r=t[r];if(a=b.get(r),r&&a[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,F1(b,r)),r=t[r],m=!0);else if(a[1]._container){for(u=r,o=void 0;u--;)if(l=b.get(u),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=u);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(a[1].end={...b.get(o)[1].start},d=b.slice(o,r),d.unshift(a),b.splice(o,r-o+1,d))}}return Fn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function F1(e,t){const r=e.get(t)[1],a=e.get(t)[2];let o=t-1;const u=[];let l=r._tokenizer;l||(l=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const d=l.events,h=[],m={};let b,E,T=-1,_=r,x=0,I=0;const L=[I];for(;_;){for(;e.get(++o)[1]!==_;);u.push(o),_._tokenizer||(b=a.sliceStream(_),_.next||b.push(null),E&&l.defineSkip(_.start),_._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(b),_._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),E=_,_=_.next}for(_=r;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(I=T+1,L.push(I),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(l.events=[],_?(_._tokenizer=void 0,_.previous=void 0):L.pop(),T=L.length;T--;){const O=d.slice(L[T],L[T+1]),F=u.pop();h.push([F,F+O.length-1]),e.splice(F,2,O)}for(h.reverse(),T=-1;++T<h.length;)m[x+h[T][0]]=x+h[T][1],x+=h[T][1]-h[T][0]-1;return m}const U1={resolve:z1,tokenize:$1},H1={partial:!0,tokenize:j1};function z1(e){return Im(e),e}function $1(e,t){let r;return a;function a(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?u(d):ze(d)?e.check(H1,l,u)(d):(e.consume(d),o)}function u(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function l(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function j1(e,t,r){const a=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),at(e,u,"linePrefix")}function u(l){if(l===null||ze(l))return r(l);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(l):e.interrupt(a.parser.constructs.flow,r,t)(l)}}function vm(e,t,r,a,o,u,l,d,h){const m=h||Number.POSITIVE_INFINITY;let b=0;return E;function E(O){return O===60?(e.enter(a),e.enter(o),e.enter(u),e.consume(O),e.exit(u),T):O===null||O===32||O===41||Xo(O)?r(O):(e.enter(a),e.enter(l),e.enter(d),e.enter("chunkString",{contentType:"string"}),I(O))}function T(O){return O===62?(e.enter(u),e.consume(O),e.exit(u),e.exit(o),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),_(O))}function _(O){return O===62?(e.exit("chunkString"),e.exit(d),T(O)):O===null||O===60||ze(O)?r(O):(e.consume(O),O===92?x:_)}function x(O){return O===60||O===62||O===92?(e.consume(O),_):_(O)}function I(O){return!b&&(O===null||O===41||ht(O))?(e.exit("chunkString"),e.exit(d),e.exit(l),e.exit(a),t(O)):b<m&&O===40?(e.consume(O),b++,I):O===41?(e.consume(O),b--,I):O===null||O===32||O===40||Xo(O)?r(O):(e.consume(O),O===92?L:I)}function L(O){return O===40||O===41||O===92?(e.consume(O),I):I(O)}}function Om(e,t,r,a,o,u){const l=this;let d=0,h;return m;function m(_){return e.enter(a),e.enter(o),e.consume(_),e.exit(o),e.enter(u),b}function b(_){return d>999||_===null||_===91||_===93&&!h||_===94&&!d&&"_hiddenFootnoteSupport"in l.parser.constructs?r(_):_===93?(e.exit(u),e.enter(o),e.consume(_),e.exit(o),e.exit(a),t):ze(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),E(_))}function E(_){return _===null||_===91||_===93||ze(_)||d++>999?(e.exit("chunkString"),b(_)):(e.consume(_),h||(h=!tt(_)),_===92?T:E)}function T(_){return _===91||_===92||_===93?(e.consume(_),d++,E):E(_)}}function Rm(e,t,r,a,o,u){let l;return d;function d(T){return T===34||T===39||T===40?(e.enter(a),e.enter(o),e.consume(T),e.exit(o),l=T===40?41:T,h):r(T)}function h(T){return T===l?(e.enter(o),e.consume(T),e.exit(o),e.exit(a),t):(e.enter(u),m(T))}function m(T){return T===l?(e.exit(u),h(l)):T===null?r(T):ze(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),at(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===l||T===null||ze(T)?(e.exit("chunkString"),m(T)):(e.consume(T),T===92?E:b)}function E(T){return T===l||T===92?(e.consume(T),b):b(T)}}function us(e,t){let r;return a;function a(o){return ze(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,a):tt(o)?at(e,a,r?"linePrefix":"lineSuffix")(o):t(o)}}const Y1={name:"definition",tokenize:G1},W1={partial:!0,tokenize:q1};function G1(e,t,r){const a=this;let o;return u;function u(_){return e.enter("definition"),l(_)}function l(_){return Om.call(a,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function d(_){return o=ar(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),h):r(_)}function h(_){return ht(_)?us(e,m)(_):m(_)}function m(_){return vm(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function b(_){return e.attempt(W1,E,E)(_)}function E(_){return tt(_)?at(e,T,"whitespace")(_):T(_)}function T(_){return _===null||ze(_)?(e.exit("definition"),a.parser.defined.push(o),t(_)):r(_)}}function q1(e,t,r){return a;function a(d){return ht(d)?us(e,o)(d):r(d)}function o(d){return Rm(e,u,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return tt(d)?at(e,l,"whitespace")(d):l(d)}function l(d){return d===null||ze(d)?t(d):r(d)}}const K1={name:"hardBreakEscape",tokenize:V1};function V1(e,t,r){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return ze(u)?(e.exit("hardBreakEscape"),t(u)):r(u)}}const Q1={name:"headingAtx",resolve:X1,tokenize:Z1};function X1(e,t){let r=e.length-2,a=3,o,u;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},u={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},Fn(e,a,r-a+1,[["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t]])),e}function Z1(e,t,r){let a=0;return o;function o(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),l(b)}function l(b){return b===35&&a++<6?(e.consume(b),l):b===null||ht(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||ze(b)?(e.exit("atxHeading"),t(b)):tt(b)?at(e,d,"whitespace")(b):(e.enter("atxHeadingText"),m(b))}function h(b){return b===35?(e.consume(b),h):(e.exit("atxHeadingSequence"),d(b))}function m(b){return b===null||b===35||ht(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),m)}}const J1=["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"],ah=["pre","script","style","textarea"],e_={concrete:!0,name:"htmlFlow",resolveTo:r_,tokenize:i_},t_={partial:!0,tokenize:s_},n_={partial:!0,tokenize:a_};function r_(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function i_(e,t,r){const a=this;let o,u,l,d,h;return m;function m(k){return b(k)}function b(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),E}function E(k){return k===33?(e.consume(k),T):k===47?(e.consume(k),u=!0,I):k===63?(e.consume(k),o=3,a.interrupt?t:S):Tn(k)?(e.consume(k),l=String.fromCharCode(k),L):r(k)}function T(k){return k===45?(e.consume(k),o=2,_):k===91?(e.consume(k),o=5,d=0,x):Tn(k)?(e.consume(k),o=4,a.interrupt?t:S):r(k)}function _(k){return k===45?(e.consume(k),a.interrupt?t:S):r(k)}function x(k){const se="CDATA[";return k===se.charCodeAt(d++)?(e.consume(k),d===se.length?a.interrupt?t:ue:x):r(k)}function I(k){return Tn(k)?(e.consume(k),l=String.fromCharCode(k),L):r(k)}function L(k){if(k===null||k===47||k===62||ht(k)){const se=k===47,Se=l.toLowerCase();return!se&&!u&&ah.includes(Se)?(o=1,a.interrupt?t(k):ue(k)):J1.includes(l.toLowerCase())?(o=6,se?(e.consume(k),O):a.interrupt?t(k):ue(k)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(k):u?F(k):Y(k))}return k===45||un(k)?(e.consume(k),l+=String.fromCharCode(k),L):r(k)}function O(k){return k===62?(e.consume(k),a.interrupt?t:ue):r(k)}function F(k){return tt(k)?(e.consume(k),F):U(k)}function Y(k){return k===47?(e.consume(k),U):k===58||k===95||Tn(k)?(e.consume(k),V):tt(k)?(e.consume(k),Y):U(k)}function V(k){return k===45||k===46||k===58||k===95||un(k)?(e.consume(k),V):ee(k)}function ee(k){return k===61?(e.consume(k),B):tt(k)?(e.consume(k),ee):Y(k)}function B(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),h=k,G):tt(k)?(e.consume(k),B):ne(k)}function G(k){return k===h?(e.consume(k),h=null,Ee):k===null||ze(k)?r(k):(e.consume(k),G)}function ne(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||ht(k)?ee(k):(e.consume(k),ne)}function Ee(k){return k===47||k===62||tt(k)?Y(k):r(k)}function U(k){return k===62?(e.consume(k),_e):r(k)}function _e(k){return k===null||ze(k)?ue(k):tt(k)?(e.consume(k),_e):r(k)}function ue(k){return k===45&&o===2?(e.consume(k),we):k===60&&o===1?(e.consume(k),Le):k===62&&o===4?(e.consume(k),M):k===63&&o===3?(e.consume(k),S):k===93&&o===5?(e.consume(k),Te):ze(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(t_,K,Oe)(k)):k===null||ze(k)?(e.exit("htmlFlowData"),Oe(k)):(e.consume(k),ue)}function Oe(k){return e.check(n_,he,K)(k)}function he(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),te}function te(k){return k===null||ze(k)?Oe(k):(e.enter("htmlFlowData"),ue(k))}function we(k){return k===45?(e.consume(k),S):ue(k)}function Le(k){return k===47?(e.consume(k),l="",X):ue(k)}function X(k){if(k===62){const se=l.toLowerCase();return ah.includes(se)?(e.consume(k),M):ue(k)}return Tn(k)&&l.length<8?(e.consume(k),l+=String.fromCharCode(k),X):ue(k)}function Te(k){return k===93?(e.consume(k),S):ue(k)}function S(k){return k===62?(e.consume(k),M):k===45&&o===2?(e.consume(k),S):ue(k)}function M(k){return k===null||ze(k)?(e.exit("htmlFlowData"),K(k)):(e.consume(k),M)}function K(k){return e.exit("htmlFlow"),t(k)}}function a_(e,t,r){const a=this;return o;function o(l){return ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):r(l)}function u(l){return a.parser.lazy[a.now().line]?r(l):t(l)}}function s_(e,t,r){return a;function a(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Ns,t,r)}}const o_={name:"htmlText",tokenize:u_};function u_(e,t,r){const a=this;let o,u,l;return d;function d(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),h}function h(S){return S===33?(e.consume(S),m):S===47?(e.consume(S),ee):S===63?(e.consume(S),Y):Tn(S)?(e.consume(S),ne):r(S)}function m(S){return S===45?(e.consume(S),b):S===91?(e.consume(S),u=0,x):Tn(S)?(e.consume(S),F):r(S)}function b(S){return S===45?(e.consume(S),_):r(S)}function E(S){return S===null?r(S):S===45?(e.consume(S),T):ze(S)?(l=E,Le(S)):(e.consume(S),E)}function T(S){return S===45?(e.consume(S),_):E(S)}function _(S){return S===62?we(S):S===45?T(S):E(S)}function x(S){const M="CDATA[";return S===M.charCodeAt(u++)?(e.consume(S),u===M.length?I:x):r(S)}function I(S){return S===null?r(S):S===93?(e.consume(S),L):ze(S)?(l=I,Le(S)):(e.consume(S),I)}function L(S){return S===93?(e.consume(S),O):I(S)}function O(S){return S===62?we(S):S===93?(e.consume(S),O):I(S)}function F(S){return S===null||S===62?we(S):ze(S)?(l=F,Le(S)):(e.consume(S),F)}function Y(S){return S===null?r(S):S===63?(e.consume(S),V):ze(S)?(l=Y,Le(S)):(e.consume(S),Y)}function V(S){return S===62?we(S):Y(S)}function ee(S){return Tn(S)?(e.consume(S),B):r(S)}function B(S){return S===45||un(S)?(e.consume(S),B):G(S)}function G(S){return ze(S)?(l=G,Le(S)):tt(S)?(e.consume(S),G):we(S)}function ne(S){return S===45||un(S)?(e.consume(S),ne):S===47||S===62||ht(S)?Ee(S):r(S)}function Ee(S){return S===47?(e.consume(S),we):S===58||S===95||Tn(S)?(e.consume(S),U):ze(S)?(l=Ee,Le(S)):tt(S)?(e.consume(S),Ee):we(S)}function U(S){return S===45||S===46||S===58||S===95||un(S)?(e.consume(S),U):_e(S)}function _e(S){return S===61?(e.consume(S),ue):ze(S)?(l=_e,Le(S)):tt(S)?(e.consume(S),_e):Ee(S)}function ue(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,Oe):ze(S)?(l=ue,Le(S)):tt(S)?(e.consume(S),ue):(e.consume(S),he)}function Oe(S){return S===o?(e.consume(S),o=void 0,te):S===null?r(S):ze(S)?(l=Oe,Le(S)):(e.consume(S),Oe)}function he(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||ht(S)?Ee(S):(e.consume(S),he)}function te(S){return S===47||S===62||ht(S)?Ee(S):r(S)}function we(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function Le(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),X}function X(S){return tt(S)?at(e,Te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):Te(S)}function Te(S){return e.enter("htmlTextData"),l(S)}}const Kc={name:"labelEnd",resolveAll:f_,resolveTo:p_,tokenize:h_},l_={tokenize:m_},c_={tokenize:g_},d_={tokenize:E_};function f_(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",t+=o}}return e.length!==r.length&&Fn(e,0,e.length,r),e}function p_(e,t){let r=e.length,a=0,o,u,l,d;for(;r--;)if(o=e[r][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(l){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(l=r);const h={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[l][1].end}},b={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[l-2][1].start}};return d=[["enter",h,t],["enter",m,t]],d=Kn(d,e.slice(u+1,u+a+3)),d=Kn(d,[["enter",b,t]]),d=Kn(d,uu(t.parser.constructs.insideSpan.null,e.slice(u+a+4,l-3),t)),d=Kn(d,[["exit",b,t],e[l-2],e[l-1],["exit",m,t]]),d=Kn(d,e.slice(l+1)),d=Kn(d,[["exit",h,t]]),Fn(e,u,e.length,d),e}function h_(e,t,r){const a=this;let o=a.events.length,u,l;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){u=a.events[o][1];break}return d;function d(T){return u?u._inactive?E(T):(l=a.parser.defined.includes(ar(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):r(T)}function h(T){return T===40?e.attempt(l_,b,l?b:E)(T):T===91?e.attempt(c_,b,l?m:E)(T):l?b(T):E(T)}function m(T){return e.attempt(d_,b,E)(T)}function b(T){return t(T)}function E(T){return u._balanced=!0,r(T)}}function m_(e,t,r){return a;function a(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),o}function o(E){return ht(E)?us(e,u)(E):u(E)}function u(E){return E===41?b(E):vm(e,l,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function l(E){return ht(E)?us(e,h)(E):b(E)}function d(E){return r(E)}function h(E){return E===34||E===39||E===40?Rm(e,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function m(E){return ht(E)?us(e,b)(E):b(E)}function b(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),t):r(E)}}function g_(e,t,r){const a=this;return o;function o(d){return Om.call(a,e,u,l,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(ar(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function l(d){return r(d)}}function E_(e,t,r){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):r(u)}}const b_={name:"labelStartImage",resolveAll:Kc.resolveAll,tokenize:__};function __(e,t,r){const a=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),l):r(d)}function l(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):t(d)}}const T_={name:"labelStartLink",resolveAll:Kc.resolveAll,tokenize:y_};function y_(e,t,r){const a=this;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),u}function u(l){return l===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(l):t(l)}}const ic={name:"lineEnding",tokenize:N_};function N_(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),at(e,t,"linePrefix")}}const Ko={name:"thematicBreak",tokenize:S_};function S_(e,t,r){let a=0,o;return u;function u(m){return e.enter("thematicBreak"),l(m)}function l(m){return o=m,d(m)}function d(m){return m===o?(e.enter("thematicBreakSequence"),h(m)):a>=3&&(m===null||ze(m))?(e.exit("thematicBreak"),t(m)):r(m)}function h(m){return m===o?(e.consume(m),a++,h):(e.exit("thematicBreakSequence"),tt(m)?at(e,d,"whitespace")(m):d(m))}}const In={continuation:{tokenize:C_},exit:I_,name:"list",tokenize:k_},x_={partial:!0,tokenize:v_},A_={partial:!0,tokenize:w_};function k_(e,t,r){const a=this,o=a.events[a.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return d;function d(_){const x=a.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!a.containerState.marker||_===a.containerState.marker:wc(_)){if(a.containerState.type||(a.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(Ko,r,m)(_):m(_);if(!a.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(_)}return r(_)}function h(_){return wc(_)&&++l<10?(e.consume(_),h):(!a.interrupt||l<2)&&(a.containerState.marker?_===a.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),m(_)):r(_)}function m(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||_,e.check(Ns,a.interrupt?r:b,e.attempt(x_,T,E))}function b(_){return a.containerState.initialBlankLine=!0,u++,T(_)}function E(_){return tt(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),T):r(_)}function T(_){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function C_(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Ns,o,u);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,at(e,t,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!tt(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,l(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(A_,t,l)(d))}function l(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,at(e,e.attempt(In,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function w_(e,t,r){const a=this;return at(e,o,"listItemIndent",a.containerState.size+1);function o(u){const l=a.events[a.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===a.containerState.size?t(u):r(u)}}function I_(e){e.exit(this.containerState.type)}function v_(e,t,r){const a=this;return at(e,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const l=a.events[a.events.length-1];return!tt(u)&&l&&l[1].type==="listItemPrefixWhitespace"?t(u):r(u)}}const sh={name:"setextUnderline",resolveTo:O_,tokenize:R_};function O_(e,t){let r=e.length,a,o,u;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!u&&e[r][1].type==="definition"&&(u=r);const l={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",l,t]),e.splice(u+1,0,["exit",e[a][1],t]),e[a][1].end={...e[u][1].end}):e[a][1]=l,e.push(["exit",l,t]),e}function R_(e,t,r){const a=this;let o;return u;function u(m){let b=a.events.length,E;for(;b--;)if(a.events[b][1].type!=="lineEnding"&&a.events[b][1].type!=="linePrefix"&&a.events[b][1].type!=="content"){E=a.events[b][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||E)?(e.enter("setextHeadingLine"),o=m,l(m)):r(m)}function l(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===o?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),tt(m)?at(e,h,"lineSuffix")(m):h(m))}function h(m){return m===null||ze(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const L_={tokenize:D_};function D_(e){const t=this,r=e.attempt(Ns,a,e.attempt(this.parser.constructs.flowInitial,o,at(e,e.attempt(this.parser.constructs.flow,o,e.attempt(U1,o)),"linePrefix")));return r;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const M_={resolveAll:Dm()},P_=Lm("string"),B_=Lm("text");function Lm(e){return{resolveAll:Dm(e==="text"?F_:void 0),tokenize:t};function t(r){const a=this,o=this.parser.constructs[e],u=r.attempt(o,l,d);return l;function l(b){return m(b)?u(b):d(b)}function d(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),h}function h(b){return m(b)?(r.exit("data"),u(b)):(r.consume(b),h)}function m(b){if(b===null)return!0;const E=o[b];let T=-1;if(E)for(;++T<E.length;){const _=E[T];if(!_.previous||_.previous.call(a,a.previous))return!0}return!1}}}function Dm(e){return t;function t(r,a){let o=-1,u;for(;++o<=r.length;)u===void 0?r[o]&&r[o][1].type==="data"&&(u=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==u+2&&(r[u][1].end=r[o-1][1].end,r.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(r,a):r}}function F_(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],o=t.sliceStream(a);let u=o.length,l=-1,d=0,h;for(;u--;){const m=o[u];if(typeof m=="string"){for(l=m.length;m.charCodeAt(l-1)===32;)d++,l--;if(l)break;l=-1}else if(m===-2)h=!0,d++;else if(m!==-1){u++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const m={type:r===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?l:a.start._bufferIndex+l,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(e.splice(r,0,["enter",m,t],["exit",m,t]),r+=2)}r++}return e}const U_={42:In,43:In,45:In,48:In,49:In,50:In,51:In,52:In,53:In,54:In,55:In,56:In,57:In,62:km},H_={91:Y1},z_={[-2]:rc,[-1]:rc,32:rc},$_={35:Q1,42:Ko,45:[sh,Ko],60:e_,61:sh,95:Ko,96:ih,126:ih},j_={38:wm,92:Cm},Y_={[-5]:ic,[-4]:ic,[-3]:ic,33:b_,38:wm,42:Ic,60:[T1,o_],91:T_,92:[K1,Cm],93:Kc,95:Ic,96:L1},W_={null:[Ic,M_]},G_={null:[42,95]},q_={null:[]},K_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:G_,contentInitial:H_,disable:q_,document:U_,flow:$_,flowInitial:z_,insideSpan:W_,string:j_,text:Y_},Symbol.toStringTag,{value:"Module"}));function V_(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},u=[];let l=[],d=[];const h={attempt:G(ee),check:G(B),consume:F,enter:Y,exit:V,interrupt:G(B,{interrupt:!0})},m={code:null,containerState:{},defineSkip:I,events:[],now:x,parser:e,previous:null,sliceSerialize:T,sliceStream:_,write:E};let b=t.tokenize.call(m,h);return t.resolveAll&&u.push(t),m;function E(_e){return l=Kn(l,_e),L(),l[l.length-1]!==null?[]:(ne(t,0),m.events=uu(u,m.events,m),m.events)}function T(_e,ue){return X_(_(_e),ue)}function _(_e){return Q_(l,_e)}function x(){const{_bufferIndex:_e,_index:ue,line:Oe,column:he,offset:te}=a;return{_bufferIndex:_e,_index:ue,line:Oe,column:he,offset:te}}function I(_e){o[_e.line]=_e.column,U()}function L(){let _e;for(;a._index<l.length;){const ue=l[a._index];if(typeof ue=="string")for(_e=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===_e&&a._bufferIndex<ue.length;)O(ue.charCodeAt(a._bufferIndex));else O(ue)}}function O(_e){b=b(_e)}function F(_e){ze(_e)?(a.line++,a.column=1,a.offset+=_e===-3?2:1,U()):_e!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===l[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=_e}function Y(_e,ue){const Oe=ue||{};return Oe.type=_e,Oe.start=x(),m.events.push(["enter",Oe,m]),d.push(Oe),Oe}function V(_e){const ue=d.pop();return ue.end=x(),m.events.push(["exit",ue,m]),ue}function ee(_e,ue){ne(_e,ue.from)}function B(_e,ue){ue.restore()}function G(_e,ue){return Oe;function Oe(he,te,we){let Le,X,Te,S;return Array.isArray(he)?K(he):"tokenize"in he?K([he]):M(he);function M(xe){return $e;function $e(Fe){const Ke=Fe!==null&&xe[Fe],ut=Fe!==null&&xe.null,Ht=[...Array.isArray(Ke)?Ke:Ke?[Ke]:[],...Array.isArray(ut)?ut:ut?[ut]:[]];return K(Ht)(Fe)}}function K(xe){return Le=xe,X=0,xe.length===0?we:k(xe[X])}function k(xe){return $e;function $e(Fe){return S=Ee(),Te=xe,xe.partial||(m.currentConstruct=xe),xe.name&&m.parser.constructs.disable.null.includes(xe.name)?Se():xe.tokenize.call(ue?Object.assign(Object.create(m),ue):m,h,se,Se)(Fe)}}function se(xe){return _e(Te,S),te}function Se(xe){return S.restore(),++X<Le.length?k(Le[X]):we}}}function ne(_e,ue){_e.resolveAll&&!u.includes(_e)&&u.push(_e),_e.resolve&&Fn(m.events,ue,m.events.length-ue,_e.resolve(m.events.slice(ue),m)),_e.resolveTo&&(m.events=_e.resolveTo(m.events,m))}function Ee(){const _e=x(),ue=m.previous,Oe=m.currentConstruct,he=m.events.length,te=Array.from(d);return{from:he,restore:we};function we(){a=_e,m.previous=ue,m.currentConstruct=Oe,m.events.length=he,d=te,U()}}function U(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function Q_(e,t){const r=t.start._index,a=t.start._bufferIndex,o=t.end._index,u=t.end._bufferIndex;let l;if(r===o)l=[e[r].slice(a,u)];else{if(l=e.slice(r,o),a>-1){const d=l[0];typeof d=="string"?l[0]=d.slice(a):l.shift()}u>0&&l.push(e[o].slice(0,u))}return l}function X_(e,t){let r=-1;const a=[];let o;for(;++r<e.length;){const u=e[r];let l;if(typeof u=="string")l=u;else switch(u){case-5:{l="\r";break}case-4:{l=`
|
|
47
|
+
`;break}case-3:{l=`\r
|
|
48
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(u)}o=u===-2,a.push(l)}return a.join("")}function Z_(e){const a={constructs:xm([K_,...(e||{}).extensions||[]]),content:o(p1),defined:[],document:o(m1),flow:o(L_),lazy:{},string:o(P_),text:o(B_)};return a;function o(u){return l;function l(d){return V_(a,u,d)}}}function J_(e){for(;!Im(e););return e}const oh=/[\0\t\n\r]/g;function eT(){let e=1,t="",r=!0,a;return o;function o(u,l,d){const h=[];let m,b,E,T,_;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(l||void 0).decode(u)),E=0,t="",r&&(u.charCodeAt(0)===65279&&E++,r=void 0);E<u.length;){if(oh.lastIndex=E,m=oh.exec(u),T=m&&m.index!==void 0?m.index:u.length,_=u.charCodeAt(T),!m){t=u.slice(E);break}if(_===10&&E===T&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),E<T&&(h.push(u.slice(E,T)),e+=T-E),_){case 0:{h.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,h.push(-2);e++<b;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}E=T+1}return d&&(a&&h.push(-5),t&&h.push(t),h.push(null)),h}}const tT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nT(e){return e.replace(tT,rT)}function rT(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),u=o===120||o===88;return Am(r.slice(u?2:1),u?16:10)}return qc(r)||e}const Mm={}.hasOwnProperty;function iT(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),aT(r)(J_(Z_(r).document().write(eT()(e,t,!0))))}function aT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(dn),autolinkProtocol:Ee,autolinkEmail:Ee,atxHeading:u(tn),blockQuote:u(ut),characterEscape:Ee,characterReference:Ee,codeFenced:u(Ht),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(Ht,l),codeText:u(Qn,l),codeTextData:Ee,data:Ee,codeFlowValue:Ee,definition:u(zt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(Un),hardBreakEscape:u(We),hardBreakTrailing:u(We),htmlFlow:u(Dt,l),htmlFlowData:Ee,htmlText:u(Dt,l),htmlTextData:Ee,image:u($t),label:l,link:u(dn),listItem:u(On),listItemValue:T,listOrdered:u(mt,E),listUnordered:u(mt),paragraph:u(Rn),reference:k,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(tn),strong:u(fn),thematicBreak:u(Xn)},exit:{atxHeading:h(),atxHeadingSequence:ee,autolink:h(),autolinkEmail:Ke,autolinkProtocol:Fe,blockQuote:h(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:xe,characterReference:$e,codeFenced:h(L),codeFencedFence:I,codeFencedFenceInfo:_,codeFencedFenceMeta:x,codeFlowValue:U,codeIndented:h(O),codeText:h(te),codeTextData:U,data:U,definition:h(),definitionDestinationString:V,definitionLabelString:F,definitionTitleString:Y,emphasis:h(),hardBreakEscape:h(ue),hardBreakTrailing:h(ue),htmlFlow:h(Oe),htmlFlowData:U,htmlText:h(he),htmlTextData:U,image:h(Le),label:Te,labelText:X,lineEnding:_e,link:h(we),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:se,resourceDestinationString:S,resourceTitleString:M,resource:K,setextHeading:h(ne),setextHeadingLineSequence:G,setextHeadingText:B,strong:h(),thematicBreak:h()}};Pm(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(Q){let fe={type:"root",children:[]};const Be={stack:[fe],tokenStack:[],config:t,enter:d,exit:m,buffer:l,resume:b,data:r},je=[];let Ve=-1;for(;++Ve<Q.length;)if(Q[Ve][1].type==="listOrdered"||Q[Ve][1].type==="listUnordered")if(Q[Ve][0]==="enter")je.push(Ve);else{const dt=je.pop();Ve=o(Q,dt,Ve)}for(Ve=-1;++Ve<Q.length;){const dt=t[Q[Ve][0]];Mm.call(dt,Q[Ve][1].type)&&dt[Q[Ve][1].type].call(Object.assign({sliceSerialize:Q[Ve][2].sliceSerialize},Be),Q[Ve][1])}if(Be.tokenStack.length>0){const dt=Be.tokenStack[Be.tokenStack.length-1];(dt[1]||uh).call(Be,void 0,dt[0])}for(fe.position={start:Xr(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:Xr(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)fe=t.transforms[Ve](fe)||fe;return fe}function o(Q,fe,Be){let je=fe-1,Ve=-1,dt=!1,Mt,Zt,yn,Hn;for(;++je<=Be;){const Ct=Q[je];switch(Ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ct[0]==="enter"?Ve++:Ve--,Hn=void 0;break}case"lineEndingBlank":{Ct[0]==="enter"&&(Mt&&!Hn&&!Ve&&!yn&&(yn=je),Hn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hn=void 0}if(!Ve&&Ct[0]==="enter"&&Ct[1].type==="listItemPrefix"||Ve===-1&&Ct[0]==="exit"&&(Ct[1].type==="listUnordered"||Ct[1].type==="listOrdered")){if(Mt){let pn=je;for(Zt=void 0;pn--;){const Pt=Q[pn];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;Zt&&(Q[Zt][1].type="lineEndingBlank",dt=!0),Pt[1].type="lineEnding",Zt=pn}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}yn&&(!Zt||yn<Zt)&&(Mt._spread=!0),Mt.end=Object.assign({},Zt?Q[Zt][1].start:Ct[1].end),Q.splice(Zt||je,0,["exit",Mt,Ct[2]]),je++,Be++}if(Ct[1].type==="listItemPrefix"){const pn={type:"listItem",_spread:!1,start:Object.assign({},Ct[1].start),end:void 0};Mt=pn,Q.splice(je,0,["enter",pn,Ct[2]]),je++,Be++,yn=void 0,Hn=!0}}}return Q[fe][1]._spread=dt,Be}function u(Q,fe){return Be;function Be(je){d.call(this,Q(je),je),fe&&fe.call(this,je)}}function l(){this.stack.push({type:"fragment",children:[]})}function d(Q,fe,Be){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([fe,Be||void 0]),Q.position={start:Xr(fe.start),end:void 0}}function h(Q){return fe;function fe(Be){Q&&Q.call(this,Be),m.call(this,Be)}}function m(Q,fe){const Be=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==Q.type&&(fe?fe.call(this,Q,je[0]):(je[1]||uh).call(this,Q,je[0]));else throw new Error("Cannot close `"+Q.type+"` ("+os({start:Q.start,end:Q.end})+"): it’s not open");Be.position.end=Xr(Q.end)}function b(){return Gc(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function T(Q){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function _(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=Q}function x(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=Q}function I(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q.replace(/(\r?\n|\r)$/g,"")}function F(Q){const fe=this.resume(),Be=this.stack[this.stack.length-1];Be.label=fe,Be.identifier=ar(this.sliceSerialize(Q)).toLowerCase()}function Y(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Q}function V(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Q}function ee(Q){const fe=this.stack[this.stack.length-1];if(!fe.depth){const Be=this.sliceSerialize(Q).length;fe.depth=Be}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function G(Q){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function Ee(Q){const Be=this.stack[this.stack.length-1].children;let je=Be[Be.length-1];(!je||je.type!=="text")&&(je=nn(),je.position={start:Xr(Q.start),end:void 0},Be.push(je)),this.stack.push(je)}function U(Q){const fe=this.stack.pop();fe.value+=this.sliceSerialize(Q),fe.position.end=Xr(Q.end)}function _e(Q){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Be=fe.children[fe.children.length-1];Be.position.end=Xr(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(fe.type)&&(Ee.call(this,Q),U.call(this,Q))}function ue(){this.data.atHardBreak=!0}function Oe(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q}function he(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q}function te(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q}function we(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=fe,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function Le(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=fe,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function X(Q){const fe=this.sliceSerialize(Q),Be=this.stack[this.stack.length-2];Be.label=nT(fe),Be.identifier=ar(fe).toLowerCase()}function Te(){const Q=this.stack[this.stack.length-1],fe=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){const je=Q.children;Be.children=je}else Be.alt=fe}function S(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Q}function M(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Q}function K(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function se(Q){const fe=this.resume(),Be=this.stack[this.stack.length-1];Be.label=fe,Be.identifier=ar(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function Se(Q){this.data.characterReferenceType=Q.type}function xe(Q){const fe=this.sliceSerialize(Q),Be=this.data.characterReferenceType;let je;Be?(je=Am(fe,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=qc(fe);const Ve=this.stack[this.stack.length-1];Ve.value+=je}function $e(Q){const fe=this.stack.pop();fe.position.end=Xr(Q.end)}function Fe(Q){U.call(this,Q);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(Q)}function Ke(Q){U.call(this,Q);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(Q)}function ut(){return{type:"blockquote",children:[]}}function Ht(){return{type:"code",lang:null,meta:null,value:""}}function Qn(){return{type:"inlineCode",value:""}}function zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Un(){return{type:"emphasis",children:[]}}function tn(){return{type:"heading",depth:0,children:[]}}function We(){return{type:"break"}}function Dt(){return{type:"html",value:""}}function $t(){return{type:"image",title:null,url:"",alt:null}}function dn(){return{type:"link",title:null,url:"",children:[]}}function mt(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function On(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function fn(){return{type:"strong",children:[]}}function nn(){return{type:"text",value:""}}function Xn(){return{type:"thematicBreak"}}}function Xr(e){return{line:e.line,column:e.column,offset:e.offset}}function Pm(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?Pm(e,a):sT(e,a)}}function sT(e,t){let r;for(r in t)if(Mm.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function uh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+os({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+os({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+os({start:t.start,end:t.end})+") is still open")}function oT(e){const t=this;t.parser=r;function r(a){return iT(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uT(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function lT(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
49
|
+
`}]}function cT(e,t){const r=t.value?t.value+`
|
|
50
|
+
`:"",a={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function dT(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fT(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pT(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=da(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let l,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),l=e.footnoteOrder.length):l=u+1,d+=1,e.footnoteCounts.set(a,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,m),e.applyData(t,m)}function hT(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mT(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Bm(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=a:o.push({type:"text",value:a}),o}function gT(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Bm(e,t);const o={src:da(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,u),e.applyData(t,u)}function ET(e,t){const r={src:da(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function bT(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function _T(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Bm(e,t);const o={href:da(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function TT(e,t){const r={href:da(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function yT(e,t,r){const a=e.all(t),o=r?NT(r):Fm(t),u={},l=[];if(typeof t.checked=="boolean"){const b=a[0];let E;b&&b.type==="element"&&b.tagName==="p"?E=b:(E={type:"element",tagName:"p",properties:{},children:[]},a.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const b=a[d];(o||d!==0||b.type!=="element"||b.tagName!=="p")&&l.push({type:"text",value:`
|
|
51
|
+
`}),b.type==="element"&&b.tagName==="p"&&!o?l.push(...b.children):l.push(b)}const h=a[a.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&l.push({type:"text",value:`
|
|
52
|
+
`});const m={type:"element",tagName:"li",properties:u,children:l};return e.patch(t,m),e.applyData(t,m)}function NT(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=Fm(r[a])}return t}function Fm(e){const t=e.spread;return t??e.children.length>1}function ST(e,t){const r={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<a.length;){const l=a[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)}function xT(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AT(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function kT(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function CT(e,t){const r=e.all(t),a=r.shift(),o=[];if(a){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],l),o.push(l)}if(r.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Er(t.children[1]),h=su(t.children[t.children.length-1]);d&&h&&(l.position={start:d,end:h}),o.push(l)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}function wT(e,t,r){const a=r?r.children:void 0,u=(a?a.indexOf(t):1)===0?"th":"td",l=r&&r.type==="table"?r.align:void 0,d=l?l.length:t.children.length;let h=-1;const m=[];for(;++h<d;){const E=t.children[h],T={},_=l?l[h]:void 0;_&&(T.align=_);let x={type:"element",tagName:u,properties:T,children:[]};E&&(x.children=e.all(E),e.patch(E,x),x=e.applyData(E,x)),m.push(x)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,b),e.applyData(t,b)}function IT(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const lh=9,ch=32;function vT(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),o=0;const u=[];for(;a;)u.push(dh(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(t);return u.push(dh(t.slice(o),o>0,!1)),u.join("")}function dh(e,t,r){let a=0,o=e.length;if(t){let u=e.codePointAt(a);for(;u===lh||u===ch;)a++,u=e.codePointAt(a)}if(r){let u=e.codePointAt(o-1);for(;u===lh||u===ch;)o--,u=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function OT(e,t){const r={type:"text",value:vT(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function RT(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const LT={blockquote:uT,break:lT,code:cT,delete:dT,emphasis:fT,footnoteReference:pT,heading:hT,html:mT,imageReference:gT,image:ET,inlineCode:bT,linkReference:_T,link:TT,listItem:yT,list:ST,paragraph:xT,root:AT,strong:kT,table:CT,tableCell:IT,tableRow:wT,text:OT,thematicBreak:RT,toml:Po,yaml:Po,definition:Po,footnoteDefinition:Po};function Po(){}const Um=-1,lu=0,ls=1,Zo=2,Vc=3,Qc=4,Xc=5,Zc=6,Hm=7,zm=8,DT=typeof self=="object"?self:globalThis,fh=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new DT[e](t)},MT=(e,t)=>{const r=(o,u)=>(e.set(u,o),o),a=o=>{if(e.has(o))return e.get(o);const[u,l]=t[o];switch(u){case lu:case Um:return r(l,o);case ls:{const d=r([],o);for(const h of l)d.push(a(h));return d}case Zo:{const d=r({},o);for(const[h,m]of l)d[a(h)]=a(m);return d}case Vc:return r(new Date(l),o);case Qc:{const{source:d,flags:h}=l;return r(new RegExp(d,h),o)}case Xc:{const d=r(new Map,o);for(const[h,m]of l)d.set(a(h),a(m));return d}case Zc:{const d=r(new Set,o);for(const h of l)d.add(a(h));return d}case Hm:{const{name:d,message:h}=l;return r(fh(d,h),o)}case zm:return r(BigInt(l),o);case"BigInt":return r(Object(BigInt(l)),o);case"ArrayBuffer":return r(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:d}=new Uint8Array(l);return r(new DataView(d),l)}}return r(fh(u,l),o)};return a},ph=e=>MT(new Map,e)(0),ea="",{toString:PT}={},{keys:BT}=Object,ts=e=>{const t=typeof e;if(t!=="object"||!e)return[lu,t];const r=PT.call(e).slice(8,-1);switch(r){case"Array":return[ls,ea];case"Object":return[Zo,ea];case"Date":return[Vc,ea];case"RegExp":return[Qc,ea];case"Map":return[Xc,ea];case"Set":return[Zc,ea];case"DataView":return[ls,r]}return r.includes("Array")?[ls,r]:r.includes("Error")?[Hm,r]:[Zo,r]},Bo=([e,t])=>e===lu&&(t==="function"||t==="symbol"),FT=(e,t,r,a)=>{const o=(l,d)=>{const h=a.push(l)-1;return r.set(d,h),h},u=l=>{if(r.has(l))return r.get(l);let[d,h]=ts(l);switch(d){case lu:{let b=l;switch(h){case"bigint":d=zm,b=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return o([Um],l)}return o([d,b],l)}case ls:{if(h){let T=l;return h==="DataView"?T=new Uint8Array(l.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(l)),o([h,[...T]],l)}const b=[],E=o([d,b],l);for(const T of l)b.push(u(T));return E}case Zo:{if(h)switch(h){case"BigInt":return o([h,l.toString()],l);case"Boolean":case"Number":case"String":return o([h,l.valueOf()],l)}if(t&&"toJSON"in l)return u(l.toJSON());const b=[],E=o([d,b],l);for(const T of BT(l))(e||!Bo(ts(l[T])))&&b.push([u(T),u(l[T])]);return E}case Vc:return o([d,l.toISOString()],l);case Qc:{const{source:b,flags:E}=l;return o([d,{source:b,flags:E}],l)}case Xc:{const b=[],E=o([d,b],l);for(const[T,_]of l)(e||!(Bo(ts(T))||Bo(ts(_))))&&b.push([u(T),u(_)]);return E}case Zc:{const b=[],E=o([d,b],l);for(const T of l)(e||!Bo(ts(T)))&&b.push(u(T));return E}}const{message:m}=l;return o([d,{name:h,message:m}],l)};return u},hh=(e,{json:t,lossy:r}={})=>{const a=[];return FT(!(t||r),!!t,new Map,a)(e),a},ua=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ph(hh(e,t)):structuredClone(e):(e,t)=>ph(hh(e,t));function UT(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function HT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function zT(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||UT,a=e.options.footnoteBackLabel||HT,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[h]);if(!m)continue;const b=e.all(m),E=String(m.identifier).toUpperCase(),T=da(E.toLowerCase());let _=0;const x=[],I=e.footnoteCounts.get(E);for(;I!==void 0&&++_<=I;){x.length>0&&x.push({type:"text",value:" "});let F=typeof r=="string"?r:r(h,_);typeof F=="string"&&(F={type:"text",value:F}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,_),className:["data-footnote-backref"]},children:Array.isArray(F)?F:[F]})}const L=b[b.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const F=L.children[L.children.length-1];F&&F.type==="text"?F.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...x)}else b.push(...x);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(b,!0)};e.patch(m,O),d.push(O)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...ua(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
53
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
54
|
+
`}]}}const Ss=(function(e){if(e==null)return WT;if(typeof e=="function")return cu(e);if(typeof e=="object")return Array.isArray(e)?$T(e):jT(e);if(typeof e=="string")return YT(e);throw new Error("Expected function, string, or object as test")});function $T(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ss(e[r]);return cu(a);function a(...o){let u=-1;for(;++u<t.length;)if(t[u].apply(this,o))return!0;return!1}}function jT(e){const t=e;return cu(r);function r(a){const o=a;let u;for(u in e)if(o[u]!==t[u])return!1;return!0}}function YT(e){return cu(t);function t(r){return r&&r.type===e}}function cu(e){return t;function t(r,a,o){return!!(GT(r)&&e.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function WT(){return!0}function GT(e){return e!==null&&typeof e=="object"&&"type"in e}const $m=[],qT=!0,vc=!1,KT="skip";function jm(e,t,r,a){let o;typeof t=="function"&&typeof r!="function"?(a=r,r=t):o=t;const u=Ss(o),l=a?-1:1;d(e,void 0,[])();function d(h,m,b){const E=h&&typeof h=="object"?h:{};if(typeof E.type=="string"){const _=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(_?"<"+_+">":""))+")"})}return T;function T(){let _=$m,x,I,L;if((!t||u(h,m,b[b.length-1]||void 0))&&(_=VT(r(h,b)),_[0]===vc))return _;if("children"in h&&h.children){const O=h;if(O.children&&_[0]!==KT)for(I=(a?O.children.length:-1)+l,L=b.concat(O);I>-1&&I<O.children.length;){const F=O.children[I];if(x=d(F,I,L)(),x[0]===vc)return x;I=typeof x[1]=="number"?x[1]:I+l}}return _}}}function VT(e){return Array.isArray(e)?e:typeof e=="number"?[qT,e]:e==null?$m:[e]}function fa(e,t,r,a){let o,u,l;typeof t=="function"&&typeof r!="function"?(u=void 0,l=t,o=r):(u=t,l=r,o=a),jm(e,u,d,o);function d(h,m){const b=m[m.length-1],E=b?b.children.indexOf(h):void 0;return l(h,E,b)}}const Oc={}.hasOwnProperty,QT={};function XT(e,t){const r=t||QT,a=new Map,o=new Map,u=new Map,l={...LT,...r.handlers},d={all:m,applyData:JT,definitionById:a,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:l,one:h,options:r,patch:ZT,wrap:ty};return fa(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?a:o,T=String(b.identifier).toUpperCase();E.has(T)||E.set(T,b)}}),d;function h(b,E){const T=b.type,_=d.handlers[T];if(Oc.call(d.handlers,T)&&_)return _(d,b,E);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in b){const{children:I,...L}=b,O=ua(L);return O.children=d.all(b),O}return ua(b)}return(d.options.unknownHandler||ey)(d,b,E)}function m(b){const E=[];if("children"in b){const T=b.children;let _=-1;for(;++_<T.length;){const x=d.one(T[_],b);if(x){if(_&&T[_-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=mh(x.value)),!Array.isArray(x)&&x.type==="element")){const I=x.children[0];I&&I.type==="text"&&(I.value=mh(I.value))}Array.isArray(x)?E.push(...x):E.push(x)}}}return E}}function ZT(e,t){e.position&&(t.position=Ub(e))}function JT(e,t){let r=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const l="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:l}}r.type==="element"&&u&&Object.assign(r.properties,ua(u)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function ey(e,t){const r=t.data||{},a="value"in t&&!(Oc.call(r,"hProperties")||Oc.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ty(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
|
|
55
|
+
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
56
|
+
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
57
|
+
`}),r}function mh(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function gh(e,t){const r=XT(e,t),a=r.one(e,void 0),o=zT(r),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
|
|
58
|
+
`},o),u}function ny(e,t){return e&&"run"in e?async function(r,a){const o=gh(r,{file:a,...t});await e.run(o,a)}:function(r,a){return gh(r,{file:a,...e||t})}}function Eh(e){if(e)throw e}var ac,bh;function ry(){if(bh)return ac;bh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},u=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var b=e.call(m,"constructor"),E=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!E)return!1;var T;for(T in m);return typeof T>"u"||e.call(m,T)},l=function(m,b){r&&b.name==="__proto__"?r(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},d=function(m,b){if(b==="__proto__")if(e.call(m,b)){if(a)return a(m,b).value}else return;return m[b]};return ac=function h(){var m,b,E,T,_,x,I=arguments[0],L=1,O=arguments.length,F=!1;for(typeof I=="boolean"&&(F=I,I=arguments[1]||{},L=2),(I==null||typeof I!="object"&&typeof I!="function")&&(I={});L<O;++L)if(m=arguments[L],m!=null)for(b in m)E=d(I,b),T=d(m,b),I!==T&&(F&&T&&(u(T)||(_=o(T)))?(_?(_=!1,x=E&&o(E)?E:[]):x=E&&u(E)?E:{},l(I,{name:b,newValue:h(F,x,T)})):typeof T<"u"&&l(I,{name:b,newValue:T}));return I},ac}var iy=ry();const sc=_s(iy);function Rc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ay(){const e=[],t={run:r,use:a};return t;function r(...o){let u=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);d(null,...o);function d(h,...m){const b=e[++u];let E=-1;if(h){l(h);return}for(;++E<o.length;)(m[E]===null||m[E]===void 0)&&(m[E]=o[E]);o=m,b?sy(b,d)(...m):l(null,...m)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function sy(e,t){let r;return a;function a(...l){const d=e.length>l.length;let h;d&&l.push(o);try{h=e.apply(this,l)}catch(m){const b=m;if(d&&r)throw b;return o(b)}d||(h&&h.then&&typeof h.then=="function"?h.then(u,o):h instanceof Error?o(h):u(h))}function o(l,...d){r||(r=!0,t(l,...d))}function u(l){o(null,l)}}const mr={basename:oy,dirname:uy,extname:ly,join:cy,sep:"/"};function oy(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xs(e);let r=0,a=-1,o=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){r=o+1;break}}else a<0&&(u=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let l=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){r=o+1;break}}else l<0&&(u=!0,l=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(a=o):(d=-1,a=l));return r===a?a=l:a<0&&(a=e.length),e.slice(r,a)}function uy(e){if(xs(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ly(e){xs(e);let t=e.length,r=-1,a=0,o=-1,u=0,l;for(;t--;){const d=e.codePointAt(t);if(d===47){if(l){a=t+1;break}continue}r<0&&(l=!0,r=t+1),d===46?o<0?o=t:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||r<0||u===0||u===1&&o===r-1&&o===a+1?"":e.slice(o,r)}function cy(...e){let t=-1,r;for(;++t<e.length;)xs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":dy(r)}function dy(e){xs(e);const t=e.codePointAt(0)===47;let r=fy(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function fy(e,t){let r="",a=0,o=-1,u=0,l=-1,d,h;for(;++l<=e.length;){if(l<e.length)d=e.codePointAt(l);else{if(d===47)break;d=47}if(d===47){if(!(o===l-1||u===1))if(o!==l-1&&u===2){if(r.length<2||a!==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="",a=0):(r=r.slice(0,h),a=r.length-1-r.lastIndexOf("/")),o=l,u=0;continue}}else if(r.length>0){r="",a=0,o=l,u=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(o+1,l):r=e.slice(o+1,l),a=l-o-1;o=l,u=0}else d===46&&u>-1?u++:u=-1}return r}function xs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const py={cwd:hy};function hy(){return"/"}function Lc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function my(e){if(typeof e=="string")e=new URL(e);else if(!Lc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return gy(e)}function gy(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const oc=["history","path","basename","stem","extname","dirname"];class Ym{constructor(t){let r;t?Lc(t)?r={path:t}:typeof t=="string"||Ey(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":py.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<oc.length;){const u=oc[a];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let o;for(o in r)oc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?mr.basename(this.path):void 0}set basename(t){lc(t,"basename"),uc(t,"basename"),this.path=mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?mr.dirname(this.path):void 0}set dirname(t){_h(this.basename,"dirname"),this.path=mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?mr.extname(this.path):void 0}set extname(t){if(uc(t,"extname"),_h(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Lc(t)&&(t=my(t)),lc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?mr.basename(this.path,this.extname):void 0}set stem(t){lc(t,"stem"),uc(t,"stem"),this.path=mr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const o=this.message(t,r,a);throw o.fatal=!0,o}info(t,r,a){const o=this.message(t,r,a);return o.fatal=void 0,o}message(t,r,a){const o=new ln(t,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function uc(e,t){if(e&&e.includes(mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+mr.sep+"`")}function lc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _h(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ey(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const by=(function(e){const a=this.constructor.prototype,o=a[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),_y={}.hasOwnProperty;class Jc extends by{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=ay()}copy(){const t=new Jc;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(sc(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(fc("data",this.frozen),this.namespace[t]=r,this):_y.call(this.namespace,t)&&this.namespace[t]||void 0:t?(fc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(t,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Fo(t),a=this.parser||this.Parser;return cc("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),cc("process",this.parser||this.Parser),dc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(u,l){const d=Fo(t),h=a.parse(d);a.run(h,d,function(b,E,T){if(b||!E||!T)return m(b);const _=E,x=a.stringify(_,T);Ny(x)?T.value=x:T.result=x,m(b,T)});function m(b,E){b||!E?l(b):u?u(E):r(void 0,E)}}}processSync(t){let r=!1,a;return this.freeze(),cc("processSync",this.parser||this.Parser),dc("processSync",this.compiler||this.Compiler),this.process(t,o),yh("processSync","process",r),a;function o(u,l){r=!0,Eh(u),a=l}}run(t,r,a){Th(t),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?u(void 0,a):new Promise(u);function u(l,d){const h=Fo(r);o.run(t,h,m);function m(b,E,T){const _=E||t;b?d(b):l?l(_):a(void 0,_,T)}}}runSync(t,r){let a=!1,o;return this.run(t,r,u),yh("runSync","run",a),o;function u(l,d){Eh(l),o=d,a=!0}}stringify(t,r){this.freeze();const a=Fo(r),o=this.compiler||this.Compiler;return dc("stringify",o),Th(t),o(t,a)}use(t,...r){const a=this.attachers,o=this.namespace;if(fc("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...E]=m;h(b,E)}else l(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function l(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&&(o.settings=sc(!0,o.settings,m.settings))}function d(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const E=m[b];u(E)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,b){let E=-1,T=-1;for(;++E<a.length;)if(a[E][0]===m){T=E;break}if(T===-1)a.push([m,...b]);else if(b.length>0){let[_,...x]=b;const I=a[T][1];Rc(I)&&Rc(_)&&(_=sc(!0,I,_)),a[T]=[m,_,...x]}}}}const Ty=new Jc().freeze();function cc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function dc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Th(e){if(!Rc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function yh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fo(e){return yy(e)?e:new Ym(e)}function yy(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ny(e){return typeof e=="string"||Sy(e)}function Sy(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xy="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nh=[],Sh={allowDangerousHtml:!0},Ay=/^(https?|ircs?|mailto|xmpp)$/i,ky=[{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 Wm(e){const t=Cy(e),r=wy(e);return Iy(t.runSync(t.parse(r),r),e)}function Cy(e){const t=e.rehypePlugins||Nh,r=e.remarkPlugins||Nh,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sh}:Sh;return Ty().use(oT).use(r).use(ny,a).use(t)}function wy(e){const t=e.children||"",r=new Ym;return typeof t=="string"&&(r.value=t),r}function Iy(e,t){const r=t.allowedElements,a=t.allowElement,o=t.components,u=t.disallowedElements,l=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||vy;for(const b of ky)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+xy+b.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),fa(e,m),Yb(e,{Fragment:C.Fragment,components:o,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function m(b,E,T){if(b.type==="raw"&&T&&typeof E=="number")return l?T.children.splice(E,1):T.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let _;for(_ in nc)if(Object.hasOwn(nc,_)&&Object.hasOwn(b.properties,_)){const x=b.properties[_],I=nc[_];(I===null||I.includes(b.tagName))&&(b.properties[_]=h(String(x||""),_,b))}}if(b.type==="element"){let _=r?!r.includes(b.tagName):u?u.includes(b.tagName):!1;if(!_&&a&&typeof E=="number"&&(_=!a(b,E,T)),_&&T&&typeof E=="number")return d&&b.children?T.children.splice(E,1,...b.children):T.children.splice(E,1),E}}}function vy(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||r!==-1&&t>r||a!==-1&&t>a||Ay.test(e.slice(0,t))?e:""}function xh(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(t);for(;o!==-1;)a++,o=r.indexOf(t,o+t.length);return a}function Oy(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ry(e,t,r){const o=Ss((r||{}).ignore||[]),u=Ly(t);let l=-1;for(;++l<u.length;)jm(e,"text",d);function d(m,b){let E=-1,T;for(;++E<b.length;){const _=b[E],x=T?T.children:void 0;if(o(_,x?x.indexOf(_):void 0,T))return;T=_}if(T)return h(m,b)}function h(m,b){const E=b[b.length-1],T=u[l][0],_=u[l][1];let x=0;const L=E.children.indexOf(m);let O=!1,F=[];T.lastIndex=0;let Y=T.exec(m.value);for(;Y;){const V=Y.index,ee={index:Y.index,input:Y.input,stack:[...b,m]};let B=_(...Y,ee);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?T.lastIndex=V+1:(x!==V&&F.push({type:"text",value:m.value.slice(x,V)}),Array.isArray(B)?F.push(...B):B&&F.push(B),x=V+Y[0].length,O=!0),!T.global)break;Y=T.exec(m.value)}return O?(x<m.value.length&&F.push({type:"text",value:m.value.slice(x)}),E.children.splice(L,1,...F)):F=[m],L+F.length}}function Ly(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<r.length;){const o=r[a];t.push([Dy(o[0]),My(o[1])])}return t}function Dy(e){return typeof e=="string"?new RegExp(Oy(e),"g"):e}function My(e){return typeof e=="function"?e:function(){return e}}const pc="phrasing",hc=["autolink","link","image","label"];function Py(){return{transforms:[jy],enter:{literalAutolink:Fy,literalAutolinkEmail:mc,literalAutolinkHttp:mc,literalAutolinkWww:mc},exit:{literalAutolink:$y,literalAutolinkEmail:zy,literalAutolinkHttp:Uy,literalAutolinkWww:Hy}}}function By(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pc,notInConstruct:hc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pc,notInConstruct:hc},{character:":",before:"[ps]",after:"\\/",inConstruct:pc,notInConstruct:hc}]}}function Fy(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mc(e){this.config.enter.autolinkProtocol.call(this,e)}function Uy(e){this.config.exit.autolinkProtocol.call(this,e)}function Hy(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function zy(e){this.config.exit.autolinkEmail.call(this,e)}function $y(e){this.exit(e)}function jy(e){Ry(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Yy],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Wy]],{ignore:["link","linkReference"]})}function Yy(e,t,r,a,o){let u="";if(!Gm(o)||(/^w/i.test(t)&&(r=t+r,t="",u="http://"),!Gy(r)))return!1;const l=qy(r+a);if(!l[0])return!1;const d={type:"link",title:null,url:u+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[d,{type:"text",value:l[1]}]:d}function Wy(e,t,r,a){return!Gm(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Gy(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qy(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const o=xh(e,"(");let u=xh(e,")");for(;a!==-1&&o>u;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),u++;return[e,r]}function Gm(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||xi(r)||ou(r))&&(!t||r!==47)}qm.peek=nN;function Ky(){this.buffer()}function Vy(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Qy(){this.buffer()}function Xy(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Zy(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Jy(e){this.exit(e)}function eN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function tN(e){this.exit(e)}function nN(){return"["}function qm(e,t,r,a){const o=r.createTracker(a);let u=o.move("[^");const l=r.enter("footnoteReference"),d=r.enter("reference");return u+=o.move(r.safe(r.associationId(e),{after:"]",before:u})),d(),l(),u+=o.move("]"),u}function rN(){return{enter:{gfmFootnoteCallString:Ky,gfmFootnoteCall:Vy,gfmFootnoteDefinitionLabelString:Qy,gfmFootnoteDefinition:Xy},exit:{gfmFootnoteCallString:Zy,gfmFootnoteCall:Jy,gfmFootnoteDefinitionLabelString:eN,gfmFootnoteDefinition:tN}}}function iN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:qm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,u,l){const d=u.createTracker(l);let h=d.move("[^");const m=u.enter("footnoteDefinition"),b=u.enter("label");return h+=d.move(u.safe(u.associationId(a),{before:h,after:"]"})),b(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?`
|
|
59
|
+
`:" ")+u.indentLines(u.containerFlow(a,d.current()),t?Km:aN))),m(),h}}function aN(e,t,r){return t===0?e:Km(e,t,r)}function Km(e,t,r){return(r?"":" ")+e}const sN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vm.peek=dN;function oN(){return{canContainEols:["delete"],enter:{strikethrough:lN},exit:{strikethrough:cN}}}function uN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sN}],handlers:{delete:Vm}}}function lN(e){this.enter({type:"delete",children:[]},e)}function cN(e){this.exit(e)}function Vm(e,t,r,a){const o=r.createTracker(a),u=r.enter("strikethrough");let l=o.move("~~");return l+=r.containerPhrasing(e,{...o.current(),before:l,after:"~"}),l+=o.move("~~"),u(),l}function dN(){return"~"}function fN(e){return e.length}function pN(e,t){const r=t||{},a=(r.align||[]).concat(),o=r.stringLength||fN,u=[],l=[],d=[],h=[];let m=0,b=-1;for(;++b<e.length;){const I=[],L=[];let O=-1;for(e[b].length>m&&(m=e[b].length);++O<e[b].length;){const F=hN(e[b][O]);if(r.alignDelimiters!==!1){const Y=o(F);L[O]=Y,(h[O]===void 0||Y>h[O])&&(h[O]=Y)}I.push(F)}l[b]=I,d[b]=L}let E=-1;if(typeof a=="object"&&"length"in a)for(;++E<m;)u[E]=Ah(a[E]);else{const I=Ah(a);for(;++E<m;)u[E]=I}E=-1;const T=[],_=[];for(;++E<m;){const I=u[E];let L="",O="";I===99?(L=":",O=":"):I===108?L=":":I===114&&(O=":");let F=r.alignDelimiters===!1?1:Math.max(1,h[E]-L.length-O.length);const Y=L+"-".repeat(F)+O;r.alignDelimiters!==!1&&(F=L.length+F+O.length,F>h[E]&&(h[E]=F),_[E]=F),T[E]=Y}l.splice(1,0,T),d.splice(1,0,_),b=-1;const x=[];for(;++b<l.length;){const I=l[b],L=d[b];E=-1;const O=[];for(;++E<m;){const F=I[E]||"";let Y="",V="";if(r.alignDelimiters!==!1){const ee=h[E]-(L[E]||0),B=u[E];B===114?Y=" ".repeat(ee):B===99?ee%2?(Y=" ".repeat(ee/2+.5),V=" ".repeat(ee/2-.5)):(Y=" ".repeat(ee/2),V=Y):V=" ".repeat(ee)}r.delimiterStart!==!1&&!E&&O.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&F==="")&&(r.delimiterStart!==!1||E)&&O.push(" "),r.alignDelimiters!==!1&&O.push(Y),O.push(F),r.alignDelimiters!==!1&&O.push(V),r.padding!==!1&&O.push(" "),(r.delimiterEnd!==!1||E!==m-1)&&O.push("|")}x.push(r.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return x.join(`
|
|
60
|
+
`)}function hN(e){return e==null?"":String(e)}function Ah(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const kh={}.hasOwnProperty;function Qm(e,t){const r=t||{};function a(o,...u){let l=a.invalid;const d=a.handlers;if(o&&kh.call(o,e)){const h=String(o[e]);l=kh.call(d,h)?d[h]:a.unknown}if(l)return l.call(this,o,...u)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}function mN(e,t,r,a){const o=r.enter("blockquote"),u=r.createTracker(a);u.move("> "),u.shift(2);const l=r.indentLines(r.containerFlow(e,u.current()),gN);return o(),l}function gN(e,t,r){return">"+(r?"":" ")+e}function EN(e,t){return Ch(e,t.inConstruct,!0)&&!Ch(e,t.notInConstruct,!1)}function Ch(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function wh(e,t,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
61
|
+
`&&EN(r.stack,r.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
62
|
+
`}function bN(e,t){const r=String(e);let a=r.indexOf(t),o=a,u=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++u>l&&(l=u):u=1,o=a+t.length,a=r.indexOf(t,o);return l}function _N(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function TN(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function yN(e,t,r,a){const o=TN(r),u=e.value||"",l=o==="`"?"GraveAccent":"Tilde";if(_N(e,r)){const E=r.enter("codeIndented"),T=r.indentLines(u,NN);return E(),T}const d=r.createTracker(a),h=o.repeat(Math.max(bN(u,o)+1,3)),m=r.enter("codeFenced");let b=d.move(h);if(e.lang){const E=r.enter(`codeFencedLang${l}`);b+=d.move(r.safe(e.lang,{before:b,after:" ",encode:["`"],...d.current()})),E()}if(e.lang&&e.meta){const E=r.enter(`codeFencedMeta${l}`);b+=d.move(" "),b+=d.move(r.safe(e.meta,{before:b,after:`
|
|
63
|
+
`,encode:["`"],...d.current()})),E()}return b+=d.move(`
|
|
64
|
+
`),u&&(b+=d.move(u+`
|
|
65
|
+
`)),b+=d.move(h),m(),b}function NN(e,t,r){return(r?"":" ")+e}function ed(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function SN(e,t,r,a){const o=ed(r),u=o==='"'?"Quote":"Apostrophe",l=r.enter("definition");let d=r.enter("label");const h=r.createTracker(a);let m=h.move("[");return m+=h.move(r.safe(r.associationId(e),{before:m,after:"]",...h.current()})),m+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(d=r.enter("destinationRaw"),m+=h.move(r.safe(e.url,{before:m,after:e.title?" ":`
|
|
66
|
+
`,...h.current()}))),d(),e.title&&(d=r.enter(`title${u}`),m+=h.move(" "+o),m+=h.move(r.safe(e.title,{before:m,after:o,...h.current()})),m+=h.move(o),d()),l(),m}function xN(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Es(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Jo(e,t,r){const a=oa(e),o=oa(t);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Xm.peek=AN;function Xm(e,t,r,a){const o=xN(r),u=r.enter("emphasis"),l=r.createTracker(a),d=l.move(o);let h=l.move(r.containerPhrasing(e,{after:o,before:d,...l.current()}));const m=h.charCodeAt(0),b=Jo(a.before.charCodeAt(a.before.length-1),m,o);b.inside&&(h=Es(m)+h.slice(1));const E=h.charCodeAt(h.length-1),T=Jo(a.after.charCodeAt(0),E,o);T.inside&&(h=h.slice(0,-1)+Es(E));const _=l.move(o);return u(),r.attentionEncodeSurroundingInfo={after:T.outside,before:b.outside},d+h+_}function AN(e,t,r){return r.options.emphasis||"*"}function kN(e,t){let r=!1;return fa(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,vc}),!!((!e.depth||e.depth<3)&&Gc(e)&&(t.options.setext||r))}function CN(e,t,r,a){const o=Math.max(Math.min(6,e.depth||1),1),u=r.createTracker(a);if(kN(e,r)){const b=r.enter("headingSetext"),E=r.enter("phrasing"),T=r.containerPhrasing(e,{...u.current(),before:`
|
|
67
|
+
`,after:`
|
|
68
|
+
`});return E(),b(),T+`
|
|
69
|
+
`+(o===1?"=":"-").repeat(T.length-(Math.max(T.lastIndexOf("\r"),T.lastIndexOf(`
|
|
70
|
+
`))+1))}const l="#".repeat(o),d=r.enter("headingAtx"),h=r.enter("phrasing");u.move(l+" ");let m=r.containerPhrasing(e,{before:"# ",after:`
|
|
71
|
+
`,...u.current()});return/^[\t ]/.test(m)&&(m=Es(m.charCodeAt(0))+m.slice(1)),m=m?l+" "+m:l,r.options.closeAtx&&(m+=" "+l),h(),d(),m}Zm.peek=wN;function Zm(e){return e.value||""}function wN(){return"<"}Jm.peek=IN;function Jm(e,t,r,a){const o=ed(r),u=o==='"'?"Quote":"Apostrophe",l=r.enter("image");let d=r.enter("label");const h=r.createTracker(a);let m=h.move("![");return m+=h.move(r.safe(e.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(d=r.enter("destinationRaw"),m+=h.move(r.safe(e.url,{before:m,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=r.enter(`title${u}`),m+=h.move(" "+o),m+=h.move(r.safe(e.title,{before:m,after:o,...h.current()})),m+=h.move(o),d()),m+=h.move(")"),l(),m}function IN(){return"!"}e0.peek=vN;function e0(e,t,r,a){const o=e.referenceType,u=r.enter("imageReference");let l=r.enter("label");const d=r.createTracker(a);let h=d.move("![");const m=r.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(m+"]["),l();const b=r.stack;r.stack=[],l=r.enter("reference");const E=r.safe(r.associationId(e),{before:h,after:"]",...d.current()});return l(),r.stack=b,u(),o==="full"||!m||m!==E?h+=d.move(E+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function vN(){return"!"}t0.peek=ON;function t0(e,t,r){let a=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<r.unsafe.length;){const l=r.unsafe[u],d=r.compilePattern(l);let h;if(l.atBreak)for(;h=d.exec(a);){let m=h.index;a.charCodeAt(m)===10&&a.charCodeAt(m-1)===13&&m--,a=a.slice(0,m)+" "+a.slice(h.index+1)}}return o+a+o}function ON(){return"`"}function n0(e,t){const r=Gc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r0.peek=RN;function r0(e,t,r,a){const o=ed(r),u=o==='"'?"Quote":"Apostrophe",l=r.createTracker(a);let d,h;if(n0(e,r)){const b=r.stack;r.stack=[],d=r.enter("autolink");let E=l.move("<");return E+=l.move(r.containerPhrasing(e,{before:E,after:">",...l.current()})),E+=l.move(">"),d(),r.stack=b,E}d=r.enter("link"),h=r.enter("label");let m=l.move("[");return m+=l.move(r.containerPhrasing(e,{before:m,after:"](",...l.current()})),m+=l.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),m+=l.move("<"),m+=l.move(r.safe(e.url,{before:m,after:">",...l.current()})),m+=l.move(">")):(h=r.enter("destinationRaw"),m+=l.move(r.safe(e.url,{before:m,after:e.title?" ":")",...l.current()}))),h(),e.title&&(h=r.enter(`title${u}`),m+=l.move(" "+o),m+=l.move(r.safe(e.title,{before:m,after:o,...l.current()})),m+=l.move(o),h()),m+=l.move(")"),d(),m}function RN(e,t,r){return n0(e,r)?"<":"["}i0.peek=LN;function i0(e,t,r,a){const o=e.referenceType,u=r.enter("linkReference");let l=r.enter("label");const d=r.createTracker(a);let h=d.move("[");const m=r.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(m+"]["),l();const b=r.stack;r.stack=[],l=r.enter("reference");const E=r.safe(r.associationId(e),{before:h,after:"]",...d.current()});return l(),r.stack=b,u(),o==="full"||!m||m!==E?h+=d.move(E+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function LN(){return"["}function td(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function DN(e){const t=td(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function MN(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function a0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function PN(e,t,r,a){const o=r.enter("list"),u=r.bulletCurrent;let l=e.ordered?MN(r):td(r);const d=e.ordered?l==="."?")":".":DN(r);let h=t&&r.bulletLastUsed?l===r.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&b&&(!b.children||!b.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),a0(r)===l&&b){let E=-1;for(;++E<e.children.length;){const T=e.children[E];if(T&&T.type==="listItem"&&T.children&&T.children[0]&&T.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(l=d),r.bulletCurrent=l;const m=r.containerFlow(e,a);return r.bulletLastUsed=l,r.bulletCurrent=u,o(),m}function BN(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function FN(e,t,r,a){const o=BN(r);let u=r.bulletCurrent||td(r);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let l=u.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const d=r.createTracker(a);d.move(u+" ".repeat(l-u.length)),d.shift(l);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(e,d.current()),b);return h(),m;function b(E,T,_){return T?(_?"":" ".repeat(l))+E:(_?u:u+" ".repeat(l-u.length))+E}}function UN(e,t,r,a){const o=r.enter("paragraph"),u=r.enter("phrasing"),l=r.containerPhrasing(e,a);return u(),o(),l}const HN=Ss(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zN(e,t,r,a){return(e.children.some(function(l){return HN(l)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function $N(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}s0.peek=jN;function s0(e,t,r,a){const o=$N(r),u=r.enter("strong"),l=r.createTracker(a),d=l.move(o+o);let h=l.move(r.containerPhrasing(e,{after:o,before:d,...l.current()}));const m=h.charCodeAt(0),b=Jo(a.before.charCodeAt(a.before.length-1),m,o);b.inside&&(h=Es(m)+h.slice(1));const E=h.charCodeAt(h.length-1),T=Jo(a.after.charCodeAt(0),E,o);T.inside&&(h=h.slice(0,-1)+Es(E));const _=l.move(o+o);return u(),r.attentionEncodeSurroundingInfo={after:T.outside,before:b.outside},d+h+_}function jN(e,t,r){return r.options.strong||"*"}function YN(e,t,r,a){return r.safe(e.value,a)}function WN(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function GN(e,t,r){const a=(a0(r)+(r.options.ruleSpaces?" ":"")).repeat(WN(r));return r.options.ruleSpaces?a.slice(0,-1):a}const o0={blockquote:mN,break:wh,code:yN,definition:SN,emphasis:Xm,hardBreak:wh,heading:CN,html:Zm,image:Jm,imageReference:e0,inlineCode:t0,link:r0,linkReference:i0,list:PN,listItem:FN,paragraph:UN,root:zN,strong:s0,text:YN,thematicBreak:GN};function qN(){return{enter:{table:KN,tableData:Ih,tableHeader:Ih,tableRow:QN},exit:{codeText:XN,table:VN,tableData:gc,tableHeader:gc,tableRow:gc}}}function KN(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function VN(e){this.exit(e),this.data.inTable=void 0}function QN(e){this.enter({type:"tableRow",children:[]},e)}function gc(e){this.exit(e)}function Ih(e){this.enter({type:"tableCell",children:[]},e)}function XN(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ZN));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function ZN(e,t){return t==="|"?t:e}function JN(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,o=t.stringLength,u=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
72
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:T,table:l,tableCell:h,tableRow:d}};function l(_,x,I,L){return m(b(_,I,L),_.align)}function d(_,x,I,L){const O=E(_,I,L),F=m([O]);return F.slice(0,F.indexOf(`
|
|
73
|
+
`))}function h(_,x,I,L){const O=I.enter("tableCell"),F=I.enter("phrasing"),Y=I.containerPhrasing(_,{...L,before:u,after:u});return F(),O(),Y}function m(_,x){return pN(_,{align:x,alignDelimiters:a,padding:r,stringLength:o})}function b(_,x,I){const L=_.children;let O=-1;const F=[],Y=x.enter("table");for(;++O<L.length;)F[O]=E(L[O],x,I);return Y(),F}function E(_,x,I){const L=_.children;let O=-1;const F=[],Y=x.enter("tableRow");for(;++O<L.length;)F[O]=h(L[O],_,x,I);return Y(),F}function T(_,x,I){let L=o0.inlineCode(_,x,I);return I.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}function eS(){return{exit:{taskListCheckValueChecked:vh,taskListCheckValueUnchecked:vh,paragraph:nS}}}function tS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rS}}}function vh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function nS(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=t.children;let u=-1,l;for(;++u<o.length;){const d=o[u];if(d.type==="paragraph"){l=d;break}}l===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function rS(e,t,r,a){const o=e.children[0],u=typeof e.checked=="boolean"&&o&&o.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",d=r.createTracker(a);u&&d.move(l);let h=o0.listItem(e,t,r,{...a,...d.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(b){return b+l}}function iS(){return[Py(),rN(),oN(),qN(),eS()]}function aS(e){return{extensions:[By(),iN(e),uN(),JN(e),tS()]}}const sS={tokenize:fS,partial:!0},u0={tokenize:pS,partial:!0},l0={tokenize:hS,partial:!0},c0={tokenize:mS,partial:!0},oS={tokenize:gS,partial:!0},d0={name:"wwwAutolink",tokenize:cS,previous:p0},f0={name:"protocolAutolink",tokenize:dS,previous:h0},vr={name:"emailAutolink",tokenize:lS,previous:m0},br={};function uS(){return{text:br}}let yi=48;for(;yi<123;)br[yi]=vr,yi++,yi===58?yi=65:yi===91&&(yi=97);br[43]=vr;br[45]=vr;br[46]=vr;br[95]=vr;br[72]=[vr,f0];br[104]=[vr,f0];br[87]=[vr,d0];br[119]=[vr,d0];function lS(e,t,r){const a=this;let o,u;return l;function l(E){return!Dc(E)||!m0.call(a,a.previous)||nd(a.events)?r(E):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(E))}function d(E){return Dc(E)?(e.consume(E),d):E===64?(e.consume(E),h):r(E)}function h(E){return E===46?e.check(oS,b,m)(E):E===45||E===95||un(E)?(u=!0,e.consume(E),h):b(E)}function m(E){return e.consume(E),o=!0,h}function b(E){return u&&o&&Tn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(E)):r(E)}}function cS(e,t,r){const a=this;return o;function o(l){return l!==87&&l!==119||!p0.call(a,a.previous)||nd(a.events)?r(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sS,e.attempt(u0,e.attempt(l0,u),r),r)(l))}function u(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function dS(e,t,r){const a=this;let o="",u=!1;return l;function l(E){return(E===72||E===104)&&h0.call(a,a.previous)&&!nd(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(E),e.consume(E),d):r(E)}function d(E){if(Tn(E)&&o.length<5)return o+=String.fromCodePoint(E),e.consume(E),d;if(E===58){const T=o.toLowerCase();if(T==="http"||T==="https")return e.consume(E),h}return r(E)}function h(E){return E===47?(e.consume(E),u?m:(u=!0,h)):r(E)}function m(E){return E===null||Xo(E)||ht(E)||xi(E)||ou(E)?r(E):e.attempt(u0,e.attempt(l0,b),r)(E)}function b(E){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(E)}}function fS(e,t,r){let a=0;return o;function o(l){return(l===87||l===119)&&a<3?(a++,e.consume(l),o):l===46&&a===3?(e.consume(l),u):r(l)}function u(l){return l===null?r(l):t(l)}}function pS(e,t,r){let a,o,u;return l;function l(m){return m===46||m===95?e.check(c0,h,d)(m):m===null||ht(m)||xi(m)||m!==45&&ou(m)?h(m):(u=!0,e.consume(m),l)}function d(m){return m===95?a=!0:(o=a,a=void 0),e.consume(m),l}function h(m){return o||a||!u?r(m):t(m)}}function hS(e,t){let r=0,a=0;return o;function o(l){return l===40?(r++,e.consume(l),o):l===41&&a<r?u(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(c0,t,u)(l):l===null||ht(l)||xi(l)?t(l):(e.consume(l),o)}function u(l){return l===41&&a++,e.consume(l),o}}function mS(e,t,r){return a;function a(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?(e.consume(d),a):d===38?(e.consume(d),u):d===93?(e.consume(d),o):d===60||d===null||ht(d)||xi(d)?t(d):r(d)}function o(d){return d===null||d===40||d===91||ht(d)||xi(d)?t(d):a(d)}function u(d){return Tn(d)?l(d):r(d)}function l(d){return d===59?(e.consume(d),a):Tn(d)?(e.consume(d),l):r(d)}}function gS(e,t,r){return a;function a(u){return e.consume(u),o}function o(u){return un(u)?r(u):t(u)}}function p0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ht(e)}function h0(e){return!Tn(e)}function m0(e){return!(e===47||Dc(e))}function Dc(e){return e===43||e===45||e===46||e===95||un(e)}function nd(e){let t=e.length,r=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const ES={tokenize:AS,partial:!0};function bS(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:NS,continuation:{tokenize:SS},exit:xS}},text:{91:{name:"gfmFootnoteCall",tokenize:yS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_S,resolveTo:TS}}}}function _S(e,t,r){const a=this;let o=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l;for(;o--;){const h=a.events[o][1];if(h.type==="labelImage"){l=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(!l||!l._balanced)return r(h);const m=ar(a.sliceSerialize({start:l.end,end:a.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function TS(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},d=[e[r+1],e[r+2],["enter",a,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",u,t],["enter",l,t],["exit",l,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(r,e.length-r+1,...d),e}function yS(e,t,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,l;return d;function d(E){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(E),e.exit("gfmFootnoteCallLabelMarker"),h}function h(E){return E!==94?r(E):(e.enter("gfmFootnoteCallMarker"),e.consume(E),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(E){if(u>999||E===93&&!l||E===null||E===91||ht(E))return r(E);if(E===93){e.exit("chunkString");const T=e.exit("gfmFootnoteCallString");return o.includes(ar(a.sliceSerialize(T)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(E),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(E)}return ht(E)||(l=!0),u++,e.consume(E),E===92?b:m}function b(E){return E===91||E===92||E===93?(e.consume(E),u++,m):m(E)}}function NS(e,t,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,l=0,d;return h;function h(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):r(x)}function b(x){if(l>999||x===93&&!d||x===null||x===91||ht(x))return r(x);if(x===93){e.exit("chunkString");const I=e.exit("gfmFootnoteDefinitionLabelString");return u=ar(a.sliceSerialize(I)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),T}return ht(x)||(d=!0),l++,e.consume(x),x===92?E:b}function E(x){return x===91||x===92||x===93?(e.consume(x),l++,b):b(x)}function T(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),o.includes(u)||o.push(u),at(e,_,"gfmFootnoteDefinitionWhitespace")):r(x)}function _(x){return t(x)}}function SS(e,t,r){return e.check(Ns,t,e.attempt(ES,t,r))}function xS(e){e.exit("gfmFootnoteDefinition")}function AS(e,t,r){const a=this;return at(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const l=a.events[a.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(u):r(u)}}function kS(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(l,d){let h=-1;for(;++h<l.length;)if(l[h][0]==="enter"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._close){let m=h;for(;m--;)if(l[m][0]==="exit"&&l[m][1].type==="strikethroughSequenceTemporary"&&l[m][1]._open&&l[h][1].end.offset-l[h][1].start.offset===l[m][1].end.offset-l[m][1].start.offset){l[h][1].type="strikethroughSequence",l[m][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},l[m][1].start),end:Object.assign({},l[h][1].end)},E={type:"strikethroughText",start:Object.assign({},l[m][1].end),end:Object.assign({},l[h][1].start)},T=[["enter",b,d],["enter",l[m][1],d],["exit",l[m][1],d],["enter",E,d]],_=d.parser.constructs.insideSpan.null;_&&Fn(T,T.length,0,uu(_,l.slice(m+1,h),d)),Fn(T,T.length,0,[["exit",E,d],["enter",l[h][1],d],["exit",l[h][1],d],["exit",b,d]]),Fn(l,m-1,h-m+3,T),h=m+T.length-2;break}}for(h=-1;++h<l.length;)l[h][1].type==="strikethroughSequenceTemporary"&&(l[h][1].type="data");return l}function u(l,d,h){const m=this.previous,b=this.events;let E=0;return T;function T(x){return m===126&&b[b.length-1][1].type!=="characterEscape"?h(x):(l.enter("strikethroughSequenceTemporary"),_(x))}function _(x){const I=oa(m);if(x===126)return E>1?h(x):(l.consume(x),E++,_);if(E<2&&!r)return h(x);const L=l.exit("strikethroughSequenceTemporary"),O=oa(x);return L._open=!O||O===2&&!!I,L._close=!I||I===2&&!!O,d(x)}}}class CS{constructor(){this.map=[]}add(t,r,a){wS(this,t,r,a)}consume(t){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];a.push(t.slice()),t.length=0;let o=a.pop();for(;o;){for(const u of o)t.push(u);o=a.pop()}this.map.length=0}}function wS(e,t,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...a);return}o+=1}e.map.push([t,r,a])}}function IS(e,t){let r=!1;const a=[];for(;t<e.length;){const o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return a}function vS(){return{flow:{null:{name:"table",tokenize:OS,resolveAll:RS}}}}function OS(e,t,r){const a=this;let o=0,u=0,l;return d;function d(U){let _e=a.events.length-1;for(;_e>-1;){const he=a.events[_e][1].type;if(he==="lineEnding"||he==="linePrefix")_e--;else break}const ue=_e>-1?a.events[_e][1].type:null,Oe=ue==="tableHead"||ue==="tableRow"?B:h;return Oe===B&&a.parser.lazy[a.now().line]?r(U):Oe(U)}function h(U){return e.enter("tableHead"),e.enter("tableRow"),m(U)}function m(U){return U===124||(l=!0,u+=1),b(U)}function b(U){return U===null?r(U):ze(U)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),_):r(U):tt(U)?at(e,b,"whitespace")(U):(u+=1,l&&(l=!1,o+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),l=!0,b):(e.enter("data"),E(U)))}function E(U){return U===null||U===124||ht(U)?(e.exit("data"),b(U)):(e.consume(U),U===92?T:E)}function T(U){return U===92||U===124?(e.consume(U),E):E(U)}function _(U){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(U):(e.enter("tableDelimiterRow"),l=!1,tt(U)?at(e,x,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):x(U))}function x(U){return U===45||U===58?L(U):U===124?(l=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),I):ee(U)}function I(U){return tt(U)?at(e,L,"whitespace")(U):L(U)}function L(U){return U===58?(u+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),O):U===45?(u+=1,O(U)):U===null||ze(U)?V(U):ee(U)}function O(U){return U===45?(e.enter("tableDelimiterFiller"),F(U)):ee(U)}function F(U){return U===45?(e.consume(U),F):U===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),Y):(e.exit("tableDelimiterFiller"),Y(U))}function Y(U){return tt(U)?at(e,V,"whitespace")(U):V(U)}function V(U){return U===124?x(U):U===null||ze(U)?!l||o!==u?ee(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(U)):ee(U)}function ee(U){return r(U)}function B(U){return e.enter("tableRow"),G(U)}function G(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),G):U===null||ze(U)?(e.exit("tableRow"),t(U)):tt(U)?at(e,G,"whitespace")(U):(e.enter("data"),ne(U))}function ne(U){return U===null||U===124||ht(U)?(e.exit("data"),G(U)):(e.consume(U),U===92?Ee:ne)}function Ee(U){return U===92||U===124?(e.consume(U),ne):ne(U)}}function RS(e,t){let r=-1,a=!0,o=0,u=[0,0,0,0],l=[0,0,0,0],d=!1,h=0,m,b,E;const T=new CS;for(;++r<e.length;){const _=e[r],x=_[1];_[0]==="enter"?x.type==="tableHead"?(d=!1,h!==0&&(Oh(T,t,h,m,b),b=void 0,h=0),m={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},T.add(r,0,[["enter",m,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(a=!0,E=void 0,u=[0,0,0,0],l=[0,r+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},T.add(r,0,[["enter",b,t]])),o=x.type==="tableDelimiterRow"?2:b?3:1):o&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(a=!1,l[2]===0&&(u[1]!==0&&(l[0]=l[1],E=Uo(T,t,u,o,void 0,E),u=[0,0,0,0]),l[2]=r)):x.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(l[0]=l[1],E=Uo(T,t,u,o,void 0,E)),u=l,l=[u[1],r,0,0])):x.type==="tableHead"?(d=!0,h=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(h=r,u[1]!==0?(l[0]=l[1],E=Uo(T,t,u,o,r,E)):l[1]!==0&&(E=Uo(T,t,l,o,r,E)),o=0):o&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(l[3]=r)}for(h!==0&&Oh(T,t,h,m,b),T.consume(t.events),r=-1;++r<t.events.length;){const _=t.events[r];_[0]==="enter"&&_[1].type==="table"&&(_[1]._align=IS(t.events,r))}return e}function Uo(e,t,r,a,o,u){const l=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(u.end=Object.assign({},na(t.events,r[0])),e.add(r[0],0,[["exit",u,t]]));const h=na(t.events,r[1]);if(u={type:l,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",u,t]]),r[2]!==0){const m=na(t.events,r[2]),b=na(t.events,r[3]),E={type:d,start:Object.assign({},m),end:Object.assign({},b)};if(e.add(r[2],0,[["enter",E,t]]),a!==2){const T=t.events[r[2]],_=t.events[r[3]];if(T[1].end=Object.assign({},_[1].end),T[1].type="chunkText",T[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,I=r[3]-r[2]-1;e.add(x,I,[])}}e.add(r[3]+1,0,[["exit",E,t]])}return o!==void 0&&(u.end=Object.assign({},na(t.events,o)),e.add(o,0,[["exit",u,t]]),u=void 0),u}function Oh(e,t,r,a,o){const u=[],l=na(t.events,r);o&&(o.end=Object.assign({},l),u.push(["exit",o,t])),a.end=Object.assign({},l),u.push(["exit",a,t]),e.add(r+1,0,u)}function na(e,t){const r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}const LS={name:"tasklistCheck",tokenize:MS};function DS(){return{text:{91:LS}}}function MS(e,t,r){const a=this;return o;function o(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),u)}function u(h){return ht(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),l):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),l):r(h)}function l(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(h)}function d(h){return ze(h)?t(h):tt(h)?e.check({tokenize:PS},t,r)(h):r(h)}}function PS(e,t,r){return at(e,a,"whitespace");function a(o){return o===null?r(o):t(o)}}function BS(e){return xm([uS(),bS(),kS(e),vS(),DS()])}const FS={};function g0(e){const t=this,r=e||FS,a=t.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),l=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(BS(r)),u.push(iS()),l.push(aS(r))}const Ec=/\^\^(.+?)\^\^/g,E0=()=>e=>{fa(e,"text",(t,r,a)=>{if(!a||r===void 0||!Ec.test(t.value))return;Ec.lastIndex=0;const o=[];let u=0,l;for(;(l=Ec.exec(t.value))!==null;)l.index>u&&o.push({type:"text",value:t.value.slice(u,l.index)}),o.push({type:"html",value:`<sup>${l[1]}</sup>`}),u=l.index+l[0].length;return u<t.value.length&&o.push({type:"text",value:t.value.slice(u)}),a.children.splice(r,1,...o),r+o.length})},Rh=(function(e,t,r){const a=Ss(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(a(e.children[t],t,e))return e.children[t]}),ki=(function(e){if(e==null)return zS;if(typeof e=="string")return HS(e);if(typeof e=="object")return US(e);if(typeof e=="function")return rd(e);throw new Error("Expected function, string, or array as `test`")});function US(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ki(e[r]);return rd(a);function a(...o){let u=-1;for(;++u<t.length;)if(t[u].apply(this,o))return!0;return!1}}function HS(e){return rd(t);function t(r){return r.tagName===e}}function rd(e){return t;function t(r,a,o){return!!($S(r)&&e.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function zS(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function $S(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Lh=/\n/g,Dh=/[\t ]+/g,Mc=ki("br"),Mh=ki(QS),jS=ki("p"),Ph=ki("tr"),YS=ki(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",VS,XS]),b0=ki(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function WS(e,t){const r=t||{},a="children"in e?e.children:[],o=b0(e),u=y0(e,{whitespace:r.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...T0(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<a.length;)l.push(..._0(a[d],e,{whitespace:u,breakBefore:d?void 0:o,breakAfter:d<a.length-1?Mc(a[d+1]):o}));const h=[];let m;for(d=-1;++d<l.length;){const b=l[d];typeof b=="number"?m!==void 0&&b>m&&(m=b):b&&(m!==void 0&&m>-1&&h.push(`
|
|
74
|
+
`.repeat(m)||" "),m=-1,h.push(b))}return h.join("")}function _0(e,t,r){return e.type==="element"?GS(e,t,r):e.type==="text"?r.whitespace==="normal"?T0(e,r):qS(e):[]}function GS(e,t,r){const a=y0(e,r),o=e.children||[];let u=-1,l=[];if(YS(e))return l;let d,h;for(Mc(e)||Ph(e)&&Rh(t,e,Ph)?h=`
|
|
75
|
+
`:jS(e)?(d=2,h=2):b0(e)&&(d=1,h=1);++u<o.length;)l=l.concat(_0(o[u],e,{whitespace:a,breakBefore:u?void 0:d,breakAfter:u<o.length-1?Mc(o[u+1]):h}));return Mh(e)&&Rh(t,e,Mh)&&l.push(" "),d&&l.unshift(d),h&&l.push(h),l}function T0(e,t){const r=String(e.value),a=[],o=[];let u=0;for(;u<=r.length;){Lh.lastIndex=u;const h=Lh.exec(r),m=h&&"index"in h?h.index:r.length;a.push(KS(r.slice(u,m).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),u===0?t.breakBefore:!0,m===r.length?t.breakAfter:!0)),u=m+1}let l=-1,d;for(;++l<a.length;)a[l].charCodeAt(a[l].length-1)===8203||l<a.length-1&&a[l+1].charCodeAt(0)===8203?(o.push(a[l]),d=void 0):a[l]?(typeof d=="number"&&o.push(d),o.push(a[l]),d=0):(l===0||l===a.length-1)&&o.push(0);return o}function qS(e){return[String(e.value)]}function KS(e,t,r){const a=[];let o=0,u;for(;o<e.length;){Dh.lastIndex=o;const l=Dh.exec(e);u=l?l.index:e.length,!o&&!u&&l&&!t&&a.push(""),o!==u&&a.push(e.slice(o,u)),o=l?u+l[0].length:u}return o!==u&&!r&&a.push(""),a.join(" ")}function y0(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function VS(e){return!!(e.properties||{}).hidden}function QS(e){return e.tagName==="td"||e.tagName==="th"}function XS(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function ZS(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",l="(?!struct)("+a+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},T={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},_=t.optional(o)+e.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],I=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],L=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],O=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],V={type:I,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:L},ee={className:"function.dispatch",relevance:0,keywords:{_hint:O},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},B=[ee,E,d,r,e.C_BLOCK_COMMENT_MODE,b,m],G={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:V,contains:B.concat([{begin:/\(/,end:/\)/,keywords:V,contains:B.concat(["self"]),relevance:0}]),relevance:0},ne={className:"function",begin:"("+l+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:V,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:V,relevance:0},{begin:_,returnBegin:!0,contains:[T],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,m,b,d,{begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,m,b,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:V,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(G,ne,ee,B,[E,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:V,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:V},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function JS(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=ZS(e),a=r.keywords;return a.type=[...a.type,...t.type],a.literal=[...a.literal,...t.literal],a.built_in=[...a.built_in,...t.built_in],a._hints=t._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function ex(e){const t=e.regex,r={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,o]};o.contains.push(d);const h={match:/\\"/},m={className:"string",begin:/'/,end:/'/},b={match:/\\'/},E={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},T=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${T.join("|")})`,relevance:10}),x={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.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"],O={match:/(\/[a-z._-]+)+/},F=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],Y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],V=["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"],ee=["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:[...F,...Y,"set","shopt",...V,...ee]},contains:[_,e.SHEBANG(),x,E,u,l,O,d,h,m,b,r]}}function tx(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",l="("+a+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},T={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},_=t.optional(o)+e.IDENT_RE+"\\s*\\(",L={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},O=[E,d,r,e.C_BLOCK_COMMENT_MODE,b,m],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:L,contains:O.concat([{begin:/\(/,end:/\)/,keywords:L,contains:O.concat(["self"]),relevance:0}]),relevance:0},Y={begin:"("+l+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:L,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:L,relevance:0},{begin:_,returnBegin:!0,contains:[e.inherit(T,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,m,b,d,{begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,m,b,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,E]};return{name:"C",aliases:["h"],keywords:L,disableAutodetect:!0,illegal:"</",contains:[].concat(F,Y,O,[E,{begin:e.IDENT_RE+"::",keywords:L},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:E,strings:m,keywords:L}}}function nx(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",l="(?!struct)("+a+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},T={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},_=t.optional(o)+e.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],I=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],L=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],O=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],V={type:I,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:L},ee={className:"function.dispatch",relevance:0,keywords:{_hint:O},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},B=[ee,E,d,r,e.C_BLOCK_COMMENT_MODE,b,m],G={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:V,contains:B.concat([{begin:/\(/,end:/\)/,keywords:V,contains:B.concat(["self"]),relevance:0}]),relevance:0},ne={className:"function",begin:"("+l+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:V,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:V,relevance:0},{begin:_,returnBegin:!0,contains:[T],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,m,b,d,{begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,m,b,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:V,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(G,ne,ee,B,[E,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:V,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:V},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function rx(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],a=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],u=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],l={keyword:o.concat(u),built_in:t,literal:a},d=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},E=e.inherit(b,{illegal:/\n/}),T={className:"subst",begin:/\{/,end:/\}/,keywords:l},_=e.inherit(T,{illegal:/\n/}),x={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,_]},I={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},T]},L=e.inherit(I,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});T.contains=[I,x,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,e.C_BLOCK_COMMENT_MODE],_.contains=[L,x,E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const O={variants:[m,I,x,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},F={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},Y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",V={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:l,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},O,h,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,F,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,F,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+Y+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:l,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,F],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,relevance:0,contains:[O,h,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},V]}}const ix=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.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_-]*/}}),ax=["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"],sx=["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"],ox=[...ax,...sx],ux=["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(),lx=["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(),cx=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),dx=["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 fx(e){const t=e.regex,r=ix(e),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",u=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,a,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+lx.join("|")+")"},{begin:":(:)?("+cx.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+dx.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:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:ux.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ox.join("|")+")\\b"}]}}function px(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function hx(e){const u={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:u,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.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:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:u,illegal:/["']/}]}]}}function mx(e){const t=e.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(r,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function gx(e){const t=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},u={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[a,u,o,l,r,"self"],relevance:0},h=/[A-Za-z0-9_-]+/,m=/"(\\"|[^"])*"/,b=/'[^']*'/,E=t.either(h,m,b),T=t.concat(E,"(\\s*\\.\\s*",E,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:T,className:"attr",starts:{end:/$/,contains:[a,d,u,o,l,r]}}]}}var ra="[0-9](_*[0-9])*",Ho=`\\.(${ra})`,zo="[0-9a-fA-F](_*[0-9a-fA-F])*",Bh={className:"number",variants:[{begin:`(\\b(${ra})((${Ho})|\\.)?|(${Ho}))[eE][+-]?(${ra})[fFdD]?\\b`},{begin:`\\b(${ra})((${Ho})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ho})[fFdD]?\\b`},{begin:`\\b(${ra})[fFdD]\\b`},{begin:`\\b0[xX]((${zo})\\.?|(${zo})?\\.(${zo}))[pP][+-]?(${ra})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${zo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function N0(e,t,r){return r===-1?"":e.replace(t,a=>N0(e,t,r-1))}function Ex(e){const t=e.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",a=r+N0("(?:<"+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"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.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:[t.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+a+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Bh,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Bh,m]}}const Fh="[A-Za-z$_][0-9A-Za-z$_]*",bx=["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"],_x=["true","false","null","undefined","NaN","Infinity"],S0=["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"],x0=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],A0=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Tx=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yx=[].concat(A0,S0,x0);function Nx(e){const t=e.regex,r=(X,{after:Te})=>{const S="</"+X[0].slice(1);return X.input.indexOf(S,Te)!==-1},a=Fh,o={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,Te)=>{const S=X[0].length+X.index,M=X.input[S];if(M==="<"||M===","){Te.ignoreMatch();return}M===">"&&(r(X,{after:S})||Te.ignoreMatch());let K;const k=X.input.substring(S);if(K=k.match(/^\s*=/)){Te.ignoreMatch();return}if((K=k.match(/^\s+extends\s+/))&&K.index===0){Te.ignoreMatch();return}}},d={$pattern:Fh,keyword:bx,literal:_x,built_in:yx,"variable.language":Tx},h="[0-9](_?[0-9])*",m=`\\.(${h})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${b})((${m})|\\.)?|(${m}))[eE][+-]?(${h})\\b`},{begin:`\\b(${b})\\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},T={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,T],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,T],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,T],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,T]},F={className:"comment",variants:[e.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:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},Y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,x,I,L,{match:/\$\d+/},E];T.contains=Y.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(Y)});const V=[].concat(F,T.contains),ee=V.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(V)}]),B={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ee},G={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:t.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:{_:[...S0,...x0]}},Ee={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[B],illegal:/%/},_e={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ue(X){return t.concat("(?!",X.join("|"),")")}const Oe={match:t.concat(/\b/,ue([...A0,"super","import"].map(X=>`${X}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},B]},we="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Le={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(we)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[B]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:ee,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,x,I,L,F,{match:/\$\d+/},E,ne,{scope:"attr",match:a+t.lookahead(":"),relevance:0},Le,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,e.REGEXP_MODE,{className:"function",begin:we,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ee}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:u},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[B,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[B]},Oe,_e,G,te,{match:/\$[(.]/}]}}function Sx(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},a=["true","false","null"],o={scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:a},contains:[t,r,e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var ia="[0-9](_*[0-9])*",$o=`\\.(${ia})`,jo="[0-9a-fA-F](_*[0-9a-fA-F])*",xx={className:"number",variants:[{begin:`(\\b(${ia})((${$o})|\\.)?|(${$o}))[eE][+-]?(${ia})[fFdD]?\\b`},{begin:`\\b(${ia})((${$o})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${$o})[fFdD]?\\b`},{begin:`\\b(${ia})[fFdD]\\b`},{begin:`\\b0[xX]((${jo})\\.?|(${jo})?\\.(${jo}))[pP][+-]?(${ia})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${jo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ax(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},l={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,u,o]}]};o.contains.push(l);const d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(l,{className:"string"}),"self"]}]},m=xx,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},T=E;return T.variants[1].contains=[E],E.variants[1].contains=[T],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,r,a,d,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[E,e.C_LINE_COMMENT_MODE,b],relevance:0},e.C_LINE_COMMENT_MODE,b,d,h,l,e.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,h]},l,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
76
|
+
`},m]}}const kx=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.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_-]*/}}),Cx=["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"],wx=["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"],Ix=[...Cx,...wx],vx=["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(),k0=["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(),C0=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ox=["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(),Rx=k0.concat(C0).sort().reverse();function Lx(e){const t=kx(e),r=Rx,a="and or not only",o="[\\w-]+",u="("+o+"|@\\{"+o+"\\})",l=[],d=[],h=function(Y){return{className:"string",begin:"~?"+Y+".*?"+Y}},m=function(Y,V,ee){return{className:Y,begin:V,relevance:ee}},b={$pattern:/[a-z-]+/,keyword:a,attribute:vx.join(" ")},E={begin:"\\(",end:"\\)",contains:d,keywords:b,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h("'"),h('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,E,m("variable","@@?"+o,10),m("variable","@\\{"+o+"\\}"),m("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const T=d.concat({begin:/\{/,end:/\}/,contains:l}),_={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},x={begin:u+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ox.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:d}}]},I={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:d,relevance:0}},L={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:T}},O={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:u,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,m("keyword","all\\b"),m("variable","@\\{"+o+"\\}"),{begin:"\\b("+Ix.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,m("selector-tag",u,0),m("selector-id","#"+u),m("selector-class","\\."+u,0),m("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+k0.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+C0.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:T},{begin:"!important"},t.FUNCTION_DISPATCH]},F={begin:o+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[O]};return l.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,I,L,F,x,O,_,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:l}}function Dx(e){const t="\\[=*\\[",r="\\]=*\\]",a={begin:t,end:r,contains:["self"]},o=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,r,{contains:[a],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:r,contains:[a],relevance:5}])}}function Mx(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},a={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,r]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},u={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,r,a,o,u,l]}}function Px(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={begin:"^[-\\*]{3,}",end:"$"},o={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}]},u={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},l={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:t.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}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},E=e.inherit(m,{contains:[]}),T=e.inherit(b,{contains:[]});m.contains.push(T),b.contains.push(E);let _=[r,h];return[m,b,E,T].forEach(O=>{O.contains=O.contains.concat(_)}),_=_.concat(m,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},r,u,m,b,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,a,h,l,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Bx(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,d={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:d,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Fx(e){const t=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],a=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:r.join(" ")},u={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},l={begin:/->\{/,end:/\}/},d={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},h={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[d]},m={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[e.BACKSLASH_ESCAPE,u,h],E=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],T=(I,L,O="\\1")=>{const F=O==="\\1"?O:t.concat(O,L);return t.concat(t.concat("(?:",I,")"),L,/(?:\\.|[^\\\/])*?/,F,/(?:\\.|[^\\\/])*?/,O,a)},_=(I,L,O)=>t.concat(t.concat("(?:",I,")"),L,/(?:\\.|[^\\\/])*?/,O,a),x=[h,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),l,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},m,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:T("s|tr|y",t.either(...E,{capture:!0}))},{begin:T("s|tr|y","\\(","\\)")},{begin:T("s|tr|y","\\[","\\]")},{begin:T("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",t.either(...E,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d,m]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return u.contains=x,l.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:x}}function Ux(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,a=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),o=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),u=t.concat(/[A-Z]+/,r),l={scope:"variable",match:"\\$+"+a},d={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},h={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},m=e.inherit(e.APOS_STRING_MODE,{illegal:null}),b=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(h)}),E={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(h),"on:begin":(he,te)=>{te.data._beginMatch=he[1]||he[2]},"on:end":(he,te)=>{te.data._beginMatch!==he[1]&&te.ignoreMatch()}},T=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
|
|
77
|
+
]`,x={scope:"string",variants:[b,m,E,T]},I={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},L=["false","null","true"],O=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],F=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],V={keyword:O,literal:(he=>{const te=[];return he.forEach(we=>{te.push(we),we.toLowerCase()===we?te.push(we.toUpperCase()):te.push(we.toLowerCase())}),te})(L),built_in:F},ee=he=>he.map(te=>te.replace(/\|\d+$/,"")),B={variants:[{match:[/new/,t.concat(_,"+"),t.concat("(?!",ee(F).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},G=t.concat(a,"\\b(?!\\()"),ne={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),G],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,t.concat(/::/,t.lookahead(/(?!class\b)/)),G],scope:{1:"title.class",3:"variable.constant"}},{match:[o,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Ee={scope:"attr",match:t.concat(a,t.lookahead(":"),t.lookahead(/(?!::)/))},U={relevance:0,begin:/\(/,end:/\)/,keywords:V,contains:[Ee,l,ne,e.C_BLOCK_COMMENT_MODE,x,I,B]},_e={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",ee(O).join("\\b|"),"|",ee(F).join("\\b|"),"\\b)"),a,t.concat(_,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[U]};U.contains.push(_e);const ue=[Ee,ne,e.C_BLOCK_COMMENT_MODE,x,I,B],Oe={begin:t.concat(/#\[\s*\\?/,t.either(o,u)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:L,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:L,keyword:["new","array"]},contains:["self",...ue]},...ue,{scope:"meta",variants:[{match:o},{match:u}]}]};return{case_insensitive:!1,keywords:V,contains:[Oe,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},d,{scope:"variable.language",match:/\$this\b/},l,_e,ne,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},B,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:V,contains:["self",Oe,l,ne,e.C_BLOCK_COMMENT_MODE,x,I]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},x,I]}}function Hx(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function zx(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function $x(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),a=["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:a,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:/#/},b={begin:/\{\{/,relevance:0},E={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,h,b,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,h,b,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:[e.BACKSLASH_ESCAPE,b,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,b,m]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},T="[0-9](_?[0-9])*",_=`(\\b(${T}))?\\.(${T})|\\b(${T})\\.`,x=`\\b|${a.join("|")}`,I={className:"number",relevance:0,variants:[{begin:`(\\b(${T})|(${_}))[eE][+-]?(${T})[jJ]?(?=${x})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${T})[jJ](?=${x})`}]},L={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},O={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",h,I,E,e.HASH_COMMENT_MODE]}]};return m.contains=[E,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"},E,L,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[O]},{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,O,E]}]}}function jx(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Yx(e){const t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,u=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,a]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[u,a]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:u},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Wx(e){const t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=t.concat(a,/(::\w+)*/),l={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},d={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},m=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:l},E={className:"string",contains:[e.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,b]})]}]},T="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${T})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},I={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:l}]},B=[E,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:l},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:l},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[I]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[E,{begin:r}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:l},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,m),relevance:0}].concat(h,m);b.contains=B,I.contains=B;const U=[{begin:/^\s*=>/,starts:{end:"$",contains:B}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:l,contains:B}}];return m.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:l,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(U).concat(m).concat(B)}}function Gx(e){const t=e.regex,r=/(r#)?/,a=t.concat(r,e.UNDERSCORE_IDENT_RE),o=t.concat(r,e.IDENT_RE),u={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,t.lookahead(/\s*\(/))},l="([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!"],b=["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:e.IDENT_RE+"!?",type:b,keyword:d,literal:h,built_in:m},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.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_]+)"+l},{begin:"\\b0o([0-7_]+)"+l},{begin:"\\b0x([A-Fa-f0-9_]+)"+l},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+l}],relevance:0},{begin:[/fn/,/\s+/,a],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,a],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,a,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:m,type:b}},{className:"punctuation",begin:"->"},u]}}const qx=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.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_-]*/}}),Kx=["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"],Vx=["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"],Qx=[...Kx,...Vx],Xx=["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(),Zx=["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(),Jx=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),eA=["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 tA(e){const t=qx(e),r=Jx,a=Zx,o="@[a-z-]+",u="and or not only",d={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Qx.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},d,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+eA.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,d,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:Xx.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function nA(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function rA(e){const t=e.regex,r=e.COMMENT("--","$"),a={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},u=["true","false","unknown"],l=["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"],b=["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"],E=["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"],T=["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"],_=b,x=[...m,...h].filter(ee=>!b.includes(ee)),I={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},L={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},O={match:t.concat(/\b/,t.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function F(ee){return t.concat(/\b/,t.either(...ee.map(B=>B.replace(/\s+/,"\\s+"))),/\b/)}const Y={scope:"keyword",match:F(T),relevance:0};function V(ee,{exceptions:B,when:G}={}){const ne=G;return B=B||[],ee.map(Ee=>Ee.match(/\|\d+$/)||B.includes(Ee)?Ee:ne(Ee)?`${Ee}|0`:Ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:V(x,{when:ee=>ee.length<3}),literal:u,type:d,built_in:E},contains:[{scope:"type",match:F(l)},Y,O,I,a,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,L]}}function w0(e){return e?typeof e=="string"?e:e.source:null}function ns(e){return pt("(?=",e,")")}function pt(...e){return e.map(r=>w0(r)).join("")}function iA(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function _n(...e){return"("+(iA(e).capture?"":"?:")+e.map(a=>w0(a)).join("|")+")"}const id=e=>pt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),aA=["Protocol","Type"].map(id),Uh=["init","self"].map(id),sA=["Any","Self"],bc=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Hh=["false","nil","true"],oA=["assignment","associativity","higherThan","left","lowerThan","none","right"],uA=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],zh=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],I0=_n(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),v0=_n(I0,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),_c=pt(I0,v0,"*"),O0=_n(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),eu=_n(O0,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),hr=pt(O0,eu,"*"),Yo=pt(/[A-Z]/,eu,"*"),lA=["attached","autoclosure",pt(/convention\(/,_n("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pt(/objc\(/,hr,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],cA=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function dA(e){const t={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a=[e.C_LINE_COMMENT_MODE,r],o={match:[/\./,_n(...aA,...Uh)],className:{2:"keyword"}},u={match:pt(/\./,_n(...bc)),relevance:0},l=bc.filter(We=>typeof We=="string").concat(["_|0"]),d=bc.filter(We=>typeof We!="string").concat(sA).map(id),h={variants:[{className:"keyword",match:_n(...d,...Uh)}]},m={$pattern:_n(/\b\w+/,/#\w+/),keyword:l.concat(uA),literal:Hh},b=[o,u,h],E={match:pt(/\./,_n(...zh)),relevance:0},T={className:"built_in",match:pt(/\b/,_n(...zh),/(?=\()/)},_=[E,T],x={match:/->/,relevance:0},I={className:"operator",relevance:0,variants:[{match:_c},{match:`\\.(\\.|${v0})+`}]},L=[x,I],O="([0-9]_*)+",F="([0-9a-fA-F]_*)+",Y={className:"number",relevance:0,variants:[{match:`\\b(${O})(\\.(${O}))?([eE][+-]?(${O}))?\\b`},{match:`\\b0x(${F})(\\.(${F}))?([pP][+-]?(${O}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},V=(We="")=>({className:"subst",variants:[{match:pt(/\\/,We,/[0\\tnr"']/)},{match:pt(/\\/,We,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ee=(We="")=>({className:"subst",match:pt(/\\/,We,/[\t ]*(?:[\r\n]|\r\n)/)}),B=(We="")=>({className:"subst",label:"interpol",begin:pt(/\\/,We,/\(/),end:/\)/}),G=(We="")=>({begin:pt(We,/"""/),end:pt(/"""/,We),contains:[V(We),ee(We),B(We)]}),ne=(We="")=>({begin:pt(We,/"/),end:pt(/"/,We),contains:[V(We),B(We)]}),Ee={className:"string",variants:[G(),G("#"),G("##"),G("###"),ne(),ne("#"),ne("##"),ne("###")]},U=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],_e={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:U},ue=We=>{const Dt=pt(We,/\//),$t=pt(/\//,We);return{begin:Dt,end:$t,contains:[...U,{scope:"comment",begin:`#(?!.*${$t})`,end:/$/}]}},Oe={scope:"regexp",variants:[ue("###"),ue("##"),ue("#"),_e]},he={match:pt(/`/,hr,/`/)},te={className:"variable",match:/\$\d+/},we={className:"variable",match:`\\$${eu}+`},Le=[he,te,we],X={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:cA,contains:[...L,Y,Ee]}]}},Te={scope:"keyword",match:pt(/@/,_n(...lA),ns(_n(/\(/,/\s+/)))},S={scope:"meta",match:pt(/@/,hr)},M=[X,Te,S],K={match:ns(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,eu,"+")},{className:"type",match:Yo,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pt(/\s+&\s+/,ns(Yo)),relevance:0}]},k={begin:/</,end:/>/,keywords:m,contains:[...a,...b,...M,x,K]};K.contains.push(k);const se={match:pt(hr,/\s*:/),keywords:"_|0",relevance:0},Se={begin:/\(/,end:/\)/,relevance:0,keywords:m,contains:["self",se,...a,Oe,...b,..._,...L,Y,Ee,...Le,...M,K]},xe={begin:/</,end:/>/,keywords:"repeat each",contains:[...a,K]},$e={begin:_n(ns(pt(hr,/\s*:/)),ns(pt(hr,/\s+/,hr,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:hr}]},Fe={begin:/\(/,end:/\)/,keywords:m,contains:[$e,...a,...b,...L,Y,Ee,...M,K,Se],endsParent:!0,illegal:/["']/},Ke={match:[/(func|macro)/,/\s+/,_n(he.match,hr,_c)],className:{1:"keyword",3:"title.function"},contains:[xe,Fe,t],illegal:[/\[/,/%/]},ut={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[xe,Fe,t],illegal:/\[|%/},Ht={match:[/operator/,/\s+/,_c],className:{1:"keyword",3:"title"}},Qn={begin:[/precedencegroup/,/\s+/,Yo],className:{1:"keyword",3:"title"},contains:[K],keywords:[...oA,...Hh],end:/}/},zt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},tn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,hr,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:m,contains:[xe,...b,{begin:/:/,end:/\{/,keywords:m,contains:[{scope:"title.class.inherited",match:Yo},...b],relevance:0}]};for(const We of Ee.variants){const Dt=We.contains.find(dn=>dn.label==="interpol");Dt.keywords=m;const $t=[...b,..._,...L,Y,Ee,...Le];Dt.contains=[...$t,{begin:/\(/,end:/\)/,contains:["self",...$t]}]}return{name:"Swift",keywords:m,contains:[...a,Ke,ut,zt,Un,tn,Ht,Qn,{beginKeywords:"import",end:/$/,contains:[...a],relevance:0},Oe,...b,..._,...L,Y,Ee,...Le,...M,K,Se]}}const tu="[A-Za-z$_][0-9A-Za-z$_]*",R0=["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"],L0=["true","false","null","undefined","NaN","Infinity"],D0=["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"],M0=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],P0=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],B0=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],F0=[].concat(P0,D0,M0);function fA(e){const t=e.regex,r=(X,{after:Te})=>{const S="</"+X[0].slice(1);return X.input.indexOf(S,Te)!==-1},a=tu,o={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,Te)=>{const S=X[0].length+X.index,M=X.input[S];if(M==="<"||M===","){Te.ignoreMatch();return}M===">"&&(r(X,{after:S})||Te.ignoreMatch());let K;const k=X.input.substring(S);if(K=k.match(/^\s*=/)){Te.ignoreMatch();return}if((K=k.match(/^\s+extends\s+/))&&K.index===0){Te.ignoreMatch();return}}},d={$pattern:tu,keyword:R0,literal:L0,built_in:F0,"variable.language":B0},h="[0-9](_?[0-9])*",m=`\\.(${h})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${b})((${m})|\\.)?|(${m}))[eE][+-]?(${h})\\b`},{begin:`\\b(${b})\\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},T={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,T],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,T],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,T],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,T]},F={className:"comment",variants:[e.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:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},Y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,x,I,L,{match:/\$\d+/},E];T.contains=Y.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(Y)});const V=[].concat(F,T.contains),ee=V.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(V)}]),B={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ee},G={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:t.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:{_:[...D0,...M0]}},Ee={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[B],illegal:/%/},_e={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ue(X){return t.concat("(?!",X.join("|"),")")}const Oe={match:t.concat(/\b/,ue([...P0,"super","import"].map(X=>`${X}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},B]},we="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Le={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(we)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[B]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:ee,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,x,I,L,F,{match:/\$\d+/},E,ne,{scope:"attr",match:a+t.lookahead(":"),relevance:0},Le,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,e.REGEXP_MODE,{className:"function",begin:we,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ee}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:u},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[B,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[B]},Oe,_e,G,te,{match:/\$[(.]/}]}}function pA(e){const t=e.regex,r=fA(e),a=tu,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},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:tu,keyword:R0.concat(h),literal:L0,built_in:F0.concat(o),"variable.language":B0},b={className:"meta",begin:"@"+a},E=(I,L,O)=>{const F=I.contains.findIndex(Y=>Y.label===L);if(F===-1)throw new Error("can not find mode to replace");I.contains.splice(F,1,O)};Object.assign(r.keywords,m),r.exports.PARAMS_CONTAINS.push(b);const T=r.contains.find(I=>I.scope==="attr"),_=Object.assign({},T,{match:t.concat(a,t.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,T,_]),r.contains=r.contains.concat([b,u,l,_]),E(r,"shebang",e.SHEBANG()),E(r,"use_strict",d);const x=r.contains.find(I=>I.label==="func.def");return x.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function hA(e){const t=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},a={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,u=/\d{4}-\d{1,2}-\d{1,2}/,l=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,h={className:"literal",variants:[{begin:t.concat(/# */,t.either(u,o),/ *#/)},{begin:t.concat(/# */,d,/ *#/)},{begin:t.concat(/# */,l,/ *#/)},{begin:t.concat(/# */,t.either(u,o),/ +/,t.either(l,d),/ *#/)}]},m={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},E=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),T=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,a,h,m,b,E,T,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[T]}]}}function mA(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const r=e.COMMENT(/;;/,/$/),a=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},u={className:"variable",begin:/\$[\w_]+/},l={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},d={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},h={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},m={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:a},contains:[r,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},u,l,o,e.QUOTE_STRING_MODE,h,m,d]}}function gA(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(u,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),h=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{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:[u,h,d,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,l,h,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{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:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:m}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function EA(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},u={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},l={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,o]},d=e.inherit(l,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),T={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"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},x={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},I={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},L=[a,{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:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},T,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},x,I,u,l],O=[...L];return O.pop(),O.push(d),_.contains=O,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:L}}const bA={arduino:JS,bash:ex,c:tx,cpp:nx,csharp:rx,css:fx,diff:px,go:hx,graphql:mx,ini:gx,java:Ex,javascript:Nx,json:Sx,kotlin:Ax,less:Lx,lua:Dx,makefile:Mx,markdown:Px,objectivec:Bx,perl:Fx,php:Ux,"php-template":Hx,plaintext:zx,python:$x,"python-repl":jx,r:Yx,ruby:Wx,rust:Gx,scss:tA,shell:nA,sql:rA,swift:dA,typescript:pA,vbnet:hA,wasm:mA,xml:gA,yaml:EA};var Tc,$h;function _A(){if($h)return Tc;$h=1;function e(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach($=>{const Z=R[$],Ne=typeof Z;(Ne==="object"||Ne==="function")&&!Object.isFrozen(Z)&&e(Z)}),R}class t{constructor($){$.data===void 0&&($.data={}),this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(R){return R.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(R,...$){const Z=Object.create(null);for(const Ne in R)Z[Ne]=R[Ne];return $.forEach(function(Ne){for(const it in Ne)Z[it]=Ne[it]}),Z}const o="</span>",u=R=>!!R.scope,l=(R,{prefix:$})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const Z=R.split(".");return[`${$}${Z.shift()}`,...Z.map((Ne,it)=>`${Ne}${"_".repeat(it+1)}`)].join(" ")}return`${$}${R}`};class d{constructor($,Z){this.buffer="",this.classPrefix=Z.classPrefix,$.walk(this)}addText($){this.buffer+=r($)}openNode($){if(!u($))return;const Z=l($.scope,{prefix:this.classPrefix});this.span(Z)}closeNode($){u($)&&(this.buffer+=o)}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}}const h=(R={})=>{const $={children:[]};return Object.assign($,R),$};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($){this.top.children.push($)}openNode($){const Z=h({scope:$});this.add(Z),this.stack.push(Z)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,Z){return typeof Z=="string"?$.addText(Z):Z.children&&($.openNode(Z),Z.children.forEach(Ne=>this._walk($,Ne)),$.closeNode(Z)),$}static _collapse($){typeof $!="string"&&$.children&&($.children.every(Z=>typeof Z=="string")?$.children=[$.children.join("")]:$.children.forEach(Z=>{m._collapse(Z)}))}}class b extends m{constructor($){super(),this.options=$}addText($){$!==""&&this.add($)}startScope($){this.openNode($)}endScope(){this.closeNode()}__addSublanguage($,Z){const Ne=$.root;Z&&(Ne.scope=`language:${Z}`),this.add(Ne)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function E(R){return R?typeof R=="string"?R:R.source:null}function T(R){return I("(?=",R,")")}function _(R){return I("(?:",R,")*")}function x(R){return I("(?:",R,")?")}function I(...R){return R.map(Z=>E(Z)).join("")}function L(R){const $=R[R.length-1];return typeof $=="object"&&$.constructor===Object?(R.splice(R.length-1,1),$):{}}function O(...R){return"("+(L(R).capture?"":"?:")+R.map(Ne=>E(Ne)).join("|")+")"}function F(R){return new RegExp(R.toString()+"|").exec("").length-1}function Y(R,$){const Z=R&&R.exec($);return Z&&Z.index===0}const V=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ee(R,{joinWith:$}){let Z=0;return R.map(Ne=>{Z+=1;const it=Z;let Me=E(Ne),de="";for(;Me.length>0;){const oe=V.exec(Me);if(!oe){de+=Me;break}de+=Me.substring(0,oe.index),Me=Me.substring(oe.index+oe[0].length),oe[0][0]==="\\"&&oe[1]?de+="\\"+String(Number(oe[1])+it):(de+=oe[0],oe[0]==="("&&Z++)}return de}).map(Ne=>`(${Ne})`).join($)}const B=/\b\B/,G="[a-zA-Z]\\w*",ne="[a-zA-Z_]\\w*",Ee="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_e="\\b(0b[01]+)",ue="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Oe=(R={})=>{const $=/^#![ ]*\//;return R.binary&&(R.begin=I($,/.*\b/,R.binary,/\b.*/)),a({scope:"meta",begin:$,end:/$/,relevance:0,"on:begin":(Z,Ne)=>{Z.index!==0&&Ne.ignoreMatch()}},R)},he={begin:"\\\\[\\s\\S]",relevance:0},te={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},we={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},Le={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/},X=function(R,$,Z={}){const Ne=a({scope:"comment",begin:R,end:$,contains:[]},Z);Ne.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 it=O("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 Ne.contains.push({begin:I(/[ ]+/,"(",it,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ne},Te=X("//","$"),S=X("/\\*","\\*/"),M=X("#","$"),K={scope:"number",begin:Ee,relevance:0},k={scope:"number",begin:U,relevance:0},se={scope:"number",begin:_e,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},xe={scope:"title",begin:G,relevance:0},$e={scope:"title",begin:ne,relevance:0},Fe={begin:"\\.\\s*"+ne,relevance:0};var ut=Object.freeze({__proto__:null,APOS_STRING_MODE:te,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:_e,COMMENT:X,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:Te,C_NUMBER_MODE:k,C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":($,Z)=>{Z.data._beginMatch=$[1]},"on:end":($,Z)=>{Z.data._beginMatch!==$[1]&&Z.ignoreMatch()}})},HASH_COMMENT_MODE:M,IDENT_RE:G,MATCH_NOTHING_RE:B,METHOD_GUARD:Fe,NUMBER_MODE:K,NUMBER_RE:Ee,PHRASAL_WORDS_MODE:Le,QUOTE_STRING_MODE:we,REGEXP_MODE:Se,RE_STARTERS_RE:ue,SHEBANG:Oe,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:ne,UNDERSCORE_TITLE_MODE:$e});function Ht(R,$){R.input[R.index-1]==="."&&$.ignoreMatch()}function Qn(R,$){R.className!==void 0&&(R.scope=R.className,delete R.className)}function zt(R,$){$&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=Ht,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function Un(R,$){Array.isArray(R.illegal)&&(R.illegal=O(...R.illegal))}function tn(R,$){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function We(R,$){R.relevance===void 0&&(R.relevance=1)}const Dt=(R,$)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const Z=Object.assign({},R);Object.keys(R).forEach(Ne=>{delete R[Ne]}),R.keywords=Z.keywords,R.begin=I(Z.beforeMatch,T(Z.begin)),R.starts={relevance:0,contains:[Object.assign(Z,{endsParent:!0})]},R.relevance=0,delete Z.beforeMatch},$t=["of","and","for","in","not","or","if","then","parent","list","value"],dn="keyword";function mt(R,$,Z=dn){const Ne=Object.create(null);return typeof R=="string"?it(Z,R.split(" ")):Array.isArray(R)?it(Z,R):Object.keys(R).forEach(function(Me){Object.assign(Ne,mt(R[Me],$,Me))}),Ne;function it(Me,de){$&&(de=de.map(oe=>oe.toLowerCase())),de.forEach(function(oe){const Pe=oe.split("|");Ne[Pe[0]]=[Me,On(Pe[0],Pe[1])]})}}function On(R,$){return $?Number($):Rn(R)?0:1}function Rn(R){return $t.includes(R.toLowerCase())}const fn={},nn=R=>{console.error(R)},Xn=(R,...$)=>{console.log(`WARN: ${R}`,...$)},Q=(R,$)=>{fn[`${R}/${$}`]||(console.log(`Deprecated as of ${R}. ${$}`),fn[`${R}/${$}`]=!0)},fe=new Error;function Be(R,$,{key:Z}){let Ne=0;const it=R[Z],Me={},de={};for(let oe=1;oe<=$.length;oe++)de[oe+Ne]=it[oe],Me[oe+Ne]=!0,Ne+=F($[oe-1]);R[Z]=de,R[Z]._emit=Me,R[Z]._multi=!0}function je(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw nn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fe;if(typeof R.beginScope!="object"||R.beginScope===null)throw nn("beginScope must be object"),fe;Be(R,R.begin,{key:"beginScope"}),R.begin=ee(R.begin,{joinWith:""})}}function Ve(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw nn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fe;if(typeof R.endScope!="object"||R.endScope===null)throw nn("endScope must be object"),fe;Be(R,R.end,{key:"endScope"}),R.end=ee(R.end,{joinWith:""})}}function dt(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function Mt(R){dt(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),je(R),Ve(R)}function Zt(R){function $(de,oe){return new RegExp(E(de),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(oe?"g":""))}class Z{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(oe,Pe){Pe.position=this.position++,this.matchIndexes[this.matchAt]=Pe,this.regexes.push([Pe,oe]),this.matchAt+=F(oe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const oe=this.regexes.map(Pe=>Pe[1]);this.matcherRe=$(ee(oe,{joinWith:"|"}),!0),this.lastIndex=0}exec(oe){this.matcherRe.lastIndex=this.lastIndex;const Pe=this.matcherRe.exec(oe);if(!Pe)return null;const Bt=Pe.findIndex((or,Or)=>Or>0&&or!==void 0),gt=this.matchIndexes[Bt];return Pe.splice(0,Bt),Object.assign(Pe,gt)}}class Ne{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(oe){if(this.multiRegexes[oe])return this.multiRegexes[oe];const Pe=new Z;return this.rules.slice(oe).forEach(([Bt,gt])=>Pe.addRule(Bt,gt)),Pe.compile(),this.multiRegexes[oe]=Pe,Pe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(oe,Pe){this.rules.push([oe,Pe]),Pe.type==="begin"&&this.count++}exec(oe){const Pe=this.getMatcher(this.regexIndex);Pe.lastIndex=this.lastIndex;let Bt=Pe.exec(oe);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Bt=gt.exec(oe)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function it(de){const oe=new Ne;return de.contains.forEach(Pe=>oe.addRule(Pe.begin,{rule:Pe,type:"begin"})),de.terminatorEnd&&oe.addRule(de.terminatorEnd,{type:"end"}),de.illegal&&oe.addRule(de.illegal,{type:"illegal"}),oe}function Me(de,oe){const Pe=de;if(de.isCompiled)return Pe;[Qn,tn,Mt,Dt].forEach(gt=>gt(de,oe)),R.compilerExtensions.forEach(gt=>gt(de,oe)),de.__beforeBegin=null,[zt,Un,We].forEach(gt=>gt(de,oe)),de.isCompiled=!0;let Bt=null;return typeof de.keywords=="object"&&de.keywords.$pattern&&(de.keywords=Object.assign({},de.keywords),Bt=de.keywords.$pattern,delete de.keywords.$pattern),Bt=Bt||/\w+/,de.keywords&&(de.keywords=mt(de.keywords,R.case_insensitive)),Pe.keywordPatternRe=$(Bt,!0),oe&&(de.begin||(de.begin=/\B|\b/),Pe.beginRe=$(Pe.begin),!de.end&&!de.endsWithParent&&(de.end=/\B|\b/),de.end&&(Pe.endRe=$(Pe.end)),Pe.terminatorEnd=E(Pe.end)||"",de.endsWithParent&&oe.terminatorEnd&&(Pe.terminatorEnd+=(de.end?"|":"")+oe.terminatorEnd)),de.illegal&&(Pe.illegalRe=$(de.illegal)),de.contains||(de.contains=[]),de.contains=[].concat(...de.contains.map(function(gt){return Hn(gt==="self"?de:gt)})),de.contains.forEach(function(gt){Me(gt,Pe)}),de.starts&&Me(de.starts,oe),Pe.matcher=it(Pe),Pe}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return R.classNameAliases=a(R.classNameAliases||{}),Me(R)}function yn(R){return R?R.endsWithParent||yn(R.starts):!1}function Hn(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function($){return a(R,{variants:null},$)})),R.cachedVariants?R.cachedVariants:yn(R)?a(R,{starts:R.starts?a(R.starts):null}):Object.isFrozen(R)?a(R):R}var Ct="11.11.1";class pn extends Error{constructor($,Z){super($),this.name="HTMLInjectionError",this.html=Z}}const Pt=r,_r=a,ct=Symbol("nomatch"),jt=7,be=function(R){const $=Object.create(null),Z=Object.create(null),Ne=[];let it=!0;const Me="Could not find the language '{}', did you forget to load/include a language module?",de={disableAutodetect:!0,name:"Plain text",contains:[]};let oe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Pe(me){return oe.noHighlightRe.test(me)}function Bt(me){let De=me.className+" ";De+=me.parentNode?me.parentNode.className:"";const Xe=oe.languageDetectRe.exec(De);if(Xe){const et=Zn(Xe[1]);return et||(Xn(Me.replace("{}",Xe[1])),Xn("Falling back to no-highlight mode for this block.",me)),et?Xe[1]:"no-highlight"}return De.split(/\s+/).find(et=>Pe(et)||Zn(et))}function gt(me,De,Xe){let et="",vt="";typeof De=="object"?(et=me,Xe=De.ignoreIllegals,vt=De.language):(Q("10.7.0","highlight(lang, code, ...args) has been deprecated."),Q("10.7.0",`Please use highlight(code, options) instead.
|
|
78
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),vt=me,et=De),Xe===void 0&&(Xe=!0);const xt={code:et,language:vt};ii("before:highlight",xt);const ur=xt.result?xt.result:or(xt.language,xt.code,Xe);return ur.code=xt.code,ii("after:highlight",ur),ur}function or(me,De,Xe,et){const vt=Object.create(null);function xt(ye,ke){return ye.keywords[ke]}function ur(){if(!qe.keywords){Ot.addText(ft);return}let ye=0;qe.keywordPatternRe.lastIndex=0;let ke=qe.keywordPatternRe.exec(ft),Ye="";for(;ke;){Ye+=ft.substring(ye,ke.index);const nt=zn.case_insensitive?ke[0].toLowerCase():ke[0],wt=xt(qe,nt);if(wt){const[Gt,Tu]=wt;if(Ot.addText(Ye),Ye="",vt[nt]=(vt[nt]||0)+1,vt[nt]<=jt&&(oi+=Tu),Gt.startsWith("_"))Ye+=ke[0];else{const Ds=zn.classNameAliases[Gt]||Gt;gn(ke[0],Ds)}}else Ye+=ke[0];ye=qe.keywordPatternRe.lastIndex,ke=qe.keywordPatternRe.exec(ft)}Ye+=ft.substring(ye),Ot.addText(Ye)}function vi(){if(ft==="")return;let ye=null;if(typeof qe.subLanguage=="string"){if(!$[qe.subLanguage]){Ot.addText(ft);return}ye=or(qe.subLanguage,ft,!0,ya[qe.subLanguage]),ya[qe.subLanguage]=ye._top}else ye=ri(ft,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(oi+=ye.relevance),Ot.__addSublanguage(ye._emitter,ye.language)}function mn(){qe.subLanguage!=null?vi():ur(),ft=""}function gn(ye,ke){ye!==""&&(Ot.startScope(ke),Ot.addText(ye),Ot.endScope())}function ai(ye,ke){let Ye=1;const nt=ke.length-1;for(;Ye<=nt;){if(!ye._emit[Ye]){Ye++;continue}const wt=zn.classNameAliases[ye[Ye]]||ye[Ye],Gt=ke[Ye];wt?gn(Gt,wt):(ft=Gt,ur(),ft=""),Ye++}}function Rr(ye,ke){return ye.scope&&typeof ye.scope=="string"&&Ot.openNode(zn.classNameAliases[ye.scope]||ye.scope),ye.beginScope&&(ye.beginScope._wrap?(gn(ft,zn.classNameAliases[ye.beginScope._wrap]||ye.beginScope._wrap),ft=""):ye.beginScope._multi&&(ai(ye.beginScope,ke),ft="")),qe=Object.create(ye,{parent:{value:qe}}),qe}function si(ye,ke,Ye){let nt=Y(ye.endRe,Ye);if(nt){if(ye["on:end"]){const wt=new t(ye);ye["on:end"](ke,wt),wt.isMatchIgnored&&(nt=!1)}if(nt){for(;ye.endsParent&&ye.parent;)ye=ye.parent;return ye}}if(ye.endsWithParent)return si(ye.parent,ke,Ye)}function bu(ye){return qe.matcher.regexIndex===0?(ft+=ye[0],1):(Mr=!0,0)}function _u(ye){const ke=ye[0],Ye=ye.rule,nt=new t(Ye),wt=[Ye.__beforeBegin,Ye["on:begin"]];for(const Gt of wt)if(Gt&&(Gt(ye,nt),nt.isMatchIgnored))return bu(ke);return Ye.skip?ft+=ke:(Ye.excludeBegin&&(ft+=ke),mn(),!Ye.returnBegin&&!Ye.excludeBegin&&(ft=ke)),Rr(Ye,ye),Ye.returnBegin?0:ke.length}function _a(ye){const ke=ye[0],Ye=De.substring(ye.index),nt=si(qe,ye,Ye);if(!nt)return ct;const wt=qe;qe.endScope&&qe.endScope._wrap?(mn(),gn(ke,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(mn(),ai(qe.endScope,ye)):wt.skip?ft+=ke:(wt.returnEnd||wt.excludeEnd||(ft+=ke),mn(),wt.excludeEnd&&(ft=ke));do qe.scope&&Ot.closeNode(),!qe.skip&&!qe.subLanguage&&(oi+=qe.relevance),qe=qe.parent;while(qe!==nt.parent);return nt.starts&&Rr(nt.starts,ye),wt.returnEnd?0:ke.length}function Ls(){const ye=[];for(let ke=qe;ke!==zn;ke=ke.parent)ke.scope&&ye.unshift(ke.scope);ye.forEach(ke=>Ot.openNode(ke))}let Lr={};function Dr(ye,ke){const Ye=ke&&ke[0];if(ft+=ye,Ye==null)return mn(),0;if(Lr.type==="begin"&&ke.type==="end"&&Lr.index===ke.index&&Ye===""){if(ft+=De.slice(ke.index,ke.index+1),!it){const nt=new Error(`0 width match regex (${me})`);throw nt.languageName=me,nt.badRule=Lr.rule,nt}return 1}if(Lr=ke,ke.type==="begin")return _u(ke);if(ke.type==="illegal"&&!Xe){const nt=new Error('Illegal lexeme "'+Ye+'" for mode "'+(qe.scope||"<unnamed>")+'"');throw nt.mode=qe,nt}else if(ke.type==="end"){const nt=_a(ke);if(nt!==ct)return nt}if(ke.type==="illegal"&&Ye==="")return ft+=`
|
|
79
|
+
`,1;if(ui>1e5&&ui>ke.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ft+=Ye,Ye.length}const zn=Zn(me);if(!zn)throw nn(Me.replace("{}",me)),new Error('Unknown language: "'+me+'"');const Ta=Zt(zn);let st="",qe=et||Ta;const ya={},Ot=new oe.__emitter(oe);Ls();let ft="",oi=0,lr=0,ui=0,Mr=!1;try{if(zn.__emitTokens)zn.__emitTokens(De,Ot);else{for(qe.matcher.considerAll();;){ui++,Mr?Mr=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=lr;const ye=qe.matcher.exec(De);if(!ye)break;const ke=De.substring(lr,ye.index),Ye=Dr(ke,ye);lr=ye.index+Ye}Dr(De.substring(lr))}return Ot.finalize(),st=Ot.toHTML(),{language:me,value:st,relevance:oi,illegal:!1,_emitter:Ot,_top:qe}}catch(ye){if(ye.message&&ye.message.includes("Illegal"))return{language:me,value:Pt(De),illegal:!0,relevance:0,_illegalBy:{message:ye.message,index:lr,context:De.slice(lr-100,lr+100),mode:ye.mode,resultSoFar:st},_emitter:Ot};if(it)return{language:me,value:Pt(De),illegal:!1,relevance:0,errorRaised:ye,_emitter:Ot,_top:qe};throw ye}}function Or(me){const De={value:Pt(me),illegal:!1,relevance:0,_top:de,_emitter:new oe.__emitter(oe)};return De._emitter.addText(me),De}function ri(me,De){De=De||oe.languages||Object.keys($);const Xe=Or(me),et=De.filter(Zn).filter(Rs).map(mn=>or(mn,me,!1));et.unshift(Xe);const vt=et.sort((mn,gn)=>{if(mn.relevance!==gn.relevance)return gn.relevance-mn.relevance;if(mn.language&&gn.language){if(Zn(mn.language).supersetOf===gn.language)return 1;if(Zn(gn.language).supersetOf===mn.language)return-1}return 0}),[xt,ur]=vt,vi=xt;return vi.secondBest=ur,vi}function mu(me,De,Xe){const et=De&&Z[De]||Xe;me.classList.add("hljs"),me.classList.add(`language-${et}`)}function ga(me){let De=null;const Xe=Bt(me);if(Pe(Xe))return;if(ii("before:highlightElement",{el:me,language:Xe}),me.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",me);return}if(me.children.length>0&&(oe.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(me)),oe.throwUnescapedHTML))throw new pn("One of your code blocks includes unescaped HTML.",me.innerHTML);De=me;const et=De.textContent,vt=Xe?gt(et,{language:Xe,ignoreIllegals:!0}):ri(et);me.innerHTML=vt.value,me.dataset.highlighted="yes",mu(me,Xe,vt.language),me.result={language:vt.language,re:vt.relevance,relevance:vt.relevance},vt.secondBest&&(me.secondBest={language:vt.secondBest.language,relevance:vt.secondBest.relevance}),ii("after:highlightElement",{el:me,result:vt,text:et})}function gu(me){oe=_r(oe,me)}const Tr=()=>{wi(),Q("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Cs(){wi(),Q("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ea=!1;function wi(){function me(){wi()}if(document.readyState==="loading"){Ea||window.addEventListener("DOMContentLoaded",me,!1),Ea=!0;return}document.querySelectorAll(oe.cssSelector).forEach(ga)}function ws(me,De){let Xe=null;try{Xe=De(R)}catch(et){if(nn("Language definition for '{}' could not be registered.".replace("{}",me)),it)nn(et);else throw et;Xe=de}Xe.name||(Xe.name=me),$[me]=Xe,Xe.rawDefinition=De.bind(null,R),Xe.aliases&&Os(Xe.aliases,{languageName:me})}function Is(me){delete $[me];for(const De of Object.keys(Z))Z[De]===me&&delete Z[De]}function vs(){return Object.keys($)}function Zn(me){return me=(me||"").toLowerCase(),$[me]||$[Z[me]]}function Os(me,{languageName:De}){typeof me=="string"&&(me=[me]),me.forEach(Xe=>{Z[Xe.toLowerCase()]=De})}function Rs(me){const De=Zn(me);return De&&!De.disableAutodetect}function St(me){me["before:highlightBlock"]&&!me["before:highlightElement"]&&(me["before:highlightElement"]=De=>{me["before:highlightBlock"](Object.assign({block:De.el},De))}),me["after:highlightBlock"]&&!me["after:highlightElement"]&&(me["after:highlightElement"]=De=>{me["after:highlightBlock"](Object.assign({block:De.el},De))})}function Eu(me){St(me),Ne.push(me)}function ba(me){const De=Ne.indexOf(me);De!==-1&&Ne.splice(De,1)}function ii(me,De){const Xe=me;Ne.forEach(function(et){et[Xe]&&et[Xe](De)})}function Ii(me){return Q("10.7.0","highlightBlock will be removed entirely in v12.0"),Q("10.7.0","Please use highlightElement now."),ga(me)}Object.assign(R,{highlight:gt,highlightAuto:ri,highlightAll:wi,highlightElement:ga,highlightBlock:Ii,configure:gu,initHighlighting:Tr,initHighlightingOnLoad:Cs,registerLanguage:ws,unregisterLanguage:Is,listLanguages:vs,getLanguage:Zn,registerAliases:Os,autoDetection:Rs,inherit:_r,addPlugin:Eu,removePlugin:ba}),R.debugMode=function(){it=!1},R.safeMode=function(){it=!0},R.versionString=Ct,R.regex={concat:I,lookahead:T,either:O,optional:x,anyNumberOfTimes:_};for(const me in ut)typeof ut[me]=="object"&&e(ut[me]);return Object.assign(R,ut),R},hn=be({});return hn.newInstance=()=>be({}),Tc=hn,hn.HighlightJS=hn,hn.default=hn,Tc}var TA=_A();const yA=_s(TA),jh={},NA="hljs-";function SA(e){const t=yA.newInstance();return e&&u(e),{highlight:r,highlightAuto:a,listLanguages:o,register:u,registerAlias:l,registered:d};function r(h,m,b){const E=b||jh,T=typeof E.prefix=="string"?E.prefix:NA;if(!t.getLanguage(h))throw new Error("Unknown language: `"+h+"` is not registered");t.configure({__emitter:xA,classPrefix:T});const _=t.highlight(m,{ignoreIllegals:!0,language:h});if(_.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:_.errorRaised});const x=_._emitter.root,I=x.data;return I.language=_.language,I.relevance=_.relevance,x}function a(h,m){const E=(m||jh).subset||o();let T=-1,_=0,x;for(;++T<E.length;){const I=E[T];if(!t.getLanguage(I))continue;const L=r(I,h,m);L.data&&L.data.relevance!==void 0&&L.data.relevance>_&&(_=L.data.relevance,x=L)}return x||{type:"root",children:[],data:{language:void 0,relevance:_}}}function o(){return t.listLanguages()}function u(h,m){if(typeof h=="string")t.registerLanguage(h,m);else{let b;for(b in h)Object.hasOwn(h,b)&&t.registerLanguage(b,h[b])}}function l(h,m){if(typeof h=="string")t.registerAliases(typeof m=="string"?m:[...m],{languageName:h});else{let b;for(b in h)if(Object.hasOwn(h,b)){const E=h[b];t.registerAliases(typeof E=="string"?E:[...E],{languageName:b})}}}function d(h){return!!t.getLanguage(h)}}class xA{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const r=this.stack[this.stack.length-1],a=r.children[r.children.length-1];a&&a.type==="text"?a.value+=t:r.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,r){const a=this.stack[this.stack.length-1],o=t.root.children;r?a.children.push({type:"element",tagName:"span",properties:{className:[r]},children:o}):a.children.push(...o)}openNode(t){const r=this,a=t.split(".").map(function(l,d){return d?l+"_".repeat(d):r.options.classPrefix+l}),o=this.stack[this.stack.length-1],u={type:"element",tagName:"span",properties:{className:a},children:[]};o.children.push(u),this.stack.push(u)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const AA={};function U0(e){const t=e||AA,r=t.aliases,a=t.detect||!1,o=t.languages||bA,u=t.plainText,l=t.prefix,d=t.subset;let h="hljs";const m=SA(o);if(r&&m.registerAlias(r),l){const b=l.indexOf("-");h=b===-1?l:l.slice(0,b)}return function(b,E){fa(b,"element",function(T,_,x){if(T.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const I=kA(T);if(I===!1||!I&&!a||I&&u&&u.includes(I))return;Array.isArray(T.properties.className)||(T.properties.className=[]),T.properties.className.includes(h)||T.properties.className.unshift(h);const L=WS(T,{whitespace:"pre"});let O;try{O=I?m.highlight(I,L,{prefix:l}):m.highlightAuto(L,{prefix:l,subset:d})}catch(F){const Y=F;if(I&&/Unknown language/.test(Y.message)){E.message("Cannot highlight as `"+I+"`, it’s not registered",{ancestors:[x,T],cause:Y,place:T.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw Y}!I&&O.data&&O.data.language&&T.properties.className.push("language-"+O.data.language),O.children.length>0&&(T.children=O.children)})}}function kA(e){const t=e.properties.className;let r=-1;if(!Array.isArray(t))return;let a;for(;++r<t.length;){const o=String(t[r]);if(o==="no-highlight"||o==="nohighlight")return!1;!a&&o.slice(0,5)==="lang-"&&(a=o.slice(5)),!a&&o.slice(0,9)==="language-"&&(a=o.slice(9))}return a}const Yh=/[#.]/g;function CA(e,t){const r=e||"",a={};let o=0,u,l;for(;o<r.length;){Yh.lastIndex=o;const d=Yh.exec(r),h=r.slice(o,d?d.index:r.length);h&&(u?u==="#"?a.id=h:Array.isArray(a.className)?a.className.push(h):a.className=[h]:l=h,o+=h.length),d&&(u=d[0],o++)}return{type:"element",tagName:l||t||"div",properties:a,children:[]}}function H0(e,t,r){const a=r?OA(r):void 0;function o(u,l,...d){let h;if(u==null){h={type:"root",children:[]};const m=l;d.unshift(m)}else{h=CA(u,t);const m=h.tagName.toLowerCase(),b=a?a.get(m):void 0;if(h.tagName=b||m,wA(l))d.unshift(l);else for(const[E,T]of Object.entries(l))IA(e,h.properties,E,T)}for(const m of d)Pc(h.children,m);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return o}function wA(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const a of r){const o=t[a];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const u=o;for(const l of u)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function IA(e,t,r,a){const o=au(e,r);let u;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;u=a}else typeof a=="boolean"?u=a:typeof a=="string"?o.spaceSeparated?u=Wp(a):o.commaSeparated?u=Hp(a):o.commaOrSpaceSeparated?u=Wp(Hp(a).join(" ")):u=Wh(o,o.property,a):Array.isArray(a)?u=[...a]:u=o.property==="style"?vA(a):String(a);if(Array.isArray(u)){const l=[];for(const d of u)l.push(Wh(o,o.property,d));u=l}o.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[o.property]=u}}function Pc(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Pc(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Pc(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Wh(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||ms(r)===ms(t)))return!0}return r}function vA(e){const t=[];for(const[r,a]of Object.entries(e))t.push([r,a].join(": "));return t.join("; ")}function OA(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const RA=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],LA=H0(ys,"div"),DA=H0(ti,"g",RA);function MA(e){const t=String(e),r=[];return{toOffset:o,toPoint:a};function a(u){if(typeof u=="number"&&u>-1&&u<=t.length){let l=0;for(;;){let d=r[l];if(d===void 0){const h=Gh(t,r[l-1]);d=h===-1?t.length+1:h+1,r[l]=d}if(d>u)return{line:l+1,column:u-(l>0?r[l-1]:0)+1,offset:u};l++}}}function o(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;r.length<u.line;){const d=r[r.length-1],h=Gh(t,d),m=h===-1?t.length+1:h+1;if(d===m)break;r.push(m)}const l=(u.line>1?r[u.line-2]:0)+u.column-1;if(l<r[u.line-1])return l}}}function Gh(e,t){const r=e.indexOf("\r",t),a=e.indexOf(`
|
|
80
|
+
`,t);return a===-1?r:r===-1||r+1===a?a:r<a?r:a}const Ni={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},z0={}.hasOwnProperty,PA=Object.prototype;function BA(e,t){const r=t||{};return ad({file:r.file||void 0,location:!1,schema:r.space==="svg"?ti:ys,verbose:r.verbose||!1},e)}function ad(e,t){let r;switch(t.nodeName){case"#comment":{const a=t;return r={type:"comment",value:a.data},Vo(e,a,r),r}case"#document":case"#document-fragment":{const a=t,o="mode"in a?a.mode==="quirks"||a.mode==="limited-quirks":!1;if(r={type:"root",children:$0(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const u=String(e.file),l=MA(u),d=l.toPoint(0),h=l.toPoint(u.length);r.position={start:d,end:h}}return r}case"#documentType":{const a=t;return r={type:"doctype"},Vo(e,a,r),r}case"#text":{const a=t;return r={type:"text",value:a.value},Vo(e,a,r),r}default:return r=FA(e,t),r}}function $0(e,t){let r=-1;const a=[];for(;++r<t.length;){const o=ad(e,t[r]);a.push(o)}return a}function FA(e,t){const r=e.schema;e.schema=t.namespaceURI===Ni.svg?ti:ys;let a=-1;const o={};for(;++a<t.attrs.length;){const d=t.attrs[a],h=(d.prefix?d.prefix+":":"")+d.name;z0.call(PA,h)||(o[h]=d.value)}const l=(e.schema.space==="svg"?DA:LA)(t.tagName,o,$0(e,t.childNodes));if(Vo(e,t,l),l.tagName==="template"){const d=t,h=d.sourceCodeLocation,m=h&&h.startTag&&aa(h.startTag),b=h&&h.endTag&&aa(h.endTag),E=ad(e,d.content);m&&b&&e.file&&(E.position={start:m.end,end:b.start}),l.content=E}return e.schema=r,l}function Vo(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const a=UA(e,r,t.sourceCodeLocation);a&&(e.location=!0,r.position=a)}}function UA(e,t,r){const a=aa(r);if(t.type==="element"){const o=t.children[t.children.length-1];if(a&&!r.endTag&&o&&o.position&&o.position.end&&(a.end=Object.assign({},o.position.end)),e.verbose){const u={};let l;if(r.attrs)for(l in r.attrs)z0.call(r.attrs,l)&&(u[au(e.schema,l).property]=aa(r.attrs[l]));r.startTag;const d=aa(r.startTag),h=r.endTag?aa(r.endTag):void 0,m={opening:d};h&&(m.closing=h),m.properties=u,t.data={position:m}}}return a}function aa(e){const t=qh({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=qh({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function qh(e){return e.line&&e.column?e:void 0}const HA={},zA={}.hasOwnProperty,j0=Qm("type",{handlers:{root:jA,element:KA,text:GA,comment:qA,doctype:WA}});function $A(e,t){const a=(t||HA).space;return j0(e,a==="svg"?ti:ys)}function jA(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=sd(e.children,r,t),pa(e,r),r}function YA(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=sd(e.children,r,t),pa(e,r),r}function WA(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return pa(e,t),t}function GA(e){const t={nodeName:"#text",value:e.value,parentNode:null};return pa(e,t),t}function qA(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return pa(e,t),t}function KA(e,t){const r=t;let a=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=ti);const o=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&zA.call(e.properties,u)){const h=VA(a,u,e.properties[u]);h&&o.push(h)}}const l=a.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:Ni[l],childNodes:[],parentNode:null};return d.childNodes=sd(e.children,d,a),pa(e,d),e.tagName==="template"&&e.content&&(d.content=YA(e.content,a)),d}function VA(e,t,r){const a=au(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&a.boolean)return;Array.isArray(r)&&(r=a.commaSeparated?lm(r):Em(r));const o={name:a.attribute,value:r===!0?"":String(r)};if(a.space&&a.space!=="html"&&a.space!=="svg"){const u=o.name.indexOf(":");u<0?o.prefix="":(o.name=o.name.slice(u+1),o.prefix=a.attribute.slice(0,u)),o.namespace=Ni[a.space]}return o}function sd(e,t,r){let a=-1;const o=[];if(e)for(;++a<e.length;){const u=j0(e[a],r);u.parentNode=t,o.push(u)}return o}function pa(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const QA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],XA=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Nt="�";var N;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));const wn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y0(e){return e>=55296&&e<=57343}function ZA(e){return e>=56320&&e<=57343}function JA(e,t){return(e-55296)*1024+9216+t}function W0(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function G0(e){return e>=64976&&e<=65007||XA.has(e)}var q;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(q||(q={}));const ek=65536;class tk{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=ek,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:a,col:o,offset:u}=this,l=o+r,d=u+r;return{code:t,startLine:a,endLine:a,startCol:l,endCol:l,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(ZA(r))return this.pos++,this._addGap(),JA(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err(q.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let a=0;a<t.length;a++)if((this.html.charCodeAt(this.pos+a)|32)!==t.charCodeAt(a))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;const a=this.html.charCodeAt(r);return a===N.CARRIAGE_RETURN?N.LINE_FEED:a}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):t===N.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Y0(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){W0(t)?this._err(q.controlCharacterInInputStream):G0(t)&&this._err(q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Je;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Je||(Je={}));function q0(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const nk=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),rk=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function ik(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rk.get(e))!==null&&t!==void 0?t:e}var Xt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Xt||(Xt={}));const ak=32;var ei;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ei||(ei={}));function Bc(e){return e>=Xt.ZERO&&e<=Xt.NINE}function sk(e){return e>=Xt.UPPER_A&&e<=Xt.UPPER_F||e>=Xt.LOWER_A&&e<=Xt.LOWER_F}function ok(e){return e>=Xt.UPPER_A&&e<=Xt.UPPER_Z||e>=Xt.LOWER_A&&e<=Xt.LOWER_Z||Bc(e)}function uk(e){return e===Xt.EQUALS||ok(e)}var Qt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Qt||(Qt={}));var Ir;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ir||(Ir={}));class lk{constructor(t,r,a){this.decodeTree=t,this.emitCodePoint=r,this.errors=a,this.state=Qt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ir.Strict}startEntity(t){this.decodeMode=t,this.state=Qt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Qt.EntityStart:return t.charCodeAt(r)===Xt.NUM?(this.state=Qt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Qt.NamedEntity,this.stateNamedEntity(t,r));case Qt.NumericStart:return this.stateNumericStart(t,r);case Qt.NumericDecimal:return this.stateNumericDecimal(t,r);case Qt.NumericHex:return this.stateNumericHex(t,r);case Qt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|ak)===Xt.LOWER_X?(this.state=Qt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Qt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,a,o){if(r!==a){const u=a-r;this.result=this.result*Math.pow(o,u)+Number.parseInt(t.substr(r,u),o),this.consumed+=u}}stateNumericHex(t,r){const a=r;for(;r<t.length;){const o=t.charCodeAt(r);if(Bc(o)||sk(o))r+=1;else return this.addToNumericResult(t,a,r,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,a,r,16),-1}stateNumericDecimal(t,r){const a=r;for(;r<t.length;){const o=t.charCodeAt(r);if(Bc(o))r+=1;else return this.addToNumericResult(t,a,r,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,a,r,10),-1}emitNumericEntity(t,r){var a;if(this.consumed<=r)return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Xt.SEMI)this.consumed+=1;else if(this.decodeMode===Ir.Strict)return 0;return this.emitCodePoint(ik(this.result),this.consumed),this.errors&&(t!==Xt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:a}=this;let o=a[this.treeIndex],u=(o&ei.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const l=t.charCodeAt(r);if(this.treeIndex=ck(a,o,this.treeIndex+Math.max(1,u),l),this.treeIndex<0)return this.result===0||this.decodeMode===Ir.Attribute&&(u===0||uk(l))?0:this.emitNotTerminatedNamedEntity();if(o=a[this.treeIndex],u=(o&ei.VALUE_LENGTH)>>14,u!==0){if(l===Xt.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Ir.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:a}=this,o=(a[r]&ei.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,a){const{decodeTree:o}=this;return this.emitCodePoint(r===1?o[t]&~ei.VALUE_LENGTH:o[t+1],a),r===3&&this.emitCodePoint(o[t+2],a),a}end(){var t;switch(this.state){case Qt.NamedEntity:return this.result!==0&&(this.decodeMode!==Ir.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qt.NumericDecimal:return this.emitNumericEntity(0,2);case Qt.NumericHex:return this.emitNumericEntity(0,3);case Qt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qt.EntityStart:return 0}}}function ck(e,t,r,a){const o=(t&ei.BRANCH_LENGTH)>>7,u=t&ei.JUMP_TABLE;if(o===0)return u!==0&&a===u?r:-1;if(u){const h=a-u;return h<0||h>=o?-1:e[r+h]-1}let l=r,d=l+o-1;for(;l<=d;){const h=l+d>>>1,m=e[h];if(m<a)l=h+1;else if(m>a)d=h-1;else return e[h+o]}return-1}var ie;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ie||(ie={}));var Si;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Si||(Si={}));var Vn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Vn||(Vn={}));var z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(z||(z={}));var f;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(f||(f={}));const dk=new Map([[z.A,f.A],[z.ADDRESS,f.ADDRESS],[z.ANNOTATION_XML,f.ANNOTATION_XML],[z.APPLET,f.APPLET],[z.AREA,f.AREA],[z.ARTICLE,f.ARTICLE],[z.ASIDE,f.ASIDE],[z.B,f.B],[z.BASE,f.BASE],[z.BASEFONT,f.BASEFONT],[z.BGSOUND,f.BGSOUND],[z.BIG,f.BIG],[z.BLOCKQUOTE,f.BLOCKQUOTE],[z.BODY,f.BODY],[z.BR,f.BR],[z.BUTTON,f.BUTTON],[z.CAPTION,f.CAPTION],[z.CENTER,f.CENTER],[z.CODE,f.CODE],[z.COL,f.COL],[z.COLGROUP,f.COLGROUP],[z.DD,f.DD],[z.DESC,f.DESC],[z.DETAILS,f.DETAILS],[z.DIALOG,f.DIALOG],[z.DIR,f.DIR],[z.DIV,f.DIV],[z.DL,f.DL],[z.DT,f.DT],[z.EM,f.EM],[z.EMBED,f.EMBED],[z.FIELDSET,f.FIELDSET],[z.FIGCAPTION,f.FIGCAPTION],[z.FIGURE,f.FIGURE],[z.FONT,f.FONT],[z.FOOTER,f.FOOTER],[z.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[z.FORM,f.FORM],[z.FRAME,f.FRAME],[z.FRAMESET,f.FRAMESET],[z.H1,f.H1],[z.H2,f.H2],[z.H3,f.H3],[z.H4,f.H4],[z.H5,f.H5],[z.H6,f.H6],[z.HEAD,f.HEAD],[z.HEADER,f.HEADER],[z.HGROUP,f.HGROUP],[z.HR,f.HR],[z.HTML,f.HTML],[z.I,f.I],[z.IMG,f.IMG],[z.IMAGE,f.IMAGE],[z.INPUT,f.INPUT],[z.IFRAME,f.IFRAME],[z.KEYGEN,f.KEYGEN],[z.LABEL,f.LABEL],[z.LI,f.LI],[z.LINK,f.LINK],[z.LISTING,f.LISTING],[z.MAIN,f.MAIN],[z.MALIGNMARK,f.MALIGNMARK],[z.MARQUEE,f.MARQUEE],[z.MATH,f.MATH],[z.MENU,f.MENU],[z.META,f.META],[z.MGLYPH,f.MGLYPH],[z.MI,f.MI],[z.MO,f.MO],[z.MN,f.MN],[z.MS,f.MS],[z.MTEXT,f.MTEXT],[z.NAV,f.NAV],[z.NOBR,f.NOBR],[z.NOFRAMES,f.NOFRAMES],[z.NOEMBED,f.NOEMBED],[z.NOSCRIPT,f.NOSCRIPT],[z.OBJECT,f.OBJECT],[z.OL,f.OL],[z.OPTGROUP,f.OPTGROUP],[z.OPTION,f.OPTION],[z.P,f.P],[z.PARAM,f.PARAM],[z.PLAINTEXT,f.PLAINTEXT],[z.PRE,f.PRE],[z.RB,f.RB],[z.RP,f.RP],[z.RT,f.RT],[z.RTC,f.RTC],[z.RUBY,f.RUBY],[z.S,f.S],[z.SCRIPT,f.SCRIPT],[z.SEARCH,f.SEARCH],[z.SECTION,f.SECTION],[z.SELECT,f.SELECT],[z.SOURCE,f.SOURCE],[z.SMALL,f.SMALL],[z.SPAN,f.SPAN],[z.STRIKE,f.STRIKE],[z.STRONG,f.STRONG],[z.STYLE,f.STYLE],[z.SUB,f.SUB],[z.SUMMARY,f.SUMMARY],[z.SUP,f.SUP],[z.TABLE,f.TABLE],[z.TBODY,f.TBODY],[z.TEMPLATE,f.TEMPLATE],[z.TEXTAREA,f.TEXTAREA],[z.TFOOT,f.TFOOT],[z.TD,f.TD],[z.TH,f.TH],[z.THEAD,f.THEAD],[z.TITLE,f.TITLE],[z.TR,f.TR],[z.TRACK,f.TRACK],[z.TT,f.TT],[z.U,f.U],[z.UL,f.UL],[z.SVG,f.SVG],[z.VAR,f.VAR],[z.WBR,f.WBR],[z.XMP,f.XMP]]);function ha(e){var t;return(t=dk.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const ce=f,fk={[ie.HTML]:new Set([ce.ADDRESS,ce.APPLET,ce.AREA,ce.ARTICLE,ce.ASIDE,ce.BASE,ce.BASEFONT,ce.BGSOUND,ce.BLOCKQUOTE,ce.BODY,ce.BR,ce.BUTTON,ce.CAPTION,ce.CENTER,ce.COL,ce.COLGROUP,ce.DD,ce.DETAILS,ce.DIR,ce.DIV,ce.DL,ce.DT,ce.EMBED,ce.FIELDSET,ce.FIGCAPTION,ce.FIGURE,ce.FOOTER,ce.FORM,ce.FRAME,ce.FRAMESET,ce.H1,ce.H2,ce.H3,ce.H4,ce.H5,ce.H6,ce.HEAD,ce.HEADER,ce.HGROUP,ce.HR,ce.HTML,ce.IFRAME,ce.IMG,ce.INPUT,ce.LI,ce.LINK,ce.LISTING,ce.MAIN,ce.MARQUEE,ce.MENU,ce.META,ce.NAV,ce.NOEMBED,ce.NOFRAMES,ce.NOSCRIPT,ce.OBJECT,ce.OL,ce.P,ce.PARAM,ce.PLAINTEXT,ce.PRE,ce.SCRIPT,ce.SECTION,ce.SELECT,ce.SOURCE,ce.STYLE,ce.SUMMARY,ce.TABLE,ce.TBODY,ce.TD,ce.TEMPLATE,ce.TEXTAREA,ce.TFOOT,ce.TH,ce.THEAD,ce.TITLE,ce.TR,ce.TRACK,ce.UL,ce.WBR,ce.XMP]),[ie.MATHML]:new Set([ce.MI,ce.MO,ce.MN,ce.MS,ce.MTEXT,ce.ANNOTATION_XML]),[ie.SVG]:new Set([ce.TITLE,ce.FOREIGN_OBJECT,ce.DESC]),[ie.XLINK]:new Set,[ie.XML]:new Set,[ie.XMLNS]:new Set},Fc=new Set([ce.H1,ce.H2,ce.H3,ce.H4,ce.H5,ce.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Lt={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function pk(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function ss(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function hk(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Zr(e){return hk(e)||ss(e)}function Kh(e){return Zr(e)||pk(e)}function Wo(e){return e+32}function K0(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function Vh(e){return K0(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function mk(e){return e===N.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:Y0(e)?q.surrogateCharacterReference:G0(e)?q.noncharacterCharacterReference:W0(e)||e===N.CARRIAGE_RETURN?q.controlCharacterReference:null}class gk{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new tk(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new lk(nk,(a,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(a)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{const o=mk(a);o&&this._err(o,1)}}:void 0)}_err(t,r=0){var a,o;(o=(a=this.handler).onParseError)===null||o===void 0||o.call(a,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,a){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||a==null||a()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Je.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Je.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Je.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Je.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const a=this.currentToken;if(q0(a,this.currentAttr.name)===null){if(a.attrs.push(this.currentAttr),a.location&&this.currentLocation){const o=(t=(r=a.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ha(t.tagName),t.type===Je.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(q.endTagWithAttributes),t.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Je.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Je.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Je.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Je.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=K0(t)?Je.WHITESPACE_CHARACTER:t===N.NULL?Je.NULL_CHARACTER:Je.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Je.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ir.Attribute:Ir.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Nt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Nt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Nt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Nt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Zr(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case N.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Zr(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case N.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=A.DATA;break}case N.EOF:{this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.tagName+=Nt;break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ss(t)?Wo(t):t)}}_stateRcdataLessThanSign(t){t===N.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Zr(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case N.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===N.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Zr(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case N.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case N.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Zr(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===N.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===N.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Nt);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Nt);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Nt);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===N.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Zr(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Zr(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(wn.SCRIPT,!1)&&Vh(this.preprocessor.peek(wn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<wn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Nt);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Nt);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Nt);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(wn.SCRIPT,!1)&&Vh(this.preprocessor.peek(wn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<wn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=Nt;break}default:this.currentAttr.name+=String.fromCodePoint(ss(t)?Wo(t):t)}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case N.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Nt;break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Nt;break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Nt;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case N.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(r);break}case N.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.data+=Nt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(wn.DASH_DASH,!0)?(this._createCommentToken(wn.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(wn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(wn.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(wn.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(wn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=A.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{r.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.data+=Nt;break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case N.EXCLAMATION_MARK:{r.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err(q.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(r);break}case N.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{r.data+="-";break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{r.data+="--!",this.state=A.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ss(t))this._createDoctypeToken(String.fromCharCode(Wo(t))),this.state=A.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(Nt),this.state=A.DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.name+=Nt;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ss(t)?Wo(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(wn.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(wn.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.publicId+=Nt;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.publicId+=Nt;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.QUOTATION_MARK:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.systemId+=Nt;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),r.systemId+=Nt;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case N.NULL:{this._err(q.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=A.DATA;break}case N.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Kh(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Kh(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===N.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const V0=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),Qh=new Set([...V0,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),nu=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),Ek=new Set([...nu,f.OL,f.UL]),bk=new Set([...nu,f.BUTTON]),Xh=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),Zh=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),_k=new Set([f.TR,f.TEMPLATE,f.HTML]),Tk=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),yk=new Set([f.TABLE,f.TEMPLATE,f.HTML]),Nk=new Set([f.TD,f.TH]);class Sk{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,a){this.treeAdapter=r,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ie.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const a=this._indexOf(t);this.items[a]=r,a===this.stackTop&&(this.current=r)}insertAfter(t,r,a){const o=this._indexOf(t)+1;this.items.splice(o,0,r),this.tagIDs.splice(o,0,a),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==ie.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const a=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(a,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Fc,ie.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Nk,ie.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let a=this.stackTop;a>=0;a--)if(t.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===r)return a;return-1}clearBackTo(t,r){const a=this._indexOfTagNames(t,r);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(yk,ie.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Tk,ie.HTML)}clearBackToTableRowContext(){this.clearBackTo(_k,ie.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===f.HTML}hasInDynamicScope(t,r){for(let a=this.stackTop;a>=0;a--){const o=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case ie.HTML:{if(o===t)return!0;if(r.has(o))return!1;break}case ie.SVG:{if(Zh.has(o))return!1;break}case ie.MATHML:{if(Xh.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,nu)}hasInListItemScope(t){return this.hasInDynamicScope(t,Ek)}hasInButtonScope(t){return this.hasInDynamicScope(t,bk)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ie.HTML:{if(Fc.has(r))return!0;if(nu.has(r))return!1;break}case ie.SVG:{if(Zh.has(r))return!1;break}case ie.MATHML:{if(Xh.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ie.HTML)switch(this.tagIDs[r]){case t:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ie.HTML)switch(this.tagIDs[t]){case f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ie.HTML)switch(this.tagIDs[r]){case t:return!0;case f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&V0.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Qh.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Qh.has(this.currentTagId);)this.pop()}}const yc=3;var gr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(gr||(gr={}));const Jh={type:gr.Marker};class xk{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const a=[],o=r.length,u=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const h=this.entries[d];if(h.type===gr.Marker)break;const{element:m}=h;if(this.treeAdapter.getTagName(m)===u&&this.treeAdapter.getNamespaceURI(m)===l){const b=this.treeAdapter.getAttrList(m);b.length===o&&a.push({idx:d,attrs:b})}}return a}_ensureNoahArkCondition(t){if(this.entries.length<yc)return;const r=this.treeAdapter.getAttrList(t),a=this._getNoahArkConditionCandidates(t,r);if(a.length<yc)return;const o=new Map(r.map(l=>[l.name,l.value]));let u=0;for(let l=0;l<a.length;l++){const d=a[l];d.attrs.every(h=>o.get(h.name)===h.value)&&(u+=1,u>=yc&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Jh)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:gr.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:gr.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Jh);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(a=>a.type===gr.Marker||this.treeAdapter.getTagName(a.element)===t);return r&&r.type===gr.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===gr.Element&&r.element===t)}}const Jr={createDocument(){return{nodeName:"#document",mode:Vn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const a=e.childNodes.indexOf(r);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,a){const o=e.childNodes.find(u=>u.nodeName==="#documentType");if(o)o.name=t,o.publicId=r,o.systemId=a;else{const u={nodeName:"#documentType",name:t,publicId:r,systemId:a,parentNode:null};Jr.appendChild(e,u)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Jr.isTextNode(r)){r.value+=t;return}}Jr.appendChild(e,Jr.createTextNode(t))},insertTextBefore(e,t,r){const a=e.childNodes[e.childNodes.indexOf(r)-1];a&&Jr.isTextNode(a)?a.value+=t:Jr.insertBefore(e,Jr.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(a=>a.name));for(let a=0;a<t.length;a++)r.has(t[a].name)||e.attrs.push(t[a])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Q0="html",Ak="about:legacy-compat",kk="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",X0=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ck=[...X0,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],wk=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Z0=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ik=[...Z0,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function em(e,t){return t.some(r=>e.startsWith(r))}function vk(e){return e.name===Q0&&e.publicId===null&&(e.systemId===null||e.systemId===Ak)}function Ok(e){if(e.name!==Q0)return Vn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===kk)return Vn.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),wk.has(r))return Vn.QUIRKS;let a=t===null?Ck:X0;if(em(r,a))return Vn.QUIRKS;if(a=t===null?Z0:Ik,em(r,a))return Vn.LIMITED_QUIRKS}return Vn.NO_QUIRKS}const tm={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Rk="definitionurl",Lk="definitionURL",Dk=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Mk=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ie.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ie.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ie.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ie.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ie.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ie.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ie.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ie.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ie.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ie.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ie.XMLNS}]]),Pk=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Bk=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function Fk(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:a})=>a===Si.COLOR||a===Si.SIZE||a===Si.FACE)||Bk.has(t)}function J0(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Rk){e.attrs[t].name=Lk;break}}function eg(e){for(let t=0;t<e.attrs.length;t++){const r=Dk.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function od(e){for(let t=0;t<e.attrs.length;t++){const r=Mk.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Uk(e){const t=Pk.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ha(e.tagName))}function Hk(e,t){return t===ie.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}function zk(e,t,r){if(t===ie.MATHML&&e===f.ANNOTATION_XML){for(let a=0;a<r.length;a++)if(r[a].name===Si.ENCODING){const o=r[a].value.toLowerCase();return o===tm.TEXT_HTML||o===tm.APPLICATION_XML}}return t===ie.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}function $k(e,t,r,a){return(!a||a===ie.HTML)&&zk(e,t,r)||(!a||a===ie.MATHML)&&Hk(e,t)}const jk="hidden",Yk=8,Wk=3;var v;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(v||(v={}));const Gk={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},tg=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),nm={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Jr,onParseError:null};class rm{constructor(t,r,a=null,o=null){this.fragmentContext=a,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=v.INITIAL,this.originalInsertionMode=v.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...nm,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new gk(this.options,this),this.activeFormattingElements=new xk(this.treeAdapter),this.fragmentContextID=a?ha(this.treeAdapter.getTagName(a)):f.UNKNOWN,this._setContextModes(a??this.document,this.fragmentContextID),this.openElements=new Sk(this.document,this.treeAdapter,this)}static parse(t,r){const a=new this(r);return a.tokenizer.write(t,!0),a.document}static getFragmentParser(t,r){const a={...nm,...r};t??(t=a.treeAdapter.createElement(z.TEMPLATE,ie.HTML,[]));const o=a.treeAdapter.createElement("documentmock",ie.HTML,[]),u=new this(a,o,t);return u.fragmentContextID===f.TEMPLATE&&u.tmplInsertionModeStack.unshift(v.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,a){var o;if(!this.onParseError)return;const u=(o=t.location)!==null&&o!==void 0?o:Gk,l={code:r,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:a?u.startLine:u.endLine,endCol:a?u.startCol:u.endCol,endOffset:a?u.startOffset:u.endOffset};this.onParseError(l)}onItemPush(t,r,a){var o,u;(u=(o=this.treeAdapter).onItemPush)===null||u===void 0||u.call(o,t),a&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var a,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(a=this.treeAdapter).onItemPop)===null||o===void 0||o.call(a,t,this.openElements.current),r){let u,l;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,l=this.fragmentContextID):{current:u,currentTagId:l}=this.openElements,this._setContextModes(u,l)}}_setContextModes(t,r){const a=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ie.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ie.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=v.TEXT}switchToPlaintextParsing(){this.insertionMode=v.TEXT,this.originalInsertionMode=v.IN_BODY,this.tokenizer.state=Lt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ie.HTML))switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:{this.tokenizer.state=Lt.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=Lt.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=Lt.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=Lt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",a=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,a,o),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const a=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const a=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(a??this.document,t)}}_appendElement(t,r){const a=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(a,t.location)}_insertElement(t,r){const a=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID)}_insertFakeElement(t,r){const a=this.treeAdapter.createElement(t,ie.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,ie.HTML,t.attrs),a=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,a),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,ie.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.HTML)}_appendCommentNode(t,r){const a=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,a),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_insertCharacters(t){let r,a;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:a}=this._findFosterParentingLocation(),a?this.treeAdapter.insertTextBefore(r,t.chars,a):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(r),u=a?o.lastIndexOf(a):o.length,l=o[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:h,endCol:m,endOffset:b}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:h,endCol:m,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,r){for(let a=this.treeAdapter.getFirstChild(t);a;a=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(r,a)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const a=r.location,o=this.treeAdapter.getTagName(t),u=r.type===Je.END_TAG&&o===r.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,a;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,a=this.fragmentContextID):{current:r,currentTagId:a}=this.openElements,t.tagID===f.SVG&&this.treeAdapter.getTagName(r)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ie.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&a!==void 0&&!this._isIntegrationPoint(a,r,ie.HTML)}_processToken(t){switch(t.type){case Je.CHARACTER:{this.onCharacter(t);break}case Je.NULL_CHARACTER:{this.onNullCharacter(t);break}case Je.COMMENT:{this.onComment(t);break}case Je.DOCTYPE:{this.onDoctype(t);break}case Je.START_TAG:{this._processStartTag(t);break}case Je.END_TAG:{this.onEndTag(t);break}case Je.EOF:{this.onEof(t);break}case Je.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,a){const o=this.treeAdapter.getNamespaceURI(r),u=this.treeAdapter.getAttrList(r);return $k(t,o,u,a)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(o=>o.type===gr.Marker||this.openElements.contains(o.element)),a=r===-1?t-1:r-1;for(let o=a;o>=0;o--){const u=this.activeFormattingElements.entries[o];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=v.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=v.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=v.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=v.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=v.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=v.IN_TABLE;return}case f.BODY:{this.insertionMode=v.IN_BODY;return}case f.FRAMESET:{this.insertionMode=v.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?v.AFTER_HEAD:v.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=v.IN_CELL;return}break}case f.HEAD:{if(t>0){this.insertionMode=v.IN_HEAD;return}break}}this.insertionMode=v.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const a=this.openElements.tagIDs[r];if(a===f.TEMPLATE)break;if(a===f.TABLE){this.insertionMode=v.IN_SELECT_IN_TABLE;return}}this.insertionMode=v.IN_SELECT}_isElementCausesFosterParenting(t){return tg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ie.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case f.TABLE:{const a=this.treeAdapter.getParentNode(r);return a?{parent:a,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const a=this.treeAdapter.getNamespaceURI(t);return fk[a].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){NC(this,t);return}switch(this.insertionMode){case v.INITIAL:{rs(this,t);break}case v.BEFORE_HTML:{cs(this,t);break}case v.BEFORE_HEAD:{ds(this,t);break}case v.IN_HEAD:{fs(this,t);break}case v.IN_HEAD_NO_SCRIPT:{ps(this,t);break}case v.AFTER_HEAD:{hs(this,t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:{rg(this,t);break}case v.TEXT:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Nc(this,t);break}case v.IN_TABLE_TEXT:{lg(this,t);break}case v.IN_COLUMN_GROUP:{ru(this,t);break}case v.AFTER_BODY:{iu(this,t);break}case v.AFTER_AFTER_BODY:{Qo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){yC(this,t);return}switch(this.insertionMode){case v.INITIAL:{rs(this,t);break}case v.BEFORE_HTML:{cs(this,t);break}case v.BEFORE_HEAD:{ds(this,t);break}case v.IN_HEAD:{fs(this,t);break}case v.IN_HEAD_NO_SCRIPT:{ps(this,t);break}case v.AFTER_HEAD:{hs(this,t);break}case v.TEXT:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Nc(this,t);break}case v.IN_COLUMN_GROUP:{ru(this,t);break}case v.AFTER_BODY:{iu(this,t);break}case v.AFTER_AFTER_BODY:{Qo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Uc(this,t);return}switch(this.insertionMode){case v.INITIAL:case v.BEFORE_HTML:case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_TEMPLATE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{Uc(this,t);break}case v.IN_TABLE_TEXT:{is(this,t);break}case v.AFTER_BODY:{Jk(this,t);break}case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{e2(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case v.INITIAL:{t2(this,t);break}case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:{this._err(t,q.misplacedDoctype);break}case v.IN_TABLE_TEXT:{is(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?SC(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{rs(this,t);break}case v.BEFORE_HTML:{n2(this,t);break}case v.BEFORE_HEAD:{i2(this,t);break}case v.IN_HEAD:{sr(this,t);break}case v.IN_HEAD_NO_SCRIPT:{o2(this,t);break}case v.AFTER_HEAD:{l2(this,t);break}case v.IN_BODY:{cn(this,t);break}case v.IN_TABLE:{la(this,t);break}case v.IN_TABLE_TEXT:{is(this,t);break}case v.IN_CAPTION:{aC(this,t);break}case v.IN_COLUMN_GROUP:{cd(this,t);break}case v.IN_TABLE_BODY:{pu(this,t);break}case v.IN_ROW:{hu(this,t);break}case v.IN_CELL:{uC(this,t);break}case v.IN_SELECT:{fg(this,t);break}case v.IN_SELECT_IN_TABLE:{cC(this,t);break}case v.IN_TEMPLATE:{fC(this,t);break}case v.AFTER_BODY:{hC(this,t);break}case v.IN_FRAMESET:{mC(this,t);break}case v.AFTER_FRAMESET:{EC(this,t);break}case v.AFTER_AFTER_BODY:{_C(this,t);break}case v.AFTER_AFTER_FRAMESET:{TC(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?xC(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{rs(this,t);break}case v.BEFORE_HTML:{r2(this,t);break}case v.BEFORE_HEAD:{a2(this,t);break}case v.IN_HEAD:{s2(this,t);break}case v.IN_HEAD_NO_SCRIPT:{u2(this,t);break}case v.AFTER_HEAD:{c2(this,t);break}case v.IN_BODY:{fu(this,t);break}case v.TEXT:{V2(this,t);break}case v.IN_TABLE:{bs(this,t);break}case v.IN_TABLE_TEXT:{is(this,t);break}case v.IN_CAPTION:{sC(this,t);break}case v.IN_COLUMN_GROUP:{oC(this,t);break}case v.IN_TABLE_BODY:{Hc(this,t);break}case v.IN_ROW:{dg(this,t);break}case v.IN_CELL:{lC(this,t);break}case v.IN_SELECT:{pg(this,t);break}case v.IN_SELECT_IN_TABLE:{dC(this,t);break}case v.IN_TEMPLATE:{pC(this,t);break}case v.AFTER_BODY:{mg(this,t);break}case v.IN_FRAMESET:{gC(this,t);break}case v.AFTER_FRAMESET:{bC(this,t);break}case v.AFTER_AFTER_BODY:{Qo(this,t);break}}}onEof(t){switch(this.insertionMode){case v.INITIAL:{rs(this,t);break}case v.BEFORE_HTML:{cs(this,t);break}case v.BEFORE_HEAD:{ds(this,t);break}case v.IN_HEAD:{fs(this,t);break}case v.IN_HEAD_NO_SCRIPT:{ps(this,t);break}case v.AFTER_HEAD:{hs(this,t);break}case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{og(this,t);break}case v.TEXT:{Q2(this,t);break}case v.IN_TABLE_TEXT:{is(this,t);break}case v.IN_TEMPLATE:{hg(this,t);break}case v.AFTER_BODY:case v.IN_FRAMESET:case v.AFTER_FRAMESET:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{ld(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===N.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.TEXT:case v.IN_COLUMN_GROUP:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{this._insertCharacters(t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:case v.AFTER_BODY:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{ng(this,t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Nc(this,t);break}case v.IN_TABLE_TEXT:{ug(this,t);break}}}}function qk(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):sg(e,t),r}function Kk(e,t){let r=null,a=e.openElements.stackTop;for(;a>=0;a--){const o=e.openElements.items[a];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[a])&&(r=o)}return r||(e.openElements.shortenToLength(Math.max(a,0)),e.activeFormattingElements.removeEntry(t)),r}function Vk(e,t,r){let a=t,o=e.openElements.getCommonAncestor(t);for(let u=0,l=o;l!==r;u++,l=o){o=e.openElements.getCommonAncestor(l);const d=e.activeFormattingElements.getElementEntry(l),h=d&&u>=Wk;!d||h?(h&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(l)):(l=Qk(e,d),a===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(l,a),a=l)}return a}function Qk(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function Xk(e,t,r){const a=e.treeAdapter.getTagName(t),o=ha(a);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(r);else{const u=e.treeAdapter.getNamespaceURI(t);o===f.TEMPLATE&&u===ie.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Zk(e,t,r){const a=e.treeAdapter.getNamespaceURI(r.element),{token:o}=r,u=e.treeAdapter.createElement(o.tagName,a,o.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,o),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,u,o.tagID)}function ud(e,t){for(let r=0;r<Yk;r++){const a=qk(e,t);if(!a)break;const o=Kk(e,a);if(!o)break;e.activeFormattingElements.bookmark=a;const u=Vk(e,o,a.element),l=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(u),l&&Xk(e,l,u),Zk(e,o,a)}}function Uc(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Jk(e,t){e._appendCommentNode(t,e.openElements.items[0])}function e2(e,t){e._appendCommentNode(t,e.document)}function ld(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let a=e.openElements.stackTop;a>=r;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const a=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(a);if(o&&!o.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){const u=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(u);l&&!l.endTag&&e._setEndLocation(u,t)}}}}function t2(e,t){e._setDocumentType(t);const r=t.forceQuirks?Vn.QUIRKS:Ok(t);vk(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=v.BEFORE_HTML}function rs(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Vn.QUIRKS),e.insertionMode=v.BEFORE_HTML,e._processToken(t)}function n2(e,t){t.tagID===f.HTML?(e._insertElement(t,ie.HTML),e.insertionMode=v.BEFORE_HEAD):cs(e,t)}function r2(e,t){const r=t.tagID;(r===f.HTML||r===f.HEAD||r===f.BODY||r===f.BR)&&cs(e,t)}function cs(e,t){e._insertFakeRootElement(),e.insertionMode=v.BEFORE_HEAD,e._processToken(t)}function i2(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.HEAD:{e._insertElement(t,ie.HTML),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD;break}default:ds(e,t)}}function a2(e,t){const r=t.tagID;r===f.HEAD||r===f.BODY||r===f.HTML||r===f.BR?ds(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function ds(e,t){e._insertFakeElement(z.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD,e._processToken(t)}function sr(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,Lt.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Lt.RAWTEXT):(e._insertElement(t,ie.HTML),e.insertionMode=v.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,Lt.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,Lt.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=v.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(v.IN_TEMPLATE);break}case f.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:fs(e,t)}}function s2(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=v.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{fs(e,t);break}case f.TEMPLATE:{Ci(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Ci(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function fs(e,t){e.openElements.pop(),e.insertionMode=v.AFTER_HEAD,e._processToken(t)}function o2(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{sr(e,t);break}case f.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:ps(e,t)}}function u2(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=v.IN_HEAD;break}case f.BR:{ps(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function ps(e,t){const r=t.type===Je.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=v.IN_HEAD,e._processToken(t)}function l2(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.BODY:{e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=v.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,ie.HTML),e.insertionMode=v.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),sr(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:hs(e,t)}}function c2(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{hs(e,t);break}case f.TEMPLATE:{Ci(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function hs(e,t){e._insertFakeElement(z.BODY,f.BODY),e.insertionMode=v.IN_BODY,du(e,t)}function du(e,t){switch(t.type){case Je.CHARACTER:{rg(e,t);break}case Je.WHITESPACE_CHARACTER:{ng(e,t);break}case Je.COMMENT:{Uc(e,t);break}case Je.START_TAG:{cn(e,t);break}case Je.END_TAG:{fu(e,t);break}case Je.EOF:{og(e,t);break}}}function ng(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function rg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function d2(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function f2(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function p2(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ie.HTML),e.insertionMode=v.IN_FRAMESET)}function h2(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function m2(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Fc.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ie.HTML)}function g2(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function E2(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),r||(e.formElement=e.openElements.current))}function b2(e,t){e.framesetOk=!1;const r=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const o=e.openElements.tagIDs[a];if(r===f.LI&&o===f.LI||(r===f.DD||r===f.DT)&&(o===f.DD||o===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==f.ADDRESS&&o!==f.DIV&&o!==f.P&&e._isSpecialElement(e.openElements.items[a],o))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function _2(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.tokenizer.state=Lt.PLAINTEXT}function T2(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1}function y2(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);r&&(ud(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function N2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function S2(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(ud(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function x2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function A2(e,t){e.treeAdapter.getDocumentMode(e.document)!==Vn.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=v.IN_TABLE}function ig(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ag(e){const t=q0(e,Si.TYPE);return t!=null&&t.toLowerCase()===jk}function k2(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),ag(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function C2(e,t){e._appendElement(t,ie.HTML),t.ackSelfClosing=!0}function w2(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function I2(e,t){t.tagName=z.IMG,t.tagID=f.IMG,ig(e,t)}function v2(e,t){e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Lt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=v.TEXT}function O2(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Lt.RAWTEXT)}function R2(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Lt.RAWTEXT)}function im(e,t){e._switchToTextParsing(t,Lt.RAWTEXT)}function L2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===v.IN_TABLE||e.insertionMode===v.IN_CAPTION||e.insertionMode===v.IN_TABLE_BODY||e.insertionMode===v.IN_ROW||e.insertionMode===v.IN_CELL?v.IN_SELECT_IN_TABLE:v.IN_SELECT}function D2(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function M2(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ie.HTML)}function P2(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,ie.HTML)}function B2(e,t){e._reconstructActiveFormattingElements(),J0(t),od(t),t.selfClosing?e._appendElement(t,ie.MATHML):e._insertElement(t,ie.MATHML),t.ackSelfClosing=!0}function F2(e,t){e._reconstructActiveFormattingElements(),eg(t),od(t),t.selfClosing?e._appendElement(t,ie.SVG):e._insertElement(t,ie.SVG),t.ackSelfClosing=!0}function am(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function cn(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{N2(e,t);break}case f.A:{y2(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{m2(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{h2(e,t);break}case f.LI:case f.DD:case f.DT:{b2(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{ig(e,t);break}case f.HR:{w2(e,t);break}case f.RB:case f.RTC:{M2(e,t);break}case f.RT:case f.RP:{P2(e,t);break}case f.PRE:case f.LISTING:{g2(e,t);break}case f.XMP:{O2(e,t);break}case f.SVG:{F2(e,t);break}case f.HTML:{d2(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{sr(e,t);break}case f.BODY:{f2(e,t);break}case f.FORM:{E2(e,t);break}case f.NOBR:{S2(e,t);break}case f.MATH:{B2(e,t);break}case f.TABLE:{A2(e,t);break}case f.INPUT:{k2(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{C2(e,t);break}case f.IMAGE:{I2(e,t);break}case f.BUTTON:{T2(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{x2(e,t);break}case f.IFRAME:{R2(e,t);break}case f.SELECT:{L2(e,t);break}case f.OPTION:case f.OPTGROUP:{D2(e,t);break}case f.NOEMBED:case f.NOFRAMES:{im(e,t);break}case f.FRAMESET:{p2(e,t);break}case f.TEXTAREA:{v2(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?im(e,t):am(e,t);break}case f.PLAINTEXT:{_2(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:am(e,t)}}function U2(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=v.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function H2(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=v.AFTER_BODY,mg(e,t))}function z2(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function $2(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):r&&e.openElements.remove(r))}function j2(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(z.P,f.P),e._closePElement()}function Y2(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function W2(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function G2(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function q2(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function K2(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function sg(e,t){const r=t.tagName,a=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const u=e.openElements.items[o],l=e.openElements.tagIDs[o];if(a===l&&(a!==f.UNKNOWN||e.treeAdapter.getTagName(u)===r)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(u,l))break}}function fu(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{ud(e,t);break}case f.P:{j2(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{z2(e,t);break}case f.LI:{Y2(e);break}case f.DD:case f.DT:{W2(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{G2(e);break}case f.BR:{K2(e);break}case f.BODY:{U2(e,t);break}case f.HTML:{H2(e,t);break}case f.FORM:{$2(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{q2(e,t);break}case f.TEMPLATE:{Ci(e,t);break}default:sg(e,t)}}function og(e,t){e.tmplInsertionModeStack.length>0?hg(e,t):ld(e,t)}function V2(e,t){var r;t.tagID===f.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Q2(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Nc(e,t){if(e.openElements.currentTagId!==void 0&&tg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=v.IN_TABLE_TEXT,t.type){case Je.CHARACTER:{lg(e,t);break}case Je.WHITESPACE_CHARACTER:{ug(e,t);break}}else As(e,t)}function X2(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ie.HTML),e.insertionMode=v.IN_CAPTION}function Z2(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=v.IN_COLUMN_GROUP}function J2(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,f.COLGROUP),e.insertionMode=v.IN_COLUMN_GROUP,cd(e,t)}function eC(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=v.IN_TABLE_BODY}function tC(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,f.TBODY),e.insertionMode=v.IN_TABLE_BODY,pu(e,t)}function nC(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function rC(e,t){ag(t)?e._appendElement(t,ie.HTML):As(e,t),t.ackSelfClosing=!0}function iC(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ie.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function la(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{tC(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{sr(e,t);break}case f.COL:{J2(e,t);break}case f.FORM:{iC(e,t);break}case f.TABLE:{nC(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{eC(e,t);break}case f.INPUT:{rC(e,t);break}case f.CAPTION:{X2(e,t);break}case f.COLGROUP:{Z2(e,t);break}default:As(e,t)}}function bs(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{Ci(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:As(e,t)}}function As(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,du(e,t),e.fosterParentingEnabled=r}function ug(e,t){e.pendingCharacterTokens.push(t)}function lg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function is(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)As(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const cg=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function aC(e,t){const r=t.tagID;cg.has(r)?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,la(e,t)):cn(e,t)}function sC(e,t){const r=t.tagID;switch(r){case f.CAPTION:case f.TABLE:{e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,r===f.TABLE&&bs(e,t));break}case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:fu(e,t)}}function cd(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.COL:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.TEMPLATE:{sr(e,t);break}default:ru(e,t)}}function oC(e,t){switch(t.tagID){case f.COLGROUP:{e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case f.TEMPLATE:{Ci(e,t);break}case f.COL:break;default:ru(e,t)}}function ru(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE,e._processToken(t))}function pu(e,t){switch(t.tagID){case f.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ie.HTML),e.insertionMode=v.IN_ROW;break}case f.TH:case f.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,f.TR),e.insertionMode=v.IN_ROW,hu(e,t);break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,la(e,t));break}default:la(e,t)}}function Hc(e,t){const r=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case f.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,bs(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:bs(e,t)}}function hu(e,t){switch(t.tagID){case f.TH:case f.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ie.HTML),e.insertionMode=v.IN_CELL,e.activeFormattingElements.insertMarker();break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,pu(e,t));break}default:la(e,t)}}function dg(e,t){switch(t.tagID){case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY);break}case f.TABLE:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,Hc(e,t));break}case f.TBODY:case f.TFOOT:case f.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,Hc(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:bs(e,t)}}function uC(e,t){const r=t.tagID;cg.has(r)?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),hu(e,t)):cn(e,t)}function lC(e,t){const r=t.tagID;switch(r){case f.TD:case f.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_ROW);break}case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),dg(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:fu(e,t)}}function fg(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case f.OPTGROUP:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case f.HR:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break}case f.SCRIPT:case f.TEMPLATE:{sr(e,t);break}}}function pg(e,t){switch(t.tagID){case f.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{Ci(e,t);break}}}function cC(e,t){const r=t.tagID;r===f.CAPTION||r===f.TABLE||r===f.TBODY||r===f.TFOOT||r===f.THEAD||r===f.TR||r===f.TD||r===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):fg(e,t)}function dC(e,t){const r=t.tagID;r===f.CAPTION||r===f.TABLE||r===f.TBODY||r===f.TFOOT||r===f.THEAD||r===f.TR||r===f.TD||r===f.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):pg(e,t)}function fC(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{sr(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=v.IN_TABLE,e.insertionMode=v.IN_TABLE,la(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=v.IN_COLUMN_GROUP,e.insertionMode=v.IN_COLUMN_GROUP,cd(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=v.IN_TABLE_BODY,e.insertionMode=v.IN_TABLE_BODY,pu(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=v.IN_ROW,e.insertionMode=v.IN_ROW,hu(e,t);break}default:e.tmplInsertionModeStack[0]=v.IN_BODY,e.insertionMode=v.IN_BODY,cn(e,t)}}function pC(e,t){t.tagID===f.TEMPLATE&&Ci(e,t)}function hg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ld(e,t)}function hC(e,t){t.tagID===f.HTML?cn(e,t):iu(e,t)}function mg(e,t){var r;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=v.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(a))===null||r===void 0)&&r.endTag)&&e._setEndLocation(a,t)}}else iu(e,t)}function iu(e,t){e.insertionMode=v.IN_BODY,du(e,t)}function mC(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.FRAMESET:{e._insertElement(t,ie.HTML);break}case f.FRAME:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{sr(e,t);break}}}function gC(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=v.AFTER_FRAMESET))}function EC(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.NOFRAMES:{sr(e,t);break}}}function bC(e,t){t.tagID===f.HTML&&(e.insertionMode=v.AFTER_AFTER_FRAMESET)}function _C(e,t){t.tagID===f.HTML?cn(e,t):Qo(e,t)}function Qo(e,t){e.insertionMode=v.IN_BODY,du(e,t)}function TC(e,t){switch(t.tagID){case f.HTML:{cn(e,t);break}case f.NOFRAMES:{sr(e,t);break}}}function yC(e,t){t.chars=Nt,e._insertCharacters(t)}function NC(e,t){e._insertCharacters(t),e.framesetOk=!1}function gg(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ie.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function SC(e,t){if(Fk(t))gg(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(r);a===ie.MATHML?J0(t):a===ie.SVG&&(Uk(t),eg(t)),od(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}function xC(e,t){if(t.tagID===f.P||t.tagID===f.BR){gg(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(a)===ie.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(a);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(r);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const AC=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,kC=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sm={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Eg(e,t){const r=PC(e),a=Qm("type",{handlers:{root:CC,element:wC,text:IC,comment:_g,doctype:vC,raw:RC},unknown:LC}),o={parser:r?new rm(sm):rm.getFragmentParser(void 0,sm),handle(d){a(d,o)},stitches:!1,options:t||{}};a(e,o),ma(o,Er());const u=r?o.parser.document:o.parser.getFragment(),l=BA(u,{file:o.options.file});return o.stitches&&fa(l,"comment",function(d,h,m){const b=d;if(b.value.stitch&&m&&h!==void 0){const E=m.children;return E[h]=b.value.stitch,h}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function bg(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function CC(e,t){bg(e.children,t)}function wC(e,t){DC(e,t),bg(e.children,t),MC(e,t)}function IC(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Je.CHARACTER,chars:e.value,location:ks(e)};ma(t,Er(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function vC(e,t){const r={type:Je.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ks(e)};ma(t,Er(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function OC(e,t){t.stitches=!0;const r=BC(e);if("children"in e&&"children"in r){const a=Eg({type:"root",children:e.children},t.options);r.children=a.children}_g({type:"comment",value:{stitch:r}},t)}function _g(e,t){const r=e.value,a={type:Je.COMMENT,data:r,location:ks(e)};ma(t,Er(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function RC(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Tg(t,Er(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(AC,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function LC(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))OC(r,t);else{let a="";throw kC.has(r.type)&&(a=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+a)}}function ma(e,t){Tg(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Lt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Tg(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function DC(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Lt.PLAINTEXT)return;ma(t,Er(e));const a=t.parser.openElements.current;let o="namespaceURI"in a?a.namespaceURI:Ni.html;o===Ni.html&&r==="svg"&&(o=Ni.svg);const u=$A({...e,children:[]},{space:o===Ni.svg?"svg":"html"}),l={type:Je.START_TAG,tagName:r,tagID:ha(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:ks(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function MC(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&QA.includes(r)||t.parser.tokenizer.state===Lt.PLAINTEXT)return;ma(t,su(e));const a={type:Je.END_TAG,tagName:r,tagID:ha(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ks(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Lt.RCDATA||t.parser.tokenizer.state===Lt.RAWTEXT||t.parser.tokenizer.state===Lt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Lt.DATA)}function PC(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ks(e){const t=Er(e)||{line:void 0,column:void 0,offset:void 0},r=su(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function BC(e){return"children"in e?ua({...e,children:[]}):ua(e)}function yg(e){return function(t,r){return Eg(t,{...e,file:r})}}function FC({item:e,toolInputMap:t}){if(e.role==="user")return C.jsx("div",{className:"flex justify-end py-1.5",children:C.jsx("div",{className:"max-w-[min(82%,64ch)] bg-[rgba(0,0,0,0.031)] border border-[#e5e5e5] rounded-[6px] px-3 py-2 text-sm text-content-primary whitespace-pre-wrap break-words select-text",children:e.text})});if(e.role==="assistant")return C.jsxs("div",{className:"py-1.5",children:[e.reasoning&&C.jsx(HC,{text:e.reasoning}),C.jsx("div",{className:"text-content-primary text-sm prose max-w-full select-text",children:C.jsx(Wm,{remarkPlugins:[g0,E0],rehypePlugins:[U0,yg],children:e.text})})]});if(e.role==="tool_result"){const r=e.tool_use_id&&(t==null?void 0:t.get(e.tool_use_id))||e.tool_input;return C.jsx(UC,{name:e.tool_name||"tool",text:e.text,isError:e.is_error,toolInput:r})}return e.role==="tool"?null:C.jsx("div",{className:"py-1.5 text-xs text-content-disabled italic",children:e.text})}function UC({name:e,text:t,isError:r,toolInput:a}){const[o,u]=J.useState(!1),l=Ng(e,a,e);return C.jsxs("div",{className:"py-1.5",children:[C.jsxs("button",{onClick:()=>t&&u(!o),className:`flex items-start gap-2 text-sm transition-colors cursor-pointer text-left ${t?"text-content-secondary hover:text-content-primary":""}`,children:[C.jsx("span",{className:`inline-block w-2 h-2 rounded-full shrink-0 mt-1.5 ${r?"bg-danger":"bg-primary"}`}),C.jsxs("span",{children:[C.jsx("span",{className:`font-medium font-mono ${r?"text-danger":"text-content-primary"}`,children:e}),!o&&l&&C.jsxs("span",{className:`text-xs ${r?"text-danger":"text-content-disabled"}`,children:["(",l,")"]}),r&&C.jsx("span",{className:"text-xs text-danger font-medium",children:" ERROR"})]})]}),o&&t&&C.jsx("div",{className:`mt-1 ml-3.5 p-2.5 whitespace-pre-wrap font-mono text-xs leading-relaxed max-h-60 overflow-y-auto rounded-[6px] select-text ${r?"text-danger bg-red-50 border border-red-200":"text-content-primary bg-[rgba(0,0,0,0.031)] border border-[#e5e5e5]"}`,children:t})]})}function HC({text:e}){return e!=null&&e.trim()?C.jsx("div",{className:"text-sm text-content-secondary whitespace-pre-wrap leading-relaxed select-text mb-3 opacity-75",children:e}):null}function zC({call:e}){const t=Ng(e.tool_name,e.tool_input,e.tool_name);return C.jsxs("div",{className:"py-1.5 flex items-start gap-2",children:[C.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-primary animate-pulse-scale shrink-0 mt-1.5"}),C.jsxs("span",{className:"text-sm",children:[C.jsx("span",{className:"font-medium font-mono text-content-primary",children:e.tool_name}),t&&C.jsxs("span",{className:"text-xs text-content-disabled",children:["(",t,")"]})]})]})}const Sc=2,as=160;function Ng(e,t,r){if(!t)return ta(r??"");const a=e.toLowerCase();if((a==="bash"||a==="powershell")&&t.command)return ta(String(t.command));if((a==="read"||a==="fileread"||a==="read_file")&&(t.path||t.file_path)||(a==="write"||a==="filewrite"||a==="write_file")&&(t.path||t.file_path)||(a==="edit"||a==="fileedit"||a==="edit_file")&&(t.path||t.file_path))return String(t.path??t.file_path);if(a==="grep"&&t.pattern)return`/${String(t.pattern)}/`;if(a==="glob"&&t.pattern)return String(t.pattern);if(a==="agent"&&t.description)return ta(String(t.description));if(a==="todowrite"||a==="todo_write"){const u=t.todos;if(Array.isArray(u)){const l=u.length;return`${u.filter(h=>h.status==="completed").length}/${l} tasks`}}if(a==="ask_user_question"){const u=t.questions;if(Array.isArray(u)&&u.length>0){const l=u[0];return ta(String(l.question??""))}}const o=Object.entries(t);if(o.length>0){const u=o[0];if(u)return ta(`${u[0]}=${String(u[1])}`)}return ta(r??"")}function ta(e){const r=e.split(`
|
|
81
|
+
`).map(l=>l.trim()).filter(l=>l.length>0);let o=(r.length>Sc?[...r.slice(0,Sc)]:r).join(" ");const u=o.length>as||r.length>Sc;if(u&&o.length>as){o=o.slice(0,as);const l=o.lastIndexOf(";");if(l>as*.3)o=o.slice(0,l+1);else{const d=o.lastIndexOf(" ");d>as*.5&&(o=o.slice(0,d))}}return u&&(o+="…"),o}function $C({text:e,reasoning:t}){const r=t&&t.trim(),a=e&&e.trim();return C.jsxs("div",{className:"py-1.5",children:[r&&C.jsxs("div",{className:"text-sm text-content-secondary whitespace-pre-wrap leading-relaxed select-text mb-3 opacity-75",children:[t,!a&&C.jsx("span",{className:"inline-block w-0.5 h-4 bg-content-secondary animate-blink ml-0.5 align-middle"})]}),a&&C.jsxs("div",{className:"text-content-primary text-sm prose max-w-full select-text",children:[C.jsx(Wm,{remarkPlugins:[g0,E0],rehypePlugins:[U0,yg],children:e}),C.jsx("span",{className:"inline-block w-0.5 h-4 bg-primary animate-blink align-middle"})]})]})}function jC({lang:e}){return C.jsxs("div",{className:"h-full flex flex-col items-center justify-center select-text",children:[C.jsx("svg",{viewBox:"0 0 520 60",width:"480",height:"56",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Illusion Code",children:C.jsx("text",{x:"260",y:"46",textAnchor:"middle",dominantBaseline:"auto",fontFamily:"Inter, 'Segoe UI', system-ui, -apple-system, sans-serif",fontSize:"48",fontWeight:"700",letterSpacing:"1.5",fill:"#6366F1",children:"Illusion Code"})}),C.jsx("p",{className:"mt-3 text-base font-medium text-content-secondary tracking-wide",children:"AI Coding Assistant"}),C.jsxs("div",{className:"mt-8 flex flex-col gap-2 text-sm text-content-disabled",children:[C.jsxs("span",{children:[C.jsx("span",{className:"text-primary font-medium",children:"/context"})," ",e==="zh-CN"?"管理上下文窗口":"manage context window"]}),C.jsxs("span",{children:[C.jsx("span",{className:"text-primary font-medium",children:"/language"})," ",e==="zh-CN"?"切换语言":"switch language"]}),C.jsxs("span",{children:[C.jsx("span",{className:"text-primary font-medium",children:"/compact"})," ",e==="zh-CN"?"压缩历史消息":"compact history"]})]})]})}function YC({modal:e,lang:t,onRespond:r}){const a=String(e.tool_name??"tool"),o=e.reason?String(e.reason):null,u=String(e.request_id??"");return C.jsxs("div",{className:"my-3 rounded-xl border border-border-light overflow-hidden shadow-soft",children:[C.jsxs("div",{className:"bg-surface-main px-4 py-3 flex items-center gap-2",children:[C.jsx("svg",{className:"w-4 h-4 text-amber-500 shrink-0",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})}),C.jsx("span",{className:"text-sm font-medium text-content-primary",children:rt(t,"permission_request")})]}),C.jsxs("div",{className:"px-4 py-3",children:[C.jsxs("div",{className:"text-sm text-content-primary mb-1",children:[t==="zh-CN"?"允许使用工具 ":"Allow ",C.jsx("span",{className:"font-mono font-medium text-primary",children:a}),C.jsx("span",{children:"?"})]}),o&&C.jsx("div",{className:"text-xs text-content-secondary mt-1 leading-relaxed",children:o})]}),C.jsxs("div",{className:"px-4 py-3 border-t border-border-light flex items-center justify-end gap-2",children:[C.jsx("button",{onClick:()=>r(u,!1,!1,a),className:"px-3 py-1.5 text-xs font-medium text-content-secondary hover:bg-surface-hover rounded-md transition-colors cursor-pointer",children:rt(t,"deny")}),C.jsx("button",{onClick:()=>r(u,!0,!0,a),className:"px-3 py-1.5 text-xs font-medium text-content-primary border border-border-light hover:bg-surface-hover rounded-md transition-colors cursor-pointer",children:rt(t,"always_allow")}),C.jsx("button",{onClick:()=>r(u,!0,!1,a),className:"px-3 py-1.5 text-xs font-medium text-white bg-primary hover:bg-primary-hover rounded-md transition-colors cursor-pointer",children:rt(t,"allow")})]})]})}function WC({modal:e,lang:t,onRespond:r}){const a=String(e.request_id??""),o=Array.isArray(e.questions)?e.questions:[],u=o.length>0?o[0]:null,l=(u==null?void 0:u.options)??[],d=l.length>0,h=(u==null?void 0:u.multiSelect)===!0&&d,[m,b]=J.useState(!1),[E,T]=J.useState(""),[_,x]=J.useState(new Set);J.useEffect(()=>{b(!1),T(""),x(new Set)},[d,l.length,h]);const I=J.useCallback((V,ee)=>{if(h){x(B=>{const G=new Set(B);return G.has(V)?G.delete(V):G.add(V),G});return}r(a,`${V+1}. ${ee}`)},[h,a,r]),L=J.useCallback(()=>{const V=l.filter((B,G)=>_.has(G)).map(B=>B.label);if(V.length===0)return;const ee=(u==null?void 0:u.header)??"answer";r(a,JSON.stringify({[ee]:V}))},[_,l,u,a,r]),O=J.useCallback(()=>{const V=E.trim();V&&r(a,V)},[E,a,r]),F=(u==null?void 0:u.question)??String(e.question??"Question"),Y=h?t==="zh-CN"?"选择所有适用项":"Select all that apply":t==="zh-CN"?"选择一项":"Select one";return C.jsxs("div",{className:"my-3 rounded-xl border border-border-light overflow-hidden shadow-soft",children:[C.jsxs("div",{className:"bg-surface-main px-4 py-3",children:[C.jsx("div",{className:"text-sm font-medium text-content-primary",children:F}),d&&!m&&C.jsx("div",{className:"text-xs text-content-disabled mt-0.5",children:Y})]}),C.jsxs("div",{className:"px-4 py-3",children:[typeof e.tool_name=="string"&&e.tool_name&&C.jsxs("div",{className:"text-xs text-content-secondary mb-3",children:["Tool: ",C.jsx("span",{className:"font-mono text-primary",children:e.tool_name})]}),d&&!m?C.jsxs("div",{className:"space-y-1.5 mb-3",children:[l.map((V,ee)=>{const B=h?_.has(ee):!1;return C.jsxs("button",{onClick:()=>I(ee,V.label),className:`w-full text-left px-3 py-2.5 rounded-lg text-sm transition-colors cursor-pointer flex items-start gap-2.5 ${B?"bg-primary-light border border-primary/20":"bg-white border border-border-light hover:bg-surface-hover"}`,children:[h?C.jsx("span",{className:`mt-0.5 w-4 h-4 rounded border flex items-center justify-center shrink-0 text-xs transition-colors ${B?"bg-primary border-primary text-white":"border-border-light"}`,children:B?"✓":""}):C.jsx("span",{className:"mt-0.5 w-4 h-4 rounded-full border border-border-light shrink-0 flex items-center justify-center",children:C.jsx("span",{className:"w-2 h-2 rounded-full bg-transparent"})}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("div",{className:`text-sm font-medium ${B?"text-primary":"text-content-primary"}`,children:V.label}),V.description&&C.jsx("div",{className:"text-xs text-content-disabled mt-0.5",children:V.description})]})]},ee)}),!h&&C.jsx("button",{onClick:()=>b(!0),className:"w-full text-left px-3 py-2.5 rounded-lg text-sm text-content-disabled hover:bg-surface-hover transition-colors cursor-pointer border border-border-light border-dashed",children:t==="zh-CN"?"其他(手动输入)":"Other (type your answer)"})]}):null,(m||!d)&&C.jsxs("div",{className:"flex gap-2 items-end",children:[C.jsx("textarea",{value:E,onChange:V=>T(V.target.value),onKeyDown:V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),O())},placeholder:t==="zh-CN"?"输入你的回答...":"Type your answer...",rows:1,className:"flex-1 resize-none bg-white border border-border-light rounded-lg px-3 py-2 text-sm outline-none focus:border-content-disabled transition-colors"}),C.jsx("button",{onClick:O,className:"px-3 py-2 text-xs font-medium text-white bg-primary hover:bg-primary-hover rounded-md transition-colors cursor-pointer shrink-0",children:rt(t,"send")})]})]}),C.jsx("div",{className:"px-4 py-3 border-t border-border-light flex items-center justify-end gap-2",children:h&&d&&C.jsx("button",{onClick:L,disabled:_.size===0,className:"px-3 py-1.5 text-xs font-medium text-white bg-primary hover:bg-primary-hover rounded-md transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",children:t==="zh-CN"?"确认":"Confirm"})})]})}function GC(e){const t=new Map;for(const r of e)r.role==="tool"&&r.tool_use_id&&r.tool_input&&t.set(r.tool_use_id,r.tool_input);return t}function qC({lang:e,staticItems:t,assistantBuffer:r,streamingReasoning:a,pendingToolCalls:o,busy:u,connected:l,modal:d,onPermissionResponse:h,onQuestionResponse:m}){const b=J.useRef(null);J.useEffect(()=>{var x;(x=b.current)==null||x.scrollIntoView({behavior:"smooth"})},[t,r,a,o,d]);const E=t.length>0||r||a||o.length>0||!!d,T=J.useMemo(()=>{const x=[];for(const I of t)I.role==="user"||x.length===0?x.push([I]):x[x.length-1].push(I);return x},[t]),_=J.useMemo(()=>GC(t),[t]);return C.jsxs("div",{className:"flex-1 overflow-y-auto bg-surface-main",children:[!l&&!E&&C.jsx("div",{className:"flex items-center justify-center h-full text-content-disabled text-sm font-medium",children:rt(e,"connecting")}),l&&!E&&C.jsx(jC,{lang:e}),C.jsxs("div",{className:"mx-auto max-w-5xl px-6 md:px-10 lg:px-16 py-6",children:[T.map((x,I)=>C.jsx("div",{className:I>0?"mt-12":"",children:x.map((L,O)=>C.jsx(FC,{item:L,toolInputMap:_},`${I}-${O}`))},I)),o.length>0&&C.jsx("div",{className:T.length>0?"mt-4":"",children:o.map(x=>C.jsx(zC,{call:x},x.tool_use_id))}),u&&!r&&!a&&o.length===0&&C.jsx("div",{className:T.length>0?"mt-4":"",children:C.jsx(KC,{lang:e})}),u&&(r||a)&&C.jsx("div",{className:T.length>0?"mt-4":"",children:C.jsx($C,{text:r,reasoning:a})}),(d==null?void 0:d.kind)==="permission"&&C.jsx(YC,{modal:d,lang:e,onRespond:h}),(d==null?void 0:d.kind)==="question"&&C.jsx(WC,{modal:d,lang:e,onRespond:m})]}),C.jsx("div",{ref:b})]})}function KC({lang:e}){return C.jsxs("div",{className:"flex items-center gap-2.5 py-2",children:[C.jsxs("span",{className:"flex gap-1",children:[C.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-bounce",style:{animationDelay:"0ms"}}),C.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-bounce",style:{animationDelay:"150ms"}}),C.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-bounce",style:{animationDelay:"300ms"}})]}),C.jsx("span",{className:"text-xs text-content-secondary animate-pulse",children:e==="zh-CN"?"正在思考...":"Thinking..."})]})}function VC({lang:e,busy:t,connected:r,commands:a,onSubmit:o,onStop:u,inlineOptions:l,onInlineSelect:d,onInlineClose:h}){const[m,b]=J.useState(""),[E,T]=J.useState(!1),[_,x]=J.useState(0),I=J.useRef(null),L=a.filter(G=>{const ne=m.toLowerCase();return G.toLowerCase().startsWith(ne)||G.toLowerCase().includes(ne.slice(1))});J.useEffect(()=>{x(0)},[l,m]),J.useEffect(()=>{if(E&&I.current){const G=I.current.children[_];G==null||G.scrollIntoView({block:"nearest"})}},[_,E]);const O=J.useCallback(G=>{const ne=G.target.value;b(ne),T(ne.startsWith("/")&&ne.length>0&&L.length>0&&!l)},[L.length,l]),F=J.useCallback(G=>{b(""),T(!1),o(G)},[o]),Y=J.useCallback(G=>{if(l){const ne=l.options;if(G.key==="ArrowDown"){G.preventDefault(),x(Ee=>Math.min(Ee+1,ne.length-1));return}if(G.key==="ArrowUp"){G.preventDefault(),x(Ee=>Math.max(Ee-1,0));return}if(G.key==="Enter"&&!G.shiftKey){G.preventDefault(),ne[_]&&d&&d(l.command,ne[_].value);return}if(G.key==="Escape"){G.preventDefault(),h==null||h();return}return}if(E){if(G.key==="ArrowDown"){G.preventDefault(),x(ne=>Math.min(ne+1,L.length-1));return}if(G.key==="ArrowUp"){G.preventDefault(),x(ne=>Math.max(ne-1,0));return}if(G.key==="Tab"||G.key==="Enter"&&!G.shiftKey){G.preventDefault(),L[_]&&F(L[_]);return}if(G.key==="Escape"){G.preventDefault(),T(!1);return}}if(G.key==="Enter"){if(G.ctrlKey||G.metaKey){G.preventDefault();const Ee=G.currentTarget,U=Ee.selectionStart,_e=Ee.selectionEnd,ue=m.slice(0,U)+`
|
|
82
|
+
`+m.slice(_e);b(ue),requestAnimationFrame(()=>{Ee.selectionStart=Ee.selectionEnd=U+1,Ee.style.height="auto",Ee.style.height=Math.min(Ee.scrollHeight,140)+"px"});return}if(G.preventDefault(),t||!r)return;const ne=m.trim();if(!ne)return;o(ne),b(""),T(!1)}},[m,t,r,o,E,L,_,F,l,d,h]),V=()=>{if(t){u();return}if(!r)return;const G=m.trim();G&&(o(G),b(""),T(!1))},ee=l&&l.options.length>0,B=E&&L.length>0&&!ee;return C.jsxs("div",{className:"px-4 md:px-5 pb-4 pt-2 relative",children:[ee&&C.jsxs("div",{className:"absolute bottom-full left-4 right-4 md:left-5 md:right-5 mb-1 bg-white border border-border-light rounded-xl shadow-lg max-h-64 overflow-y-auto py-1 z-20",children:[C.jsx("div",{className:"px-3 py-1.5 text-xs text-content-disabled font-medium",children:l.title}),l.options.map((G,ne)=>C.jsxs("button",{onClick:()=>d==null?void 0:d(l.command,G.value),className:`w-full text-left px-3 py-2 text-sm transition-colors cursor-pointer flex flex-col gap-0.5 ${ne===_?"bg-primary-light text-primary":G.active?"bg-surface-hover text-content-primary":"text-content-secondary hover:bg-surface-hover"}`,children:[C.jsx("span",{className:"font-medium",children:G.label}),G.description&&C.jsx("span",{className:"text-xs text-content-disabled",children:G.description})]},G.value))]}),B&&C.jsx("div",{ref:I,className:"absolute bottom-full left-4 right-4 md:left-5 md:right-5 mb-1 bg-white border border-border-light rounded-xl shadow-lg max-h-56 overflow-y-auto py-1 z-20",children:L.map((G,ne)=>C.jsx("button",{onClick:()=>F(G),className:`w-full text-left px-3 py-2 text-sm transition-colors cursor-pointer ${ne===_?"bg-primary-light text-primary":"text-content-secondary hover:bg-surface-hover"}`,children:C.jsx("span",{className:"font-mono",children:G})},G))}),C.jsxs("div",{className:"flex items-end bg-white rounded-[12px] border border-border-light shadow-soft",children:[C.jsx("textarea",{value:m,onChange:O,onKeyDown:Y,placeholder:r?rt(e,"input_placeholder"):rt(e,"disconnected"),rows:1,disabled:!r,className:"flex-1 resize-none bg-transparent outline-none text-sm text-content-primary placeholder-content-disabled min-h-[36px] max-h-[140px] disabled:opacity-50 leading-normal py-2.5 pl-3 pr-2",style:{height:"auto",overflow:"hidden"},onInput:G=>{const ne=G.currentTarget;ne.style.height="auto",ne.style.height=Math.min(ne.scrollHeight,140)+"px"}}),C.jsx("button",{onClick:V,disabled:!r&&!t,className:`shrink-0 m-1.5 w-8 h-8 flex items-center justify-center rounded-full transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed ${t?"bg-red-100 text-danger hover:bg-red-200 animate-pulse":"bg-primary text-white hover:bg-primary-hover"}`,title:t?rt(e,"task_stopped"):rt(e,"send"),children:t?"■":"↑"})]})]})}function xc({value:e,placeholder:t,options:r,onChange:a,onOpen:o}){const[u,l]=J.useState(!1),d=e||t||"-";return C.jsxs("div",{className:"relative",children:[C.jsxs("button",{onClick:()=>{!u&&o&&o(),l(!u)},className:"flex items-center gap-1.5 px-3 py-1.5 text-sm text-content-secondary hover:bg-surface-hover hover:text-content-primary rounded-lg transition-colors cursor-pointer border border-border-light bg-white",children:[C.jsx("span",{className:e?"":"text-content-disabled",children:d}),C.jsx("span",{className:"text-content-disabled text-[10px]",children:"▾"})]}),u&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>l(!1)}),C.jsx("div",{className:"absolute bottom-full left-0 mb-1 bg-white border border-border-light rounded-xl shadow-lg z-20 min-w-[160px] py-1 max-h-[40vh] overflow-y-auto",children:r.map(h=>C.jsx("button",{onClick:()=>{a(h.value),l(!1)},className:`w-full text-left px-3 py-2 text-sm hover:bg-surface-hover transition-colors cursor-pointer ${h.active?"text-primary font-medium bg-primary-light":"text-content-secondary"}`,children:h.label},h.value))})]})]})}function QC({lang:e,status:t,effortOptions:r,modelOptions:a,onModeChange:o,onModelChange:u,onEffortChange:l,onRequestModelList:d}){var I;const h=J.useMemo(()=>[{value:"default",label:rt(e,"mode_default")},{value:"plan",label:rt(e,"mode_plan")},{value:"full_auto",label:rt(e,"mode_auto")}],[e]),m=String((t==null?void 0:t.permission_mode)??"Default"),b=String((t==null?void 0:t.effort)??""),E=String((t==null?void 0:t.model)??""),T=((I=a.find(L=>L.active))==null?void 0:I.label)||E,_=r.length>0?r:[{value:"low",label:rt(e,"effort_low")},{value:"medium",label:rt(e,"effort_medium")},{value:"high",label:rt(e,"effort_high")},{value:"xhigh",label:rt(e,"effort_xhigh")},{value:"max",label:rt(e,"effort_max")}],x=a.length>0?a:[{value:E,label:E,active:!0}];return C.jsxs("div",{className:"flex items-center gap-2 px-6 py-3 border-t border-border-light bg-surface-card-alt select-none",children:[C.jsx(xc,{value:m,options:h,onChange:o}),C.jsx(xc,{value:T,placeholder:"Model",options:x,onChange:u,onOpen:d}),C.jsx(xc,{value:b,placeholder:rt(e,"effort_default"),options:_,onChange:l})]})}const XC=4e3;function ZC({items:e}){const[t,r]=J.useState(!1),[a,o]=J.useState(!1),u=J.useRef(null),l=J.useMemo(()=>{const E={in_progress:0,pending:1,completed:2};return[...e].sort((T,_)=>(E[T.status]??3)-(E[_.status]??3))},[e]),d=l.filter(E=>E.status==="completed").length,h=l.length,m=h>0&&d===h,b=J.useMemo(()=>l.find(E=>E.status==="in_progress")??l.find(E=>E.status==="pending")??[...l].reverse().find(E=>E.status==="completed")??l[0]??null,[l]);return J.useEffect(()=>(m?(r(!0),u.current=setTimeout(()=>o(!0),XC)):(o(!1),u.current&&(clearTimeout(u.current),u.current=null)),()=>{u.current&&clearTimeout(u.current)}),[l,m]),l.length===0||a?null:C.jsxs("div",{className:"mb-4 rounded-xl border border-border-light bg-white overflow-hidden shadow-soft",children:[C.jsxs("button",{onClick:()=>r(E=>!E),className:"w-full px-4 py-2.5 flex items-center gap-3 hover:bg-surface-hover transition-colors cursor-pointer",children:[C.jsxs("span",{className:"text-xs font-mono text-content-secondary tabular-nums shrink-0",children:[C.jsx("span",{className:"text-content-primary font-medium",children:d}),C.jsx("span",{className:"mx-0.5",children:"/"}),C.jsx("span",{children:h})]}),t&&b&&C.jsx("span",{className:"flex-1 text-xs text-content-secondary truncate text-left min-w-0",children:b.activeForm&&b.status==="in_progress"?b.activeForm:b.content}),!t&&C.jsx("span",{className:"flex-1"}),C.jsx("svg",{className:`w-3.5 h-3.5 text-content-disabled shrink-0 transition-transform duration-200 ${t?"":"rotate-180"}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{d:"M4 6l4 4 4-4"})})]}),!t&&C.jsx("div",{className:"px-3 pb-3 flex flex-col gap-0.5 max-h-40 overflow-y-auto",children:l.map((E,T)=>C.jsx(JC,{item:E},`${E.content}-${T}`))})]})}function JC({item:e}){const t=e.status;return C.jsxs("div",{className:"flex items-start gap-2.5 px-2 py-1.5 rounded-md group",children:[C.jsxs("div",{className:"mt-0.5 shrink-0 w-4 h-4 flex items-center justify-center",children:[t==="completed"&&C.jsx("svg",{className:"w-4 h-4 text-green-500",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{d:"M3 8.5l3.5 3.5 6.5-8"})}),t==="in_progress"&&C.jsx("span",{className:"w-3 h-3 rounded-full bg-primary animate-pulse-scale"}),t==="pending"&&C.jsx("span",{className:"w-3 h-3 rounded-full border-2 border-border-light bg-white"})]}),C.jsx("span",{className:`text-sm leading-relaxed flex-1 min-w-0 transition-colors duration-200 ${t==="completed"?"text-content-disabled line-through":t==="in_progress"?"text-content-primary font-medium":"text-content-secondary"}`,children:e.activeForm&&t==="in_progress"?e.activeForm:e.content})]})}function ew({lang:e,status:t,connected:r,busy:a,collapsed:o,onToggle:u,todoItems:l,skills:d,plugins:h,rules:m,mcpServers:b,width:E=260}){const T=Number((t==null?void 0:t.context_window)??0),_=Number((t==null?void 0:t.context_tokens)??0),x=T>0?Math.min(100,Math.round(_*100/T)):0;if(o)return C.jsxs("aside",{className:"w-12 bg-surface-card border-l border-border-light flex flex-col items-center py-4 shrink-0 select-none",children:[C.jsx("button",{onClick:u,title:rt(e,"expand_panel"),className:"w-8 h-8 flex items-center justify-center rounded-lg text-content-secondary hover:bg-surface-hover hover:text-content-primary transition-colors cursor-pointer",children:C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{d:"M10 3l-5 5 5 5"})})}),C.jsx("div",{className:"mt-auto mb-2",children:C.jsx("span",{className:`block w-2.5 h-2.5 rounded-full ${r?a?"bg-warning animate-pulse":"bg-success":"bg-danger"}`})})]});const I=d.filter(F=>F.source==="project"),L=h.filter(F=>F.enabled),O=m.filter(F=>F.source==="project");return C.jsxs("aside",{className:"bg-surface-card border-l border-border-light flex flex-col h-full shrink-0 overflow-y-auto select-none",style:{width:`${E}px`},children:[C.jsx("div",{className:"px-5 pt-3 pb-1 flex justify-end",children:C.jsx("button",{onClick:u,title:rt(e,"collapse_panel"),className:"w-7 h-7 flex items-center justify-center rounded-lg text-content-secondary hover:bg-surface-hover hover:text-content-primary transition-colors cursor-pointer",children:C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{d:"M6 3l5 5-5 5"})})})}),l.length>0&&C.jsx("div",{className:"px-3 pb-3",children:C.jsx(ZC,{items:l})}),d.length>0&&C.jsx(Go,{title:"Skills",count:d.length,subtitle:I.length>0?`${I.length} project`:void 0,defaultCollapsed:!1,children:d.map(F=>C.jsx(qo,{name:F.name,description:F.description,tag:F.source==="project"?"P":void 0},F.name))}),b.length>0&&C.jsx(Go,{title:"MCP",count:b.length,subtitle:b.some(F=>F.state==="connected")?`${b.filter(F=>F.state==="connected").length} connected`:void 0,children:b.map(F=>C.jsx(qo,{name:F.name,description:F.state,tag:F.tool_count!=null?`${F.tool_count}t`:void 0},F.name))}),h.length>0&&C.jsx(Go,{title:"Plugins",count:h.length,subtitle:L.length>0?`${L.length} enabled`:void 0,children:h.map(F=>C.jsx(qo,{name:F.name,description:F.description,tag:F.enabled?void 0:"off"},F.name))}),m.length>0&&C.jsx(Go,{title:"Rules",count:m.length,subtitle:O.length>0?`${O.length} project`:void 0,children:m.map(F=>C.jsx(qo,{name:F.name,description:"",tag:F.source==="project"?"P":void 0},`${F.source}-${F.name}`))}),T>0&&C.jsxs("div",{className:"px-5 py-3 border-t border-border-light",children:[C.jsx("div",{className:"text-xs text-content-secondary font-medium mb-1.5",children:rt(e,"context_window")}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsxs("span",{className:"text-sm text-content-primary whitespace-nowrap tabular-nums",children:["~",om(_),"/",om(T)]}),C.jsx("div",{className:"flex-1 h-2 bg-surface-hover rounded-full overflow-hidden",children:C.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${x>=95?"bg-danger":x>=80?"bg-warning":"bg-primary"}`,style:{width:`${x}%`}})}),C.jsxs("span",{className:`text-xs font-medium tabular-nums ${x>=95?"text-danger":x>=80?"text-warning":"text-content-secondary"}`,children:[x,"%"]})]})]}),C.jsx("div",{className:"flex-1"})]})}function Go({title:e,count:t,subtitle:r,children:a,defaultCollapsed:o=!0}){const[u,l]=J.useState(o);return C.jsxs("div",{className:"border-t border-border-light",children:[C.jsxs("button",{onClick:()=>l(d=>!d),className:"w-full px-5 py-2.5 flex items-center gap-2 hover:bg-surface-hover transition-colors cursor-pointer",children:[C.jsx("svg",{className:`w-3 h-3 text-content-disabled shrink-0 transition-transform duration-150 ${u?"":"rotate-90"}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{d:"M6 3l5 5-5 5"})}),C.jsx("span",{className:"text-xs font-medium text-content-primary",children:e}),C.jsx("span",{className:"text-xs text-content-disabled tabular-nums",children:t}),r&&C.jsx("span",{className:"text-xs text-content-disabled ml-auto",children:r})]}),!u&&C.jsx("div",{className:"px-5 pb-2.5 flex flex-col gap-0.5 max-h-[50vh] overflow-y-auto",children:a})]})}function qo({name:e,description:t,tag:r}){const[a,o]=J.useState(!1),u=!!(t!=null&&t.trim());return C.jsxs("div",{children:[C.jsxs("button",{onClick:()=>u&&o(l=>!l),className:`w-full flex items-center gap-2 px-2 py-1 rounded text-xs transition-colors ${u?"hover:bg-surface-hover cursor-pointer":"cursor-default"}`,title:u?t:e,children:[C.jsx("span",{className:"text-content-primary font-medium truncate flex-1 text-left",children:e}),r&&C.jsx("span",{className:"text-[10px] text-content-disabled bg-surface-main px-1.5 py-0.5 rounded shrink-0",children:r})]}),a&&u&&C.jsx("div",{className:"px-2 pb-1.5 text-xs text-content-secondary leading-relaxed whitespace-pre-wrap",children:t})]})}function om(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:String(e)}const tw=`ws://${window.location.host}/ws`,um=5e3;function nw(){var k;const e=mb(tw),t=J.useMemo(()=>{var se;return Bp((se=e.status)==null?void 0:se.ui_language)},[(k=e.status)==null?void 0:k.ui_language]),[r,a]=J.useState(!1),[o,u]=J.useState(!1),[l,d]=J.useState(280),[h,m]=J.useState(260),b=J.useRef(null),[E,T]=J.useState(null),[_,x]=J.useState(null),I=J.useRef(null),L=J.useRef(!1),O=J.useCallback((se,Se)=>{I.current&&clearTimeout(I.current),x({text:se,type:Se}),L.current=!1,I.current=setTimeout(()=>{L.current||x(null),I.current=null},um)},[]),F=J.useCallback(()=>{L.current=!0,I.current&&(clearTimeout(I.current),I.current=null)},[]),Y=J.useCallback(()=>{L.current=!1,I.current=setTimeout(()=>{x(null),I.current=null},um)},[]);J.useEffect(()=>(e.setOnSelectRequest(se=>T(se)),e.setOnCommandResult((se,Se)=>O(se,Se)),()=>{e.setOnSelectRequest(null),e.setOnCommandResult(null)}),[e.setOnSelectRequest,e.setOnCommandResult,O]);const V=J.useCallback((se,Se)=>{Se.preventDefault();const xe=se==="left"?l:h;b.current={side:se,startX:Se.clientX,startW:xe};const $e=Ke=>{if(!b.current)return;const ut=window.innerWidth/3,Ht=Ke.clientX-b.current.startX;b.current.side==="left"?d(Math.min(ut,Math.max(280,b.current.startW+Ht))):m(Math.min(ut,Math.max(260,b.current.startW-Ht)))},Fe=()=>{b.current=null,document.removeEventListener("mousemove",$e),document.removeEventListener("mouseup",Fe)};document.addEventListener("mousemove",$e),document.addEventListener("mouseup",Fe)},[l,h]),ee=se=>{var Fe;if(!se.trim())return;const Se=se.trim();if(Se==="/language"||Se==="/language show"){const Ke=Bp((Fe=e.status)==null?void 0:Fe.ui_language);T({command:"language",title:rt(t,"language"),options:[{value:"set zh-CN",label:"简体中文",description:"中文界面",active:Ke==="zh-CN"},{value:"set en",label:"English",description:"English UI",active:Ke==="en"}]});return}if(Se==="/resume"){e.sendRequest({type:"list_sessions"});return}const xe=["context","rewind","model","delete"],$e=Se.startsWith("/")?Se.slice(1).split(/\s+/)[0]??"":"";if($e&&xe.includes($e)){e.setBusyTrue(),e.requestSelectCommand($e);return}e.setBusyTrue(),e.sendRequest({type:"submit_line",line:Se})},B=J.useCallback((se,Se)=>{T(null),e.sendRequest({type:"apply_select_command",command:se,value:Se})},[e.sendRequest]),G=J.useCallback(()=>T(null),[]),[ne,Ee]=J.useState(new Set),U=()=>{e.sendRequest({type:"stop"})},_e=()=>{e.sendRequest({type:"submit_line",line:"/new"})},ue=se=>{e.suppressInlineOptions(),e.sendRequest({type:"apply_select_command",command:"resume",value:se}),setTimeout(()=>{e.suppressInlineOptions(),e.sendRequest({type:"list_sessions"})},500)},Oe=J.useCallback(()=>{e.suppressInlineOptions(),e.sendRequest({type:"list_sessions"})},[e.suppressInlineOptions,e.sendRequest]),he=J.useCallback(()=>{e.suppressInlineOptions(),e.requestSelectCommand("delete")},[e.suppressInlineOptions,e.requestSelectCommand]),te=J.useCallback(()=>{for(const se of ne)e.sendRequest({type:"apply_select_command",command:"delete",value:se});e.clearDeleteSessions(),Ee(new Set),setTimeout(()=>{e.suppressInlineOptions(),e.sendRequest({type:"list_sessions"})},500)},[ne,e.sendRequest,e.clearDeleteSessions,e.suppressInlineOptions]),we=J.useCallback(()=>{e.clearDeleteSessions(),Ee(new Set)},[e.clearDeleteSessions]),Le=J.useCallback(se=>{Ee(Se=>{const xe=new Set(Se);return xe.has(se)?xe.delete(se):xe.add(se),xe})},[]),X=e.deleteSessions.length>0,Te=e.deleteSessions.filter(se=>se.value!=="__all__"),S=e.deleteSessions.some(se=>se.value==="__all__"),M=(se,Se,xe,$e)=>{e.sendRequest({type:"permission_response",request_id:se,allowed:Se,always_allow:xe,tool_name:$e}),e.clearModal()},K=(se,Se)=>{e.sendRequest({type:"question_response",request_id:se,answer:Se}),e.clearModal()};return C.jsxs("div",{className:"flex h-screen bg-surface-main",children:[C.jsx(_b,{lang:t,connected:e.connected,sessions:e.sessions,onNewSession:_e,onSelectSession:ue,onListSessions:Oe,onDeleteSessions:he,collapsed:r,onToggle:()=>a(!r),width:l}),!r&&C.jsx("div",{className:"w-1 cursor-col-resize hover:bg-primary/20 active:bg-primary/30 transition-colors shrink-0",onMouseDown:se=>V("left",se)}),C.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[!e.connected&&C.jsx("div",{className:"px-4 py-2.5 bg-primary-light border-b border-primary/20 text-sm text-primary text-center font-medium",children:rt(t,"connecting")}),C.jsx(qC,{lang:t,staticItems:e.staticItems,assistantBuffer:e.assistantBuffer,streamingReasoning:e.streamingReasoning,pendingToolCalls:e.pendingToolCalls,busy:e.busy,connected:e.connected,modal:e.modal,onPermissionResponse:M,onQuestionResponse:K}),C.jsx(VC,{lang:t,busy:e.busy,connected:e.connected,commands:e.commands,onSubmit:ee,onStop:U,inlineOptions:E,onInlineSelect:B,onInlineClose:G}),C.jsx(QC,{lang:t,status:e.status,effortOptions:e.effortOptions,modelOptions:e.modelOptions,onModeChange:se=>e.sendRequest({type:"submit_line",line:`/permissions set ${se}`}),onModelChange:e.setModelValue,onEffortChange:e.setEffortValue,onRequestModelList:()=>e.requestSelectCommand("model")})]}),!o&&C.jsx("div",{className:"w-1 cursor-col-resize hover:bg-primary/20 active:bg-primary/30 transition-colors shrink-0",onMouseDown:se=>V("right",se)}),C.jsx(ew,{lang:t,status:e.status,connected:e.connected,busy:e.busy,collapsed:o,onToggle:()=>u(!o),todoItems:e.todoItems,skills:e.skills,plugins:e.plugins,rules:e.rules,mcpServers:e.mcpServers,width:h}),X&&C.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[C.jsx("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:we}),C.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl border border-border-light w-[420px] max-h-[70vh] flex flex-col",children:[C.jsx("div",{className:"px-6 py-4 border-b border-border-light",children:C.jsx("h3",{className:"text-lg font-semibold text-content-primary",children:rt(t,"delete_session")})}),C.jsx("div",{className:"flex-1 overflow-y-auto py-2",children:Te.length===0?C.jsx("div",{className:"px-6 py-8 text-center text-sm text-content-disabled",children:rt(t,"no_sessions")}):Te.map(se=>C.jsxs("label",{className:"flex items-center gap-3 px-6 py-3 cursor-pointer hover:bg-surface-hover transition-colors",children:[C.jsx("input",{type:"checkbox",checked:ne.has(se.value),onChange:()=>Le(se.value),className:"w-4 h-4 rounded accent-danger"}),C.jsx("span",{className:"text-sm text-content-secondary truncate flex-1",children:se.label})]},se.value))}),C.jsxs("div",{className:"px-6 py-4 border-t border-border-light flex items-center justify-between",children:[C.jsx("div",{children:S&&C.jsx("button",{onClick:()=>{e.sendRequest({type:"apply_select_command",command:"delete",value:"__all__"}),e.clearDeleteSessions(),Ee(new Set),setTimeout(()=>{e.suppressInlineOptions(),e.sendRequest({type:"list_sessions"})},500)},className:"px-4 py-2 text-sm text-danger hover:bg-red-50 rounded-lg transition-colors cursor-pointer",children:rt(t,"delete_all")})}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx("button",{onClick:we,className:"px-4 py-2 text-sm text-content-secondary hover:bg-surface-hover rounded-lg transition-colors cursor-pointer border border-border-light",children:rt(t,"cancel")}),C.jsxs("button",{onClick:te,disabled:ne.size===0,className:"px-4 py-2 text-sm text-white bg-danger hover:bg-danger-hover rounded-lg transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",children:[rt(t,"confirm_delete")," (",ne.size,")"]})]})]})]})]}),_&&C.jsx("div",{className:"fixed bottom-20 right-6 z-50 animate-fade-in",onMouseEnter:F,onMouseLeave:Y,children:C.jsx("div",{className:"bg-white rounded-xl shadow-lg px-4 py-3 max-w-sm",children:C.jsxs("div",{className:"flex items-start gap-3",children:[C.jsx("pre",{className:"text-sm text-content-primary whitespace-pre-wrap font-mono leading-relaxed flex-1 max-h-40 overflow-y-auto",children:_.text}),C.jsx("button",{onClick:()=>x(null),className:"shrink-0 w-5 h-5 flex items-center justify-center rounded text-content-disabled hover:text-content-primary hover:bg-surface-hover transition-colors cursor-pointer",children:C.jsx("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:C.jsx("path",{d:"M2 2l8 8M10 2l-8 8"})})})]})})})]})}cb.createRoot(document.getElementById("root")).render(C.jsx(rb.StrictMode,{children:C.jsx(nw,{})}));
|