openspec-dashboard 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -0
- package/dist/bin/cli.js +49 -0
- package/dist/bin/skill-hook.js +174 -0
- package/dist/chunk-YBLVDJ3Y.js +1232 -0
- package/dist/client/assets/index-LwI8lMI7.js +97 -0
- package/dist/client/assets/index-keJ4Pk8f.css +1 -0
- package/dist/client/index.html +23 -0
- package/dist/server/index.js +8 -0
- package/package.json +74 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const s of u.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(i){if(i.ep)return;i.ep=!0;const u=n(i);fetch(i.href,u)}})();var ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wh={exports:{}},Ys={},Ih={exports:{}},se={};/**
|
|
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 du=Symbol.for("react.element"),tg=Symbol.for("react.portal"),ng=Symbol.for("react.fragment"),rg=Symbol.for("react.strict_mode"),ig=Symbol.for("react.profiler"),ug=Symbol.for("react.provider"),sg=Symbol.for("react.context"),ag=Symbol.for("react.forward_ref"),og=Symbol.for("react.suspense"),lg=Symbol.for("react.memo"),cg=Symbol.for("react.lazy"),Vc=Symbol.iterator;function dg(e){return e===null||typeof e!="object"?null:(e=Vc&&e[Vc]||e["@@iterator"],typeof e=="function"?e:null)}var vh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lh=Object.assign,Oh={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Oh,this.updater=n||vh}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rh(){}Rh.prototype=Jr.prototype;function yl(e,t,n){this.props=e,this.context=t,this.refs=Oh,this.updater=n||vh}var kl=yl.prototype=new Rh;kl.constructor=yl;Lh(kl,Jr.prototype);kl.isPureReactComponent=!0;var Wc=Array.isArray,Dh=Object.prototype.hasOwnProperty,_l={current:null},Ph={key:!0,ref:!0,__self:!0,__source:!0};function Mh(e,t,n){var r,i={},u=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(u=""+t.key),t)Dh.call(t,r)&&!Ph.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),c=0;c<a;c++)o[c]=arguments[c+2];i.children=o}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:du,type:e,key:u,ref:s,props:i,_owner:_l.current}}function fg(e,t){return{$$typeof:du,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nl(e){return typeof e=="object"&&e!==null&&e.$$typeof===du}function hg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qc=/\/+/g;function Ta(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hg(""+e.key):t.toString(36)}function qu(e,t,n,r,i){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case du:case tg:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Ta(s,0):r,Wc(i)?(n="",e!=null&&(n=e.replace(Qc,"$&/")+"/"),qu(i,t,n,"",function(c){return c})):i!=null&&(Nl(i)&&(i=fg(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Qc,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Wc(e))for(var a=0;a<e.length;a++){u=e[a];var o=r+Ta(u,a);s+=qu(u,t,n,o,i)}else if(o=dg(e),typeof o=="function")for(e=o.call(e),a=0;!(u=e.next()).done;)u=u.value,o=r+Ta(u,a++),s+=qu(u,t,n,o,i);else if(u==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function _u(e,t,n){if(e==null)return e;var r=[],i=0;return qu(e,r,"","",function(u){return t.call(n,u,i++)}),r}function mg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var it={current:null},Ku={transition:null},pg={ReactCurrentDispatcher:it,ReactCurrentBatchConfig:Ku,ReactCurrentOwner:_l};function Fh(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:_u,forEach:function(e,t,n){_u(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _u(e,function(){t++}),t},toArray:function(e){return _u(e,function(t){return t})||[]},only:function(e){if(!Nl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=Jr;se.Fragment=ng;se.Profiler=ig;se.PureComponent=yl;se.StrictMode=rg;se.Suspense=og;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pg;se.act=Fh;se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Lh({},e.props),i=e.key,u=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,s=_l.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(o in t)Dh.call(t,o)&&!Ph.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&a!==void 0?a[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){a=Array(o);for(var c=0;c<o;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:du,type:e.type,key:i,ref:u,props:r,_owner:s}};se.createContext=function(e){return e={$$typeof:sg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ug,_context:e},e.Consumer=e};se.createElement=Mh;se.createFactory=function(e){var t=Mh.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:ag,render:e}};se.isValidElement=Nl;se.lazy=function(e){return{$$typeof:cg,_payload:{_status:-1,_result:e},_init:mg}};se.memo=function(e,t){return{$$typeof:lg,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Ku.transition;Ku.transition={};try{e()}finally{Ku.transition=t}};se.unstable_act=Fh;se.useCallback=function(e,t){return it.current.useCallback(e,t)};se.useContext=function(e){return it.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return it.current.useDeferredValue(e)};se.useEffect=function(e,t){return it.current.useEffect(e,t)};se.useId=function(){return it.current.useId()};se.useImperativeHandle=function(e,t,n){return it.current.useImperativeHandle(e,t,n)};se.useInsertionEffect=function(e,t){return it.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return it.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return it.current.useMemo(e,t)};se.useReducer=function(e,t,n){return it.current.useReducer(e,t,n)};se.useRef=function(e){return it.current.useRef(e)};se.useState=function(e){return it.current.useState(e)};se.useSyncExternalStore=function(e,t,n){return it.current.useSyncExternalStore(e,t,n)};se.useTransition=function(){return it.current.useTransition()};se.version="18.3.1";Ih.exports=se;var M=Ih.exports;const fu=xl(M);/**
|
|
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 gg=M,Eg=Symbol.for("react.element"),Tg=Symbol.for("react.fragment"),bg=Object.prototype.hasOwnProperty,xg=gg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yg={key:!0,ref:!0,__self:!0,__source:!0};function Bh(e,t,n){var r,i={},u=null,s=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)bg.call(t,r)&&!yg.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Eg,type:e,key:u,ref:s,props:i,_owner:xg.current}}Ys.Fragment=Tg;Ys.jsx=Bh;Ys.jsxs=Bh;wh.exports=Ys;var h=wh.exports,oo={},Uh={exports:{}},yt={},Hh={exports:{}},jh={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(z,q){var x=z.length;z.push(q);e:for(;0<x;){var ae=x-1>>>1,me=z[ae];if(0<i(me,q))z[ae]=q,z[x]=me,x=ae;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var q=z[0],x=z.pop();if(x!==q){z[0]=x;e:for(var ae=0,me=z.length,A=me>>>1;ae<A;){var Se=2*(ae+1)-1,Ee=z[Se],te=Se+1,et=z[te];if(0>i(Ee,x))te<me&&0>i(et,Ee)?(z[ae]=et,z[te]=x,ae=te):(z[ae]=Ee,z[Se]=x,ae=Se);else if(te<me&&0>i(et,x))z[ae]=et,z[te]=x,ae=te;else break e}}return q}function i(z,q){var x=z.sortIndex-q.sortIndex;return x!==0?x:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var o=[],c=[],f=1,d=null,p=3,m=!1,E=!1,k=!1,I=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,T=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(z){for(var q=n(c);q!==null;){if(q.callback===null)r(c);else if(q.startTime<=z)r(c),q.sortIndex=q.expirationTime,t(o,q);else break;q=n(c)}}function S(z){if(k=!1,y(z),!E)if(n(o)!==null)E=!0,oe(D);else{var q=n(c);q!==null&&he(S,q.startTime-z)}}function D(z,q){E=!1,k&&(k=!1,g(L),L=-1),m=!0;var x=p;try{for(y(q),d=n(o);d!==null&&(!(d.expirationTime>q)||z&&!B());){var ae=d.callback;if(typeof ae=="function"){d.callback=null,p=d.priorityLevel;var me=ae(d.expirationTime<=q);q=e.unstable_now(),typeof me=="function"?d.callback=me:d===n(o)&&r(o),y(q)}else r(o);d=n(o)}if(d!==null)var A=!0;else{var Se=n(c);Se!==null&&he(S,Se.startTime-q),A=!1}return A}finally{d=null,p=x,m=!1}}var C=!1,O=null,L=-1,W=5,w=-1;function B(){return!(e.unstable_now()-w<W)}function V(){if(O!==null){var z=e.unstable_now();w=z;var q=!0;try{q=O(!0,z)}finally{q?ee():(C=!1,O=null)}}else C=!1}var ee;if(typeof T=="function")ee=function(){T(V)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,X=ce.port2;ce.port1.onmessage=V,ee=function(){X.postMessage(null)}}else ee=function(){I(V,0)};function oe(z){O=z,C||(C=!0,ee())}function he(z,q){L=I(function(){z(e.unstable_now())},q)}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(z){z.callback=null},e.unstable_continueExecution=function(){E||m||(E=!0,oe(D))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(z){switch(p){case 1:case 2:case 3:var q=3;break;default:q=p}var x=p;p=q;try{return z()}finally{p=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var x=p;p=z;try{return q()}finally{p=x}},e.unstable_scheduleCallback=function(z,q,x){var ae=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?ae+x:ae):x=ae,z){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=x+me,z={id:f++,callback:q,priorityLevel:z,startTime:x,expirationTime:me,sortIndex:-1},x>ae?(z.sortIndex=x,t(c,z),n(o)===null&&z===n(c)&&(k?(g(L),L=-1):k=!0,he(S,x-ae))):(z.sortIndex=me,t(o,z),E||m||(E=!0,oe(D))),z},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(z){var q=p;return function(){var x=p;p=q;try{return z.apply(this,arguments)}finally{p=x}}}})(jh);Hh.exports=jh;var kg=Hh.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 _g=M,xt=kg;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zh=new Set,Vi={};function dr(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(Vi[e]=t,e=0;e<t.length;e++)zh.add(t[e])}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lo=Object.prototype.hasOwnProperty,Ng=/^[: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]*$/,$c={},Gc={};function Cg(e){return lo.call(Gc,e)?!0:lo.call($c,e)?!1:Ng.test(e)?Gc[e]=!0:($c[e]=!0,!1)}function Ag(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sg(e,t,n,r){if(t===null||typeof t>"u"||Ag(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,i,u,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=s}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function Al(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cl,Al);Qe[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cl,Al);Qe[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cl,Al);Qe[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sl(e,t,n,r){var i=Qe.hasOwnProperty(t)?Qe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Sg(t,n,i,r)&&(n=null),r||i===null?Cg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var mn=_g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nu=Symbol.for("react.element"),kr=Symbol.for("react.portal"),_r=Symbol.for("react.fragment"),wl=Symbol.for("react.strict_mode"),co=Symbol.for("react.profiler"),Yh=Symbol.for("react.provider"),Vh=Symbol.for("react.context"),Il=Symbol.for("react.forward_ref"),fo=Symbol.for("react.suspense"),ho=Symbol.for("react.suspense_list"),vl=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),Wh=Symbol.for("react.offscreen"),qc=Symbol.iterator;function li(e){return e===null||typeof e!="object"?null:(e=qc&&e[qc]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,ba;function ki(e){if(ba===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ba=t&&t[1]||""}return`
|
|
34
|
+
`+ba+e}var xa=!1;function ya(e,t){if(!e||xa)return"";xa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
35
|
+
`),u=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,a=u.length-1;1<=s&&0<=a&&i[s]!==u[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==u[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==u[a]){var o=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=s&&0<=a);break}}}finally{xa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ki(e):""}function wg(e){switch(e.tag){case 5:return ki(e.type);case 16:return ki("Lazy");case 13:return ki("Suspense");case 19:return ki("SuspenseList");case 0:case 2:case 15:return e=ya(e.type,!1),e;case 11:return e=ya(e.type.render,!1),e;case 1:return e=ya(e.type,!0),e;default:return""}}function mo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _r:return"Fragment";case kr:return"Portal";case co:return"Profiler";case wl:return"StrictMode";case fo:return"Suspense";case ho:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vh:return(e.displayName||"Context")+".Consumer";case Yh:return(e._context.displayName||"Context")+".Provider";case Il:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vl:return t=e.displayName||null,t!==null?t:mo(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return mo(e(t))}catch{}}return null}function Ig(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mo(t);case 8:return t===wl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vg(e){var t=Qh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){e._valueTracker||(e._valueTracker=vg(e))}function $h(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function po(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gh(e,t){t=t.checked,t!=null&&Sl(e,"checked",t,!1)}function go(e,t){Gh(e,t);var n=Fn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Eo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Eo(e,t.type,Fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Eo(e,t,n){(t!=="number"||fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _i=Array.isArray;function Pr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Fn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function To(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(_i(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fn(n)}}function qh(e,t){var n=Fn(t.value),r=Fn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Zc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Kh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Kh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Au,Xh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Au=Au||document.createElement("div"),Au.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Au.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={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},Lg=["Webkit","ms","Moz","O"];Object.keys(Si).forEach(function(e){Lg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Jh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Si.hasOwnProperty(e)&&Si[e]?(""+t).trim():t+"px"}function Zh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Jh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Og=ve({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 xo(e,t){if(t){if(Og[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function yo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ko=null;function Ll(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _o=null,Mr=null,Fr=null;function ed(e){if(e=pu(e)){if(typeof _o!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Gs(t),_o(e.stateNode,e.type,t))}}function e0(e){Mr?Fr?Fr.push(e):Fr=[e]:Mr=e}function t0(){if(Mr){var e=Mr,t=Fr;if(Fr=Mr=null,ed(e),t)for(e=0;e<t.length;e++)ed(t[e])}}function n0(e,t){return e(t)}function r0(){}var ka=!1;function i0(e,t,n){if(ka)return e(t,n);ka=!0;try{return n0(e,t,n)}finally{ka=!1,(Mr!==null||Fr!==null)&&(r0(),t0())}}function Qi(e,t){var n=e.stateNode;if(n===null)return null;var r=Gs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var No=!1;if(cn)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){No=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{No=!1}function Rg(e,t,n,r,i,u,s,a,o){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var wi=!1,hs=null,ms=!1,Co=null,Dg={onError:function(e){wi=!0,hs=e}};function Pg(e,t,n,r,i,u,s,a,o){wi=!1,hs=null,Rg.apply(Dg,arguments)}function Mg(e,t,n,r,i,u,s,a,o){if(Pg.apply(this,arguments),wi){if(wi){var c=hs;wi=!1,hs=null}else throw Error(H(198));ms||(ms=!0,Co=c)}}function fr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function td(e){if(fr(e)!==e)throw Error(H(188))}function Fg(e){var t=e.alternate;if(!t){if(t=fr(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return td(i),e;if(u===r)return td(i),t;u=u.sibling}throw Error(H(188))}if(n.return!==r.return)n=i,r=u;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=u;break}if(a===r){s=!0,r=i,n=u;break}a=a.sibling}if(!s){for(a=u.child;a;){if(a===n){s=!0,n=u,r=i;break}if(a===r){s=!0,r=u,n=i;break}a=a.sibling}if(!s)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function s0(e){return e=Fg(e),e!==null?a0(e):null}function a0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=a0(e);if(t!==null)return t;e=e.sibling}return null}var o0=xt.unstable_scheduleCallback,nd=xt.unstable_cancelCallback,Bg=xt.unstable_shouldYield,Ug=xt.unstable_requestPaint,Oe=xt.unstable_now,Hg=xt.unstable_getCurrentPriorityLevel,Ol=xt.unstable_ImmediatePriority,l0=xt.unstable_UserBlockingPriority,ps=xt.unstable_NormalPriority,jg=xt.unstable_LowPriority,c0=xt.unstable_IdlePriority,Vs=null,Gt=null;function zg(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Vs,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Wg,Yg=Math.log,Vg=Math.LN2;function Wg(e){return e>>>=0,e===0?32:31-(Yg(e)/Vg|0)|0}var Su=64,wu=4194304;function Ni(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,u=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Ni(a):(u&=s,u!==0&&(r=Ni(u)))}else s=n&~i,s!==0?r=Ni(s):u!==0&&(r=Ni(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,u=t&-t,i>=u||i===16&&(u&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),i=1<<n,r|=e[n],t&=~i;return r}function Qg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $g(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-Ft(u),a=1<<s,o=i[s];o===-1?(!(a&n)||a&r)&&(i[s]=Qg(a,t)):o<=t&&(e.expiredLanes|=a),u&=~a}}function Ao(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function d0(){var e=Su;return Su<<=1,!(Su&4194240)&&(Su=64),e}function _a(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Gg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ft(n),u=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~u}}function Rl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function f0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h0,Dl,m0,p0,g0,So=!1,Iu=[],In=null,vn=null,Ln=null,$i=new Map,Gi=new Map,Nn=[],qg="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 rd(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":$i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(t.pointerId)}}function di(e,t,n,r,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[i]},t!==null&&(t=pu(t),t!==null&&Dl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Kg(e,t,n,r,i){switch(t){case"focusin":return In=di(In,e,t,n,r,i),!0;case"dragenter":return vn=di(vn,e,t,n,r,i),!0;case"mouseover":return Ln=di(Ln,e,t,n,r,i),!0;case"pointerover":var u=i.pointerId;return $i.set(u,di($i.get(u)||null,e,t,n,r,i)),!0;case"gotpointercapture":return u=i.pointerId,Gi.set(u,di(Gi.get(u)||null,e,t,n,r,i)),!0}return!1}function E0(e){var t=Jn(e.target);if(t!==null){var n=fr(t);if(n!==null){if(t=n.tag,t===13){if(t=u0(n),t!==null){e.blockedOn=t,g0(e.priority,function(){m0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ko=r,n.target.dispatchEvent(r),ko=null}else return t=pu(n),t!==null&&Dl(t),e.blockedOn=n,!1;t.shift()}return!0}function id(e,t,n){Xu(e)&&n.delete(t)}function Xg(){So=!1,In!==null&&Xu(In)&&(In=null),vn!==null&&Xu(vn)&&(vn=null),Ln!==null&&Xu(Ln)&&(Ln=null),$i.forEach(id),Gi.forEach(id)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,So||(So=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,Xg)))}function qi(e){function t(i){return fi(i,e)}if(0<Iu.length){fi(Iu[0],e);for(var n=1;n<Iu.length;n++){var r=Iu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(In!==null&&fi(In,e),vn!==null&&fi(vn,e),Ln!==null&&fi(Ln,e),$i.forEach(t),Gi.forEach(t),n=0;n<Nn.length;n++)r=Nn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nn.length&&(n=Nn[0],n.blockedOn===null);)E0(n),n.blockedOn===null&&Nn.shift()}var Br=mn.ReactCurrentBatchConfig,Es=!0;function Jg(e,t,n,r){var i=pe,u=Br.transition;Br.transition=null;try{pe=1,Pl(e,t,n,r)}finally{pe=i,Br.transition=u}}function Zg(e,t,n,r){var i=pe,u=Br.transition;Br.transition=null;try{pe=4,Pl(e,t,n,r)}finally{pe=i,Br.transition=u}}function Pl(e,t,n,r){if(Es){var i=wo(e,t,n,r);if(i===null)Ra(e,t,r,Ts,n),rd(e,r);else if(Kg(i,e,t,n,r))r.stopPropagation();else if(rd(e,r),t&4&&-1<qg.indexOf(e)){for(;i!==null;){var u=pu(i);if(u!==null&&h0(u),u=wo(e,t,n,r),u===null&&Ra(e,t,r,Ts,n),u===i)break;i=u}i!==null&&r.stopPropagation()}else Ra(e,t,r,null,n)}}var Ts=null;function wo(e,t,n,r){if(Ts=null,e=Ll(r),e=Jn(e),e!==null)if(t=fr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=u0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ts=e,null}function T0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Hg()){case Ol:return 1;case l0:return 4;case ps:case jg:return 16;case c0:return 536870912;default:return 16}default:return 16}}var An=null,Ml=null,Ju=null;function b0(){if(Ju)return Ju;var e,t=Ml,n=t.length,r,i="value"in An?An.value:An.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[u-r];r++);return Ju=i.slice(e,1<r?1-r:void 0)}function Zu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vu(){return!0}function ud(){return!1}function kt(e){function t(n,r,i,u,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(u):u[a]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?vu:ud,this.isPropagationStopped=ud,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vu)},persist:function(){},isPersistent:vu}),t}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fl=kt(Zr),mu=ve({},Zr,{view:0,detail:0}),eE=kt(mu),Na,Ca,hi,Ws=ve({},mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(Na=e.screenX-hi.screenX,Ca=e.screenY-hi.screenY):Ca=Na=0,hi=e),Na)},movementY:function(e){return"movementY"in e?e.movementY:Ca}}),sd=kt(Ws),tE=ve({},Ws,{dataTransfer:0}),nE=kt(tE),rE=ve({},mu,{relatedTarget:0}),Aa=kt(rE),iE=ve({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),uE=kt(iE),sE=ve({},Zr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aE=kt(sE),oE=ve({},Zr,{data:0}),ad=kt(oE),lE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cE={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"},dE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dE[e])?!!t[e]:!1}function Bl(){return fE}var hE=ve({},mu,{key:function(e){if(e.key){var t=lE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bl,charCode:function(e){return e.type==="keypress"?Zu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mE=kt(hE),pE=ve({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=kt(pE),gE=ve({},mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bl}),EE=kt(gE),TE=ve({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),bE=kt(TE),xE=ve({},Ws,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),yE=kt(xE),kE=[9,13,27,32],Ul=cn&&"CompositionEvent"in window,Ii=null;cn&&"documentMode"in document&&(Ii=document.documentMode);var _E=cn&&"TextEvent"in window&&!Ii,x0=cn&&(!Ul||Ii&&8<Ii&&11>=Ii),ld=" ",cd=!1;function y0(e,t){switch(e){case"keyup":return kE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function NE(e,t){switch(e){case"compositionend":return k0(t);case"keypress":return t.which!==32?null:(cd=!0,ld);case"textInput":return e=t.data,e===ld&&cd?null:e;default:return null}}function CE(e,t){if(Nr)return e==="compositionend"||!Ul&&y0(e,t)?(e=b0(),Ju=Ml=An=null,Nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return x0&&t.locale!=="ko"?null:t.data;default:return null}}var AE={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 dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!AE[e.type]:t==="textarea"}function _0(e,t,n,r){e0(r),t=bs(t,"onChange"),0<t.length&&(n=new Fl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vi=null,Ki=null;function SE(e){D0(e,0)}function Qs(e){var t=Sr(e);if($h(t))return e}function wE(e,t){if(e==="change")return t}var N0=!1;if(cn){var Sa;if(cn){var wa="oninput"in document;if(!wa){var fd=document.createElement("div");fd.setAttribute("oninput","return;"),wa=typeof fd.oninput=="function"}Sa=wa}else Sa=!1;N0=Sa&&(!document.documentMode||9<document.documentMode)}function hd(){vi&&(vi.detachEvent("onpropertychange",C0),Ki=vi=null)}function C0(e){if(e.propertyName==="value"&&Qs(Ki)){var t=[];_0(t,Ki,e,Ll(e)),i0(SE,t)}}function IE(e,t,n){e==="focusin"?(hd(),vi=t,Ki=n,vi.attachEvent("onpropertychange",C0)):e==="focusout"&&hd()}function vE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(Ki)}function LE(e,t){if(e==="click")return Qs(t)}function OE(e,t){if(e==="input"||e==="change")return Qs(t)}function RE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:RE;function Xi(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!lo.call(t,i)||!Ht(e[i],t[i]))return!1}return!0}function md(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pd(e,t){var n=md(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=md(n)}}function A0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?A0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S0(){for(var e=window,t=fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fs(e.document)}return t}function Hl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function DE(e){var t=S0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&A0(n.ownerDocument.documentElement,n)){if(r!==null&&Hl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,u=Math.min(r.start,i);r=r.end===void 0?u:Math.min(r.end,i),!e.extend&&u>r&&(i=r,r=u,u=i),i=pd(n,u);var s=pd(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var PE=cn&&"documentMode"in document&&11>=document.documentMode,Cr=null,Io=null,Li=null,vo=!1;function gd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vo||Cr==null||Cr!==fs(r)||(r=Cr,"selectionStart"in r&&Hl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Li&&Xi(Li,r)||(Li=r,r=bs(Io,"onSelect"),0<r.length&&(t=new Fl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function Lu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:Lu("Animation","AnimationEnd"),animationiteration:Lu("Animation","AnimationIteration"),animationstart:Lu("Animation","AnimationStart"),transitionend:Lu("Transition","TransitionEnd")},Ia={},w0={};cn&&(w0=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function $s(e){if(Ia[e])return Ia[e];if(!Ar[e])return e;var t=Ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in w0)return Ia[e]=t[n];return e}var I0=$s("animationend"),v0=$s("animationiteration"),L0=$s("animationstart"),O0=$s("transitionend"),R0=new Map,Ed="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 Un(e,t){R0.set(e,t),dr(t,[e])}for(var va=0;va<Ed.length;va++){var La=Ed[va],ME=La.toLowerCase(),FE=La[0].toUpperCase()+La.slice(1);Un(ME,"on"+FE)}Un(I0,"onAnimationEnd");Un(v0,"onAnimationIteration");Un(L0,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(O0,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dr("onBeforeInput",["compositionend","keypress","textInput","paste"]);dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ci="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(" "),BE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ci));function Td(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Mg(r,t,void 0,e),e.currentTarget=null}function D0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],o=a.instance,c=a.currentTarget;if(a=a.listener,o!==u&&i.isPropagationStopped())break e;Td(i,a,c),u=o}else for(s=0;s<r.length;s++){if(a=r[s],o=a.instance,c=a.currentTarget,a=a.listener,o!==u&&i.isPropagationStopped())break e;Td(i,a,c),u=o}}}if(ms)throw e=Co,ms=!1,Co=null,e}function _e(e,t){var n=t[Po];n===void 0&&(n=t[Po]=new Set);var r=e+"__bubble";n.has(r)||(P0(t,e,2,!1),n.add(r))}function Oa(e,t,n){var r=0;t&&(r|=4),P0(n,e,r,t)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function Ji(e){if(!e[Ou]){e[Ou]=!0,zh.forEach(function(n){n!=="selectionchange"&&(BE.has(n)||Oa(n,!1,e),Oa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ou]||(t[Ou]=!0,Oa("selectionchange",!1,t))}}function P0(e,t,n,r){switch(T0(t)){case 1:var i=Jg;break;case 4:i=Zg;break;default:i=Pl}n=i.bind(null,t,n,e),i=void 0,!No||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ra(e,t,n,r,i){var u=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var o=s.tag;if((o===3||o===4)&&(o=s.stateNode.containerInfo,o===i||o.nodeType===8&&o.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Jn(a),s===null)return;if(o=s.tag,o===5||o===6){r=u=s;continue e}a=a.parentNode}}r=r.return}i0(function(){var c=u,f=Ll(n),d=[];e:{var p=R0.get(e);if(p!==void 0){var m=Fl,E=e;switch(e){case"keypress":if(Zu(n)===0)break e;case"keydown":case"keyup":m=mE;break;case"focusin":E="focus",m=Aa;break;case"focusout":E="blur",m=Aa;break;case"beforeblur":case"afterblur":m=Aa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=nE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=EE;break;case I0:case v0:case L0:m=uE;break;case O0:m=bE;break;case"scroll":m=eE;break;case"wheel":m=yE;break;case"copy":case"cut":case"paste":m=aE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=od}var k=(t&4)!==0,I=!k&&e==="scroll",g=k?p!==null?p+"Capture":null:p;k=[];for(var T=c,y;T!==null;){y=T;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,g!==null&&(S=Qi(T,g),S!=null&&k.push(Zi(T,S,y)))),I)break;T=T.return}0<k.length&&(p=new m(p,E,null,n,f),d.push({event:p,listeners:k}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==ko&&(E=n.relatedTarget||n.fromElement)&&(Jn(E)||E[dn]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(E=n.relatedTarget||n.toElement,m=c,E=E?Jn(E):null,E!==null&&(I=fr(E),E!==I||E.tag!==5&&E.tag!==6)&&(E=null)):(m=null,E=c),m!==E)){if(k=sd,S="onMouseLeave",g="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(k=od,S="onPointerLeave",g="onPointerEnter",T="pointer"),I=m==null?p:Sr(m),y=E==null?p:Sr(E),p=new k(S,T+"leave",m,n,f),p.target=I,p.relatedTarget=y,S=null,Jn(f)===c&&(k=new k(g,T+"enter",E,n,f),k.target=y,k.relatedTarget=I,S=k),I=S,m&&E)t:{for(k=m,g=E,T=0,y=k;y;y=br(y))T++;for(y=0,S=g;S;S=br(S))y++;for(;0<T-y;)k=br(k),T--;for(;0<y-T;)g=br(g),y--;for(;T--;){if(k===g||g!==null&&k===g.alternate)break t;k=br(k),g=br(g)}k=null}else k=null;m!==null&&bd(d,p,m,k,!1),E!==null&&I!==null&&bd(d,I,E,k,!0)}}e:{if(p=c?Sr(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var D=wE;else if(dd(p))if(N0)D=OE;else{D=vE;var C=IE}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(D=LE);if(D&&(D=D(e,c))){_0(d,D,n,f);break e}C&&C(e,p,c),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&Eo(p,"number",p.value)}switch(C=c?Sr(c):window,e){case"focusin":(dd(C)||C.contentEditable==="true")&&(Cr=C,Io=c,Li=null);break;case"focusout":Li=Io=Cr=null;break;case"mousedown":vo=!0;break;case"contextmenu":case"mouseup":case"dragend":vo=!1,gd(d,n,f);break;case"selectionchange":if(PE)break;case"keydown":case"keyup":gd(d,n,f)}var O;if(Ul)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Nr?y0(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(x0&&n.locale!=="ko"&&(Nr||L!=="onCompositionStart"?L==="onCompositionEnd"&&Nr&&(O=b0()):(An=f,Ml="value"in An?An.value:An.textContent,Nr=!0)),C=bs(c,L),0<C.length&&(L=new ad(L,e,null,n,f),d.push({event:L,listeners:C}),O?L.data=O:(O=k0(n),O!==null&&(L.data=O)))),(O=_E?NE(e,n):CE(e,n))&&(c=bs(c,"onBeforeInput"),0<c.length&&(f=new ad("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:c}),f.data=O))}D0(d,t)})}function Zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,u=i.stateNode;i.tag===5&&u!==null&&(i=u,u=Qi(e,n),u!=null&&r.unshift(Zi(e,u,i)),u=Qi(e,t),u!=null&&r.push(Zi(e,u,i))),e=e.return}return r}function br(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bd(e,t,n,r,i){for(var u=t._reactName,s=[];n!==null&&n!==r;){var a=n,o=a.alternate,c=a.stateNode;if(o!==null&&o===r)break;a.tag===5&&c!==null&&(a=c,i?(o=Qi(n,u),o!=null&&s.unshift(Zi(n,o,a))):i||(o=Qi(n,u),o!=null&&s.push(Zi(n,o,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var UE=/\r\n?/g,HE=/\u0000|\uFFFD/g;function xd(e){return(typeof e=="string"?e:""+e).replace(UE,`
|
|
38
|
+
`).replace(HE,"")}function Ru(e,t,n){if(t=xd(t),xd(e)!==t&&n)throw Error(H(425))}function xs(){}var Lo=null,Oo=null;function Ro(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Do=typeof setTimeout=="function"?setTimeout:void 0,jE=typeof clearTimeout=="function"?clearTimeout:void 0,yd=typeof Promise=="function"?Promise:void 0,zE=typeof queueMicrotask=="function"?queueMicrotask:typeof yd<"u"?function(e){return yd.resolve(null).then(e).catch(YE)}:Do;function YE(e){setTimeout(function(){throw e})}function Da(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),qi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);qi(t)}function On(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ei=Math.random().toString(36).slice(2),$t="__reactFiber$"+ei,eu="__reactProps$"+ei,dn="__reactContainer$"+ei,Po="__reactEvents$"+ei,VE="__reactListeners$"+ei,WE="__reactHandles$"+ei;function Jn(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kd(e);e!==null;){if(n=e[$t])return n;e=kd(e)}return t}e=n,n=e.parentNode}return null}function pu(e){return e=e[$t]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function Gs(e){return e[eu]||null}var Mo=[],wr=-1;function Hn(e){return{current:e}}function Ne(e){0>wr||(e.current=Mo[wr],Mo[wr]=null,wr--)}function ye(e,t){wr++,Mo[wr]=e.current,e.current=t}var Bn={},Xe=Hn(Bn),ct=Hn(!1),ur=Bn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function ys(){Ne(ct),Ne(Xe)}function _d(e,t,n){if(Xe.current!==Bn)throw Error(H(168));ye(Xe,t),ye(ct,n)}function M0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,Ig(e)||"Unknown",i));return ve({},n,r)}function ks(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bn,ur=Xe.current,ye(Xe,e),ye(ct,ct.current),!0}function Nd(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=M0(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,Ne(ct),Ne(Xe),ye(Xe,e)):Ne(ct),ye(ct,n)}var un=null,qs=!1,Pa=!1;function F0(e){un===null?un=[e]:un.push(e)}function QE(e){qs=!0,F0(e)}function jn(){if(!Pa&&un!==null){Pa=!0;var e=0,t=pe;try{var n=un;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}un=null,qs=!1}catch(i){throw un!==null&&(un=un.slice(e+1)),o0(Ol,jn),i}finally{pe=t,Pa=!1}}return null}var Ir=[],vr=0,_s=null,Ns=0,_t=[],Nt=0,sr=null,an=1,on="";function qn(e,t){Ir[vr++]=Ns,Ir[vr++]=_s,_s=e,Ns=t}function B0(e,t,n){_t[Nt++]=an,_t[Nt++]=on,_t[Nt++]=sr,sr=e;var r=an;e=on;var i=32-Ft(r)-1;r&=~(1<<i),n+=1;var u=32-Ft(t)+i;if(30<u){var s=i-i%5;u=(r&(1<<s)-1).toString(32),r>>=s,i-=s,an=1<<32-Ft(t)+i|n<<i|r,on=u+e}else an=1<<u|n<<i|r,on=e}function jl(e){e.return!==null&&(qn(e,1),B0(e,1,0))}function zl(e){for(;e===_s;)_s=Ir[--vr],Ir[vr]=null,Ns=Ir[--vr],Ir[vr]=null;for(;e===sr;)sr=_t[--Nt],_t[Nt]=null,on=_t[--Nt],_t[Nt]=null,an=_t[--Nt],_t[Nt]=null}var Tt=null,Et=null,Ae=!1,Mt=null;function U0(e,t){var n=St(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Cd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,Et=On(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sr!==null?{id:an,overflow:on}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=St(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tt=e,Et=null,!0):!1;default:return!1}}function Fo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bo(e){if(Ae){var t=Et;if(t){var n=t;if(!Cd(e,t)){if(Fo(e))throw Error(H(418));t=On(n.nextSibling);var r=Tt;t&&Cd(e,t)?U0(r,n):(e.flags=e.flags&-4097|2,Ae=!1,Tt=e)}}else{if(Fo(e))throw Error(H(418));e.flags=e.flags&-4097|2,Ae=!1,Tt=e}}}function Ad(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tt=e}function Du(e){if(e!==Tt)return!1;if(!Ae)return Ad(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ro(e.type,e.memoizedProps)),t&&(t=Et)){if(Fo(e))throw H0(),Error(H(418));for(;t;)U0(e,t),t=On(t.nextSibling)}if(Ad(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=On(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Tt?On(e.stateNode.nextSibling):null;return!0}function H0(){for(var e=Et;e;)e=On(e.nextSibling)}function Vr(){Et=Tt=null,Ae=!1}function Yl(e){Mt===null?Mt=[e]:Mt.push(e)}var $E=mn.ReactCurrentBatchConfig;function mi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var i=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(s){var a=i.refs;s===null?delete a[u]:a[u]=s},t._stringRef=u,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Pu(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sd(e){var t=e._init;return t(e._payload)}function j0(e){function t(g,T){if(e){var y=g.deletions;y===null?(g.deletions=[T],g.flags|=16):y.push(T)}}function n(g,T){if(!e)return null;for(;T!==null;)t(g,T),T=T.sibling;return null}function r(g,T){for(g=new Map;T!==null;)T.key!==null?g.set(T.key,T):g.set(T.index,T),T=T.sibling;return g}function i(g,T){return g=Mn(g,T),g.index=0,g.sibling=null,g}function u(g,T,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<T?(g.flags|=2,T):y):(g.flags|=2,T)):(g.flags|=1048576,T)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,T,y,S){return T===null||T.tag!==6?(T=za(y,g.mode,S),T.return=g,T):(T=i(T,y),T.return=g,T)}function o(g,T,y,S){var D=y.type;return D===_r?f(g,T,y.props.children,S,y.key):T!==null&&(T.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===kn&&Sd(D)===T.type)?(S=i(T,y.props),S.ref=mi(g,T,y),S.return=g,S):(S=ss(y.type,y.key,y.props,null,g.mode,S),S.ref=mi(g,T,y),S.return=g,S)}function c(g,T,y,S){return T===null||T.tag!==4||T.stateNode.containerInfo!==y.containerInfo||T.stateNode.implementation!==y.implementation?(T=Ya(y,g.mode,S),T.return=g,T):(T=i(T,y.children||[]),T.return=g,T)}function f(g,T,y,S,D){return T===null||T.tag!==7?(T=rr(y,g.mode,S,D),T.return=g,T):(T=i(T,y),T.return=g,T)}function d(g,T,y){if(typeof T=="string"&&T!==""||typeof T=="number")return T=za(""+T,g.mode,y),T.return=g,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Nu:return y=ss(T.type,T.key,T.props,null,g.mode,y),y.ref=mi(g,null,T),y.return=g,y;case kr:return T=Ya(T,g.mode,y),T.return=g,T;case kn:var S=T._init;return d(g,S(T._payload),y)}if(_i(T)||li(T))return T=rr(T,g.mode,y,null),T.return=g,T;Pu(g,T)}return null}function p(g,T,y,S){var D=T!==null?T.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return D!==null?null:a(g,T,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Nu:return y.key===D?o(g,T,y,S):null;case kr:return y.key===D?c(g,T,y,S):null;case kn:return D=y._init,p(g,T,D(y._payload),S)}if(_i(y)||li(y))return D!==null?null:f(g,T,y,S,null);Pu(g,y)}return null}function m(g,T,y,S,D){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(y)||null,a(T,g,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Nu:return g=g.get(S.key===null?y:S.key)||null,o(T,g,S,D);case kr:return g=g.get(S.key===null?y:S.key)||null,c(T,g,S,D);case kn:var C=S._init;return m(g,T,y,C(S._payload),D)}if(_i(S)||li(S))return g=g.get(y)||null,f(T,g,S,D,null);Pu(T,S)}return null}function E(g,T,y,S){for(var D=null,C=null,O=T,L=T=0,W=null;O!==null&&L<y.length;L++){O.index>L?(W=O,O=null):W=O.sibling;var w=p(g,O,y[L],S);if(w===null){O===null&&(O=W);break}e&&O&&w.alternate===null&&t(g,O),T=u(w,T,L),C===null?D=w:C.sibling=w,C=w,O=W}if(L===y.length)return n(g,O),Ae&&qn(g,L),D;if(O===null){for(;L<y.length;L++)O=d(g,y[L],S),O!==null&&(T=u(O,T,L),C===null?D=O:C.sibling=O,C=O);return Ae&&qn(g,L),D}for(O=r(g,O);L<y.length;L++)W=m(O,g,L,y[L],S),W!==null&&(e&&W.alternate!==null&&O.delete(W.key===null?L:W.key),T=u(W,T,L),C===null?D=W:C.sibling=W,C=W);return e&&O.forEach(function(B){return t(g,B)}),Ae&&qn(g,L),D}function k(g,T,y,S){var D=li(y);if(typeof D!="function")throw Error(H(150));if(y=D.call(y),y==null)throw Error(H(151));for(var C=D=null,O=T,L=T=0,W=null,w=y.next();O!==null&&!w.done;L++,w=y.next()){O.index>L?(W=O,O=null):W=O.sibling;var B=p(g,O,w.value,S);if(B===null){O===null&&(O=W);break}e&&O&&B.alternate===null&&t(g,O),T=u(B,T,L),C===null?D=B:C.sibling=B,C=B,O=W}if(w.done)return n(g,O),Ae&&qn(g,L),D;if(O===null){for(;!w.done;L++,w=y.next())w=d(g,w.value,S),w!==null&&(T=u(w,T,L),C===null?D=w:C.sibling=w,C=w);return Ae&&qn(g,L),D}for(O=r(g,O);!w.done;L++,w=y.next())w=m(O,g,L,w.value,S),w!==null&&(e&&w.alternate!==null&&O.delete(w.key===null?L:w.key),T=u(w,T,L),C===null?D=w:C.sibling=w,C=w);return e&&O.forEach(function(V){return t(g,V)}),Ae&&qn(g,L),D}function I(g,T,y,S){if(typeof y=="object"&&y!==null&&y.type===_r&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Nu:e:{for(var D=y.key,C=T;C!==null;){if(C.key===D){if(D=y.type,D===_r){if(C.tag===7){n(g,C.sibling),T=i(C,y.props.children),T.return=g,g=T;break e}}else if(C.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===kn&&Sd(D)===C.type){n(g,C.sibling),T=i(C,y.props),T.ref=mi(g,C,y),T.return=g,g=T;break e}n(g,C);break}else t(g,C);C=C.sibling}y.type===_r?(T=rr(y.props.children,g.mode,S,y.key),T.return=g,g=T):(S=ss(y.type,y.key,y.props,null,g.mode,S),S.ref=mi(g,T,y),S.return=g,g=S)}return s(g);case kr:e:{for(C=y.key;T!==null;){if(T.key===C)if(T.tag===4&&T.stateNode.containerInfo===y.containerInfo&&T.stateNode.implementation===y.implementation){n(g,T.sibling),T=i(T,y.children||[]),T.return=g,g=T;break e}else{n(g,T);break}else t(g,T);T=T.sibling}T=Ya(y,g.mode,S),T.return=g,g=T}return s(g);case kn:return C=y._init,I(g,T,C(y._payload),S)}if(_i(y))return E(g,T,y,S);if(li(y))return k(g,T,y,S);Pu(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,T!==null&&T.tag===6?(n(g,T.sibling),T=i(T,y),T.return=g,g=T):(n(g,T),T=za(y,g.mode,S),T.return=g,g=T),s(g)):n(g,T)}return I}var Wr=j0(!0),z0=j0(!1),Cs=Hn(null),As=null,Lr=null,Vl=null;function Wl(){Vl=Lr=As=null}function Ql(e){var t=Cs.current;Ne(Cs),e._currentValue=t}function Uo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ur(e,t){As=e,Vl=Lr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(Vl!==e)if(e={context:e,memoizedValue:t,next:null},Lr===null){if(As===null)throw Error(H(308));Lr=e,As.dependencies={lanes:0,firstContext:e}}else Lr=Lr.next=e;return t}var Zn=null;function $l(e){Zn===null?Zn=[e]:Zn.push(e)}function Y0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$l(t)):(n.next=i.next,i.next=n),t.interleaved=n,fn(e,r)}function fn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _n=!1;function Gl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function V0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,fn(e,n)}return i=r.interleaved,i===null?(t.next=t,$l(r)):(t.next=i.next,i.next=t),r.interleaved=t,fn(e,n)}function es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}function wd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?i=u=s:u=u.next=s,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ss(e,t,n,r){var i=e.updateQueue;_n=!1;var u=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var o=a,c=o.next;o.next=null,s===null?u=c:s.next=c,s=o;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=o))}if(u!==null){var d=i.baseState;s=0,f=c=o=null,a=u;do{var p=a.lane,m=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,k=a;switch(p=t,m=n,k.tag){case 1:if(E=k.payload,typeof E=="function"){d=E.call(m,d,p);break e}d=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=k.payload,p=typeof E=="function"?E.call(m,d,p):E,p==null)break e;d=ve({},d,p);break e;case 2:_n=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=m,o=d):f=f.next=m,s|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(o=d),i.baseState=o,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else u===null&&(i.shared.lanes=0);or|=s,e.lanes=s,e.memoizedState=d}}function Id(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(H(191,i));i.call(r)}}}var gu={},qt=Hn(gu),tu=Hn(gu),nu=Hn(gu);function er(e){if(e===gu)throw Error(H(174));return e}function ql(e,t){switch(ye(nu,t),ye(tu,e),ye(qt,gu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bo(t,e)}Ne(qt),ye(qt,t)}function Qr(){Ne(qt),Ne(tu),Ne(nu)}function W0(e){er(nu.current);var t=er(qt.current),n=bo(t,e.type);t!==n&&(ye(tu,e),ye(qt,n))}function Kl(e){tu.current===e&&(Ne(qt),Ne(tu))}var we=Hn(0);function ws(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ma=[];function Xl(){for(var e=0;e<Ma.length;e++)Ma[e]._workInProgressVersionPrimary=null;Ma.length=0}var ts=mn.ReactCurrentDispatcher,Fa=mn.ReactCurrentBatchConfig,ar=0,Ie=null,Be=null,je=null,Is=!1,Oi=!1,ru=0,GE=0;function $e(){throw Error(H(321))}function Jl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Zl(e,t,n,r,i,u){if(ar=u,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ts.current=e===null||e.memoizedState===null?JE:ZE,e=n(r,i),Oi){u=0;do{if(Oi=!1,ru=0,25<=u)throw Error(H(301));u+=1,je=Be=null,t.updateQueue=null,ts.current=eT,e=n(r,i)}while(Oi)}if(ts.current=vs,t=Be!==null&&Be.next!==null,ar=0,je=Be=Ie=null,Is=!1,t)throw Error(H(300));return e}function ec(){var e=ru!==0;return ru=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?Ie.memoizedState=je=e:je=je.next=e,je}function vt(){if(Be===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=je===null?Ie.memoizedState:je.next;if(t!==null)je=t,Be=e;else{if(e===null)throw Error(H(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},je===null?Ie.memoizedState=je=e:je=je.next=e}return je}function iu(e,t){return typeof t=="function"?t(e):t}function Ba(e){var t=vt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=Be,i=r.baseQueue,u=n.pending;if(u!==null){if(i!==null){var s=i.next;i.next=u.next,u.next=s}r.baseQueue=i=u,n.pending=null}if(i!==null){u=i.next,r=r.baseState;var a=s=null,o=null,c=u;do{var f=c.lane;if((ar&f)===f)o!==null&&(o=o.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};o===null?(a=o=d,s=r):o=o.next=d,Ie.lanes|=f,or|=f}c=c.next}while(c!==null&&c!==u);o===null?s=r:o.next=a,Ht(r,t.memoizedState)||(lt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do u=i.lane,Ie.lanes|=u,or|=u,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ua(e){var t=vt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do u=e(u,s.action),s=s.next;while(s!==i);Ht(u,t.memoizedState)||(lt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Q0(){}function $0(e,t){var n=Ie,r=vt(),i=t(),u=!Ht(r.memoizedState,i);if(u&&(r.memoizedState=i,lt=!0),r=r.queue,tc(K0.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,uu(9,q0.bind(null,n,r,i,t),void 0,null),Ye===null)throw Error(H(349));ar&30||G0(n,t,i)}return i}function G0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function q0(e,t,n,r){t.value=n,t.getSnapshot=r,X0(t)&&J0(e)}function K0(e,t,n){return n(function(){X0(t)&&J0(e)})}function X0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function J0(e){var t=fn(e,1);t!==null&&Bt(t,e,1,-1)}function vd(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:iu,lastRenderedState:e},t.queue=e,e=e.dispatch=XE.bind(null,Ie,e),[t.memoizedState,e]}function uu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Z0(){return vt().memoizedState}function ns(e,t,n,r){var i=Vt();Ie.flags|=e,i.memoizedState=uu(1|t,n,void 0,r===void 0?null:r)}function Ks(e,t,n,r){var i=vt();r=r===void 0?null:r;var u=void 0;if(Be!==null){var s=Be.memoizedState;if(u=s.destroy,r!==null&&Jl(r,s.deps)){i.memoizedState=uu(t,n,u,r);return}}Ie.flags|=e,i.memoizedState=uu(1|t,n,u,r)}function Ld(e,t){return ns(8390656,8,e,t)}function tc(e,t){return Ks(2048,8,e,t)}function em(e,t){return Ks(4,2,e,t)}function tm(e,t){return Ks(4,4,e,t)}function nm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rm(e,t,n){return n=n!=null?n.concat([e]):null,Ks(4,4,nm.bind(null,t,e),n)}function nc(){}function im(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function um(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sm(e,t,n){return ar&21?(Ht(n,t)||(n=d0(),Ie.lanes|=n,or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=n)}function qE(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Fa.transition;Fa.transition={};try{e(!1),t()}finally{pe=n,Fa.transition=r}}function am(){return vt().memoizedState}function KE(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},om(e))lm(t,n);else if(n=Y0(e,t,n,r),n!==null){var i=rt();Bt(n,e,r,i),cm(n,t,r)}}function XE(e,t,n){var r=Pn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(om(e))lm(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,a=u(s,n);if(i.hasEagerState=!0,i.eagerState=a,Ht(a,s)){var o=t.interleaved;o===null?(i.next=i,$l(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=Y0(e,t,i,r),n!==null&&(i=rt(),Bt(n,e,r,i),cm(n,t,r))}}function om(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function lm(e,t){Oi=Is=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}var vs={readContext:It,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},JE={readContext:It,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Ld,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,nm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=KE.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:vd,useDebugValue:nc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=vd(!1),t=e[0];return e=qE.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,i=Vt();if(Ae){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ye===null)throw Error(H(349));ar&30||G0(r,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,Ld(K0.bind(null,r,u,e),[e]),r.flags|=2048,uu(9,q0.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Ye.identifierPrefix;if(Ae){var n=on,r=an;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ru++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=GE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ZE={readContext:It,useCallback:im,useContext:It,useEffect:tc,useImperativeHandle:rm,useInsertionEffect:em,useLayoutEffect:tm,useMemo:um,useReducer:Ba,useRef:Z0,useState:function(){return Ba(iu)},useDebugValue:nc,useDeferredValue:function(e){var t=vt();return sm(t,Be.memoizedState,e)},useTransition:function(){var e=Ba(iu)[0],t=vt().memoizedState;return[e,t]},useMutableSource:Q0,useSyncExternalStore:$0,useId:am,unstable_isNewReconciler:!1},eT={readContext:It,useCallback:im,useContext:It,useEffect:tc,useImperativeHandle:rm,useInsertionEffect:em,useLayoutEffect:tm,useMemo:um,useReducer:Ua,useRef:Z0,useState:function(){return Ua(iu)},useDebugValue:nc,useDeferredValue:function(e){var t=vt();return Be===null?t.memoizedState=e:sm(t,Be.memoizedState,e)},useTransition:function(){var e=Ua(iu)[0],t=vt().memoizedState;return[e,t]},useMutableSource:Q0,useSyncExternalStore:$0,useId:am,unstable_isNewReconciler:!1};function Dt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ho(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xs={isMounted:function(e){return(e=e._reactInternals)?fr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),i=Pn(e),u=ln(r,i);u.payload=t,n!=null&&(u.callback=n),t=Rn(e,u,i),t!==null&&(Bt(t,e,i,r),es(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),i=Pn(e),u=ln(r,i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Rn(e,u,i),t!==null&&(Bt(t,e,i,r),es(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=Pn(e),i=ln(n,r);i.tag=2,t!=null&&(i.callback=t),t=Rn(e,i,r),t!==null&&(Bt(t,e,r,n),es(t,e,r))}};function Od(e,t,n,r,i,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,s):t.prototype&&t.prototype.isPureReactComponent?!Xi(n,r)||!Xi(i,u):!0}function dm(e,t,n){var r=!1,i=Bn,u=t.contextType;return typeof u=="object"&&u!==null?u=It(u):(i=dt(t)?ur:Xe.current,r=t.contextTypes,u=(r=r!=null)?Yr(e,i):Bn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=u),t}function Rd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xs.enqueueReplaceState(t,t.state,null)}function jo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Gl(e);var u=t.contextType;typeof u=="object"&&u!==null?i.context=It(u):(u=dt(t)?ur:Xe.current,i.context=Yr(e,u)),i.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Ho(e,t,u,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xs.enqueueReplaceState(i,i.state,null),Ss(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function $r(e,t){try{var n="",r=t;do n+=wg(r),r=r.return;while(r);var i=n}catch(u){i=`
|
|
39
|
+
Error generating stack: `+u.message+`
|
|
40
|
+
`+u.stack}return{value:e,source:t,stack:i,digest:null}}function Ha(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tT=typeof WeakMap=="function"?WeakMap:Map;function fm(e,t,n){n=ln(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Os||(Os=!0,Jo=r),zo(e,t)},n}function hm(e,t,n){n=ln(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){zo(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){zo(e,t),typeof r!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Dd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tT;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pT.bind(null,e,t,n),t.then(e,e))}function Pd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Md(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ln(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e)}var nT=mn.ReactCurrentOwner,lt=!1;function tt(e,t,n,r){t.child=e===null?z0(t,null,n,r):Wr(t,e.child,n,r)}function Fd(e,t,n,r,i){n=n.render;var u=t.ref;return Ur(t,i),r=Zl(e,t,n,r,u,i),n=ec(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hn(e,t,i)):(Ae&&n&&jl(t),t.flags|=1,tt(e,t,r,i),t.child)}function Bd(e,t,n,r,i){if(e===null){var u=n.type;return typeof u=="function"&&!cc(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,mm(e,t,u,r,i)):(e=ss(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&i)){var s=u.memoizedProps;if(n=n.compare,n=n!==null?n:Xi,n(s,r)&&e.ref===t.ref)return hn(e,t,i)}return t.flags|=1,e=Mn(u,r),e.ref=t.ref,e.return=t,t.child=e}function mm(e,t,n,r,i){if(e!==null){var u=e.memoizedProps;if(Xi(u,r)&&e.ref===t.ref)if(lt=!1,t.pendingProps=r=u,(e.lanes&i)!==0)e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,hn(e,t,i)}return Yo(e,t,n,r,i)}function pm(e,t,n){var r=t.pendingProps,i=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Rr,gt),gt|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(Rr,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ye(Rr,gt),gt|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ye(Rr,gt),gt|=r;return tt(e,t,i,n),t.child}function gm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yo(e,t,n,r,i){var u=dt(n)?ur:Xe.current;return u=Yr(t,u),Ur(t,i),n=Zl(e,t,n,r,u,i),r=ec(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hn(e,t,i)):(Ae&&r&&jl(t),t.flags|=1,tt(e,t,n,i),t.child)}function Ud(e,t,n,r,i){if(dt(n)){var u=!0;ks(t)}else u=!1;if(Ur(t,i),t.stateNode===null)rs(e,t),dm(t,n,r),jo(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var o=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=It(c):(c=dt(n)?ur:Xe.current,c=Yr(t,c));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||o!==c)&&Rd(t,s,r,c),_n=!1;var p=t.memoizedState;s.state=p,Ss(t,r,s,i),o=t.memoizedState,a!==r||p!==o||ct.current||_n?(typeof f=="function"&&(Ho(t,n,f,r),o=t.memoizedState),(a=_n||Od(t,n,a,r,p,o,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),s.props=r,s.state=o,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,V0(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Dt(t.type,a),s.props=c,d=t.pendingProps,p=s.context,o=n.contextType,typeof o=="object"&&o!==null?o=It(o):(o=dt(n)?ur:Xe.current,o=Yr(t,o));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||p!==o)&&Rd(t,s,r,o),_n=!1,p=t.memoizedState,s.state=p,Ss(t,r,s,i);var E=t.memoizedState;a!==d||p!==E||ct.current||_n?(typeof m=="function"&&(Ho(t,n,m,r),E=t.memoizedState),(c=_n||Od(t,n,c,r,p,E,o)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,E,o),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,E,o)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=E),s.props=r,s.state=E,s.context=o,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Vo(e,t,n,r,u,i)}function Vo(e,t,n,r,i,u){gm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Nd(t,n,!1),hn(e,t,u);r=t.stateNode,nT.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Wr(t,e.child,null,u),t.child=Wr(t,null,a,u)):tt(e,t,a,u),t.memoizedState=r.state,i&&Nd(t,n,!0),t.child}function Em(e){var t=e.stateNode;t.pendingContext?_d(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_d(e,t.context,!1),ql(e,t.containerInfo)}function Hd(e,t,n,r,i){return Vr(),Yl(i),t.flags|=256,tt(e,t,n,r),t.child}var Wo={dehydrated:null,treeContext:null,retryLane:0};function Qo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tm(e,t,n){var r=t.pendingProps,i=we.current,u=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ye(we,i&1),e===null)return Bo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,u?(r=t.mode,u=t.child,s={mode:"hidden",children:s},!(r&1)&&u!==null?(u.childLanes=0,u.pendingProps=s):u=ea(s,r,0,null),e=rr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Qo(n),t.memoizedState=Wo,e):rc(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return rT(e,t,s,r,a,i,n);if(u){u=r.fallback,s=t.mode,i=e.child,a=i.sibling;var o={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=Mn(i,o),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?u=Mn(a,u):(u=rr(u,s,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,s=e.child.memoizedState,s=s===null?Qo(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Wo,r}return u=e.child,e=u.sibling,r=Mn(u,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function rc(e,t){return t=ea({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mu(e,t,n,r){return r!==null&&Yl(r),Wr(t,e.child,null,n),e=rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rT(e,t,n,r,i,u,s){if(n)return t.flags&256?(t.flags&=-257,r=Ha(Error(H(422))),Mu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,i=t.mode,r=ea({mode:"visible",children:r.children},i,0,null),u=rr(u,i,s,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&Wr(t,e.child,null,s),t.child.memoizedState=Qo(s),t.memoizedState=Wo,u);if(!(t.mode&1))return Mu(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,u=Error(H(419)),r=Ha(u,r,void 0),Mu(e,t,s,r)}if(a=(s&e.childLanes)!==0,lt||a){if(r=Ye,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==u.retryLane&&(u.retryLane=i,fn(e,i),Bt(r,e,i,-1))}return lc(),r=Ha(Error(H(421))),Mu(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=gT.bind(null,e),i._reactRetry=t,null):(e=u.treeContext,Et=On(i.nextSibling),Tt=t,Ae=!0,Mt=null,e!==null&&(_t[Nt++]=an,_t[Nt++]=on,_t[Nt++]=sr,an=e.id,on=e.overflow,sr=t),t=rc(t,r.children),t.flags|=4096,t)}function jd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Uo(e.return,t,n)}function ja(e,t,n,r,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=i)}function bm(e,t,n){var r=t.pendingProps,i=r.revealOrder,u=r.tail;if(tt(e,t,r.children,n),r=we.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jd(e,n,t);else if(e.tag===19)jd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ye(we,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ws(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ja(t,!1,i,n,u);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ws(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ja(t,!0,n,null,u);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=Mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iT(e,t,n){switch(t.tag){case 3:Em(t),Vr();break;case 5:W0(t);break;case 1:dt(t.type)&&ks(t);break;case 4:ql(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ye(Cs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?Tm(e,t,n):(ye(we,we.current&1),e=hn(e,t,n),e!==null?e.sibling:null);ye(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ye(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,pm(e,t,n)}return hn(e,t,n)}var xm,$o,ym,km;xm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};$o=function(){};ym=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,er(qt.current);var u=null;switch(n){case"input":i=po(e,i),r=po(e,r),u=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),u=[];break;case"textarea":i=To(e,i),r=To(e,r),u=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xs)}xo(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Vi.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var o=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&o!==a&&(o!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||o&&o.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in o)o.hasOwnProperty(s)&&a[s]!==o[s]&&(n||(n={}),n[s]=o[s])}else n||(u||(u=[]),u.push(c,n)),n=o;else c==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,a=a?a.__html:void 0,o!=null&&a!==o&&(u=u||[]).push(c,o)):c==="children"?typeof o!="string"&&typeof o!="number"||(u=u||[]).push(c,""+o):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Vi.hasOwnProperty(c)?(o!=null&&c==="onScroll"&&_e("scroll",e),u||a===o||(u=[])):(u=u||[]).push(c,o))}n&&(u=u||[]).push("style",n);var c=u;(t.updateQueue=c)&&(t.flags|=4)}};km=function(e,t,n,r){n!==r&&(t.flags|=4)};function pi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function uT(e,t,n){var r=t.pendingProps;switch(zl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return dt(t.type)&&ys(),Ge(t),null;case 3:return r=t.stateNode,Qr(),Ne(ct),Ne(Xe),Xl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Du(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mt!==null&&(tl(Mt),Mt=null))),$o(e,t),Ge(t),null;case 5:Kl(t);var i=er(nu.current);if(n=t.type,e!==null&&t.stateNode!=null)ym(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Ge(t),null}if(e=er(qt.current),Du(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[$t]=t,r[eu]=u,e=(t.mode&1)!==0,n){case"dialog":_e("cancel",r),_e("close",r);break;case"iframe":case"object":case"embed":_e("load",r);break;case"video":case"audio":for(i=0;i<Ci.length;i++)_e(Ci[i],r);break;case"source":_e("error",r);break;case"img":case"image":case"link":_e("error",r),_e("load",r);break;case"details":_e("toggle",r);break;case"input":Kc(r,u),_e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},_e("invalid",r);break;case"textarea":Jc(r,u),_e("invalid",r)}xo(n,u),i=null;for(var s in u)if(u.hasOwnProperty(s)){var a=u[s];s==="children"?typeof a=="string"?r.textContent!==a&&(u.suppressHydrationWarning!==!0&&Ru(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(u.suppressHydrationWarning!==!0&&Ru(r.textContent,a,e),i=["children",""+a]):Vi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&_e("scroll",r)}switch(n){case"input":Cu(r),Xc(r,u,!0);break;case"textarea":Cu(r),Zc(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=xs)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Kh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$t]=t,e[eu]=r,xm(e,t,!1,!1),t.stateNode=e;e:{switch(s=yo(n,r),n){case"dialog":_e("cancel",e),_e("close",e),i=r;break;case"iframe":case"object":case"embed":_e("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ci.length;i++)_e(Ci[i],e);i=r;break;case"source":_e("error",e),i=r;break;case"img":case"image":case"link":_e("error",e),_e("load",e),i=r;break;case"details":_e("toggle",e),i=r;break;case"input":Kc(e,r),i=po(e,r),_e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),_e("invalid",e);break;case"textarea":Jc(e,r),i=To(e,r),_e("invalid",e);break;default:i=r}xo(n,i),a=i;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];u==="style"?Zh(e,o):u==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&Xh(e,o)):u==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&Wi(e,o):typeof o=="number"&&Wi(e,""+o):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Vi.hasOwnProperty(u)?o!=null&&u==="onScroll"&&_e("scroll",e):o!=null&&Sl(e,u,o,s))}switch(n){case"input":Cu(e),Xc(e,r,!1);break;case"textarea":Cu(e),Zc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Fn(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?Pr(e,!!r.multiple,u,!1):r.defaultValue!=null&&Pr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)km(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=er(nu.current),er(qt.current),Du(t)){if(r=t.stateNode,n=t.memoizedProps,r[$t]=t,(u=r.nodeValue!==n)&&(e=Tt,e!==null))switch(e.tag){case 3:Ru(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ru(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$t]=t,t.stateNode=r}return Ge(t),null;case 13:if(Ne(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&Et!==null&&t.mode&1&&!(t.flags&128))H0(),Vr(),t.flags|=98560,u=!1;else if(u=Du(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(H(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(H(317));u[$t]=t}else Vr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),u=!1}else Mt!==null&&(tl(Mt),Mt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?Ue===0&&(Ue=3):lc())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Qr(),$o(e,t),e===null&&Ji(t.stateNode.containerInfo),Ge(t),null;case 10:return Ql(t.type._context),Ge(t),null;case 17:return dt(t.type)&&ys(),Ge(t),null;case 19:if(Ne(we),u=t.memoizedState,u===null)return Ge(t),null;if(r=(t.flags&128)!==0,s=u.rendering,s===null)if(r)pi(u,!1);else{if(Ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ws(e),s!==null){for(t.flags|=128,pi(u,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,s=u.alternate,s===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(we,we.current&1|2),t.child}e=e.sibling}u.tail!==null&&Oe()>Gr&&(t.flags|=128,r=!0,pi(u,!1),t.lanes=4194304)}else{if(!r)if(e=ws(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!Ae)return Ge(t),null}else 2*Oe()-u.renderingStartTime>Gr&&n!==1073741824&&(t.flags|=128,r=!0,pi(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(n=u.last,n!==null?n.sibling=s:t.child=s,u.last=s)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Oe(),t.sibling=null,n=we.current,ye(we,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return oc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function sT(e,t){switch(zl(t),t.tag){case 1:return dt(t.type)&&ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qr(),Ne(ct),Ne(Xe),Xl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kl(t),null;case 13:if(Ne(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(we),null;case 4:return Qr(),null;case 10:return Ql(t.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var Fu=!1,qe=!1,aT=typeof WeakSet=="function"?WeakSet:Set,G=null;function Or(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function Go(e,t,n){try{n()}catch(r){Le(e,t,r)}}var zd=!1;function oT(e,t){if(Lo=Es,e=S0(),Hl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var s=0,a=-1,o=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==u||r!==0&&d.nodeType!==3||(o=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++c===i&&(a=s),p===u&&++f===r&&(o=s),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=a===-1||o===-1?null:{start:a,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Oo={focusedElem:e,selectionRange:n},Es=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var k=E.memoizedProps,I=E.memoizedState,g=t.stateNode,T=g.getSnapshotBeforeUpdate(t.elementType===t.type?k:Dt(t.type,k),I);g.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return E=zd,zd=!1,E}function Ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&Go(t,n,u)}i=i.next}while(i!==r)}}function Js(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _m(e){var t=e.alternate;t!==null&&(e.alternate=null,_m(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[eu],delete t[Po],delete t[VE],delete t[WE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nm(e){return e.tag===5||e.tag===3||e.tag===4}function Yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ko(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xs));else if(r!==4&&(e=e.child,e!==null))for(Ko(e,t,n),e=e.sibling;e!==null;)Ko(e,t,n),e=e.sibling}function Xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}var Ve=null,Pt=!1;function gn(e,t,n){for(n=n.child;n!==null;)Cm(e,t,n),n=n.sibling}function Cm(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Vs,n)}catch{}switch(n.tag){case 5:qe||Or(n,t);case 6:var r=Ve,i=Pt;Ve=null,gn(e,t,n),Ve=r,Pt=i,Ve!==null&&(Pt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Pt?(e=Ve,n=n.stateNode,e.nodeType===8?Da(e.parentNode,n):e.nodeType===1&&Da(e,n),qi(e)):Da(Ve,n.stateNode));break;case 4:r=Ve,i=Pt,Ve=n.stateNode.containerInfo,Pt=!0,gn(e,t,n),Ve=r,Pt=i;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var u=i,s=u.destroy;u=u.tag,s!==void 0&&(u&2||u&4)&&Go(n,t,s),i=i.next}while(i!==r)}gn(e,t,n);break;case 1:if(!qe&&(Or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,t,a)}gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,gn(e,t,n),qe=r):gn(e,t,n);break;default:gn(e,t,n)}}function Vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aT),t.forEach(function(r){var i=ET.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var u=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Ve=a.stateNode,Pt=!1;break e;case 3:Ve=a.stateNode.containerInfo,Pt=!0;break e;case 4:Ve=a.stateNode.containerInfo,Pt=!0;break e}a=a.return}if(Ve===null)throw Error(H(160));Cm(u,s,i),Ve=null,Pt=!1;var o=i.alternate;o!==null&&(o.return=null),i.return=null}catch(c){Le(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Am(t,e),t=t.sibling}function Am(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rt(t,e),zt(e),r&4){try{Ri(3,e,e.return),Js(3,e)}catch(k){Le(e,e.return,k)}try{Ri(5,e,e.return)}catch(k){Le(e,e.return,k)}}break;case 1:Rt(t,e),zt(e),r&512&&n!==null&&Or(n,n.return);break;case 5:if(Rt(t,e),zt(e),r&512&&n!==null&&Or(n,n.return),e.flags&32){var i=e.stateNode;try{Wi(i,"")}catch(k){Le(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var u=e.memoizedProps,s=n!==null?n.memoizedProps:u,a=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{a==="input"&&u.type==="radio"&&u.name!=null&&Gh(i,u),yo(a,s);var c=yo(a,u);for(s=0;s<o.length;s+=2){var f=o[s],d=o[s+1];f==="style"?Zh(i,d):f==="dangerouslySetInnerHTML"?Xh(i,d):f==="children"?Wi(i,d):Sl(i,f,d,c)}switch(a){case"input":go(i,u);break;case"textarea":qh(i,u);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!u.multiple;var m=u.value;m!=null?Pr(i,!!u.multiple,m,!1):p!==!!u.multiple&&(u.defaultValue!=null?Pr(i,!!u.multiple,u.defaultValue,!0):Pr(i,!!u.multiple,u.multiple?[]:"",!1))}i[eu]=u}catch(k){Le(e,e.return,k)}}break;case 6:if(Rt(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(H(162));i=e.stateNode,u=e.memoizedProps;try{i.nodeValue=u}catch(k){Le(e,e.return,k)}}break;case 3:if(Rt(t,e),zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(k){Le(e,e.return,k)}break;case 4:Rt(t,e),zt(e);break;case 13:Rt(t,e),zt(e),i=e.child,i.flags&8192&&(u=i.memoizedState!==null,i.stateNode.isHidden=u,!u||i.alternate!==null&&i.alternate.memoizedState!==null||(sc=Oe())),r&4&&Vd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(c=qe)||f,Rt(t,e),qe=c):Rt(t,e),zt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(G=e,f=e.child;f!==null;){for(d=G=f;G!==null;){switch(p=G,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ri(4,p,p.return);break;case 1:Or(p,p.return);var E=p.stateNode;if(typeof E.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,E.props=t.memoizedProps,E.state=t.memoizedState,E.componentWillUnmount()}catch(k){Le(r,n,k)}}break;case 5:Or(p,p.return);break;case 22:if(p.memoizedState!==null){Qd(d);continue}}m!==null?(m.return=p,G=m):Qd(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,c?(u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(a=d.stateNode,o=d.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null,a.style.display=Jh("display",s))}catch(k){Le(e,e.return,k)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(k){Le(e,e.return,k)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Rt(t,e),zt(e),r&4&&Vd(e);break;case 21:break;default:Rt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Nm(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wi(i,""),r.flags&=-33);var u=Yd(e);Xo(e,u,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Yd(e);Ko(e,a,s);break;default:throw Error(H(161))}}catch(o){Le(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lT(e,t,n){G=e,Sm(e)}function Sm(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var i=G,u=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Fu;if(!s){var a=i.alternate,o=a!==null&&a.memoizedState!==null||qe;a=Fu;var c=qe;if(Fu=s,(qe=o)&&!c)for(G=i;G!==null;)s=G,o=s.child,s.tag===22&&s.memoizedState!==null?$d(i):o!==null?(o.return=s,G=o):$d(i);for(;u!==null;)G=u,Sm(u),u=u.sibling;G=i,Fu=a,qe=c}Wd(e)}else i.subtreeFlags&8772&&u!==null?(u.return=i,G=u):Wd(e)}}function Wd(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||Js(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Dt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Id(t,u,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Id(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&qi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}qe||t.flags&512&&qo(t)}catch(p){Le(t,t.return,p)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Qd(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function $d(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Js(4,t)}catch(o){Le(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(o){Le(t,i,o)}}var u=t.return;try{qo(t)}catch(o){Le(t,u,o)}break;case 5:var s=t.return;try{qo(t)}catch(o){Le(t,s,o)}}}catch(o){Le(t,t.return,o)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var cT=Math.ceil,Ls=mn.ReactCurrentDispatcher,ic=mn.ReactCurrentOwner,wt=mn.ReactCurrentBatchConfig,fe=0,Ye=null,Me=null,We=0,gt=0,Rr=Hn(0),Ue=0,su=null,or=0,Zs=0,uc=0,Di=null,ot=null,sc=0,Gr=1/0,rn=null,Os=!1,Jo=null,Dn=null,Bu=!1,Sn=null,Rs=0,Pi=0,Zo=null,is=-1,us=0;function rt(){return fe&6?Oe():is!==-1?is:is=Oe()}function Pn(e){return e.mode&1?fe&2&&We!==0?We&-We:$E.transition!==null?(us===0&&(us=d0()),us):(e=pe,e!==0||(e=window.event,e=e===void 0?16:T0(e.type)),e):1}function Bt(e,t,n,r){if(50<Pi)throw Pi=0,Zo=null,Error(H(185));hu(e,n,r),(!(fe&2)||e!==Ye)&&(e===Ye&&(!(fe&2)&&(Zs|=n),Ue===4&&Cn(e,We)),ft(e,r),n===1&&fe===0&&!(t.mode&1)&&(Gr=Oe()+500,qs&&jn()))}function ft(e,t){var n=e.callbackNode;$g(e,t);var r=gs(e,e===Ye?We:0);if(r===0)n!==null&&nd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nd(n),t===1)e.tag===0?QE(Gd.bind(null,e)):F0(Gd.bind(null,e)),zE(function(){!(fe&6)&&jn()}),n=null;else{switch(f0(r)){case 1:n=Ol;break;case 4:n=l0;break;case 16:n=ps;break;case 536870912:n=c0;break;default:n=ps}n=Pm(n,wm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wm(e,t){if(is=-1,us=0,fe&6)throw Error(H(327));var n=e.callbackNode;if(Hr()&&e.callbackNode!==n)return null;var r=gs(e,e===Ye?We:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ds(e,r);else{t=r;var i=fe;fe|=2;var u=vm();(Ye!==e||We!==t)&&(rn=null,Gr=Oe()+500,nr(e,t));do try{hT();break}catch(a){Im(e,a)}while(!0);Wl(),Ls.current=u,fe=i,Me!==null?t=0:(Ye=null,We=0,t=Ue)}if(t!==0){if(t===2&&(i=Ao(e),i!==0&&(r=i,t=el(e,i))),t===1)throw n=su,nr(e,0),Cn(e,r),ft(e,Oe()),n;if(t===6)Cn(e,r);else{if(i=e.current.alternate,!(r&30)&&!dT(i)&&(t=Ds(e,r),t===2&&(u=Ao(e),u!==0&&(r=u,t=el(e,u))),t===1))throw n=su,nr(e,0),Cn(e,r),ft(e,Oe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Kn(e,ot,rn);break;case 3:if(Cn(e,r),(r&130023424)===r&&(t=sc+500-Oe(),10<t)){if(gs(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Do(Kn.bind(null,e,ot,rn),t);break}Kn(e,ot,rn);break;case 4:if(Cn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Ft(r);u=1<<s,s=t[s],s>i&&(i=s),r&=~u}if(r=i,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cT(r/1960))-r,10<r){e.timeoutHandle=Do(Kn.bind(null,e,ot,rn),r);break}Kn(e,ot,rn);break;case 5:Kn(e,ot,rn);break;default:throw Error(H(329))}}}return ft(e,Oe()),e.callbackNode===n?wm.bind(null,e):null}function el(e,t){var n=Di;return e.current.memoizedState.isDehydrated&&(nr(e,t).flags|=256),e=Ds(e,t),e!==2&&(t=ot,ot=n,t!==null&&tl(t)),e}function tl(e){ot===null?ot=e:ot.push.apply(ot,e)}function dT(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],u=i.getSnapshot;i=i.value;try{if(!Ht(u(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cn(e,t){for(t&=~uc,t&=~Zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function Gd(e){if(fe&6)throw Error(H(327));Hr();var t=gs(e,0);if(!(t&1))return ft(e,Oe()),null;var n=Ds(e,t);if(e.tag!==0&&n===2){var r=Ao(e);r!==0&&(t=r,n=el(e,r))}if(n===1)throw n=su,nr(e,0),Cn(e,t),ft(e,Oe()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kn(e,ot,rn),ft(e,Oe()),null}function ac(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(Gr=Oe()+500,qs&&jn())}}function lr(e){Sn!==null&&Sn.tag===0&&!(fe&6)&&Hr();var t=fe;fe|=1;var n=wt.transition,r=pe;try{if(wt.transition=null,pe=1,e)return e()}finally{pe=r,wt.transition=n,fe=t,!(fe&6)&&jn()}}function oc(){gt=Rr.current,Ne(Rr)}function nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jE(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(zl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ys();break;case 3:Qr(),Ne(ct),Ne(Xe),Xl();break;case 5:Kl(r);break;case 4:Qr();break;case 13:Ne(we);break;case 19:Ne(we);break;case 10:Ql(r.type._context);break;case 22:case 23:oc()}n=n.return}if(Ye=e,Me=e=Mn(e.current,null),We=gt=t,Ue=0,su=null,uc=Zs=or=0,ot=Di=null,Zn!==null){for(t=0;t<Zn.length;t++)if(n=Zn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,u=n.pending;if(u!==null){var s=u.next;u.next=i,r.next=s}n.pending=r}Zn=null}return e}function Im(e,t){do{var n=Me;try{if(Wl(),ts.current=vs,Is){for(var r=Ie.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Is=!1}if(ar=0,je=Be=Ie=null,Oi=!1,ru=0,ic.current=null,n===null||n.return===null){Ue=1,su=t,Me=null;break}e:{var u=e,s=n.return,a=n,o=t;if(t=We,a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var c=o,f=a,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=Pd(s);if(m!==null){m.flags&=-257,Md(m,s,a,u,t),m.mode&1&&Dd(u,c,t),t=m,o=c;var E=t.updateQueue;if(E===null){var k=new Set;k.add(o),t.updateQueue=k}else E.add(o);break e}else{if(!(t&1)){Dd(u,c,t),lc();break e}o=Error(H(426))}}else if(Ae&&a.mode&1){var I=Pd(s);if(I!==null){!(I.flags&65536)&&(I.flags|=256),Md(I,s,a,u,t),Yl($r(o,a));break e}}u=o=$r(o,a),Ue!==4&&(Ue=2),Di===null?Di=[u]:Di.push(u),u=s;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var g=fm(u,o,t);wd(u,g);break e;case 1:a=o;var T=u.type,y=u.stateNode;if(!(u.flags&128)&&(typeof T.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Dn===null||!Dn.has(y)))){u.flags|=65536,t&=-t,u.lanes|=t;var S=hm(u,a,t);wd(u,S);break e}}u=u.return}while(u!==null)}Om(n)}catch(D){t=D,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(!0)}function vm(){var e=Ls.current;return Ls.current=vs,e===null?vs:e}function lc(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ye===null||!(or&268435455)&&!(Zs&268435455)||Cn(Ye,We)}function Ds(e,t){var n=fe;fe|=2;var r=vm();(Ye!==e||We!==t)&&(rn=null,nr(e,t));do try{fT();break}catch(i){Im(e,i)}while(!0);if(Wl(),fe=n,Ls.current=r,Me!==null)throw Error(H(261));return Ye=null,We=0,Ue}function fT(){for(;Me!==null;)Lm(Me)}function hT(){for(;Me!==null&&!Bg();)Lm(Me)}function Lm(e){var t=Dm(e.alternate,e,gt);e.memoizedProps=e.pendingProps,t===null?Om(e):Me=t,ic.current=null}function Om(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=sT(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Me=null;return}}else if(n=uT(n,t,gt),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Ue===0&&(Ue=5)}function Kn(e,t,n){var r=pe,i=wt.transition;try{wt.transition=null,pe=1,mT(e,t,n,r)}finally{wt.transition=i,pe=r}return null}function mT(e,t,n,r){do Hr();while(Sn!==null);if(fe&6)throw Error(H(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Gg(e,u),e===Ye&&(Me=Ye=null,We=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bu||(Bu=!0,Pm(ps,function(){return Hr(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=wt.transition,wt.transition=null;var s=pe;pe=1;var a=fe;fe|=4,ic.current=null,oT(e,n),Am(n,e),DE(Oo),Es=!!Lo,Oo=Lo=null,e.current=n,lT(n),Ug(),fe=a,pe=s,wt.transition=u}else e.current=n;if(Bu&&(Bu=!1,Sn=e,Rs=i),u=e.pendingLanes,u===0&&(Dn=null),zg(n.stateNode),ft(e,Oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Os)throw Os=!1,e=Jo,Jo=null,e;return Rs&1&&e.tag!==0&&Hr(),u=e.pendingLanes,u&1?e===Zo?Pi++:(Pi=0,Zo=e):Pi=0,jn(),null}function Hr(){if(Sn!==null){var e=f0(Rs),t=wt.transition,n=pe;try{if(wt.transition=null,pe=16>e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,Rs=0,fe&6)throw Error(H(331));var i=fe;for(fe|=4,G=e.current;G!==null;){var u=G,s=u.child;if(G.flags&16){var a=u.deletions;if(a!==null){for(var o=0;o<a.length;o++){var c=a[o];for(G=c;G!==null;){var f=G;switch(f.tag){case 0:case 11:case 15:Ri(8,f,u)}var d=f.child;if(d!==null)d.return=f,G=d;else for(;G!==null;){f=G;var p=f.sibling,m=f.return;if(_m(f),f===c){G=null;break}if(p!==null){p.return=m,G=p;break}G=m}}}var E=u.alternate;if(E!==null){var k=E.child;if(k!==null){E.child=null;do{var I=k.sibling;k.sibling=null,k=I}while(k!==null)}}G=u}}if(u.subtreeFlags&2064&&s!==null)s.return=u,G=s;else e:for(;G!==null;){if(u=G,u.flags&2048)switch(u.tag){case 0:case 11:case 15:Ri(9,u,u.return)}var g=u.sibling;if(g!==null){g.return=u.return,G=g;break e}G=u.return}}var T=e.current;for(G=T;G!==null;){s=G;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,G=y;else e:for(s=T;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Js(9,a)}}catch(D){Le(a,a.return,D)}if(a===s){G=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,G=S;break e}G=a.return}}if(fe=i,jn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Vs,e)}catch{}r=!0}return r}finally{pe=n,wt.transition=t}}return!1}function qd(e,t,n){t=$r(n,t),t=fm(e,t,1),e=Rn(e,t,1),t=rt(),e!==null&&(hu(e,1,t),ft(e,t))}function Le(e,t,n){if(e.tag===3)qd(e,e,n);else for(;t!==null;){if(t.tag===3){qd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Dn===null||!Dn.has(r))){e=$r(n,e),e=hm(t,e,1),t=Rn(t,e,1),e=rt(),t!==null&&(hu(t,1,e),ft(t,e));break}}t=t.return}}function pT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Ye===e&&(We&n)===n&&(Ue===4||Ue===3&&(We&130023424)===We&&500>Oe()-sc?nr(e,0):uc|=n),ft(e,t)}function Rm(e,t){t===0&&(e.mode&1?(t=wu,wu<<=1,!(wu&130023424)&&(wu=4194304)):t=1);var n=rt();e=fn(e,t),e!==null&&(hu(e,t,n),ft(e,n))}function gT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rm(e,n)}function ET(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),Rm(e,n)}var Dm;Dm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,iT(e,t,n);lt=!!(e.flags&131072)}else lt=!1,Ae&&t.flags&1048576&&B0(t,Ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var i=Yr(t,Xe.current);Ur(t,n),i=Zl(null,t,r,e,i,n);var u=ec();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(u=!0,ks(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Gl(t),i.updater=Xs,t.stateNode=i,i._reactInternals=t,jo(t,r,e,n),t=Vo(null,t,r,!0,u,n)):(t.tag=0,Ae&&u&&jl(t),tt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=bT(r),e=Dt(r,e),i){case 0:t=Yo(null,t,r,e,n);break e;case 1:t=Ud(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=Bd(null,t,r,Dt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),Yo(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),Ud(e,t,r,i,n);case 3:e:{if(Em(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,i=u.element,V0(e,t),Ss(t,r,null,n);var s=t.memoizedState;if(r=s.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=$r(Error(H(423)),t),t=Hd(e,t,r,n,i);break e}else if(r!==i){i=$r(Error(H(424)),t),t=Hd(e,t,r,n,i);break e}else for(Et=On(t.stateNode.containerInfo.firstChild),Tt=t,Ae=!0,Mt=null,n=z0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vr(),r===i){t=hn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return W0(t),e===null&&Bo(t),r=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,s=i.children,Ro(r,i)?s=null:u!==null&&Ro(r,u)&&(t.flags|=32),gm(e,t),tt(e,t,s,n),t.child;case 6:return e===null&&Bo(t),null;case 13:return Tm(e,t,n);case 4:return ql(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wr(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),Fd(e,t,r,i,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,u=t.memoizedProps,s=i.value,ye(Cs,r._currentValue),r._currentValue=s,u!==null)if(Ht(u.value,s)){if(u.children===i.children&&!ct.current){t=hn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var a=u.dependencies;if(a!==null){s=u.child;for(var o=a.firstContext;o!==null;){if(o.context===r){if(u.tag===1){o=ln(-1,n&-n),o.tag=2;var c=u.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?o.next=o:(o.next=f.next,f.next=o),c.pending=o}}u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),Uo(u.return,n,t),a.lanes|=n;break}o=o.next}}else if(u.tag===10)s=u.type===t.type?null:u.child;else if(u.tag===18){if(s=u.return,s===null)throw Error(H(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Uo(s,n,t),s=u.sibling}else s=u.child;if(s!==null)s.return=u;else for(s=u;s!==null;){if(s===t){s=null;break}if(u=s.sibling,u!==null){u.return=s.return,s=u;break}s=s.return}u=s}tt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ur(t,n),i=It(i),r=r(i),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,i=Dt(r,t.pendingProps),i=Dt(r.type,i),Bd(e,t,r,i,n);case 15:return mm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),rs(e,t),t.tag=1,dt(r)?(e=!0,ks(t)):e=!1,Ur(t,n),dm(t,r,i),jo(t,r,i,n),Vo(null,t,r,!0,e,n);case 19:return bm(e,t,n);case 22:return pm(e,t,n)}throw Error(H(156,t.tag))};function Pm(e,t){return o0(e,t)}function TT(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,r){return new TT(e,t,n,r)}function cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bT(e){if(typeof e=="function")return cc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Il)return 11;if(e===vl)return 14}return 2}function Mn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ss(e,t,n,r,i,u){var s=2;if(r=e,typeof e=="function")cc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _r:return rr(n.children,i,u,t);case wl:s=8,i|=8;break;case co:return e=St(12,n,t,i|2),e.elementType=co,e.lanes=u,e;case fo:return e=St(13,n,t,i),e.elementType=fo,e.lanes=u,e;case ho:return e=St(19,n,t,i),e.elementType=ho,e.lanes=u,e;case Wh:return ea(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yh:s=10;break e;case Vh:s=9;break e;case Il:s=11;break e;case vl:s=14;break e;case kn:s=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=St(s,n,t,i),t.elementType=e,t.type=r,t.lanes=u,t}function rr(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function ea(e,t,n,r){return e=St(22,e,r,t),e.elementType=Wh,e.lanes=n,e.stateNode={isHidden:!1},e}function za(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Ya(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xT(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_a(0),this.expirationTimes=_a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_a(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dc(e,t,n,r,i,u,s,a,o){return e=new xT(e,t,n,a,o),t===1?(t=1,u===!0&&(t|=8)):t=0,u=St(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gl(u),e}function yT(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mm(e){if(!e)return Bn;e=e._reactInternals;e:{if(fr(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(dt(n))return M0(e,n,t)}return t}function Fm(e,t,n,r,i,u,s,a,o){return e=dc(n,r,!0,e,i,u,s,a,o),e.context=Mm(null),n=e.current,r=rt(),i=Pn(n),u=ln(r,i),u.callback=t??null,Rn(n,u,i),e.current.lanes=i,hu(e,i,r),ft(e,r),e}function ta(e,t,n,r){var i=t.current,u=rt(),s=Pn(i);return n=Mm(n),t.context===null?t.context=n:t.pendingContext=n,t=ln(u,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Rn(i,t,s),e!==null&&(Bt(e,i,s,u),es(e,i,s)),s}function Ps(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Kd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fc(e,t){Kd(e,t),(e=e.alternate)&&Kd(e,t)}function kT(){return null}var Bm=typeof reportError=="function"?reportError:function(e){console.error(e)};function hc(e){this._internalRoot=e}na.prototype.render=hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));ta(e,t,null,null)};na.prototype.unmount=hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lr(function(){ta(null,e,null,null)}),t[dn]=null}};function na(e){this._internalRoot=e}na.prototype.unstable_scheduleHydration=function(e){if(e){var t=p0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nn.length&&t!==0&&t<Nn[n].priority;n++);Nn.splice(n,0,e),n===0&&E0(e)}};function mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ra(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xd(){}function _T(e,t,n,r,i){if(i){if(typeof r=="function"){var u=r;r=function(){var c=Ps(s);u.call(c)}}var s=Fm(t,r,e,0,null,!1,!1,"",Xd);return e._reactRootContainer=s,e[dn]=s.current,Ji(e.nodeType===8?e.parentNode:e),lr(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Ps(o);a.call(c)}}var o=dc(e,0,!1,null,null,!1,!1,"",Xd);return e._reactRootContainer=o,e[dn]=o.current,Ji(e.nodeType===8?e.parentNode:e),lr(function(){ta(t,o,n,r)}),o}function ia(e,t,n,r,i){var u=n._reactRootContainer;if(u){var s=u;if(typeof i=="function"){var a=i;i=function(){var o=Ps(s);a.call(o)}}ta(t,s,e,i)}else s=_T(n,t,e,i,r);return Ps(s)}h0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ni(t.pendingLanes);n!==0&&(Rl(t,n|1),ft(t,Oe()),!(fe&6)&&(Gr=Oe()+500,jn()))}break;case 13:lr(function(){var r=fn(e,1);if(r!==null){var i=rt();Bt(r,e,1,i)}}),fc(e,1)}};Dl=function(e){if(e.tag===13){var t=fn(e,134217728);if(t!==null){var n=rt();Bt(t,e,134217728,n)}fc(e,134217728)}};m0=function(e){if(e.tag===13){var t=Pn(e),n=fn(e,t);if(n!==null){var r=rt();Bt(n,e,t,r)}fc(e,t)}};p0=function(){return pe};g0=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};_o=function(e,t,n){switch(t){case"input":if(go(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Gs(r);if(!i)throw Error(H(90));$h(r),go(r,i)}}}break;case"textarea":qh(e,n);break;case"select":t=n.value,t!=null&&Pr(e,!!n.multiple,t,!1)}};n0=ac;r0=lr;var NT={usingClientEntryPoint:!1,Events:[pu,Sr,Gs,e0,t0,ac]},gi={findFiberByHostInstance:Jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},CT={bundleType:gi.bundleType,version:gi.version,rendererPackageName:gi.rendererPackageName,rendererConfig:gi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=s0(e),e===null?null:e.stateNode},findFiberByHostInstance:gi.findFiberByHostInstance||kT,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 Uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uu.isDisabled&&Uu.supportsFiber)try{Vs=Uu.inject(CT),Gt=Uu}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NT;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mc(t))throw Error(H(200));return yT(e,t,null,n)};yt.createRoot=function(e,t){if(!mc(e))throw Error(H(299));var n=!1,r="",i=Bm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dc(e,1,!1,null,null,n,!1,r,i),e[dn]=t.current,Ji(e.nodeType===8?e.parentNode:e),new hc(t)};yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=s0(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return lr(e)};yt.hydrate=function(e,t,n){if(!ra(t))throw Error(H(200));return ia(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!mc(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,i=!1,u="",s=Bm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Fm(t,null,e,1,n??null,i,!1,u,s),e[dn]=t.current,Ji(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new na(t)};yt.render=function(e,t,n){if(!ra(t))throw Error(H(200));return ia(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!ra(e))throw Error(H(40));return e._reactRootContainer?(lr(function(){ia(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1};yt.unstable_batchedUpdates=ac;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ra(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return ia(e,t,n,!1,r)};yt.version="18.3.1-next-f1338f8080-20240426";function Um(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Um)}catch(e){console.error(e)}}Um(),Uh.exports=yt;var AT=Uh.exports,Jd=AT;oo.createRoot=Jd.createRoot,oo.hydrateRoot=Jd.hydrateRoot;function Hm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Hm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ST(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hm(e))&&(r&&(r+=" "),r+=t);return r}const wT=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},IT=(e,t)=>({classGroupId:e,validator:t}),jm=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ms="-",Zd=[],vT="arbitrary..",LT=e=>{const t=RT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return OT(s);const a=s.split(Ms),o=a[0]===""&&a.length>1?1:0;return zm(a,o,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const o=r[s],c=n[s];return o?c?wT(c,o):o:c||Zd}return n[s]||Zd}}},zm=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],u=n.nextPart.get(i);if(u){const c=zm(e,t+1,u);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Ms):e.slice(t).join(Ms),o=s.length;for(let c=0;c<o;c++){const f=s[c];if(f.validator(a))return f.classGroupId}},OT=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?vT+r:void 0})(),RT=e=>{const{theme:t,classGroups:n}=e;return DT(n,t)},DT=(e,t)=>{const n=jm();for(const r in e){const i=e[r];pc(i,n,r,t)}return n},pc=(e,t,n,r)=>{const i=e.length;for(let u=0;u<i;u++){const s=e[u];PT(s,t,n,r)}},PT=(e,t,n,r)=>{if(typeof e=="string"){MT(e,t,n);return}if(typeof e=="function"){FT(e,t,n,r);return}BT(e,t,n,r)},MT=(e,t,n)=>{const r=e===""?t:Ym(t,e);r.classGroupId=n},FT=(e,t,n,r)=>{if(UT(e)){pc(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(IT(n,e))},BT=(e,t,n,r)=>{const i=Object.entries(e),u=i.length;for(let s=0;s<u;s++){const[a,o]=i[s];pc(o,Ym(t,a),n,r)}},Ym=(e,t)=>{let n=e;const r=t.split(Ms),i=r.length;for(let u=0;u<i;u++){const s=r[u];let a=n.nextPart.get(s);a||(a=jm(),n.nextPart.set(s,a)),n=a}return n},UT=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,HT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(u,s)=>{n[u]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(u){let s=n[u];if(s!==void 0)return s;if((s=r[u])!==void 0)return i(u,s),s},set(u,s){u in n?n[u]=s:i(u,s)}}},nl="!",ef=":",jT=[],tf=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),zT=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const u=[];let s=0,a=0,o=0,c;const f=i.length;for(let k=0;k<f;k++){const I=i[k];if(s===0&&a===0){if(I===ef){u.push(i.slice(o,k)),o=k+1;continue}if(I==="/"){c=k;continue}}I==="["?s++:I==="]"?s--:I==="("?a++:I===")"&&a--}const d=u.length===0?i:i.slice(o);let p=d,m=!1;d.endsWith(nl)?(p=d.slice(0,-1),m=!0):d.startsWith(nl)&&(p=d.slice(1),m=!0);const E=c&&c>o?c-o:void 0;return tf(u,m,p,E)};if(t){const i=t+ef,u=r;r=s=>s.startsWith(i)?u(s.slice(i.length)):tf(jT,!1,s,void 0,!0)}if(n){const i=r;r=u=>n({className:u,parseClassName:i})}return r},YT=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let u=0;u<n.length;u++){const s=n[u],a=s[0]==="[",o=t.has(s);a||o?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},VT=e=>({cache:HT(e.cacheSize),parseClassName:zT(e),sortModifiers:YT(e),postfixLookupClassGroupIds:WT(e),...LT(e)}),WT=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},QT=/\s+/,$T=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:u,postfixLookupClassGroupIds:s}=t,a=[],o=e.trim().split(QT);let c="";for(let f=o.length-1;f>=0;f-=1){const d=o[f],{isExternal:p,modifiers:m,hasImportantModifier:E,baseClassName:k,maybePostfixModifierPosition:I}=n(d);if(p){c=d+(c.length>0?" "+c:c);continue}let g=!!I,T;if(g){const O=k.substring(0,I);T=r(O);const L=T&&s[T]?r(k):void 0;L&&L!==T&&(T=L,g=!1)}else T=r(k);if(!T){if(!g){c=d+(c.length>0?" "+c:c);continue}if(T=r(k),!T){c=d+(c.length>0?" "+c:c);continue}g=!1}const y=m.length===0?"":m.length===1?m[0]:u(m).join(":"),S=E?y+nl:y,D=S+T;if(a.indexOf(D)>-1)continue;a.push(D);const C=i(T,g);for(let O=0;O<C.length;++O){const L=C[O];a.push(S+L)}c=d+(c.length>0?" "+c:c)}return c},GT=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Vm(n))&&(i&&(i+=" "),i+=r);return i},Vm=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vm(e[r]))&&(n&&(n+=" "),n+=t);return n},qT=(e,...t)=>{let n,r,i,u;const s=o=>{const c=t.reduce((f,d)=>d(f),e());return n=VT(c),r=n.cache.get,i=n.cache.set,u=a,a(o)},a=o=>{const c=r(o);if(c)return c;const f=$T(o,n);return i(o,f),f};return u=s,(...o)=>u(GT(...o))},KT=[],Fe=e=>{const t=n=>n[e]||KT;return t.isThemeGetter=!0,t},Wm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,JT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,En=e=>XT.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Yt=e=>!!e&&Number.isInteger(Number(e)),Va=e=>e.endsWith("%")&&re(e.slice(0,-1)),nn=e=>JT.test(e),$m=()=>!0,rb=e=>ZT.test(e)&&!eb.test(e),gc=()=>!1,ib=e=>tb.test(e),ub=e=>nb.test(e),sb=e=>!Q(e)&&!$(e),ab=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ob=e=>zn(e,Km,gc),Q=e=>Wm.test(e),Qn=e=>zn(e,Xm,rb),nf=e=>zn(e,gb,re),lb=e=>zn(e,Zm,$m),cb=e=>zn(e,Jm,gc),rf=e=>zn(e,Gm,gc),db=e=>zn(e,qm,ub),Hu=e=>zn(e,ep,ib),$=e=>Qm.test(e),Ei=e=>hr(e,Xm),fb=e=>hr(e,Jm),uf=e=>hr(e,Gm),hb=e=>hr(e,Km),mb=e=>hr(e,qm),ju=e=>hr(e,ep,!0),pb=e=>hr(e,Zm,!0),zn=(e,t,n)=>{const r=Wm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},hr=(e,t,n=!1)=>{const r=Qm.exec(e);return r?r[1]?t(r[1]):n:!1},Gm=e=>e==="position"||e==="percentage",qm=e=>e==="image"||e==="url",Km=e=>e==="length"||e==="size"||e==="bg-size",Xm=e=>e==="length",gb=e=>e==="number",Jm=e=>e==="family-name",Zm=e=>e==="number"||e==="weight",ep=e=>e==="shadow",Eb=()=>{const e=Fe("color"),t=Fe("font"),n=Fe("text"),r=Fe("font-weight"),i=Fe("tracking"),u=Fe("leading"),s=Fe("breakpoint"),a=Fe("container"),o=Fe("spacing"),c=Fe("radius"),f=Fe("shadow"),d=Fe("inset-shadow"),p=Fe("text-shadow"),m=Fe("drop-shadow"),E=Fe("blur"),k=Fe("perspective"),I=Fe("aspect"),g=Fe("ease"),T=Fe("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...S(),$,Q],C=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],L=()=>[$,Q,o],W=()=>[En,"full","auto",...L()],w=()=>[Yt,"none","subgrid",$,Q],B=()=>["auto",{span:["full",Yt,$,Q]},Yt,$,Q],V=()=>[Yt,"auto",$,Q],ee=()=>["auto","min","max","fr",$,Q],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...L()],he=()=>[En,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],z=()=>[En,"screen","full","dvw","lvw","svw","min","max","fit",...L()],q=()=>[En,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],x=()=>[e,$,Q],ae=()=>[...S(),uf,rf,{position:[$,Q]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",hb,ob,{size:[$,Q]}],Se=()=>[Va,Ei,Qn],Ee=()=>["","none","full",c,$,Q],te=()=>["",re,Ei,Qn],et=()=>["solid","dashed","dotted","double"],Lt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[re,Va,uf,rf],Jt=()=>["","none",E,$,Q],Zt=()=>["none",re,$,Q],gr=()=>["none",re,$,Q],si=()=>[re,$,Q],Er=()=>[En,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nn],breakpoint:[nn],color:[$m],container:[nn],"drop-shadow":[nn],ease:["in","out","in-out"],font:[sb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nn],shadow:[nn],spacing:["px",re],text:[nn],"text-shadow":[nn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",En,Q,$,I]}],container:["container"],"container-type":[{"@container":["","normal","size",$,Q]}],"container-named":[ab],columns:[{columns:[re,Q,$,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Yt,"auto",$,Q]}],basis:[{basis:[En,"full","auto",a,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,En,"auto","initial","none",Q]}],grow:[{grow:["",re,$,Q]}],shrink:[{shrink:["",re,$,Q]}],order:[{order:[Yt,"first","last","none",$,Q]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mbs:[{mbs:oe()}],mbe:[{mbe:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:he()}],"inline-size":[{inline:["auto",...z()]}],"min-inline-size":[{"min-inline":["auto",...z()]}],"max-inline-size":[{"max-inline":["none",...z()]}],"block-size":[{block:["auto",...q()]}],"min-block-size":[{"min-block":["auto",...q()]}],"max-block-size":[{"max-block":["none",...q()]}],w:[{w:[a,"screen",...he()]}],"min-w":[{"min-w":[a,"screen","none",...he()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...he()]}],h:[{h:["screen","lh",...he()]}],"min-h":[{"min-h":["screen","lh","none",...he()]}],"max-h":[{"max-h":["screen","lh",...he()]}],"font-size":[{text:["base",n,Ei,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,pb,lb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Va,Q]}],"font-family":[{font:[fb,cb,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[re,"none",$,nf]}],leading:[{leading:[u,...L()]}],"list-image":[{"list-image":["none",$,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...et(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",$,Qn]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[re,"auto",$,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Yt,$,Q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yt,$,Q],radial:["",$,Q],conic:[Yt,$,Q]},mb,db]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:Ee()}],"rounded-s":[{"rounded-s":Ee()}],"rounded-e":[{"rounded-e":Ee()}],"rounded-t":[{"rounded-t":Ee()}],"rounded-r":[{"rounded-r":Ee()}],"rounded-b":[{"rounded-b":Ee()}],"rounded-l":[{"rounded-l":Ee()}],"rounded-ss":[{"rounded-ss":Ee()}],"rounded-se":[{"rounded-se":Ee()}],"rounded-ee":[{"rounded-ee":Ee()}],"rounded-es":[{"rounded-es":Ee()}],"rounded-tl":[{"rounded-tl":Ee()}],"rounded-tr":[{"rounded-tr":Ee()}],"rounded-br":[{"rounded-br":Ee()}],"rounded-bl":[{"rounded-bl":Ee()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...et(),"hidden","none"]}],"divide-style":[{divide:[...et(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...et(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,$,Q]}],"outline-w":[{outline:["",re,Ei,Qn]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",f,ju,Hu]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",d,ju,Hu]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[re,Qn]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",p,ju,Hu]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[re,$,Q]}],"mix-blend":[{"mix-blend":[...Lt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Lt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,Q]}],filter:[{filter:["","none",$,Q]}],blur:[{blur:Jt()}],brightness:[{brightness:[re,$,Q]}],contrast:[{contrast:[re,$,Q]}],"drop-shadow":[{"drop-shadow":["","none",m,ju,Hu]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",re,$,Q]}],"hue-rotate":[{"hue-rotate":[re,$,Q]}],invert:[{invert:["",re,$,Q]}],saturate:[{saturate:[re,$,Q]}],sepia:[{sepia:["",re,$,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",$,Q]}],"backdrop-blur":[{"backdrop-blur":Jt()}],"backdrop-brightness":[{"backdrop-brightness":[re,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[re,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,$,Q]}],"backdrop-invert":[{"backdrop-invert":["",re,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[re,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[re,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",re,$,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",$,Q]}],ease:[{ease:["linear","initial",g,$,Q]}],delay:[{delay:[re,$,Q]}],animate:[{animate:["none",T,$,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,$,Q]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Zt()}],"rotate-x":[{"rotate-x":Zt()}],"rotate-y":[{"rotate-y":Zt()}],"rotate-z":[{"rotate-z":Zt()}],scale:[{scale:gr()}],"scale-x":[{"scale-x":gr()}],"scale-y":[{"scale-y":gr()}],"scale-z":[{"scale-z":gr()}],"scale-3d":["scale-3d"],skew:[{skew:si()}],"skew-x":[{"skew-x":si()}],"skew-y":[{"skew-y":si()}],transform:[{transform:[$,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Er()}],"translate-x":[{"translate-x":Er()}],"translate-y":[{"translate-y":Er()}],"translate-z":[{"translate-z":Er()}],"translate-none":["translate-none"],zoom:[{zoom:[Yt,$,Q]}],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,Q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,Q]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[re,Ei,Qn,nf]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Tb=qT(Eb);function Z(...e){return Tb(ST(e))}function bb(e){if(!e)return"";try{const t=new Date(e),n=r=>r.toString().padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}catch{return e}}function xb(e){if(!e)return"";try{const t=new Date(e),r=Date.now()-t.getTime(),i=Math.floor(r/1e3),u=Math.floor(i/60),s=Math.floor(u/60),a=Math.floor(s/24);if(u<1)return"刚刚";if(s<1)return`${u} 分钟前`;if(a<1)return`${s} 小时前`;if(a<7)return`${a} 天前`;const o=c=>c.toString().padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}catch{return e}}const sf={feat:{icon:"✨",badge:"badge-feat",ring:"ring-violet-500/30",border:"border-l-violet-500"},fix:{icon:"🔧",badge:"badge-fix",ring:"ring-amber-500/30",border:"border-l-amber-500"},hotfix:{icon:"🚨",badge:"badge-hotfix",ring:"ring-red-500/30",border:"border-l-red-500"},unknown:{icon:"📝",badge:"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400",ring:"ring-slate-500/30",border:"border-l-slate-400"}};function tp(e){return sf[e]||sf.unknown}const af={in_progress:{icon:"🔨",badge:"badge-warning"},ready:{icon:"✨",badge:"badge-success"},archived:{icon:"📦",badge:"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400"}};function yb(e){return af[e]||af.in_progress}const kb={propose:{icon:"📝",label:"/opsx:propose",primary:!0},continue:{icon:"↻",label:"/opsx:continue",primary:!1},apply:{icon:"▶",label:"/opsx:apply",primary:!0,color:"bg-emerald-500 hover:bg-emerald-600"},archive:{icon:"📦",label:"/opsx:archive",primary:!0,color:"bg-violet-500 hover:bg-violet-600"},verify:{icon:"✓",label:"/opsx:verify",primary:!1},onboard:{icon:"🚀",label:"/opsx:onboard",primary:!1},ff:{icon:"⚡",label:"/opsx:ff",primary:!1},sync:{icon:"🔄",label:"/opsx:sync",primary:!1},explore:{icon:"🔍",label:"/opsx:explore",primary:!1}};function of(e){return kb[e]||{icon:"⚡",label:`/opsx:${e}`,primary:!1}}const _b=[{id:"in_progress",title:"进行中",description:"有产物但未全部完成",color:"text-amber-600",bgGradient:"from-amber-500/10 to-orange-500/10"},{id:"ready",title:"待实现",description:"所有产物已就绪",color:"text-emerald-600",bgGradient:"from-emerald-500/10 to-teal-500/10"},{id:"archived",title:"已归档",description:"已完成的变更",color:"text-slate-600",bgGradient:"from-slate-500/10 to-gray-500/10"}];function Nb({change:e,onClick:t,selected:n,selectMode:r,executionState:i}){const u=tp(e.type);return h.jsxs("div",{onClick:t,className:Z("group relative bg-card rounded-xl border p-4 cursor-pointer border-l-2",u.border,"transition-all duration-300 ease-out","hover:shadow-card-hover hover:-translate-y-0.5","active:translate-y-0 active:shadow-soft",n&&"ring-2 ring-primary ring-offset-2 dark:ring-offset-background",r&&"cursor-pointer",(i==null?void 0:i.change)===e.name&&i.status==="running"&&"border-blue-500/30 border-l-2 border-l-blue-500"),role:r?"checkbox":"button","aria-checked":n,tabIndex:0,onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},children:[n&&h.jsx("div",{className:"absolute -top-1 -right-1 w-5 h-5 bg-primary rounded-full flex items-center justify-center shadow-lg animate-scale-in",children:h.jsx("span",{className:"text-white text-xs",children:"✓"})}),h.jsxs("div",{className:"flex items-start justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[r&&h.jsx("div",{className:Z("w-5 h-5 rounded-md border-2 flex items-center justify-center transition-all",n?"bg-primary border-primary text-white":"border-muted-foreground/30 group-hover:border-primary/50"),children:n&&h.jsx("span",{className:"text-[10px]",children:"✓"})}),h.jsx("div",{className:"min-w-0",children:h.jsx("h3",{className:"font-semibold text-sm truncate group-hover:text-primary transition-colors",children:e.displayName})})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[e.status==="ready"&&h.jsx("span",{className:Z("badge",e.applied?"badge-success":"badge-warning"),children:e.applied?"✅ 已实现":"⏳ 待实现"}),e.type!=="unknown"&&h.jsxs("span",{className:Z("badge",u.badge),children:[h.jsx("span",{children:u.icon}),h.jsx("span",{children:e.type})]})]})]}),h.jsxs("div",{className:"mb-3 flex items-center gap-2 flex-wrap",children:[h.jsx("span",{className:"text-xs text-muted-foreground/70 font-medium",children:"产出物"}),h.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:e.artifacts.map((s,a)=>h.jsxs("span",{className:"inline-flex items-center gap-1",children:[a>0&&h.jsx("span",{className:"text-muted-foreground/40",children:e.artifacts[a-1].status==="not_required"||s.status==="not_required"?h.jsx("span",{className:"border-t border-dashed border-muted-foreground/20 w-3 inline-block align-middle"}):h.jsx("span",{className:"text-muted-foreground/30",children:"→"})}),s.status==="not_required"?h.jsx("span",{className:"inline-flex items-center gap-1 text-muted-foreground/40 line-through",children:s.id}):h.jsxs("span",{className:Z("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md text-xs font-medium",s.status==="done"?"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"bg-muted/50 text-muted-foreground"),children:[h.jsx("span",{className:Z("inline-block w-1.5 h-1.5 rounded-full shrink-0",s.status==="done"?"bg-emerald-500":"border border-muted-foreground/40")}),s.id]})]},s.id))})]}),h.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.taskProgress&&e.taskProgress.total>0?h.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[h.jsx("span",{children:"📋"}),h.jsxs("span",{children:[e.taskProgress.completed,"/",e.taskProgress.total]})]}):h.jsx("div",{}),e.createdAt&&h.jsx("div",{className:"text-muted-foreground/70",children:xb(e.createdAt)})]}),i&&i.change===e.name&&i.status!=="idle"&&h.jsxs("div",{className:Z("flex items-center gap-2 mt-2 px-2 py-1.5 rounded-lg text-xs",i.status==="running"&&"bg-blue-500/10 text-blue-400 border border-blue-500/20",i.status==="completed"&&"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",i.status==="failed"&&"bg-red-500/10 text-red-400 border border-red-500/20"),children:[i.status==="running"&&h.jsxs(h.Fragment,{children:[h.jsxs("span",{className:"relative flex h-2 w-2",children:[h.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),h.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]}),h.jsxs("span",{children:["opsx:",i.skill," 执行中"]}),i.totalTasks>0&&h.jsxs("span",{className:"ml-auto",children:[i.currentTask,"/",i.totalTasks]})]}),i.status==="completed"&&h.jsxs("span",{children:["✓ opsx:",i.skill," 完成"]}),i.status==="failed"&&h.jsxs("span",{children:["✗ opsx:",i.skill," 失败"]})]}),i&&i.change===e.name&&i.status==="running"&&i.totalTasks>0&&h.jsx("div",{className:"mt-1.5 h-1 bg-muted rounded-full overflow-hidden",children:h.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${Math.round(i.currentTask/i.totalTasks*100)}%`}})}),h.jsx("div",{className:"absolute inset-x-0 bottom-0 h-0.5 bg-gradient-to-r from-transparent via-primary/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity rounded-b-xl"})]})}const np="/api";async function Tn(e){const t=await fetch(`${np}${e}`);if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}async function $n(e,t){const n=await fetch(`${np}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error(`API error: ${n.status}`);return n.json()}const De={getConfig:()=>Tn("/config"),getChanges:()=>Tn("/changes"),getChangeDetail:e=>Tn(`/changes/${e}`),getSchemas:()=>Tn("/schemas"),batchArchive:e=>$n("/changes/batch-archive",{names:e}),batchUnarchive:e=>$n("/changes/batch-unarchive",{names:e}),getSkills:()=>Tn("/skills"),getExecution:()=>Tn("/execution"),getExecutionLog:()=>Tn("/execution/log"),startSkill:(e,t,n)=>$n("/execution/start",{skill:e,change:t,note:n}),cancelSkill:()=>$n("/execution/cancel",{}),sendInput:e=>$n("/execution/input",{input:e}),getProjects:()=>Tn("/projects"),switchProject:e=>$n("/projects/switch",{path:e}),initOpenspec:()=>$n("/config/init",{})};function Cb({changes:e,onSelectChange:t,executionState:n,skills:r}){const[i,u]=M.useState(new Set),[s,a]=M.useState(!1),o=M.useMemo(()=>{var k;const E={in_progress:[],ready:[],archived:[]};for(const I of e)(k=E[I.status])==null||k.push(I);for(const I of Object.keys(E))E[I].sort((g,T)=>{const y=g.createdAt?new Date(g.createdAt).getTime():0;return(T.createdAt?new Date(T.createdAt).getTime():0)-y});return E.ready.sort((I,g)=>{if(I.applied!==g.applied)return I.applied?1:-1;const T=I.createdAt?new Date(I.createdAt).getTime():0;return(g.createdAt?new Date(g.createdAt).getTime():0)-T}),E},[e]),c=e.length,f=E=>{u(k=>{const I=new Set(k);return I.has(E)?I.delete(E):I.add(E),I})},d=E=>{const k=o[E].map(I=>I.name);u(I=>{const g=new Set(I);return k.every(y=>g.has(y))?k.forEach(y=>g.delete(y)):k.forEach(y=>g.add(y)),g})},p=async()=>{if(i.size===0)return;const E=e.filter(k=>k.status!=="archived"&&i.has(k.name)).map(k=>k.name);if(E.length!==0){try{await De.startSkill("bulk-archive",E.join(" "))}catch(k){console.error("Bulk archive failed:",k)}u(new Set),a(!1)}},m=()=>{a(!1),u(new Set)};return c===0?h.jsx(Ab,{skills:r,executionState:n}):h.jsxs("div",{children:[h.jsx("div",{className:"sticky top-14 z-30 bg-background/80 backdrop-blur-md border-b px-4 py-3",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("div",{className:"flex items-center gap-3",children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-primary to-accent flex items-center justify-center",children:h.jsx("span",{className:"text-white text-sm",children:"📋"})}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-semibold text-sm",children:"变更看板"}),h.jsxs("p",{className:"text-xs text-muted-foreground",children:[c," 个变更"]})]})]})}),h.jsx("div",{className:"flex items-center gap-2",children:s?h.jsxs(h.Fragment,{children:[h.jsxs("span",{className:"text-sm text-muted-foreground",children:["已选择 ",i.size," 项"]}),h.jsxs("button",{onClick:p,disabled:i.size===0||!e.some(E=>E.status!=="archived"&&i.has(E.name)),className:Z("btn-primary text-sm",(i.size===0||!e.some(E=>E.status!=="archived"&&i.has(E.name)))&&"opacity-50 cursor-not-allowed"),children:[h.jsx("span",{children:"📦"})," 归档"]}),h.jsx("button",{onClick:m,className:"btn-ghost text-sm",children:"取消"})]}):h.jsxs("button",{onClick:()=>a(!0),className:"btn-secondary text-sm",children:[h.jsx("span",{children:"☑️"})," 多选"]})})]})}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 p-4",children:_b.map((E,k)=>h.jsx("div",{className:Z("rounded-xl bg-gradient-to-b p-1",E.bgGradient),style:{animationDelay:`${k*100}ms`},children:h.jsxs("div",{className:"bg-card rounded-lg p-3 h-full",children:[h.jsxs("div",{className:"flex items-center justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:Z("font-bold text-lg",E.color),children:E.id==="in_progress"?"🔨":E.id==="ready"?"✨":"📦"}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-semibold",children:E.title}),h.jsx("p",{className:"text-xs text-muted-foreground",children:E.description})]})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[s&&o[E.id].length>0&&h.jsx("button",{onClick:()=>d(E.id),className:"text-xs p-1 hover:bg-muted rounded transition-colors",title:"全选",children:o[E.id].every(I=>i.has(I.name))?"☑️":"⬜"}),h.jsx("span",{className:Z("text-xs font-medium px-2.5 py-1 rounded-full","bg-muted text-muted-foreground"),children:o[E.id].length})]})]}),h.jsxs("div",{className:"flex flex-col gap-3 min-h-[200px]",children:[o[E.id].map(I=>h.jsx(Nb,{change:I,onClick:()=>s?f(I.name):t(I.name),selected:i.has(I.name),selectMode:s,executionState:n},I.name)),o[E.id].length===0&&h.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-muted-foreground py-8",children:[h.jsx("div",{className:"text-3xl mb-2 opacity-30",children:"📭"}),h.jsx("p",{className:"text-sm",children:"暂无变更"})]})]})]})},E.id))})]})}function Ab({skills:e,executionState:t}){const[n,r]=M.useState(""),[i,u]=M.useState(!1),s=async()=>{if(n.trim()){u(!0);try{await De.startSkill("propose",n.trim()),r("")}catch{}u(!1)}};return h.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] px-4 animate-fade-in",children:[h.jsx("div",{className:"text-8xl mb-6",children:"🚀"}),h.jsx("h2",{className:"text-2xl font-bold mb-3",children:"开始你的 Spec 之旅"}),h.jsxs("div",{className:"flex flex-col items-center gap-3 mb-8 w-full max-w-md",children:[h.jsx("p",{className:"text-muted-foreground text-center",children:"输入变更名称,一键启动 AI 创建完整变更"}),h.jsxs("div",{className:"flex gap-2 w-full",children:[h.jsx("input",{type:"text",value:n,onChange:a=>r(a.target.value),onKeyDown:a=>a.key==="Enter"&&s(),placeholder:"feat-user-auth",className:"flex-1 px-3 py-2 text-sm bg-muted rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary font-mono",autoFocus:!0}),h.jsxs("button",{onClick:s,disabled:i||!n.trim()||(t==null?void 0:t.status)==="running",className:Z("btn-primary gap-1",(i||!n.trim()||(t==null?void 0:t.status)==="running")&&"opacity-50 cursor-not-allowed"),children:[i?"⏳":"✨"," ",h.jsx("span",{children:"propose"})]})]}),h.jsx("div",{className:"flex gap-2",children:["feat-","fix-","hotfix-"].map(a=>h.jsx("button",{onClick:()=>r(a),className:"badge bg-muted text-muted-foreground hover:bg-primary hover:text-primary-foreground transition-colors cursor-pointer",children:a},a))}),h.jsxs("p",{className:"text-xs text-muted-foreground",children:["按 ",h.jsx("kbd",{className:"px-1.5 py-0.5 bg-muted rounded text-xs font-mono",children:"N"})," 快速新建"]}),(e==null?void 0:e.length)===0&&h.jsx("p",{className:"text-xs text-amber-500",children:"⚠️ 未检测到 opsx skills,确保已安装 Claude Code"})]}),h.jsxs("div",{className:"bg-card rounded-xl p-6 shadow-soft max-w-lg w-full",children:[h.jsxs("p",{className:"text-sm font-medium mb-4 flex items-center gap-2",children:[h.jsx("span",{className:"text-lg",children:"📁"})," 变更流程"]}),h.jsx("div",{className:"flex items-center gap-1 overflow-x-auto pb-2",children:[{icon:"📝",name:"propose",desc:"生成方案"},{icon:"🔍",name:"review",desc:"审查产物"},{icon:"▶",name:"apply",desc:"实现代码"},{icon:"✅",name:"verify",desc:"验证一致"},{icon:"📦",name:"archive",desc:"归档合并"}].map((a,o)=>h.jsxs(fu.Fragment,{children:[o>0&&h.jsx("span",{className:"text-muted-foreground/40 shrink-0",children:"→"}),h.jsxs("div",{className:"flex flex-col items-center gap-1 min-w-[4rem] text-center",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center text-lg shrink-0",children:a.icon}),h.jsx("span",{className:"text-xs font-medium",children:a.name}),h.jsx("span",{className:"text-[10px] text-muted-foreground",children:a.desc})]})]},a.name))})]})]})}function lf(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const s=n.slice(i,r).trim();(s||!u)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function rp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Sb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ib={};function cf(e,t){return(Ib.jsx?wb:Sb).test(e)}const vb=/[ \t\n\f\r]/g;function Lb(e){return typeof e=="object"?e.type==="text"?df(e.value):!1:df(e)}function df(e){return e.replace(vb,"")===""}class Eu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Eu.prototype.normal={};Eu.prototype.property={};Eu.prototype.space=void 0;function ip(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Eu(n,r,t)}function au(e){return e.toLowerCase()}class ht{constructor(t,n){this.attribute=n,this.property=t}}ht.prototype.attribute="";ht.prototype.booleanish=!1;ht.prototype.boolean=!1;ht.prototype.commaOrSpaceSeparated=!1;ht.prototype.commaSeparated=!1;ht.prototype.defined=!1;ht.prototype.mustUseProperty=!1;ht.prototype.number=!1;ht.prototype.overloadedBoolean=!1;ht.prototype.property="";ht.prototype.spaceSeparated=!1;ht.prototype.space=void 0;let Ob=0;const ne=mr(),Pe=mr(),rl=mr(),j=mr(),xe=mr(),jr=mr(),pt=mr();function mr(){return 2**++Ob}const il=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:Pe,commaOrSpaceSeparated:pt,commaSeparated:jr,number:j,overloadedBoolean:rl,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),Wa=Object.keys(il);class Ec extends ht{constructor(t,n,r,i){let u=-1;if(super(t,n),ff(this,"space",i),typeof r=="number")for(;++u<Wa.length;){const s=Wa[u];ff(this,Wa[u],(r&il[s])===il[s])}}}Ec.prototype.defined=!0;function ff(e,t,n){n&&(e[t]=n)}function ti(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const u=new Ec(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[au(r)]=r,n[au(u.attribute)]=r}return new Eu(t,n,e.space)}const up=ti({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:xe,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:j,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:xe,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Pe,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function sp(e,t){return t in e?e[t]:t}function ap(e,t){return sp(e,t.toLowerCase())}const Rb=ti({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jr,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:xe,autoFocus:ne,autoPlay:ne,blocking:xe,capture:null,charSet:null,checked:ne,cite:null,className:xe,cols:j,colSpan:null,content:null,contentEditable:Pe,controls:ne,controlsList:xe,coords:j|jr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:rl,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:xe,height:j,hidden:rl,high:j,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:xe,itemRef:xe,itemScope:ne,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,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:ne,optimum:j,pattern:null,ping:xe,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:xe,required:ne,reversed:ne,rows:j,rowSpan:j,sandbox:xe,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:Pe,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:ap}),Db=ti({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:pt,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:xe,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:jr,g2:jr,glyphName:jr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pt,rev:pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pt,requiredFeatures:pt,requiredFonts:pt,requiredFormats:pt,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pt,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sp}),op=ti({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()}}),lp=ti({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ap}),cp=ti({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Pb={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"},Mb=/[A-Z]/g,hf=/-[a-z]/g,Fb=/^data[-\w.:]+$/i;function ua(e,t){const n=au(t);let r=t,i=ht;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fb.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(hf,Ub);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!hf.test(u)){let s=u.replace(Mb,Bb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ec}return new i(r,t)}function Bb(e){return"-"+e.toLowerCase()}function Ub(e){return e.charAt(1).toUpperCase()}const Tu=ip([up,Rb,op,lp,cp],"html"),Yn=ip([up,Db,op,lp,cp],"svg");function mf(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function dp(e){return e.join(" ").trim()}var Tc={},pf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Hb=/\n/g,jb=/^\s*/,zb=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Yb=/^:\s*/,Vb=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Wb=/^[;\s]*/,Qb=/^\s+|\s+$/g,$b=`
|
|
41
|
+
`,gf="/",Ef="*",Xn="",Gb="comment",qb="declaration";function Kb(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(E){var k=E.match(Hb);k&&(n+=k.length);var I=E.lastIndexOf($b);r=~I?E.length-I:r+E.length}function u(){var E={line:n,column:r};return function(k){return k.position=new s(E),c(),k}}function s(E){this.start=E,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(E){var k=new Error(t.source+":"+n+":"+r+": "+E);if(k.reason=E,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function o(E){var k=E.exec(e);if(k){var I=k[0];return i(I),e=e.slice(I.length),k}}function c(){o(jb)}function f(E){var k;for(E=E||[];k=d();)k!==!1&&E.push(k);return E}function d(){var E=u();if(!(gf!=e.charAt(0)||Ef!=e.charAt(1))){for(var k=2;Xn!=e.charAt(k)&&(Ef!=e.charAt(k)||gf!=e.charAt(k+1));)++k;if(k+=2,Xn===e.charAt(k-1))return a("End of comment missing");var I=e.slice(2,k-2);return r+=2,i(I),e=e.slice(k),r+=2,E({type:Gb,comment:I})}}function p(){var E=u(),k=o(zb);if(k){if(d(),!o(Yb))return a("property missing ':'");var I=o(Vb),g=E({type:qb,property:Tf(k[0].replace(pf,Xn)),value:I?Tf(I[0].replace(pf,Xn)):Xn});return o(Wb),g}}function m(){var E=[];f(E);for(var k;k=p();)k!==!1&&(E.push(k),f(E));return E}return c(),m()}function Tf(e){return e?e.replace(Qb,Xn):Xn}var Xb=Kb,Jb=ds&&ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tc,"__esModule",{value:!0});Tc.default=ex;const Zb=Jb(Xb);function ex(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Zb.default)(e),i=typeof t=="function";return r.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:a}=u;i?t(s,a,u):a&&(n=n||{},n[s]=a)}),n}var sa={};Object.defineProperty(sa,"__esModule",{value:!0});sa.camelCase=void 0;var tx=/^--[a-zA-Z0-9_-]+$/,nx=/-([a-z])/g,rx=/^[^-]+$/,ix=/^-(webkit|moz|ms|o|khtml)-/,ux=/^-(ms)-/,sx=function(e){return!e||rx.test(e)||tx.test(e)},ax=function(e,t){return t.toUpperCase()},bf=function(e,t){return"".concat(t,"-")},ox=function(e,t){return t===void 0&&(t={}),sx(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ux,bf):e=e.replace(ix,bf),e.replace(nx,ax))};sa.camelCase=ox;var lx=ds&&ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},cx=lx(Tc),dx=sa;function ul(e,t){var n={};return!e||typeof e!="string"||(0,cx.default)(e,function(r,i){r&&i&&(n[(0,dx.camelCase)(r,t)]=i)}),n}ul.default=ul;var fx=ul;const hx=xl(fx),aa=fp("end"),Kt=fp("start");function fp(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function mx(e){const t=Kt(e),n=aa(e);if(t&&n)return{start:t,end:n}}function Mi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xf(e.position):"start"in e||"end"in e?xf(e):"line"in e||"column"in e?sl(e):""}function sl(e){return yf(e&&e.line)+":"+yf(e&&e.column)}function xf(e){return sl(e&&e.start)+"-"+sl(e&&e.end)}function yf(e){return e&&typeof e=="number"?e:1}class Je extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",u={},s=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof t=="string"?i=t:!u.cause&&t&&(s=!0,i=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?u.ruleId=r:(u.source=r.slice(0,o),u.ruleId=r.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=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=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Mi(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=s&&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}}Je.prototype.file="";Je.prototype.name="";Je.prototype.reason="";Je.prototype.message="";Je.prototype.stack="";Je.prototype.column=void 0;Je.prototype.line=void 0;Je.prototype.ancestors=void 0;Je.prototype.cause=void 0;Je.prototype.fatal=void 0;Je.prototype.place=void 0;Je.prototype.ruleId=void 0;Je.prototype.source=void 0;const bc={}.hasOwnProperty,px=new Map,gx=/[A-Z]/g,Ex=new Set(["table","tbody","thead","tfoot","tr"]),Tx=new Set(["td","th"]),hp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Sx(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ax(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Yn:Tu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=mp(i,e,void 0);return u&&typeof u!="string"?u:i.create(e,i.Fragment,{children:u||void 0},void 0)}function mp(e,t,n){if(t.type==="element")return xx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return yx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _x(e,t,n);if(t.type==="mdxjsEsm")return kx(e,t);if(t.type==="root")return Nx(e,t,n);if(t.type==="text")return Cx(e,t)}function xx(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Yn,e.schema=i),e.ancestors.push(t);const u=gp(e,t.tagName,!1),s=wx(e,t);let a=yc(e,t);return Ex.has(t.tagName)&&(a=a.filter(function(o){return typeof o=="string"?!Lb(o):!0})),pp(e,s,u,t),xc(s,a),e.ancestors.pop(),e.schema=r,e.create(t,u,s,n)}function yx(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ou(e,t.position)}function kx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ou(e,t.position)}function _x(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Yn,e.schema=i),e.ancestors.push(t);const u=t.name===null?e.Fragment:gp(e,t.name,!0),s=Ix(e,t),a=yc(e,t);return pp(e,s,u,t),xc(s,a),e.ancestors.pop(),e.schema=r,e.create(t,u,s,n)}function Nx(e,t,n){const r={};return xc(r,yc(e,t)),e.create(t,e.Fragment,r,n)}function Cx(e,t){return t.value}function pp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ax(e,t,n){return r;function r(i,u,s,a){const c=Array.isArray(s.children)?n:t;return a?c(u,s,a):c(u,s)}}function Sx(e,t){return n;function n(r,i,u,s){const a=Array.isArray(u.children),o=Kt(r);return t(i,u,s,a,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function wx(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&bc.call(t.properties,i)){const u=vx(e,i,t.properties[i]);if(u){const[s,a]=u;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&Tx.has(t.tagName)?r=a:n[s]=a}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ix(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const s=u.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ou(e,t.position);else{const i=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,u=e.evaluater.evaluateExpression(a.expression)}else ou(e,t.position);else u=r.value===null?!0:r.value;n[i]=u}return n}function yc(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:px;for(;++r<t.children.length;){const u=t.children[r];let s;if(e.passKeys){const o=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(o){const c=i.get(o)||0;s=o+"-"+c,i.set(o,c+1)}}const a=mp(e,u,s);a!==void 0&&n.push(a)}return n}function vx(e,t,n){const r=ua(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?rp(n):dp(n)),r.property==="style"){let i=typeof n=="object"?n:Lx(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Ox(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Pb[r.property]||r.property:r.attribute,n]}}function Lx(e,t){try{return hx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Je("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=hp+"#cannot-parse-style-attribute",i}}function gp(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let u=-1,s;for(;++u<i.length;){const a=cf(i[u])?{type:"Identifier",name:i[u]}:{type:"Literal",value:i[u]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(u&&a.type==="Literal"),optional:!1}:a}r=s}else r=cf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return bc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ou(e)}function ou(e,t){const n=new Je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ox(e){const t={};let n;for(n in e)bc.call(e,n)&&(t[Rx(n)]=e[n]);return t}function Rx(e){let t=e.replace(gx,Dx);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Dx(e){return"-"+e.toLowerCase()}const Qa={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"]},Px={};function kc(e,t){const n=Px,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ep(e,r,i)}function Ep(e,t,n){if(Mx(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kf(e.children,t,n)}return Array.isArray(e)?kf(e,t,n):""}function kf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ep(e[i],t,n);return r.join("")}function Mx(e){return!!(e&&typeof e=="object")}const _f=document.createElement("i");function _c(e){const t="&"+e+";";_f.innerHTML=t;const n=_f.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bt(e,t,n,r){const i=e.length;let u=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);u<r.length;)s=r.slice(u,u+1e4),s.unshift(t,0),e.splice(...s),u+=1e4,t+=1e4}function Ct(e,t){return e.length>0?(bt(e,e.length,0,t),e):t}const Nf={}.hasOwnProperty;function Tp(e){const t={};let n=-1;for(;++n<e.length;)Fx(t,e[n]);return t}function Fx(e,t){let n;for(n in t){const i=(Nf.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n];let s;if(u)for(s in u){Nf.call(i,s)||(i[s]=[]);const a=u[s];Bx(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Bx(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);bt(e,0,0,r)}function bp(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ut(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nt=Vn(/[A-Za-z]/),Ke=Vn(/[\dA-Za-z]/),Ux=Vn(/[#-'*+\--9=?A-Z^-~]/);function Fs(e){return e!==null&&(e<32||e===127)}const al=Vn(/\d/),Hx=Vn(/[\dA-Fa-f]/),jx=Vn(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}const oa=Vn(new RegExp("\\p{P}|\\p{S}","u")),cr=Vn(/\s/);function Vn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ni(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const u=e.charCodeAt(n);let s="";if(u===37&&Ke(e.charCodeAt(n+1))&&Ke(e.charCodeAt(n+2)))i=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(s=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(s=String.fromCharCode(u,a),i=1):s="�"}else s=String.fromCharCode(u);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function de(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let u=0;return s;function s(o){return ue(o)?(e.enter(n),a(o)):t(o)}function a(o){return ue(o)&&u++<i?(e.consume(o),a):(e.exit(n),t(o))}}const zx={tokenize:Yx};function Yx(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),de(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),u(a)}function u(a){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return K(a)?(e.consume(a),e.exit("chunkText"),u):(e.consume(a),s)}}const Vx={tokenize:Wx},Cf={tokenize:Qx};function Wx(e){const t=this,n=[];let r=0,i,u,s;return a;function a(y){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,o,c)(y)}return c(y)}function o(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const S=t.events.length;let D=S,C;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){C=t.events[D][1].end;break}g(r);let O=S;for(;O<t.events.length;)t.events[O][1].end={...C},O++;return bt(t.events,D+1,0,t.events.slice(S)),t.events.length=O,c(y)}return a(y)}function c(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return E(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Cf,f,d)(y)}function f(y){return i&&T(),g(r),p(y)}function d(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,E(y)}function p(y){return t.containerState={},e.attempt(Cf,m,E)(y)}function m(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function E(y){if(y===null){i&&T(),g(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:u}),k(y)}function k(y){if(y===null){I(e.exit("chunkFlow"),!0),g(0),e.consume(y);return}return K(y)?(e.consume(y),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(y),k)}function I(y,S){const D=t.sliceStream(y);if(S&&D.push(null),y.previous=u,u&&(u.next=y),u=y,i.defineSkip(y.start),i.write(D),t.parser.lazy[y.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<s&&(!i.events[C][1].end||i.events[C][1].end.offset>s))return;const O=t.events.length;let L=O,W,w;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(W){w=t.events[L][1].end;break}W=!0}for(g(r),C=O;C<t.events.length;)t.events[C][1].end={...w},C++;bt(t.events,L+1,0,t.events.slice(O)),t.events.length=C}}function g(y){let S=n.length;for(;S-- >y;){const D=n[S];t.containerState=D[1],D[0].exit.call(t,e)}n.length=y}function T(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Qx(e,t,n){return de(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qr(e){if(e===null||be(e)||cr(e))return 1;if(oa(e))return 2}function la(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const u=e[i].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}const ol={name:"attention",resolveAll:$x,tokenize:Gx};function $x(e,t){let n=-1,r,i,u,s,a,o,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Af(d,-o),Af(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},u={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:o>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ct(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ct(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",u,t]]),c=Ct(c,la(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ct(c,[["exit",u,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=Ct(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,bt(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Gx(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=qr(r);let u;return s;function s(o){return u=o,e.enter("attentionSequence"),a(o)}function a(o){if(o===u)return e.consume(o),a;const c=e.exit("attentionSequence"),f=qr(o),d=!f||f===2&&i||n.includes(o),p=!i||i===2&&f||n.includes(r);return c._open=!!(u===42?d:d&&(i||!p)),c._close=!!(u===42?p:p&&(f||!d)),t(o)}}function Af(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qx={name:"autolink",tokenize:Kx};function Kx(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(m){return nt(m)?(e.consume(m),s):m===64?n(m):c(m)}function s(m){return m===43||m===45||m===46||Ke(m)?(r=1,a(m)):c(m)}function a(m){return m===58?(e.consume(m),r=0,o):(m===43||m===45||m===46||Ke(m))&&r++<32?(e.consume(m),a):(r=0,c(m))}function o(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Fs(m)?n(m):(e.consume(m),o)}function c(m){return m===64?(e.consume(m),f):Ux(m)?(e.consume(m),c):n(m)}function f(m){return Ke(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||Ke(m))&&r++<63){const E=m===45?p:d;return e.consume(m),E}return n(m)}}const bu={partial:!0,tokenize:Xx};function Xx(e,t,n){return r;function r(u){return ue(u)?de(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||K(u)?t(u):n(u)}}const xp={continuation:{tokenize:Zx},exit:e2,name:"blockQuote",tokenize:Jx};function Jx(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),u}return n(s)}function u(s){return ue(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Zx(e,t,n){const r=this;return i;function i(s){return ue(s)?de(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):u(s)}function u(s){return e.attempt(xp,t,n)(s)}}function e2(e){e.exit("blockQuote")}const yp={name:"characterEscape",tokenize:t2};function t2(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),i}function i(u){return jx(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}const kp={name:"characterReference",tokenize:n2};function n2(e,t,n){const r=this;let i=0,u,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),o}function o(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),u=31,s=Ke,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,s=Hx,f):(e.enter("characterReferenceValue"),u=7,s=al,f(d))}function f(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return s===Ke&&!_c(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<u?(e.consume(d),f):n(d)}}const Sf={partial:!0,tokenize:i2},wf={concrete:!0,name:"codeFenced",tokenize:r2};function r2(e,t,n){const r=this,i={partial:!0,tokenize:D};let u=0,s=0,a;return o;function o(C){return c(C)}function c(C){const O=r.events[r.events.length-1];return u=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(C)}function f(C){return C===a?(s++,e.consume(C),f):s<3?n(C):(e.exit("codeFencedFenceSequence"),ue(C)?de(e,d,"whitespace")(C):d(C))}function d(C){return C===null||K(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(Sf,k,S)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||K(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(C)):ue(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),de(e,m,"whitespace")(C)):C===96&&C===a?n(C):(e.consume(C),p)}function m(C){return C===null||K(C)?d(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(C))}function E(C){return C===null||K(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(C)):C===96&&C===a?n(C):(e.consume(C),E)}function k(C){return e.attempt(i,S,I)(C)}function I(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),g}function g(C){return u>0&&ue(C)?de(e,T,"linePrefix",u+1)(C):T(C)}function T(C){return C===null||K(C)?e.check(Sf,k,S)(C):(e.enter("codeFlowValue"),y(C))}function y(C){return C===null||K(C)?(e.exit("codeFlowValue"),T(C)):(e.consume(C),y)}function S(C){return e.exit("codeFenced"),t(C)}function D(C,O,L){let W=0;return w;function w(X){return C.enter("lineEnding"),C.consume(X),C.exit("lineEnding"),B}function B(X){return C.enter("codeFencedFence"),ue(X)?de(C,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):V(X)}function V(X){return X===a?(C.enter("codeFencedFenceSequence"),ee(X)):L(X)}function ee(X){return X===a?(W++,C.consume(X),ee):W>=s?(C.exit("codeFencedFenceSequence"),ue(X)?de(C,ce,"whitespace")(X):ce(X)):L(X)}function ce(X){return X===null||K(X)?(C.exit("codeFencedFence"),O(X)):L(X)}}}function i2(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u)}function u(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const $a={name:"codeIndented",tokenize:s2},u2={partial:!0,tokenize:a2};function s2(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),de(e,u,"linePrefix",5)(c)}function u(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?o(c):K(c)?e.attempt(u2,s,o)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||K(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function o(c){return e.exit("codeIndented"),t(c)}}function a2(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):K(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):de(e,u,"linePrefix",5)(s)}function u(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):K(s)?i(s):n(s)}}const o2={name:"codeText",previous:c2,resolve:l2,tokenize:d2};function l2(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function c2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function d2(e,t,n){let r=0,i,u;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),o(d))}function o(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),o):d===96?(u=e.enter("codeTextSequence"),i=0,f(d)):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||K(d)?(e.exit("codeTextData"),o(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(u.type="codeTextData",c(d))}}class f2{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ti(this.left,r),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),Ti(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ti(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ti(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ti(this.left,n.reverse())}}}function Ti(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function _p(e){const t={};let n=-1,r,i,u,s,a,o,c;const f=new f2(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,u=0,u<o.length&&o[u][1].type==="lineEndingBlank"&&(u+=2),u<o.length&&o[u][1].type==="content"))for(;++u<o.length&&o[u][1].type!=="content";)o[u][1].type==="chunkText"&&(o[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,h2(f,n)),n=t[n],c=!0);else if(r[1]._container){for(u=n,i=void 0;u--;)if(s=f.get(u),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=u);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return bt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function h2(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const u=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,o=[],c={};let f,d,p=-1,m=n,E=0,k=0;const I=[k];for(;m;){for(;e.get(++i)[1]!==m;);u.push(i),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,I.push(k),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):I.pop(),p=I.length;p--;){const g=a.slice(I[p],I[p+1]),T=u.pop();o.push([T,T+g.length-1]),e.splice(T,2,g)}for(o.reverse(),p=-1;++p<o.length;)c[E+o[p][0]]=E+o[p][1],E+=o[p][1]-o[p][0]-1;return c}const m2={resolve:g2,tokenize:E2},p2={partial:!0,tokenize:T2};function g2(e){return _p(e),e}function E2(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?u(a):K(a)?e.check(p2,s,u)(a):(e.consume(a),i)}function u(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function T2(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),de(e,u,"linePrefix")}function u(s){if(s===null||K(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Np(e,t,n,r,i,u,s,a,o){const c=o||Number.POSITIVE_INFINITY;let f=0;return d;function d(g){return g===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(g),e.exit(u),p):g===null||g===32||g===41||Fs(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(g))}function p(g){return g===62?(e.enter(u),e.consume(g),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===62?(e.exit("chunkString"),e.exit(a),p(g)):g===null||g===60||K(g)?n(g):(e.consume(g),g===92?E:m)}function E(g){return g===60||g===62||g===92?(e.consume(g),m):m(g)}function k(g){return!f&&(g===null||g===41||be(g))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g)):f<c&&g===40?(e.consume(g),f++,k):g===41?(e.consume(g),f--,k):g===null||g===32||g===40||Fs(g)?n(g):(e.consume(g),g===92?I:k)}function I(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function Cp(e,t,n,r,i,u){const s=this;let a=0,o;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(u),f}function f(m){return a>999||m===null||m===91||m===93&&!o||m===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(u),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):K(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||K(m)||a++>999?(e.exit("chunkString"),f(m)):(e.consume(m),o||(o=!ue(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(e.consume(m),a++,d):d(m)}}function Ap(e,t,n,r,i,u){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,o):n(p)}function o(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(u),c(p))}function c(p){return p===s?(e.exit(u),o(s)):p===null?n(p):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),de(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===s||p===null||K(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:f)}function d(p){return p===s||p===92?(e.consume(p),f):f(p)}}function Fi(e,t){let n;return r;function r(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ue(i)?de(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const b2={name:"definition",tokenize:y2},x2={partial:!0,tokenize:k2};function y2(e,t,n){const r=this;let i;return u;function u(m){return e.enter("definition"),s(m)}function s(m){return Cp.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function a(m){return i=Ut(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o):n(m)}function o(m){return be(m)?Fi(e,c)(m):c(m)}function c(m){return Np(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(x2,d,d)(m)}function d(m){return ue(m)?de(e,p,"whitespace")(m):p(m)}function p(m){return m===null||K(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function k2(e,t,n){return r;function r(a){return be(a)?Fi(e,i)(a):n(a)}function i(a){return Ap(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function u(a){return ue(a)?de(e,s,"whitespace")(a):s(a)}function s(a){return a===null||K(a)?t(a):n(a)}}const _2={name:"hardBreakEscape",tokenize:N2};function N2(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return K(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const C2={name:"headingAtx",resolve:A2,tokenize:S2};function A2(e,t){let n=e.length-2,r=3,i,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},bt(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])),e}function S2(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),u(f)}function u(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||be(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),o(f)):f===null||K(f)?(e.exit("atxHeading"),t(f)):ue(f)?de(e,a,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function o(f){return f===35?(e.consume(f),o):(e.exit("atxHeadingSequence"),a(f))}function c(f){return f===null||f===35||be(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),c)}}const w2=["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"],If=["pre","script","style","textarea"],I2={concrete:!0,name:"htmlFlow",resolveTo:O2,tokenize:R2},v2={partial:!0,tokenize:P2},L2={partial:!0,tokenize:D2};function O2(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 R2(e,t,n){const r=this;let i,u,s,a,o;return c;function c(A){return f(A)}function f(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),p):A===47?(e.consume(A),u=!0,k):A===63?(e.consume(A),i=3,r.interrupt?t:x):nt(A)?(e.consume(A),s=String.fromCharCode(A),I):n(A)}function p(A){return A===45?(e.consume(A),i=2,m):A===91?(e.consume(A),i=5,a=0,E):nt(A)?(e.consume(A),i=4,r.interrupt?t:x):n(A)}function m(A){return A===45?(e.consume(A),r.interrupt?t:x):n(A)}function E(A){const Se="CDATA[";return A===Se.charCodeAt(a++)?(e.consume(A),a===Se.length?r.interrupt?t:V:E):n(A)}function k(A){return nt(A)?(e.consume(A),s=String.fromCharCode(A),I):n(A)}function I(A){if(A===null||A===47||A===62||be(A)){const Se=A===47,Ee=s.toLowerCase();return!Se&&!u&&If.includes(Ee)?(i=1,r.interrupt?t(A):V(A)):w2.includes(s.toLowerCase())?(i=6,Se?(e.consume(A),g):r.interrupt?t(A):V(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):u?T(A):y(A))}return A===45||Ke(A)?(e.consume(A),s+=String.fromCharCode(A),I):n(A)}function g(A){return A===62?(e.consume(A),r.interrupt?t:V):n(A)}function T(A){return ue(A)?(e.consume(A),T):w(A)}function y(A){return A===47?(e.consume(A),w):A===58||A===95||nt(A)?(e.consume(A),S):ue(A)?(e.consume(A),y):w(A)}function S(A){return A===45||A===46||A===58||A===95||Ke(A)?(e.consume(A),S):D(A)}function D(A){return A===61?(e.consume(A),C):ue(A)?(e.consume(A),D):y(A)}function C(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),o=A,O):ue(A)?(e.consume(A),C):L(A)}function O(A){return A===o?(e.consume(A),o=null,W):A===null||K(A)?n(A):(e.consume(A),O)}function L(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||be(A)?D(A):(e.consume(A),L)}function W(A){return A===47||A===62||ue(A)?y(A):n(A)}function w(A){return A===62?(e.consume(A),B):n(A)}function B(A){return A===null||K(A)?V(A):ue(A)?(e.consume(A),B):n(A)}function V(A){return A===45&&i===2?(e.consume(A),oe):A===60&&i===1?(e.consume(A),he):A===62&&i===4?(e.consume(A),ae):A===63&&i===3?(e.consume(A),x):A===93&&i===5?(e.consume(A),q):K(A)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(v2,me,ee)(A)):A===null||K(A)?(e.exit("htmlFlowData"),ee(A)):(e.consume(A),V)}function ee(A){return e.check(L2,ce,me)(A)}function ce(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),X}function X(A){return A===null||K(A)?ee(A):(e.enter("htmlFlowData"),V(A))}function oe(A){return A===45?(e.consume(A),x):V(A)}function he(A){return A===47?(e.consume(A),s="",z):V(A)}function z(A){if(A===62){const Se=s.toLowerCase();return If.includes(Se)?(e.consume(A),ae):V(A)}return nt(A)&&s.length<8?(e.consume(A),s+=String.fromCharCode(A),z):V(A)}function q(A){return A===93?(e.consume(A),x):V(A)}function x(A){return A===62?(e.consume(A),ae):A===45&&i===2?(e.consume(A),x):V(A)}function ae(A){return A===null||K(A)?(e.exit("htmlFlowData"),me(A)):(e.consume(A),ae)}function me(A){return e.exit("htmlFlow"),t(A)}}function D2(e,t,n){const r=this;return i;function i(s){return K(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):n(s)}function u(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function P2(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(bu,t,n)}}const M2={name:"htmlText",tokenize:F2};function F2(e,t,n){const r=this;let i,u,s;return a;function a(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),o}function o(x){return x===33?(e.consume(x),c):x===47?(e.consume(x),D):x===63?(e.consume(x),y):nt(x)?(e.consume(x),L):n(x)}function c(x){return x===45?(e.consume(x),f):x===91?(e.consume(x),u=0,E):nt(x)?(e.consume(x),T):n(x)}function f(x){return x===45?(e.consume(x),m):n(x)}function d(x){return x===null?n(x):x===45?(e.consume(x),p):K(x)?(s=d,he(x)):(e.consume(x),d)}function p(x){return x===45?(e.consume(x),m):d(x)}function m(x){return x===62?oe(x):x===45?p(x):d(x)}function E(x){const ae="CDATA[";return x===ae.charCodeAt(u++)?(e.consume(x),u===ae.length?k:E):n(x)}function k(x){return x===null?n(x):x===93?(e.consume(x),I):K(x)?(s=k,he(x)):(e.consume(x),k)}function I(x){return x===93?(e.consume(x),g):k(x)}function g(x){return x===62?oe(x):x===93?(e.consume(x),g):k(x)}function T(x){return x===null||x===62?oe(x):K(x)?(s=T,he(x)):(e.consume(x),T)}function y(x){return x===null?n(x):x===63?(e.consume(x),S):K(x)?(s=y,he(x)):(e.consume(x),y)}function S(x){return x===62?oe(x):y(x)}function D(x){return nt(x)?(e.consume(x),C):n(x)}function C(x){return x===45||Ke(x)?(e.consume(x),C):O(x)}function O(x){return K(x)?(s=O,he(x)):ue(x)?(e.consume(x),O):oe(x)}function L(x){return x===45||Ke(x)?(e.consume(x),L):x===47||x===62||be(x)?W(x):n(x)}function W(x){return x===47?(e.consume(x),oe):x===58||x===95||nt(x)?(e.consume(x),w):K(x)?(s=W,he(x)):ue(x)?(e.consume(x),W):oe(x)}function w(x){return x===45||x===46||x===58||x===95||Ke(x)?(e.consume(x),w):B(x)}function B(x){return x===61?(e.consume(x),V):K(x)?(s=B,he(x)):ue(x)?(e.consume(x),B):W(x)}function V(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),i=x,ee):K(x)?(s=V,he(x)):ue(x)?(e.consume(x),V):(e.consume(x),ce)}function ee(x){return x===i?(e.consume(x),i=void 0,X):x===null?n(x):K(x)?(s=ee,he(x)):(e.consume(x),ee)}function ce(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||be(x)?W(x):(e.consume(x),ce)}function X(x){return x===47||x===62||be(x)?W(x):n(x)}function oe(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function he(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),z}function z(x){return ue(x)?de(e,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):q(x)}function q(x){return e.enter("htmlTextData"),s(x)}}const Nc={name:"labelEnd",resolveAll:j2,resolveTo:z2,tokenize:Y2},B2={tokenize:V2},U2={tokenize:W2},H2={tokenize:Q2};function j2(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&bt(e,0,e.length,n),e}function z2(e,t){let n=e.length,r=0,i,u,s,a;for(;n--;)if(i=e[n][1],u){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(u=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const o={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[u][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",o,t],["enter",c,t]],a=Ct(a,e.slice(u+1,u+r+3)),a=Ct(a,[["enter",f,t]]),a=Ct(a,la(t.parser.constructs.insideSpan.null,e.slice(u+r+4,s-3),t)),a=Ct(a,[["exit",f,t],e[s-2],e[s-1],["exit",c,t]]),a=Ct(a,e.slice(s+1)),a=Ct(a,[["exit",o,t]]),bt(e,u,e.length,a),e}function Y2(e,t,n){const r=this;let i=r.events.length,u,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){u=r.events[i][1];break}return a;function a(p){return u?u._inactive?d(p):(s=r.parser.defined.includes(Ut(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),o):n(p)}function o(p){return p===40?e.attempt(B2,f,s?f:d)(p):p===91?e.attempt(U2,f,s?c:d)(p):s?f(p):d(p)}function c(p){return e.attempt(H2,f,d)(p)}function f(p){return t(p)}function d(p){return u._balanced=!0,n(p)}}function V2(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return be(d)?Fi(e,u)(d):u(d)}function u(d){return d===41?f(d):Np(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return be(d)?Fi(e,o)(d):f(d)}function a(d){return n(d)}function o(d){return d===34||d===39||d===40?Ap(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return be(d)?Fi(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function W2(e,t,n){const r=this;return i;function i(a){return Cp.call(r,e,u,s,"reference","referenceMarker","referenceString")(a)}function u(a){return r.parser.defined.includes(Ut(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Q2(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),i}function i(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}const $2={name:"labelStartImage",resolveAll:Nc.resolveAll,tokenize:G2};function G2(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),u}function u(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const q2={name:"labelStartLink",resolveAll:Nc.resolveAll,tokenize:K2};function K2(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),u}function u(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ga={name:"lineEnding",tokenize:X2};function X2(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),de(e,t,"linePrefix")}}const as={name:"thematicBreak",tokenize:J2};function J2(e,t,n){let r=0,i;return u;function u(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),o(c)):r>=3&&(c===null||K(c))?(e.exit("thematicBreak"),t(c)):n(c)}function o(c){return c===i?(e.consume(c),r++,o):(e.exit("thematicBreakSequence"),ue(c)?de(e,a,"whitespace")(c):a(c))}}const at={continuation:{tokenize:ny},exit:iy,name:"list",tokenize:ty},Z2={partial:!0,tokenize:uy},ey={partial:!0,tokenize:ry};function ty(e,t,n){const r=this,i=r.events[r.events.length-1];let u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(m){const E=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:al(m)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(as,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(m)}return n(m)}function o(m){return al(m)&&++s<10?(e.consume(m),o):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(bu,r.interrupt?n:f,e.attempt(Z2,p,d))}function f(m){return r.containerState.initialBlankLine=!0,u++,p(m)}function d(m){return ue(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function ny(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bu,i,u);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,de(e,t,"listItemIndent",r.containerState.size+1)(a)}function u(a){return r.containerState.furtherBlankLines||!ue(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ey,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,de(e,e.attempt(at,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ry(e,t,n){const r=this;return de(e,i,"listItemIndent",r.containerState.size+1);function i(u){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(u):n(u)}}function iy(e){e.exit(this.containerState.type)}function uy(e,t,n){const r=this;return de(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){const s=r.events[r.events.length-1];return!ue(u)&&s&&s[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const vf={name:"setextUnderline",resolveTo:sy,tokenize:ay};function sy(e,t){let n=e.length,r,i,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",s,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end={...e[u][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function ay(e,t,n){const r=this;let i;return u;function u(c){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),ue(c)?de(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||K(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const oy={tokenize:ly};function ly(e){const t=this,n=e.attempt(bu,r,e.attempt(this.parser.constructs.flowInitial,i,de(e,e.attempt(this.parser.constructs.flow,i,e.attempt(m2,i)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cy={resolveAll:wp()},dy=Sp("string"),fy=Sp("text");function Sp(e){return{resolveAll:wp(e==="text"?hy:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],u=n.attempt(i,s,a);return s;function s(f){return c(f)?u(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),o}function o(f){return c(f)?(n.exit("data"),u(f)):(n.consume(f),o)}function c(f){if(f===null)return!0;const d=i[f];let p=-1;if(d)for(;++p<d.length;){const m=d[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function wp(e){return t;function t(n,r){let i=-1,u;for(;++i<=n.length;)u===void 0?n[i]&&n[i][1].type==="data"&&(u=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==u+2&&(n[u][1].end=n[i-1][1].end,n.splice(u+2,i-u-2),i=u+2),u=void 0);return e?e(n,r):n}}function hy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let u=i.length,s=-1,a=0,o;for(;u--;){const c=i[u];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)o=!0,a++;else if(c!==-1){u++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||o||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?s:r.start._bufferIndex+s,_index:r.start._index+u,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const my={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:xp},py={91:b2},gy={[-2]:$a,[-1]:$a,32:$a},Ey={35:C2,42:as,45:[vf,as],60:I2,61:vf,95:as,96:wf,126:wf},Ty={38:kp,92:yp},by={[-5]:Ga,[-4]:Ga,[-3]:Ga,33:$2,38:kp,42:ol,60:[qx,M2],91:q2,92:[_2,yp],93:Nc,95:ol,96:o2},xy={null:[ol,cy]},yy={null:[42,95]},ky={null:[]},_y=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:yy,contentInitial:py,disable:ky,document:my,flow:Ey,flowInitial:gy,insideSpan:xy,string:Ty,text:by},Symbol.toStringTag,{value:"Module"}));function Ny(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},u=[];let s=[],a=[];const o={attempt:O(D),check:O(C),consume:T,enter:y,exit:S,interrupt:O(C,{interrupt:!0})},c={code:null,containerState:{},defineSkip:k,events:[],now:E,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:d};let f=t.tokenize.call(c,o);return t.resolveAll&&u.push(t),c;function d(B){return s=Ct(s,B),I(),s[s.length-1]!==null?[]:(L(t,0),c.events=la(u,c.events,c),c.events)}function p(B,V){return Ay(m(B),V)}function m(B){return Cy(s,B)}function E(){const{_bufferIndex:B,_index:V,line:ee,column:ce,offset:X}=r;return{_bufferIndex:B,_index:V,line:ee,column:ce,offset:X}}function k(B){i[B.line]=B.column,w()}function I(){let B;for(;r._index<s.length;){const V=s[r._index];if(typeof V=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<V.length;)g(V.charCodeAt(r._bufferIndex));else g(V)}}function g(B){f=f(B)}function T(B){K(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,w()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function y(B,V){const ee=V||{};return ee.type=B,ee.start=E(),c.events.push(["enter",ee,c]),a.push(ee),ee}function S(B){const V=a.pop();return V.end=E(),c.events.push(["exit",V,c]),V}function D(B,V){L(B,V.from)}function C(B,V){V.restore()}function O(B,V){return ee;function ee(ce,X,oe){let he,z,q,x;return Array.isArray(ce)?me(ce):"tokenize"in ce?me([ce]):ae(ce);function ae(te){return et;function et(Lt){const ke=Lt!==null&&te[Lt],Jt=Lt!==null&&te.null,Zt=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(Jt)?Jt:Jt?[Jt]:[]];return me(Zt)(Lt)}}function me(te){return he=te,z=0,te.length===0?oe:A(te[z])}function A(te){return et;function et(Lt){return x=W(),q=te,te.partial||(c.currentConstruct=te),te.name&&c.parser.constructs.disable.null.includes(te.name)?Ee():te.tokenize.call(V?Object.assign(Object.create(c),V):c,o,Se,Ee)(Lt)}}function Se(te){return B(q,x),X}function Ee(te){return x.restore(),++z<he.length?A(he[z]):oe}}}function L(B,V){B.resolveAll&&!u.includes(B)&&u.push(B),B.resolve&&bt(c.events,V,c.events.length-V,B.resolve(c.events.slice(V),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function W(){const B=E(),V=c.previous,ee=c.currentConstruct,ce=c.events.length,X=Array.from(a);return{from:ce,restore:oe};function oe(){r=B,c.previous=V,c.currentConstruct=ee,c.events.length=ce,a=X,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Cy(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,u=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,u)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}u>0&&s.push(e[i].slice(0,u))}return s}function Ay(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const u=e[n];let s;if(typeof u=="string")s=u;else switch(u){case-5:{s="\r";break}case-4:{s=`
|
|
42
|
+
`;break}case-3:{s=`\r
|
|
43
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(u)}i=u===-2,r.push(s)}return r.join("")}function Sy(e){const r={constructs:Tp([_y,...(e||{}).extensions||[]]),content:i(zx),defined:[],document:i(Vx),flow:i(oy),lazy:{},string:i(dy),text:i(fy)};return r;function i(u){return s;function s(a){return Ny(r,u,a)}}}function wy(e){for(;!_p(e););return e}const Lf=/[\0\t\n\r]/g;function Iy(){let e=1,t="",n=!0,r;return i;function i(u,s,a){const o=[];let c,f,d,p,m;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(s||void 0).decode(u)),d=0,t="",n&&(u.charCodeAt(0)===65279&&d++,n=void 0);d<u.length;){if(Lf.lastIndex=d,c=Lf.exec(u),p=c&&c.index!==void 0?c.index:u.length,m=u.charCodeAt(p),!c){t=u.slice(d);break}if(m===10&&d===p&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),d<p&&(o.push(u.slice(d,p)),e+=p-d),m){case 0:{o.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,o.push(-2);e++<f;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return a&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}const vy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ly(e){return e.replace(vy,Oy)}function Oy(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),u=i===120||i===88;return bp(n.slice(u?2:1),u?16:10)}return _c(n)||e}const Ip={}.hasOwnProperty;function Ry(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Dy(n)(wy(Sy(n).document().write(Iy()(e,t,!0))))}function Dy(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(zc),autolinkProtocol:W,autolinkEmail:W,atxHeading:u(Uc),blockQuote:u(Jt),characterEscape:W,characterReference:W,codeFenced:u(Zt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:u(Zt,s),codeText:u(gr,s),codeTextData:W,data:W,codeFlowValue:W,definition:u(si),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:u(Er),hardBreakEscape:u(Hc),hardBreakTrailing:u(Hc),htmlFlow:u(jc,s),htmlFlowData:W,htmlText:u(jc,s),htmlTextData:W,image:u(q1),label:s,link:u(zc),listItem:u(K1),listItemValue:p,listOrdered:u(Yc,d),listUnordered:u(Yc),paragraph:u(X1),reference:A,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:u(Uc),strong:u(J1),thematicBreak:u(eg)},exit:{atxHeading:o(),atxHeadingSequence:D,autolink:o(),autolinkEmail:ke,autolinkProtocol:Lt,blockQuote:o(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:te,characterReference:et,codeFenced:o(I),codeFencedFence:k,codeFencedFenceInfo:m,codeFencedFenceMeta:E,codeFlowValue:w,codeIndented:o(g),codeText:o(X),codeTextData:w,data:w,definition:o(),definitionDestinationString:S,definitionLabelString:T,definitionTitleString:y,emphasis:o(),hardBreakEscape:o(V),hardBreakTrailing:o(V),htmlFlow:o(ee),htmlFlowData:w,htmlText:o(ce),htmlTextData:w,image:o(he),label:q,labelText:z,lineEnding:B,link:o(oe),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Se,resourceDestinationString:x,resourceTitleString:ae,resource:me,setextHeading:o(L),setextHeadingLineSequence:O,setextHeadingText:C,strong:o(),thematicBreak:o()}};vp(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let Y={type:"root",children:[]};const J={stack:[Y],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:f,data:n},le=[];let Te=-1;for(;++Te<P.length;)if(P[Te][1].type==="listOrdered"||P[Te][1].type==="listUnordered")if(P[Te][0]==="enter")le.push(Te);else{const Ot=le.pop();Te=i(P,Ot,Te)}for(Te=-1;++Te<P.length;){const Ot=t[P[Te][0]];Ip.call(Ot,P[Te][1].type)&&Ot[P[Te][1].type].call(Object.assign({sliceSerialize:P[Te][2].sliceSerialize},J),P[Te][1])}if(J.tokenStack.length>0){const Ot=J.tokenStack[J.tokenStack.length-1];(Ot[1]||Of).call(J,void 0,Ot[0])}for(Y.position={start:bn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:bn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<t.transforms.length;)Y=t.transforms[Te](Y)||Y;return Y}function i(P,Y,J){let le=Y-1,Te=-1,Ot=!1,Wn,en,ai,oi;for(;++le<=J;){const mt=P[le];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?Te++:Te--,oi=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(Wn&&!oi&&!Te&&!ai&&(ai=le),oi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:oi=void 0}if(!Te&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||Te===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(Wn){let Tr=le;for(en=void 0;Tr--;){const tn=P[Tr];if(tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank"){if(tn[0]==="exit")continue;en&&(P[en][1].type="lineEndingBlank",Ot=!0),tn[1].type="lineEnding",en=Tr}else if(!(tn[1].type==="linePrefix"||tn[1].type==="blockQuotePrefix"||tn[1].type==="blockQuotePrefixWhitespace"||tn[1].type==="blockQuoteMarker"||tn[1].type==="listItemIndent"))break}ai&&(!en||ai<en)&&(Wn._spread=!0),Wn.end=Object.assign({},en?P[en][1].start:mt[1].end),P.splice(en||le,0,["exit",Wn,mt[2]]),le++,J++}if(mt[1].type==="listItemPrefix"){const Tr={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};Wn=Tr,P.splice(le,0,["enter",Tr,mt[2]]),le++,J++,ai=void 0,oi=!0}}}return P[Y][1]._spread=Ot,J}function u(P,Y){return J;function J(le){a.call(this,P(le),le),Y&&Y.call(this,le)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(P,Y,J){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([Y,J||void 0]),P.position={start:bn(Y.start),end:void 0}}function o(P){return Y;function Y(J){P&&P.call(this,J),c.call(this,J)}}function c(P,Y){const J=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==P.type&&(Y?Y.call(this,P,le[0]):(le[1]||Of).call(this,P,le[0]));else throw new Error("Cannot close `"+P.type+"` ("+Mi({start:P.start,end:P.end})+"): it’s not open");J.position.end=bn(P.end)}function f(){return kc(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(P){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function m(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=P}function E(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=P}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.value=P.replace(/(\r?\n|\r)$/g,"")}function T(P){const Y=this.resume(),J=this.stack[this.stack.length-1];J.label=Y,J.identifier=Ut(this.sliceSerialize(P)).toLowerCase()}function y(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.title=P}function S(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.url=P}function D(P){const Y=this.stack[this.stack.length-1];if(!Y.depth){const J=this.sliceSerialize(P).length;Y.depth=J}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function O(P){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function W(P){const J=this.stack[this.stack.length-1].children;let le=J[J.length-1];(!le||le.type!=="text")&&(le=Z1(),le.position={start:bn(P.start),end:void 0},J.push(le)),this.stack.push(le)}function w(P){const Y=this.stack.pop();Y.value+=this.sliceSerialize(P),Y.position.end=bn(P.end)}function B(P){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=Y.children[Y.children.length-1];J.position.end=bn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Y.type)&&(W.call(this,P),w.call(this,P))}function V(){this.data.atHardBreak=!0}function ee(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.value=P}function ce(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.value=P}function X(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.value=P}function oe(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=Y,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function he(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=Y,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function z(P){const Y=this.sliceSerialize(P),J=this.stack[this.stack.length-2];J.label=Ly(Y),J.identifier=Ut(Y).toLowerCase()}function q(){const P=this.stack[this.stack.length-1],Y=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const le=P.children;J.children=le}else J.alt=Y}function x(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.url=P}function ae(){const P=this.resume(),Y=this.stack[this.stack.length-1];Y.title=P}function me(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function Se(P){const Y=this.resume(),J=this.stack[this.stack.length-1];J.label=Y,J.identifier=Ut(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Ee(P){this.data.characterReferenceType=P.type}function te(P){const Y=this.sliceSerialize(P),J=this.data.characterReferenceType;let le;J?(le=bp(Y,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=_c(Y);const Te=this.stack[this.stack.length-1];Te.value+=le}function et(P){const Y=this.stack.pop();Y.position.end=bn(P.end)}function Lt(P){w.call(this,P);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(P)}function ke(P){w.call(this,P);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(P)}function Jt(){return{type:"blockquote",children:[]}}function Zt(){return{type:"code",lang:null,meta:null,value:""}}function gr(){return{type:"inlineCode",value:""}}function si(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Er(){return{type:"emphasis",children:[]}}function Uc(){return{type:"heading",depth:0,children:[]}}function Hc(){return{type:"break"}}function jc(){return{type:"html",value:""}}function q1(){return{type:"image",title:null,url:"",alt:null}}function zc(){return{type:"link",title:null,url:"",children:[]}}function Yc(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function K1(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function X1(){return{type:"paragraph",children:[]}}function J1(){return{type:"strong",children:[]}}function Z1(){return{type:"text",value:""}}function eg(){return{type:"thematicBreak"}}}function bn(e){return{line:e.line,column:e.column,offset:e.offset}}function vp(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vp(e,r):Py(e,r)}}function Py(e,t){let n;for(n in t)if(Ip.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Of(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mi({start:t.start,end:t.end})+") is still open")}function My(e){const t=this;t.parser=n;function n(r){return Ry(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Fy(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function By(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
44
|
+
`}]}function Uy(e,t){const n=t.value?t.value+`
|
|
45
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};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 Hy(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jy(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zy(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ni(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=u+1,a+=1,e.footnoteCounts.set(r,a);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,o);const c={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,c),e.applyData(t,c)}function Yy(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vy(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Lp(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),u=i[0];u&&u.type==="text"?u.value="["+u.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Wy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Lp(e,t);const i={src:ni(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,u),e.applyData(t,u)}function Qy(e,t){const n={src:ni(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $y(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Gy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Lp(e,t);const i={href:ni(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function qy(e,t){const n={href:ni(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ky(e,t,n){const r=e.all(t),i=n?Xy(n):Op(t),u={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
|
|
46
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&s.push({type:"text",value:`
|
|
47
|
+
`});const c={type:"element",tagName:"li",properties:u,children:s};return e.patch(t,c),e.applyData(t,c)}function Xy(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Op(n[r])}return t}function Op(e){const t=e.spread;return t??e.children.length>1}function Jy(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}function Zy(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function e3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function t3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function n3(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Kt(t.children[1]),o=aa(t.children[t.children.length-1]);a&&o&&(s.position={start:a,end:o}),i.push(s)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,u),e.applyData(t,u)}function r3(e,t,n){const r=n?n.children:void 0,u=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let o=-1;const c=[];for(;++o<a;){const d=t.children[o],p={},m=s?s[o]:void 0;m&&(p.align=m);let E={type:"element",tagName:u,properties:p,children:[]};d&&(E.children=e.all(d),e.patch(d,E),E=e.applyData(d,E)),c.push(E)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function i3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Rf=9,Df=32;function u3(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const u=[];for(;r;)u.push(Pf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return u.push(Pf(t.slice(i),i>0,!1)),u.join("")}function Pf(e,t,n){let r=0,i=e.length;if(t){let u=e.codePointAt(r);for(;u===Rf||u===Df;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(i-1);for(;u===Rf||u===Df;)i--,u=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function s3(e,t){const n={type:"text",value:u3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function a3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const o3={blockquote:Fy,break:By,code:Uy,delete:Hy,emphasis:jy,footnoteReference:zy,heading:Yy,html:Vy,imageReference:Wy,image:Qy,inlineCode:$y,linkReference:Gy,link:qy,listItem:Ky,list:Jy,paragraph:Zy,root:e3,strong:t3,table:n3,tableCell:i3,tableRow:r3,text:s3,thematicBreak:a3,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const Rp=-1,ca=0,Bi=1,Bs=2,Cc=3,Ac=4,Sc=5,wc=6,Dp=7,Pp=8,l3=typeof self=="object"?self:globalThis,Mf=(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 l3[e](t)},c3=(e,t)=>{const n=(i,u)=>(e.set(u,i),i),r=i=>{if(e.has(i))return e.get(i);const[u,s]=t[i];switch(u){case ca:case Rp:return n(s,i);case Bi:{const a=n([],i);for(const o of s)a.push(r(o));return a}case Bs:{const a=n({},i);for(const[o,c]of s)a[r(o)]=r(c);return a}case Cc:return n(new Date(s),i);case Ac:{const{source:a,flags:o}=s;return n(new RegExp(a,o),i)}case Sc:{const a=n(new Map,i);for(const[o,c]of s)a.set(r(o),r(c));return a}case wc:{const a=n(new Set,i);for(const o of s)a.add(r(o));return a}case Dp:{const{name:a,message:o}=s;return n(Mf(a,o),i)}case Pp:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(Mf(u,s),i)};return r},Ff=e=>c3(new Map,e)(0),xr="",{toString:d3}={},{keys:f3}=Object,bi=e=>{const t=typeof e;if(t!=="object"||!e)return[ca,t];const n=d3.call(e).slice(8,-1);switch(n){case"Array":return[Bi,xr];case"Object":return[Bs,xr];case"Date":return[Cc,xr];case"RegExp":return[Ac,xr];case"Map":return[Sc,xr];case"Set":return[wc,xr];case"DataView":return[Bi,n]}return n.includes("Array")?[Bi,n]:n.includes("Error")?[Dp,n]:[Bs,n]},Yu=([e,t])=>e===ca&&(t==="function"||t==="symbol"),h3=(e,t,n,r)=>{const i=(s,a)=>{const o=r.push(s)-1;return n.set(a,o),o},u=s=>{if(n.has(s))return n.get(s);let[a,o]=bi(s);switch(a){case ca:{let f=s;switch(o){case"bigint":a=Pp,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);f=null;break;case"undefined":return i([Rp],s)}return i([a,f],s)}case Bi:{if(o){let p=s;return o==="DataView"?p=new Uint8Array(s.buffer):o==="ArrayBuffer"&&(p=new Uint8Array(s)),i([o,[...p]],s)}const f=[],d=i([a,f],s);for(const p of s)f.push(u(p));return d}case Bs:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return u(s.toJSON());const f=[],d=i([a,f],s);for(const p of f3(s))(e||!Yu(bi(s[p])))&&f.push([u(p),u(s[p])]);return d}case Cc:return i([a,s.toISOString()],s);case Ac:{const{source:f,flags:d}=s;return i([a,{source:f,flags:d}],s)}case Sc:{const f=[],d=i([a,f],s);for(const[p,m]of s)(e||!(Yu(bi(p))||Yu(bi(m))))&&f.push([u(p),u(m)]);return d}case wc:{const f=[],d=i([a,f],s);for(const p of s)(e||!Yu(bi(p)))&&f.push(u(p));return d}}const{message:c}=s;return i([a,{name:o,message:c}],s)};return u},Bf=(e,{json:t,lossy:n}={})=>{const r=[];return h3(!(t||n),!!t,new Map,r)(e),r},Kr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ff(Bf(e,t)):structuredClone(e):(e,t)=>Ff(Bf(e,t));function m3(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function p3(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function g3(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||m3,r=e.options.footnoteBackLabel||p3,i=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let o=-1;for(;++o<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[o]);if(!c)continue;const f=e.all(c),d=String(c.identifier).toUpperCase(),p=ni(d.toLowerCase());let m=0;const E=[],k=e.footnoteCounts.get(d);for(;k!==void 0&&++m<=k;){E.length>0&&E.push({type:"text",value:" "});let T=typeof n=="string"?n:n(o,m);typeof T=="string"&&(T={type:"text",value:T}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,m),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const I=f[f.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const T=I.children[I.children.length-1];T&&T.type==="text"?T.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...E)}else f.push(...E);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(c,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Kr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
48
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
49
|
+
`}]}}const da=function(e){if(e==null)return x3;if(typeof e=="function")return fa(e);if(typeof e=="object")return Array.isArray(e)?E3(e):T3(e);if(typeof e=="string")return b3(e);throw new Error("Expected function, string, or object as test")};function E3(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=da(e[n]);return fa(r);function r(...i){let u=-1;for(;++u<t.length;)if(t[u].apply(this,i))return!0;return!1}}function T3(e){const t=e;return fa(n);function n(r){const i=r;let u;for(u in e)if(i[u]!==t[u])return!1;return!0}}function b3(e){return fa(t);function t(n){return n&&n.type===e}}function fa(e){return t;function t(n,r,i){return!!(y3(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function x3(){return!0}function y3(e){return e!==null&&typeof e=="object"&&"type"in e}const Mp=[],k3=!0,ll=!1,_3="skip";function Fp(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const u=da(i),s=r?-1:1;a(e,void 0,[])();function a(o,c,f){const d=o&&typeof o=="object"?o:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=Mp,E,k,I;if((!t||u(o,c,f[f.length-1]||void 0))&&(m=N3(n(o,f)),m[0]===ll))return m;if("children"in o&&o.children){const g=o;if(g.children&&m[0]!==_3)for(k=(r?g.children.length:-1)+s,I=f.concat(g);k>-1&&k<g.children.length;){const T=g.children[k];if(E=a(T,k,I)(),E[0]===ll)return E;k=typeof E[1]=="number"?E[1]:k+s}}return m}}}function N3(e){return Array.isArray(e)?e:typeof e=="number"?[k3,e]:e==null?Mp:[e]}function ha(e,t,n,r){let i,u,s;typeof t=="function"&&typeof n!="function"?(u=void 0,s=t,i=n):(u=t,s=n,i=r),Fp(e,u,a,i);function a(o,c){const f=c[c.length-1],d=f?f.children.indexOf(o):void 0;return s(o,d,f)}}const cl={}.hasOwnProperty,C3={};function A3(e,t){const n=t||C3,r=new Map,i=new Map,u=new Map,s={...o3,...n.handlers},a={all:c,applyData:w3,definitionById:r,footnoteById:i,footnoteCounts:u,footnoteOrder:[],handlers:s,one:o,options:n,patch:S3,wrap:v3};return ha(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();d.has(p)||d.set(p,f)}}),a;function o(f,d){const p=f.type,m=a.handlers[p];if(cl.call(a.handlers,p)&&m)return m(a,f,d);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:k,...I}=f,g=Kr(I);return g.children=a.all(f),g}return Kr(f)}return(a.options.unknownHandler||I3)(a,f,d)}function c(f){const d=[];if("children"in f){const p=f.children;let m=-1;for(;++m<p.length;){const E=a.one(p[m],f);if(E){if(m&&p[m-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Uf(E.value)),!Array.isArray(E)&&E.type==="element")){const k=E.children[0];k&&k.type==="text"&&(k.value=Uf(k.value))}Array.isArray(E)?d.push(...E):d.push(E)}}}return d}}function S3(e,t){e.position&&(t.position=mx(e))}function w3(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&u&&Object.assign(n.properties,Kr(u)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function I3(e,t){const n=t.data||{},r="value"in t&&!(cl.call(n,"hProperties")||cl.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function v3(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
50
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
51
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
52
|
+
`}),n}function Uf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Hf(e,t){const n=A3(e,t),r=n.one(e,void 0),i=g3(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&u.children.push({type:"text",value:`
|
|
53
|
+
`},i),u}function L3(e,t){return e&&"run"in e?async function(n,r){const i=Hf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Hf(n,{file:r,...e||t})}}function jf(e){if(e)throw e}var os=Object.prototype.hasOwnProperty,Bp=Object.prototype.toString,zf=Object.defineProperty,Yf=Object.getOwnPropertyDescriptor,Vf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Bp.call(t)==="[object Array]"},Wf=function(t){if(!t||Bp.call(t)!=="[object Object]")return!1;var n=os.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&os.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||os.call(t,i)},Qf=function(t,n){zf&&n.name==="__proto__"?zf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},$f=function(t,n){if(n==="__proto__")if(os.call(t,n)){if(Yf)return Yf(t,n).value}else return;return t[n]},O3=function e(){var t,n,r,i,u,s,a=arguments[0],o=1,c=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},o=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});o<c;++o)if(t=arguments[o],t!=null)for(n in t)r=$f(a,n),i=$f(t,n),a!==i&&(f&&i&&(Wf(i)||(u=Vf(i)))?(u?(u=!1,s=r&&Vf(r)?r:[]):s=r&&Wf(r)?r:{},Qf(a,{name:n,newValue:e(f,s,i)})):typeof i<"u"&&Qf(a,{name:n,newValue:i}));return a};const qa=xl(O3);function dl(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 R3(){const e=[],t={run:n,use:r};return t;function n(...i){let u=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(o,...c){const f=e[++u];let d=-1;if(o){s(o);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,f?D3(f,a)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function D3(e,t){let n;return r;function r(...s){const a=e.length>s.length;let o;a&&s.push(i);try{o=e.apply(this,s)}catch(c){const f=c;if(a&&n)throw f;return i(f)}a||(o&&o.then&&typeof o.then=="function"?o.then(u,i):o instanceof Error?i(o):u(o))}function i(s,...a){n||(n=!0,t(s,...a))}function u(s){i(null,s)}}const Wt={basename:P3,dirname:M3,extname:F3,join:B3,sep:"/"};function P3(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xu(e);let n=0,r=-1,i=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(u){n=i+1;break}}else r<0&&(u=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(u){n=i+1;break}}else s<0&&(u=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function M3(e){if(xu(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function F3(e){xu(e);let t=e.length,n=-1,r=0,i=-1,u=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:u!==1&&(u=1):i>-1&&(u=-1)}return i<0||n<0||u===0||u===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function B3(...e){let t=-1,n;for(;++t<e.length;)xu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":U3(n)}function U3(e){xu(e);const t=e.codePointAt(0)===47;let n=H3(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function H3(e,t){let n="",r=0,i=-1,u=0,s=-1,a,o;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||u===1))if(i!==s-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=s,u=0;continue}}else if(n.length>0){n="",r=0,i=s,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,u=0}else a===46&&u>-1?u++:u=-1}return n}function xu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const j3={cwd:z3};function z3(){return"/"}function fl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Y3(e){if(typeof e=="string")e=new URL(e);else if(!fl(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 V3(e)}function V3(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ka=["history","path","basename","stem","extname","dirname"];class Up{constructor(t){let n;t?fl(t)?n={path:t}:typeof t=="string"||W3(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":j3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ka.length;){const u=Ka[r];u in n&&n[u]!==void 0&&n[u]!==null&&(this[u]=u==="history"?[...n[u]]:n[u])}let i;for(i in n)Ka.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Wt.basename(this.path):void 0}set basename(t){Ja(t,"basename"),Xa(t,"basename"),this.path=Wt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Wt.dirname(this.path):void 0}set dirname(t){Gf(this.basename,"dirname"),this.path=Wt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Wt.extname(this.path):void 0}set extname(t){if(Xa(t,"extname"),Gf(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=Wt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){fl(t)&&(t=Y3(t)),Ja(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Wt.basename(this.path,this.extname):void 0}set stem(t){Ja(t,"stem"),Xa(t,"stem"),this.path=Wt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Je(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Xa(e,t){if(e&&e.includes(Wt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Wt.sep+"`")}function Ja(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Gf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function W3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Q3=function(e){const r=this.constructor.prototype,i=r[e],u=function(){return i.apply(u,arguments)};return Object.setPrototypeOf(u,r),u},$3={}.hasOwnProperty;class Ic extends Q3{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=R3()}copy(){const t=new Ic;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(qa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(to("data",this.frozen),this.namespace[t]=n,this):$3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(to("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Vu(t),r=this.parser||this.Parser;return Za("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Za("process",this.parser||this.Parser),eo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(u,s){const a=Vu(t),o=r.parse(a);r.run(o,a,function(f,d,p){if(f||!d||!p)return c(f);const m=d,E=r.stringify(m,p);K3(E)?p.value=E:p.result=E,c(f,p)});function c(f,d){f||!d?s(f):u?u(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Za("processSync",this.parser||this.Parser),eo("processSync",this.compiler||this.Compiler),this.process(t,i),Kf("processSync","process",n),r;function i(u,s){n=!0,jf(u),r=s}}run(t,n,r){qf(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(s,a){const o=Vu(n);i.run(t,o,c);function c(f,d,p){const m=d||t;f?a(f):s?s(m):r(void 0,m,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,u),Kf("runSync","run",r),i;function u(s,a){jf(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Vu(n),i=this.compiler||this.Compiler;return eo("stringify",i),qf(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(to("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;o(f,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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");a(c.plugins),c.settings&&(i.settings=qa(!0,i.settings,c.settings))}function a(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];u(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,f){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===c){p=d;break}if(p===-1)r.push([c,...f]);else if(f.length>0){let[m,...E]=f;const k=r[p][1];dl(k)&&dl(m)&&(m=qa(!0,k,m)),r[p]=[c,m,...E]}}}}const G3=new Ic().freeze();function Za(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function eo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function to(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 qf(e){if(!dl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vu(e){return q3(e)?e:new Up(e)}function q3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function K3(e){return typeof e=="string"||X3(e)}function X3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const J3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xf=[],Jf={allowDangerousHtml:!0},Z3=/^(https?|ircs?|mailto|xmpp)$/i,ek=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tk(e){const t=nk(e),n=rk(e);return ik(t.runSync(t.parse(n),n),e)}function nk(e){const t=e.rehypePlugins||Xf,n=e.remarkPlugins||Xf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Jf}:Jf;return G3().use(My).use(n).use(L3,r).use(t)}function rk(e){const t=e.children||"",n=new Up;return typeof t=="string"&&(n.value=t),n}function ik(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,u=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,o=t.urlTransform||uk;for(const f of ek)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+J3+f.id,void 0);return ha(e,c),bx(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function c(f,d,p){if(f.type==="raw"&&p&&typeof d=="number")return s?p.children.splice(d,1):p.children[d]={type:"text",value:f.value},d;if(f.type==="element"){let m;for(m in Qa)if(Object.hasOwn(Qa,m)&&Object.hasOwn(f.properties,m)){const E=f.properties[m],k=Qa[m];(k===null||k.includes(f.tagName))&&(f.properties[m]=o(String(E||""),m,f))}}if(f.type==="element"){let m=n?!n.includes(f.tagName):u?u.includes(f.tagName):!1;if(!m&&r&&typeof d=="number"&&(m=!r(f,d,p)),m&&p&&typeof d=="number")return a&&f.children?p.children.splice(d,1,...f.children):p.children.splice(d,1),d}}}function uk(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Z3.test(e.slice(0,t))?e:""}function Zf(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function sk(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ak(e,t,n){const i=da((n||{}).ignore||[]),u=ok(t);let s=-1;for(;++s<u.length;)Fp(e,"text",a);function a(c,f){let d=-1,p;for(;++d<f.length;){const m=f[d],E=p?p.children:void 0;if(i(m,E?E.indexOf(m):void 0,p))return;p=m}if(p)return o(c,f)}function o(c,f){const d=f[f.length-1],p=u[s][0],m=u[s][1];let E=0;const I=d.children.indexOf(c);let g=!1,T=[];p.lastIndex=0;let y=p.exec(c.value);for(;y;){const S=y.index,D={index:y.index,input:y.input,stack:[...f,c]};let C=m(...y,D);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=S+1:(E!==S&&T.push({type:"text",value:c.value.slice(E,S)}),Array.isArray(C)?T.push(...C):C&&T.push(C),E=S+y[0].length,g=!0),!p.global)break;y=p.exec(c.value)}return g?(E<c.value.length&&T.push({type:"text",value:c.value.slice(E)}),d.children.splice(I,1,...T)):T=[c],I+T.length}}function ok(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([lk(i[0]),ck(i[1])])}return t}function lk(e){return typeof e=="string"?new RegExp(sk(e),"g"):e}function ck(e){return typeof e=="function"?e:function(){return e}}const no="phrasing",ro=["autolink","link","image","label"];function dk(){return{transforms:[Tk],enter:{literalAutolink:hk,literalAutolinkEmail:io,literalAutolinkHttp:io,literalAutolinkWww:io},exit:{literalAutolink:Ek,literalAutolinkEmail:gk,literalAutolinkHttp:mk,literalAutolinkWww:pk}}}function fk(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:no,notInConstruct:ro},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:no,notInConstruct:ro},{character:":",before:"[ps]",after:"\\/",inConstruct:no,notInConstruct:ro}]}}function hk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function io(e){this.config.enter.autolinkProtocol.call(this,e)}function mk(e){this.config.exit.autolinkProtocol.call(this,e)}function pk(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 gk(e){this.config.exit.autolinkEmail.call(this,e)}function Ek(e){this.exit(e)}function Tk(e){ak(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xk]],{ignore:["link","linkReference"]})}function bk(e,t,n,r,i){let u="";if(!Hp(i)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!yk(n)))return!1;const s=kk(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:u+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function xk(e,t,n,r){return!Hp(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function yk(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 kk(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Zf(e,"(");let u=Zf(e,")");for(;r!==-1&&i>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}function Hp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||cr(n)||oa(n))&&(!t||n!==47)}jp.peek=Lk;function _k(){this.buffer()}function Nk(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ck(){this.buffer()}function Ak(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Sk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ut(this.sliceSerialize(e)).toLowerCase(),n.label=t}function wk(e){this.exit(e)}function Ik(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ut(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vk(e){this.exit(e)}function Lk(){return"["}function jp(e,t,n,r){const i=n.createTracker(r);let u=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return u+=i.move(n.safe(n.associationId(e),{after:"]",before:u})),a(),s(),u+=i.move("]"),u}function Ok(){return{enter:{gfmFootnoteCallString:_k,gfmFootnoteCall:Nk,gfmFootnoteDefinitionLabelString:Ck,gfmFootnoteDefinition:Ak},exit:{gfmFootnoteCallString:Sk,gfmFootnoteCall:wk,gfmFootnoteDefinitionLabelString:Ik,gfmFootnoteDefinition:vk}}}function Rk(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:jp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,u,s){const a=u.createTracker(s);let o=a.move("[^");const c=u.enter("footnoteDefinition"),f=u.enter("label");return o+=a.move(u.safe(u.associationId(r),{before:o,after:"]"})),f(),o+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
54
|
+
`:" ")+u.indentLines(u.containerFlow(r,a.current()),t?zp:Dk))),c(),o}}function Dk(e,t,n){return t===0?e:zp(e,t,n)}function zp(e,t,n){return(n?"":" ")+e}const Pk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yp.peek=Hk;function Mk(){return{canContainEols:["delete"],enter:{strikethrough:Bk},exit:{strikethrough:Uk}}}function Fk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pk}],handlers:{delete:Yp}}}function Bk(e){this.enter({type:"delete",children:[]},e)}function Uk(e){this.exit(e)}function Yp(e,t,n,r){const i=n.createTracker(r),u=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),u(),s}function Hk(){return"~"}function jk(e){return e.length}function zk(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||jk,u=[],s=[],a=[],o=[];let c=0,f=-1;for(;++f<e.length;){const k=[],I=[];let g=-1;for(e[f].length>c&&(c=e[f].length);++g<e[f].length;){const T=Yk(e[f][g]);if(n.alignDelimiters!==!1){const y=i(T);I[g]=y,(o[g]===void 0||y>o[g])&&(o[g]=y)}k.push(T)}s[f]=k,a[f]=I}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)u[d]=eh(r[d]);else{const k=eh(r);for(;++d<c;)u[d]=k}d=-1;const p=[],m=[];for(;++d<c;){const k=u[d];let I="",g="";k===99?(I=":",g=":"):k===108?I=":":k===114&&(g=":");let T=n.alignDelimiters===!1?1:Math.max(1,o[d]-I.length-g.length);const y=I+"-".repeat(T)+g;n.alignDelimiters!==!1&&(T=I.length+T+g.length,T>o[d]&&(o[d]=T),m[d]=T),p[d]=y}s.splice(1,0,p),a.splice(1,0,m),f=-1;const E=[];for(;++f<s.length;){const k=s[f],I=a[f];d=-1;const g=[];for(;++d<c;){const T=k[d]||"";let y="",S="";if(n.alignDelimiters!==!1){const D=o[d]-(I[d]||0),C=u[d];C===114?y=" ".repeat(D):C===99?D%2?(y=" ".repeat(D/2+.5),S=" ".repeat(D/2-.5)):(y=" ".repeat(D/2),S=y):S=" ".repeat(D)}n.delimiterStart!==!1&&!d&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||d)&&g.push(" "),n.alignDelimiters!==!1&&g.push(y),g.push(T),n.alignDelimiters!==!1&&g.push(S),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&g.push("|")}E.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return E.join(`
|
|
55
|
+
`)}function Yk(e){return e==null?"":String(e)}function eh(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 th={}.hasOwnProperty;function Vp(e,t){const n=t||{};function r(i,...u){let s=r.invalid;const a=r.handlers;if(i&&th.call(i,e)){const o=String(i[e]);s=th.call(a,o)?a[o]:r.unknown}if(s)return s.call(this,i,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Vk(e,t,n,r){const i=n.enter("blockquote"),u=n.createTracker(r);u.move("> "),u.shift(2);const s=n.indentLines(n.containerFlow(e,u.current()),Wk);return i(),s}function Wk(e,t,n){return">"+(n?"":" ")+e}function Qk(e,t){return nh(e,t.inConstruct,!0)&&!nh(e,t.notInConstruct,!1)}function nh(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function rh(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
56
|
+
`&&Qk(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
57
|
+
`}function $k(e,t){const n=String(e);let r=n.indexOf(t),i=r,u=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++u>s&&(s=u):u=1,i=r+t.length,r=n.indexOf(t,i);return s}function Gk(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 qk(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 Kk(e,t,n,r){const i=qk(n),u=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Gk(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(u,Xk);return d(),p}const a=n.createTracker(r),o=i.repeat(Math.max($k(u,i)+1,3)),c=n.enter("codeFenced");let f=a.move(o);if(e.lang){const d=n.enter(`codeFencedLang${s}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
58
|
+
`,encode:["`"],...a.current()})),d()}return f+=a.move(`
|
|
59
|
+
`),u&&(f+=a.move(u+`
|
|
60
|
+
`)),f+=a.move(o),c(),f}function Xk(e,t,n){return(n?"":" ")+e}function vc(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 Jk(e,t,n,r){const i=vc(n),u=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const o=n.createTracker(r);let c=o.move("[");return c+=o.move(n.safe(n.associationId(e),{before:c,after:"]",...o.current()})),c+=o.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(a=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
61
|
+
`,...o.current()}))),a(),e.title&&(a=n.enter(`title${u}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),a()),s(),c}function Zk(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 lu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Us(e,t,n){const r=qr(e),i=qr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wp.peek=e_;function Wp(e,t,n,r){const i=Zk(n),u=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let o=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=o.charCodeAt(0),f=Us(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(o=lu(c)+o.slice(1));const d=o.charCodeAt(o.length-1),p=Us(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+lu(d));const m=s.move(i);return u(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+o+m}function e_(e,t,n){return n.options.emphasis||"*"}function t_(e,t){let n=!1;return ha(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ll}),!!((!e.depth||e.depth<3)&&kc(e)&&(t.options.setext||n))}function n_(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),u=n.createTracker(r);if(t_(e,n)){const f=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...u.current(),before:`
|
|
62
|
+
`,after:`
|
|
63
|
+
`});return d(),f(),p+`
|
|
64
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
65
|
+
`))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),o=n.enter("phrasing");u.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
66
|
+
`,...u.current()});return/^[\t ]/.test(c)&&(c=lu(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),o(),a(),c}Qp.peek=r_;function Qp(e){return e.value||""}function r_(){return"<"}$p.peek=i_;function $p(e,t,n,r){const i=vc(n),u=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const o=n.createTracker(r);let c=o.move("![");return c+=o.move(n.safe(e.alt,{before:c,after:"]",...o.current()})),c+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(a=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=n.enter(`title${u}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),a()),c+=o.move(")"),s(),c}function i_(){return"!"}Gp.peek=u_;function Gp(e,t,n,r){const i=e.referenceType,u=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let o=a.move("![");const c=n.safe(e.alt,{before:o,after:"]",...a.current()});o+=a.move(c+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...a.current()});return s(),n.stack=f,u(),i==="full"||!c||c!==d?o+=a.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function u_(){return"!"}qp.peek=s_;function qp(e,t,n){let r=e.value||"",i="`",u=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<n.unsafe.length;){const s=n.unsafe[u],a=n.compilePattern(s);let o;if(s.atBreak)for(;o=a.exec(r);){let c=o.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(o.index+1)}}return i+r+i}function s_(){return"`"}function Kp(e,t){const n=kc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Xp.peek=a_;function Xp(e,t,n,r){const i=vc(n),u=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,o;if(Kp(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),a(),n.stack=f,d}a=n.enter("link"),o=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${u}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),o()),c+=s.move(")"),a(),c}function a_(e,t,n){return Kp(e,n)?"<":"["}Jp.peek=o_;function Jp(e,t,n,r){const i=e.referenceType,u=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let o=a.move("[");const c=n.containerPhrasing(e,{before:o,after:"]",...a.current()});o+=a.move(c+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...a.current()});return s(),n.stack=f,u(),i==="full"||!c||c!==d?o+=a.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function o_(){return"["}function Lc(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 l_(e){const t=Lc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function c_(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 Zp(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 d_(e,t,n,r){const i=n.enter("list"),u=n.bulletCurrent;let s=e.ordered?c_(n):Lc(n);const a=e.ordered?s==="."?")":".":l_(n);let o=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(o=!0),Zp(n)===s&&f){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=u,i(),c}function f_(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 h_(e,t,n,r){const i=f_(n);let u=n.bulletCurrent||Lc(n);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let s=u.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(u+" ".repeat(s-u.length)),a.shift(s);const o=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),f);return o(),c;function f(d,p,m){return p?(m?"":" ".repeat(s))+d:(m?u:u+" ".repeat(s-u.length))+d}}function m_(e,t,n,r){const i=n.enter("paragraph"),u=n.enter("phrasing"),s=n.containerPhrasing(e,r);return u(),i(),s}const p_=da(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function g_(e,t,n,r){return(e.children.some(function(s){return p_(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function E_(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}e1.peek=T_;function e1(e,t,n,r){const i=E_(n),u=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let o=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=o.charCodeAt(0),f=Us(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(o=lu(c)+o.slice(1));const d=o.charCodeAt(o.length-1),p=Us(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+lu(d));const m=s.move(i+i);return u(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+o+m}function T_(e,t,n){return n.options.strong||"*"}function b_(e,t,n,r){return n.safe(e.value,r)}function x_(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 y_(e,t,n){const r=(Zp(n)+(n.options.ruleSpaces?" ":"")).repeat(x_(n));return n.options.ruleSpaces?r.slice(0,-1):r}const t1={blockquote:Vk,break:rh,code:Kk,definition:Jk,emphasis:Wp,hardBreak:rh,heading:n_,html:Qp,image:$p,imageReference:Gp,inlineCode:qp,link:Xp,linkReference:Jp,list:d_,listItem:h_,paragraph:m_,root:g_,strong:e1,text:b_,thematicBreak:y_};function k_(){return{enter:{table:__,tableData:ih,tableHeader:ih,tableRow:C_},exit:{codeText:A_,table:N_,tableData:uo,tableHeader:uo,tableRow:uo}}}function __(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function N_(e){this.exit(e),this.data.inTable=void 0}function C_(e){this.enter({type:"tableRow",children:[]},e)}function uo(e){this.exit(e)}function ih(e){this.enter({type:"tableCell",children:[]},e)}function A_(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,S_));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function S_(e,t){return t==="|"?t:e}function w_(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
67
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:o,tableRow:a}};function s(m,E,k,I){return c(f(m,k,I),m.align)}function a(m,E,k,I){const g=d(m,k,I),T=c([g]);return T.slice(0,T.indexOf(`
|
|
68
|
+
`))}function o(m,E,k,I){const g=k.enter("tableCell"),T=k.enter("phrasing"),y=k.containerPhrasing(m,{...I,before:u,after:u});return T(),g(),y}function c(m,E){return zk(m,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function f(m,E,k){const I=m.children;let g=-1;const T=[],y=E.enter("table");for(;++g<I.length;)T[g]=d(I[g],E,k);return y(),T}function d(m,E,k){const I=m.children;let g=-1;const T=[],y=E.enter("tableRow");for(;++g<I.length;)T[g]=o(I[g],m,E,k);return y(),T}function p(m,E,k){let I=t1.inlineCode(m,E,k);return k.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function I_(){return{exit:{taskListCheckValueChecked:uh,taskListCheckValueUnchecked:uh,paragraph:L_}}}function v_(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O_}}}function uh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function L_(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let u=-1,s;for(;++u<i.length;){const a=i[u];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function O_(e,t,n,r){const i=e.children[0],u=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);u&&a.move(s);let o=t1.listItem(e,t,n,{...r,...a.current()});return u&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),o;function c(f){return f+s}}function R_(){return[dk(),Ok(),Mk(),k_(),I_()]}function D_(e){return{extensions:[fk(),Rk(e),Fk(),w_(e),v_()]}}const P_={tokenize:j_,partial:!0},n1={tokenize:z_,partial:!0},r1={tokenize:Y_,partial:!0},i1={tokenize:V_,partial:!0},M_={tokenize:W_,partial:!0},u1={name:"wwwAutolink",tokenize:U_,previous:a1},s1={name:"protocolAutolink",tokenize:H_,previous:o1},pn={name:"emailAutolink",tokenize:B_,previous:l1},Xt={};function F_(){return{text:Xt}}let Gn=48;for(;Gn<123;)Xt[Gn]=pn,Gn++,Gn===58?Gn=65:Gn===91&&(Gn=97);Xt[43]=pn;Xt[45]=pn;Xt[46]=pn;Xt[95]=pn;Xt[72]=[pn,s1];Xt[104]=[pn,s1];Xt[87]=[pn,u1];Xt[119]=[pn,u1];function B_(e,t,n){const r=this;let i,u;return s;function s(d){return!hl(d)||!l1.call(r,r.previous)||Oc(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return hl(d)?(e.consume(d),a):d===64?(e.consume(d),o):n(d)}function o(d){return d===46?e.check(M_,f,c)(d):d===45||d===95||Ke(d)?(u=!0,e.consume(d),o):f(d)}function c(d){return e.consume(d),i=!0,o}function f(d){return u&&i&&nt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function U_(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!a1.call(r,r.previous)||Oc(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(P_,e.attempt(n1,e.attempt(r1,u),n),n)(s))}function u(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function H_(e,t,n){const r=this;let i="",u=!1;return s;function s(d){return(d===72||d===104)&&o1.call(r,r.previous)&&!Oc(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(nt(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),o}return n(d)}function o(d){return d===47?(e.consume(d),u?c:(u=!0,o)):n(d)}function c(d){return d===null||Fs(d)||be(d)||cr(d)||oa(d)?n(d):e.attempt(n1,e.attempt(r1,f),n)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function j_(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),u):n(s)}function u(s){return s===null?n(s):t(s)}}function z_(e,t,n){let r,i,u;return s;function s(c){return c===46||c===95?e.check(i1,o,a)(c):c===null||be(c)||cr(c)||c!==45&&oa(c)?o(c):(u=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function o(c){return i||r||!u?n(c):t(c)}}function Y_(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?u(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(i1,t,u)(s):s===null||be(s)||cr(s)?t(s):(e.consume(s),i)}function u(s){return s===41&&r++,e.consume(s),i}}function V_(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),u):a===93?(e.consume(a),i):a===60||a===null||be(a)||cr(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||be(a)||cr(a)?t(a):r(a)}function u(a){return nt(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):nt(a)?(e.consume(a),s):n(a)}}function W_(e,t,n){return r;function r(u){return e.consume(u),i}function i(u){return Ke(u)?n(u):t(u)}}function a1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||be(e)}function o1(e){return!nt(e)}function l1(e){return!(e===47||hl(e))}function hl(e){return e===43||e===45||e===46||e===95||Ke(e)}function Oc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Q_={tokenize:eN,partial:!0};function $_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:X_,continuation:{tokenize:J_},exit:Z_}},text:{91:{name:"gfmFootnoteCall",tokenize:K_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:G_,resolveTo:q_}}}}function G_(e,t,n){const r=this;let i=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){s=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return a;function a(o){if(!s||!s._balanced)return n(o);const c=Ut(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!u.includes(c.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function q_(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",u,t],["enter",s,t],["exit",s,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function K_(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,s;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),o}function o(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(u>999||d===93&&!s||d===null||d===91||be(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Ut(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return be(d)||(s=!0),u++,e.consume(d),d===92?f:c}function f(d){return d===91||d===92||d===93?(e.consume(d),u++,c):c(d)}}function X_(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,s=0,a;return o;function o(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(E)}function f(E){if(s>999||E===93&&!a||E===null||E===91||be(E))return n(E);if(E===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return u=Ut(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return be(E)||(a=!0),s++,e.consume(E),E===92?d:f}function d(E){return E===91||E===92||E===93?(e.consume(E),s++,f):f(E)}function p(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(u)||i.push(u),de(e,m,"gfmFootnoteDefinitionWhitespace")):n(E)}function m(E){return t(E)}}function J_(e,t,n){return e.check(bu,t,e.attempt(Q_,t,n))}function Z_(e){e.exit("gfmFootnoteDefinition")}function eN(e,t,n){const r=this;return de(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(u):n(u)}}function tN(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let o=-1;for(;++o<s.length;)if(s[o][0]==="enter"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._close){let c=o;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[o][1].end.offset-s[o][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[o][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[o][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[o][1].start)},p=[["enter",f,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",d,a]],m=a.parser.constructs.insideSpan.null;m&&bt(p,p.length,0,la(m,s.slice(c+1,o),a)),bt(p,p.length,0,[["exit",d,a],["enter",s[o][1],a],["exit",s[o][1],a],["exit",f,a]]),bt(s,c-1,o-c+3,p),o=c+p.length-2;break}}for(o=-1;++o<s.length;)s[o][1].type==="strikethroughSequenceTemporary"&&(s[o][1].type="data");return s}function u(s,a,o){const c=this.previous,f=this.events;let d=0;return p;function p(E){return c===126&&f[f.length-1][1].type!=="characterEscape"?o(E):(s.enter("strikethroughSequenceTemporary"),m(E))}function m(E){const k=qr(c);if(E===126)return d>1?o(E):(s.consume(E),d++,m);if(d<2&&!n)return o(E);const I=s.exit("strikethroughSequenceTemporary"),g=qr(E);return I._open=!g||g===2&&!!k,I._close=!k||k===2&&!!g,a(E)}}}class nN{constructor(){this.map=[]}add(t,n,r){rN(this,t,n,r)}consume(t){if(this.map.sort(function(u,s){return u[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const u of i)t.push(u);i=r.pop()}this.map.length=0}}function rN(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function iN(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function uN(){return{flow:{null:{name:"table",tokenize:sN,resolveAll:aN}}}}function sN(e,t,n){const r=this;let i=0,u=0,s;return a;function a(w){let B=r.events.length-1;for(;B>-1;){const ce=r.events[B][1].type;if(ce==="lineEnding"||ce==="linePrefix")B--;else break}const V=B>-1?r.events[B][1].type:null,ee=V==="tableHead"||V==="tableRow"?C:o;return ee===C&&r.parser.lazy[r.now().line]?n(w):ee(w)}function o(w){return e.enter("tableHead"),e.enter("tableRow"),c(w)}function c(w){return w===124||(s=!0,u+=1),f(w)}function f(w){return w===null?n(w):K(w)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):n(w):ue(w)?de(e,f,"whitespace")(w):(u+=1,s&&(s=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),d(w)))}function d(w){return w===null||w===124||be(w)?(e.exit("data"),f(w)):(e.consume(w),w===92?p:d)}function p(w){return w===92||w===124?(e.consume(w),d):d(w)}function m(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,ue(w)?de(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):E(w))}function E(w){return w===45||w===58?I(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),k):D(w)}function k(w){return ue(w)?de(e,I,"whitespace")(w):I(w)}function I(w){return w===58?(u+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),g):w===45?(u+=1,g(w)):w===null||K(w)?S(w):D(w)}function g(w){return w===45?(e.enter("tableDelimiterFiller"),T(w)):D(w)}function T(w){return w===45?(e.consume(w),T):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(w))}function y(w){return ue(w)?de(e,S,"whitespace")(w):S(w)}function S(w){return w===124?E(w):w===null||K(w)?!s||i!==u?D(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):D(w)}function D(w){return n(w)}function C(w){return e.enter("tableRow"),O(w)}function O(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),O):w===null||K(w)?(e.exit("tableRow"),t(w)):ue(w)?de(e,O,"whitespace")(w):(e.enter("data"),L(w))}function L(w){return w===null||w===124||be(w)?(e.exit("data"),O(w)):(e.consume(w),w===92?W:L)}function W(w){return w===92||w===124?(e.consume(w),L):L(w)}}function aN(e,t){let n=-1,r=!0,i=0,u=[0,0,0,0],s=[0,0,0,0],a=!1,o=0,c,f,d;const p=new nN;for(;++n<e.length;){const m=e[n],E=m[1];m[0]==="enter"?E.type==="tableHead"?(a=!1,o!==0&&(sh(p,t,o,c,f),f=void 0,o=0),c={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(n,0,[["enter",c,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,d=void 0,u=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(n,0,[["enter",f,t]])),i=E.type==="tableDelimiterRow"?2:f?3:1):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(u[1]!==0&&(s[0]=s[1],d=Wu(p,t,u,i,void 0,d),u=[0,0,0,0]),s[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(s[0]=s[1],d=Wu(p,t,u,i,void 0,d)),u=s,s=[u[1],n,0,0])):E.type==="tableHead"?(a=!0,o=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(o=n,u[1]!==0?(s[0]=s[1],d=Wu(p,t,u,i,n,d)):s[1]!==0&&(d=Wu(p,t,s,i,n,d)),i=0):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=n)}for(o!==0&&sh(p,t,o,c,f),p.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=iN(t.events,n))}return e}function Wu(e,t,n,r,i,u){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(u.end=Object.assign({},yr(t.events,n[0])),e.add(n[0],0,[["exit",u,t]]));const o=yr(t.events,n[1]);if(u={type:s,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",u,t]]),n[2]!==0){const c=yr(t.events,n[2]),f=yr(t.events,n[3]),d={type:a,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],m=t.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,k=n[3]-n[2]-1;e.add(E,k,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(u.end=Object.assign({},yr(t.events,i)),e.add(i,0,[["exit",u,t]]),u=void 0),u}function sh(e,t,n,r,i){const u=[],s=yr(t.events,n);i&&(i.end=Object.assign({},s),u.push(["exit",i,t])),r.end=Object.assign({},s),u.push(["exit",r,t]),e.add(n+1,0,u)}function yr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const oN={name:"tasklistCheck",tokenize:cN};function lN(){return{text:{91:oN}}}function cN(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),u)}function u(o){return be(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),s):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),s):n(o)}function s(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(o)}function a(o){return K(o)?t(o):ue(o)?e.check({tokenize:dN},t,n)(o):n(o)}}function dN(e,t,n){return de(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function fN(e){return Tp([F_(),$_(),tN(e),uN(),lN()])}const hN={};function mN(e){const t=this,n=e||hN,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(fN(n)),u.push(R_()),s.push(D_(n))}const ah=/[#.]/g;function pN(e,t){const n=e||"",r={};let i=0,u,s;for(;i<n.length;){ah.lastIndex=i;const a=ah.exec(n),o=n.slice(i,a?a.index:n.length);o&&(u?u==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:s=o,i+=o.length),a&&(u=a[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function c1(e,t,n){const r=n?bN(n):void 0;function i(u,s,...a){let o;if(u==null){o={type:"root",children:[]};const c=s;a.unshift(c)}else{o=pN(u,t);const c=o.tagName.toLowerCase(),f=r?r.get(c):void 0;if(o.tagName=f||c,gN(s))a.unshift(s);else for(const[d,p]of Object.entries(s))EN(e,o.properties,d,p)}for(const c of a)ml(o.children,c);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function gN(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const u=i;for(const s of u)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function EN(e,t,n,r){const i=ua(e,n);let u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?i.spaceSeparated?u=mf(r):i.commaSeparated?u=lf(r):i.commaOrSpaceSeparated?u=mf(lf(r).join(" ")):u=oh(i,i.property,r):Array.isArray(r)?u=[...r]:u=i.property==="style"?TN(r):String(r);if(Array.isArray(u)){const s=[];for(const a of u)s.push(oh(i,i.property,a));u=s}i.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[i.property]=u}}function ml(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 n of t)ml(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ml(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function oh(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||au(n)===au(t)))return!0}return n}function TN(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function bN(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const xN=["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"],yN=c1(Tu,"div"),kN=c1(Yn,"g",xN);function _N(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(u){if(typeof u=="number"&&u>-1&&u<=t.length){let s=0;for(;;){let a=n[s];if(a===void 0){const o=lh(t,n[s-1]);a=o===-1?t.length+1:o+1,n[s]=a}if(a>u)return{line:s+1,column:u-(s>0?n[s-1]:0)+1,offset:u};s++}}}function i(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;n.length<u.line;){const a=n[n.length-1],o=lh(t,a),c=o===-1?t.length+1:o+1;if(a===c)break;n.push(c)}const s=(u.line>1?n[u.line-2]:0)+u.column-1;if(s<n[u.line-1])return s}}}function lh(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
69
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const tr={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/"},d1={}.hasOwnProperty,NN=Object.prototype;function CN(e,t){const n=t||{};return Rc({file:n.file||void 0,location:!1,schema:n.space==="svg"?Yn:Tu,verbose:n.verbose||!1},e)}function Rc(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ls(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:f1(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const u=String(e.file),s=_N(u),a=s.toPoint(0),o=s.toPoint(u.length);n.position={start:a,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ls(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ls(e,r,n),n}default:return n=AN(e,t),n}}function f1(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Rc(e,t[n]);r.push(i)}return r}function AN(e,t){const n=e.schema;e.schema=t.namespaceURI===tr.svg?Yn:Tu;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],o=(a.prefix?a.prefix+":":"")+a.name;d1.call(NN,o)||(i[o]=a.value)}const s=(e.schema.space==="svg"?kN:yN)(t.tagName,i,f1(e,t.childNodes));if(ls(e,t,s),s.tagName==="template"){const a=t,o=a.sourceCodeLocation,c=o&&o.startTag&&Dr(o.startTag),f=o&&o.endTag&&Dr(o.endTag),d=Rc(e,a.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),s.content=d}return e.schema=n,s}function ls(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=SN(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function SN(e,t,n){const r=Dr(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const u={};let s;if(n.attrs)for(s in n.attrs)d1.call(n.attrs,s)&&(u[ua(e.schema,s).property]=Dr(n.attrs[s]));n.startTag;const a=Dr(n.startTag),o=n.endTag?Dr(n.endTag):void 0,c={opening:a};o&&(c.closing=o),c.properties=u,t.data={position:c}}}return r}function Dr(e){const t=ch({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ch({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ch(e){return e.line&&e.column?e:void 0}const wN={},IN={}.hasOwnProperty,h1=Vp("type",{handlers:{root:LN,element:MN,text:DN,comment:PN,doctype:RN}});function vN(e,t){const r=(t||wN).space;return h1(e,r==="svg"?Yn:Tu)}function LN(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Dc(e.children,n,t),ri(e,n),n}function ON(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Dc(e.children,n,t),ri(e,n),n}function RN(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ri(e,t),t}function DN(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ri(e,t),t}function PN(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ri(e,t),t}function MN(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Yn);const i=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&IN.call(e.properties,u)){const o=FN(r,u,e.properties[u]);o&&i.push(o)}}const s=r.space,a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:tr[s],childNodes:[],parentNode:null};return a.childNodes=Dc(e.children,a,r),ri(e,a),e.tagName==="template"&&e.content&&(a.content=ON(e.content,r)),a}function FN(e,t,n){const r=ua(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?rp(n):dp(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const u=i.name.indexOf(":");u<0?i.prefix="":(i.name=i.name.slice(u+1),i.prefix=r.attribute.slice(0,u)),i.namespace=tr[r.space]}return i}function Dc(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const u=h1(e[r],n);u.parentNode=t,i.push(u)}return i}function ri(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const BN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],UN=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]),Ce="�";var b;(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"})(b||(b={}));const st={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function m1(e){return e>=55296&&e<=57343}function HN(e){return e>=56320&&e<=57343}function jN(e,t){return(e-55296)*1024+9216+t}function p1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function g1(e){return e>=64976&&e<=65007||UN.has(e)}var R;(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"})(R||(R={}));const zN=65536;class YN{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=zN,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,n){const{line:r,col:i,offset:u}=this,s=i+n,a=u+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:a,endOffset:a}}_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 n=this.html.charCodeAt(this.pos+1);if(HN(n))return this.pos++,this._addGap(),jN(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,b.EOF;return this._err(R.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,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;const r=this.html.charCodeAt(n);return r===b.CARRIAGE_RETURN?b.LINE_FEED:r}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,b.EOF;let t=this.html.charCodeAt(this.pos);return t===b.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,b.LINE_FEED):t===b.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,m1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===b.LINE_FEED||t===b.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){p1(t)?this._err(R.controlCharacterInInputStream):g1(t)&&this._err(R.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ie;(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"})(ie||(ie={}));function E1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const VN=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))),WN=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 QN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=WN.get(e))!==null&&t!==void 0?t:e}var ze;(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"})(ze||(ze={}));const $N=32;var wn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wn||(wn={}));function pl(e){return e>=ze.ZERO&&e<=ze.NINE}function GN(e){return e>=ze.UPPER_A&&e<=ze.UPPER_F||e>=ze.LOWER_A&&e<=ze.LOWER_F}function qN(e){return e>=ze.UPPER_A&&e<=ze.UPPER_Z||e>=ze.LOWER_A&&e<=ze.LOWER_Z||pl(e)}function KN(e){return e===ze.EQUALS||qN(e)}var He;(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"})(He||(He={}));var sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(sn||(sn={}));class XN{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=He.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=sn.Strict}startEntity(t){this.decodeMode=t,this.state=He.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case He.EntityStart:return t.charCodeAt(n)===ze.NUM?(this.state=He.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=He.NamedEntity,this.stateNamedEntity(t,n));case He.NumericStart:return this.stateNumericStart(t,n);case He.NumericDecimal:return this.stateNumericDecimal(t,n);case He.NumericHex:return this.stateNumericHex(t,n);case He.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|$N)===ze.LOWER_X?(this.state=He.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=He.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const u=r-n;this.result=this.result*Math.pow(i,u)+Number.parseInt(t.substr(n,u),i),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(pl(i)||GN(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(pl(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ze.SEMI)this.consumed+=1;else if(this.decodeMode===sn.Strict)return 0;return this.emitCodePoint(QN(this.result),this.consumed),this.errors&&(t!==ze.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],u=(i&wn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=JN(r,i,this.treeIndex+Math.max(1,u),s),this.treeIndex<0)return this.result===0||this.decodeMode===sn.Attribute&&(u===0||KN(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],u=(i&wn.VALUE_LENGTH)>>14,u!==0){if(s===ze.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&wn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~wn.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case He.NamedEntity:return this.result!==0&&(this.decodeMode!==sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case He.NumericDecimal:return this.emitNumericEntity(0,2);case He.NumericHex:return this.emitNumericEntity(0,3);case He.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case He.EntityStart:return 0}}}function JN(e,t,n,r){const i=(t&wn.BRANCH_LENGTH)>>7,u=t&wn.JUMP_TABLE;if(i===0)return u!==0&&r===u?n:-1;if(u){const o=r-u;return o<0||o>=i?-1:e[n+o]-1}let s=n,a=s+i-1;for(;s<=a;){const o=s+a>>>1,c=e[o];if(c<r)s=o+1;else if(c>r)a=o-1;else return e[o+i]}return-1}var F;(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/"})(F||(F={}));var ir;(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"})(ir||(ir={}));var At;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(At||(At={}));var v;(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"})(v||(v={}));var l;(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"})(l||(l={}));const ZN=new Map([[v.A,l.A],[v.ADDRESS,l.ADDRESS],[v.ANNOTATION_XML,l.ANNOTATION_XML],[v.APPLET,l.APPLET],[v.AREA,l.AREA],[v.ARTICLE,l.ARTICLE],[v.ASIDE,l.ASIDE],[v.B,l.B],[v.BASE,l.BASE],[v.BASEFONT,l.BASEFONT],[v.BGSOUND,l.BGSOUND],[v.BIG,l.BIG],[v.BLOCKQUOTE,l.BLOCKQUOTE],[v.BODY,l.BODY],[v.BR,l.BR],[v.BUTTON,l.BUTTON],[v.CAPTION,l.CAPTION],[v.CENTER,l.CENTER],[v.CODE,l.CODE],[v.COL,l.COL],[v.COLGROUP,l.COLGROUP],[v.DD,l.DD],[v.DESC,l.DESC],[v.DETAILS,l.DETAILS],[v.DIALOG,l.DIALOG],[v.DIR,l.DIR],[v.DIV,l.DIV],[v.DL,l.DL],[v.DT,l.DT],[v.EM,l.EM],[v.EMBED,l.EMBED],[v.FIELDSET,l.FIELDSET],[v.FIGCAPTION,l.FIGCAPTION],[v.FIGURE,l.FIGURE],[v.FONT,l.FONT],[v.FOOTER,l.FOOTER],[v.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[v.FORM,l.FORM],[v.FRAME,l.FRAME],[v.FRAMESET,l.FRAMESET],[v.H1,l.H1],[v.H2,l.H2],[v.H3,l.H3],[v.H4,l.H4],[v.H5,l.H5],[v.H6,l.H6],[v.HEAD,l.HEAD],[v.HEADER,l.HEADER],[v.HGROUP,l.HGROUP],[v.HR,l.HR],[v.HTML,l.HTML],[v.I,l.I],[v.IMG,l.IMG],[v.IMAGE,l.IMAGE],[v.INPUT,l.INPUT],[v.IFRAME,l.IFRAME],[v.KEYGEN,l.KEYGEN],[v.LABEL,l.LABEL],[v.LI,l.LI],[v.LINK,l.LINK],[v.LISTING,l.LISTING],[v.MAIN,l.MAIN],[v.MALIGNMARK,l.MALIGNMARK],[v.MARQUEE,l.MARQUEE],[v.MATH,l.MATH],[v.MENU,l.MENU],[v.META,l.META],[v.MGLYPH,l.MGLYPH],[v.MI,l.MI],[v.MO,l.MO],[v.MN,l.MN],[v.MS,l.MS],[v.MTEXT,l.MTEXT],[v.NAV,l.NAV],[v.NOBR,l.NOBR],[v.NOFRAMES,l.NOFRAMES],[v.NOEMBED,l.NOEMBED],[v.NOSCRIPT,l.NOSCRIPT],[v.OBJECT,l.OBJECT],[v.OL,l.OL],[v.OPTGROUP,l.OPTGROUP],[v.OPTION,l.OPTION],[v.P,l.P],[v.PARAM,l.PARAM],[v.PLAINTEXT,l.PLAINTEXT],[v.PRE,l.PRE],[v.RB,l.RB],[v.RP,l.RP],[v.RT,l.RT],[v.RTC,l.RTC],[v.RUBY,l.RUBY],[v.S,l.S],[v.SCRIPT,l.SCRIPT],[v.SEARCH,l.SEARCH],[v.SECTION,l.SECTION],[v.SELECT,l.SELECT],[v.SOURCE,l.SOURCE],[v.SMALL,l.SMALL],[v.SPAN,l.SPAN],[v.STRIKE,l.STRIKE],[v.STRONG,l.STRONG],[v.STYLE,l.STYLE],[v.SUB,l.SUB],[v.SUMMARY,l.SUMMARY],[v.SUP,l.SUP],[v.TABLE,l.TABLE],[v.TBODY,l.TBODY],[v.TEMPLATE,l.TEMPLATE],[v.TEXTAREA,l.TEXTAREA],[v.TFOOT,l.TFOOT],[v.TD,l.TD],[v.TH,l.TH],[v.THEAD,l.THEAD],[v.TITLE,l.TITLE],[v.TR,l.TR],[v.TRACK,l.TRACK],[v.TT,l.TT],[v.U,l.U],[v.UL,l.UL],[v.SVG,l.SVG],[v.VAR,l.VAR],[v.WBR,l.WBR],[v.XMP,l.XMP]]);function ii(e){var t;return(t=ZN.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const U=l,eC={[F.HTML]:new Set([U.ADDRESS,U.APPLET,U.AREA,U.ARTICLE,U.ASIDE,U.BASE,U.BASEFONT,U.BGSOUND,U.BLOCKQUOTE,U.BODY,U.BR,U.BUTTON,U.CAPTION,U.CENTER,U.COL,U.COLGROUP,U.DD,U.DETAILS,U.DIR,U.DIV,U.DL,U.DT,U.EMBED,U.FIELDSET,U.FIGCAPTION,U.FIGURE,U.FOOTER,U.FORM,U.FRAME,U.FRAMESET,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HEADER,U.HGROUP,U.HR,U.HTML,U.IFRAME,U.IMG,U.INPUT,U.LI,U.LINK,U.LISTING,U.MAIN,U.MARQUEE,U.MENU,U.META,U.NAV,U.NOEMBED,U.NOFRAMES,U.NOSCRIPT,U.OBJECT,U.OL,U.P,U.PARAM,U.PLAINTEXT,U.PRE,U.SCRIPT,U.SECTION,U.SELECT,U.SOURCE,U.STYLE,U.SUMMARY,U.TABLE,U.TBODY,U.TD,U.TEMPLATE,U.TEXTAREA,U.TFOOT,U.TH,U.THEAD,U.TITLE,U.TR,U.TRACK,U.UL,U.WBR,U.XMP]),[F.MATHML]:new Set([U.MI,U.MO,U.MN,U.MS,U.MTEXT,U.ANNOTATION_XML]),[F.SVG]:new Set([U.TITLE,U.FOREIGN_OBJECT,U.DESC]),[F.XLINK]:new Set,[F.XML]:new Set,[F.XMLNS]:new Set},gl=new Set([U.H1,U.H2,U.H3,U.H4,U.H5,U.H6]);v.STYLE,v.SCRIPT,v.XMP,v.IFRAME,v.NOEMBED,v.NOFRAMES,v.PLAINTEXT;var _;(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"})(_||(_={}));const Re={DATA:_.DATA,RCDATA:_.RCDATA,RAWTEXT:_.RAWTEXT,SCRIPT_DATA:_.SCRIPT_DATA,PLAINTEXT:_.PLAINTEXT,CDATA_SECTION:_.CDATA_SECTION};function tC(e){return e>=b.DIGIT_0&&e<=b.DIGIT_9}function Ai(e){return e>=b.LATIN_CAPITAL_A&&e<=b.LATIN_CAPITAL_Z}function nC(e){return e>=b.LATIN_SMALL_A&&e<=b.LATIN_SMALL_Z}function xn(e){return nC(e)||Ai(e)}function dh(e){return xn(e)||tC(e)}function Qu(e){return e+32}function T1(e){return e===b.SPACE||e===b.LINE_FEED||e===b.TABULATION||e===b.FORM_FEED}function fh(e){return T1(e)||e===b.SOLIDUS||e===b.GREATER_THAN_SIGN}function rC(e){return e===b.NULL?R.nullCharacterReference:e>1114111?R.characterReferenceOutsideUnicodeRange:m1(e)?R.surrogateCharacterReference:g1(e)?R.noncharacterCharacterReference:p1(e)||e===b.CARRIAGE_RETURN?R.controlCharacterReference:null}class iC{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=_.DATA,this.returnState=_.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new YN(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new XN(VN,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(R.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(R.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=rC(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}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,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}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 n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ie.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ie.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ie.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ie.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(E1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(R.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=ii(t.tagName),t.type===ie.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(R.endTagWithAttributes),t.selfClosing&&this._err(R.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 ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ie.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:ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=T1(t)?ie.WHITESPACE_CHARACTER:t===b.NULL?ie.NULL_CHARACTER:ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=_.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?sn.Attribute:sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===_.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case _.DATA:{this._stateData(t);break}case _.RCDATA:{this._stateRcdata(t);break}case _.RAWTEXT:{this._stateRawtext(t);break}case _.SCRIPT_DATA:{this._stateScriptData(t);break}case _.PLAINTEXT:{this._statePlaintext(t);break}case _.TAG_OPEN:{this._stateTagOpen(t);break}case _.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case _.TAG_NAME:{this._stateTagName(t);break}case _.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case _.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case _.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case _.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case _.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case _.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case _.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case _.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case _.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case _.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case _.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case _.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case _.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case _.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case _.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case _.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case _.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case _.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case _.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case _.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case _.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case _.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case _.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case _.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case _.BOGUS_COMMENT:{this._stateBogusComment(t);break}case _.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case _.COMMENT_START:{this._stateCommentStart(t);break}case _.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case _.COMMENT:{this._stateComment(t);break}case _.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case _.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case _.COMMENT_END:{this._stateCommentEnd(t);break}case _.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case _.DOCTYPE:{this._stateDoctype(t);break}case _.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case _.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case _.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case _.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case _.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case _.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case _.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case _.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case _.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case _.CDATA_SECTION:{this._stateCdataSection(t);break}case _.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case _.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case _.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case _.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=_.TAG_OPEN;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitCodePoint(t);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case b.AMPERSAND:{this._startCharacterReference();break}case b.LESS_THAN_SIGN:{this.state=_.RCDATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitChars(Ce);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case b.LESS_THAN_SIGN:{this.state=_.RAWTEXT_LESS_THAN_SIGN;break}case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitChars(Ce);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitChars(Ce);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitChars(Ce);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(xn(t))this._createStartTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case b.EXCLAMATION_MARK:{this.state=_.MARKUP_DECLARATION_OPEN;break}case b.SOLIDUS:{this.state=_.END_TAG_OPEN;break}case b.QUESTION_MARK:{this._err(R.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t);break}case b.EOF:{this._err(R.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(R.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=_.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(xn(t))this._createEndTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case b.GREATER_THAN_SIGN:{this._err(R.missingEndTagName),this.state=_.DATA;break}case b.EOF:{this._err(R.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(R.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=_.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.tagName+=Ce;break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ai(t)?Qu(t):t)}}_stateRcdataLessThanSign(t){t===b.SOLIDUS?this.state=_.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){xn(t)?(this.state=_.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=_.BEFORE_ATTRIBUTE_NAME,!1;case b.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=_.SELF_CLOSING_START_TAG,!1;case b.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=_.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===b.SOLIDUS?this.state=_.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){xn(t)?(this.state=_.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case b.SOLIDUS:{this.state=_.SCRIPT_DATA_END_TAG_OPEN;break}case b.EXCLAMATION_MARK:{this.state=_.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=_.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){xn(t)?(this.state=_.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===b.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===b.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitChars(Ce);break}case b.EOF:{this._err(R.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(Ce);break}case b.EOF:{this._err(R.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(Ce);break}case b.EOF:{this._err(R.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===b.SOLIDUS?this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:xn(t)?(this._emitChars("<"),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){xn(t)?(this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(st.SCRIPT,!1)&&fh(this.preprocessor.peek(st.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<st.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(R.unexpectedNullCharacter),this._emitChars(Ce);break}case b.EOF:{this._err(R.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ce);break}case b.EOF:{this._err(R.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ce);break}case b.EOF:{this._err(R.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===b.SOLIDUS?(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(st.SCRIPT,!1)&&fh(this.preprocessor.peek(st.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<st.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._err(R.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this._leaveAttrName(),this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._leaveAttrName(),this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:{this._err(R.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.currentAttr.name+=Ce;break}default:this.currentAttr.name+=String.fromCodePoint(Ai(t)?Qu(t):t)}}_stateAfterAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case b.EQUALS_SIGN:{this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{this.state=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this.state=_.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(R.missingAttributeValue),this.state=_.DATA,this.emitCurrentTagToken();break}default:this.state=_.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case b.QUOTATION_MARK:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.currentAttr.value+=Ce;break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case b.APOSTROPHE:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.currentAttr.value+=Ce;break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(R.unexpectedNullCharacter),this.currentAttr.value+=Ce;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:case b.EQUALS_SIGN:case b.GRAVE_ACCENT:{this._err(R.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this._leaveAttrValue(),this.state=_.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:this._err(R.missingWhitespaceBetweenAttributes),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case b.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=_.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(R.eofInTag),this._emitEOFToken();break}default:this._err(R.unexpectedSolidusInTag),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case b.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.data+=Ce;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(st.DASH_DASH,!0)?(this._createCommentToken(st.DASH_DASH.length+1),this.state=_.COMMENT_START):this._consumeSequenceIfMatch(st.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(st.DOCTYPE.length+1),this.state=_.DOCTYPE):this._consumeSequenceIfMatch(st.CDATA_START,!0)?this.inForeignNode?this.state=_.CDATA_SECTION:(this._err(R.cdataInHtmlContent),this._createCommentToken(st.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=_.BOGUS_COMMENT):this._ensureHibernation()||(this._err(R.incorrectlyOpenedComment),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case b.HYPHEN_MINUS:{this.state=_.COMMENT_START_DASH;break}case b.GREATER_THAN_SIGN:{this._err(R.abruptClosingOfEmptyComment),this.state=_.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case b.GREATER_THAN_SIGN:{this._err(R.abruptClosingOfEmptyComment),this.state=_.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(R.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=_.COMMENT_END_DASH;break}case b.LESS_THAN_SIGN:{n.data+="<",this.state=_.COMMENT_LESS_THAN_SIGN;break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.data+=Ce;break}case b.EOF:{this._err(R.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case b.EXCLAMATION_MARK:{n.data+="!",this.state=_.COMMENT_LESS_THAN_SIGN_BANG;break}case b.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===b.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=_.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===b.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=_.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==b.GREATER_THAN_SIGN&&t!==b.EOF&&this._err(R.nestedComment),this.state=_.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case b.EOF:{this._err(R.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case b.EXCLAMATION_MARK:{this.state=_.COMMENT_END_BANG;break}case b.HYPHEN_MINUS:{n.data+="-";break}case b.EOF:{this._err(R.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{n.data+="--!",this.state=_.COMMENT_END_DASH;break}case b.GREATER_THAN_SIGN:{this._err(R.incorrectlyClosedComment),this.state=_.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(R.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=_.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case b.EOF:{this._err(R.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingWhitespaceBeforeDoctypeName),this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ai(t))this._createDoctypeToken(String.fromCharCode(Qu(t))),this.state=_.DOCTYPE_NAME;else switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.NULL:{this._err(R.unexpectedNullCharacter),this._createDoctypeToken(Ce),this.state=_.DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this._err(R.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.EOF:{this._err(R.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=_.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=_.AFTER_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.name+=Ce;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ai(t)?Qu(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(st.PUBLIC,!1)?this.state=_.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(st.SYSTEM,!1)?this.state=_.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(R.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(R.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(R.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(R.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(R.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.publicId+=Ce;break}case b.GREATER_THAN_SIGN:{this._err(R.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.publicId+=Ce;break}case b.GREATER_THAN_SIGN:{this._err(R.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case b.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.QUOTATION_MARK:{this._err(R.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(R.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(R.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(R.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(R.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(R.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.systemId+=Ce;break}case b.GREATER_THAN_SIGN:{this._err(R.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(R.unexpectedNullCharacter),n.systemId+=Ce;break}case b.GREATER_THAN_SIGN:{this._err(R.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.EOF:{this._err(R.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(R.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case b.NULL:{this._err(R.unexpectedNullCharacter);break}case b.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case b.RIGHT_SQUARE_BRACKET:{this.state=_.CDATA_SECTION_BRACKET;break}case b.EOF:{this._err(R.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===b.RIGHT_SQUARE_BRACKET?this.state=_.CDATA_SECTION_END:(this._emitChars("]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case b.GREATER_THAN_SIGN:{this.state=_.DATA;break}case b.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=_.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(b.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&dh(this.preprocessor.peek(1))?_.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){dh(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===b.SEMICOLON&&this._err(R.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const b1=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),hh=new Set([...b1,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),Hs=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),uC=new Set([...Hs,l.OL,l.UL]),sC=new Set([...Hs,l.BUTTON]),mh=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),ph=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),aC=new Set([l.TR,l.TEMPLATE,l.HTML]),oC=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),lC=new Set([l.TABLE,l.TEMPLATE,l.HTML]),cC=new Set([l.TD,l.TH]);class dC{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===F.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==F.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(gl,F.HTML)}popUntilTableCellPopped(){this.popUntilPopped(cC,F.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(lC,F.HTML)}clearBackToTableBodyContext(){this.clearBackTo(oC,F.HTML)}clearBackToTableRowContext(){this.clearBackTo(aC,F.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case F.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case F.SVG:{if(ph.has(i))return!1;break}case F.MATHML:{if(mh.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Hs)}hasInListItemScope(t){return this.hasInDynamicScope(t,uC)}hasInButtonScope(t){return this.hasInDynamicScope(t,sC)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case F.HTML:{if(gl.has(n))return!0;if(Hs.has(n))return!1;break}case F.SVG:{if(ph.has(n))return!1;break}case F.MATHML:{if(mh.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===F.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===F.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===F.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&b1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&hh.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&hh.has(this.currentTagId);)this.pop()}}const so=3;var Qt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Qt||(Qt={}));const gh={type:Qt.Marker};class fC{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,u=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const o=this.entries[a];if(o.type===Qt.Marker)break;const{element:c}=o;if(this.treeAdapter.getTagName(c)===u&&this.treeAdapter.getNamespaceURI(c)===s){const f=this.treeAdapter.getAttrList(c);f.length===i&&r.push({idx:a,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<so)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<so)return;const i=new Map(n.map(s=>[s.name,s.value]));let u=0;for(let s=0;s<r.length;s++){const a=r[s];a.attrs.every(o=>i.get(o.name)===o.value)&&(u+=1,u>=so&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(gh)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Qt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Qt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(gh);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Qt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Qt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Qt.Element&&n.element===t)}}const yn={createDocument(){return{nodeName:"#document",mode:At.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,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,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(u=>u.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const u={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};yn.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 n=e.childNodes[e.childNodes.length-1];if(yn.isTextNode(n)){n.value+=t;return}}yn.appendChild(e,yn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&yn.isTextNode(r)?r.value+=t:yn.insertBefore(e,yn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},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}}},x1="html",hC="about:legacy-compat",mC="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",y1=["+//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//"],pC=[...y1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],gC=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),k1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],EC=[...k1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Eh(e,t){return t.some(n=>e.startsWith(n))}function TC(e){return e.name===x1&&e.publicId===null&&(e.systemId===null||e.systemId===hC)}function bC(e){if(e.name!==x1)return At.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===mC)return At.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),gC.has(n))return At.QUIRKS;let r=t===null?pC:y1;if(Eh(n,r))return At.QUIRKS;if(r=t===null?k1:EC,Eh(n,r))return At.LIMITED_QUIRKS}return At.NO_QUIRKS}const Th={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xC="definitionurl",yC="definitionURL",kC=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])),_C=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:F.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:F.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:F.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:F.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:F.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:F.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:F.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:F.XML}],["xml:space",{prefix:"xml",name:"space",namespace:F.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:F.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:F.XMLNS}]]),NC=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])),CC=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function AC(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===ir.COLOR||r===ir.SIZE||r===ir.FACE)||CC.has(t)}function _1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===xC){e.attrs[t].name=yC;break}}function N1(e){for(let t=0;t<e.attrs.length;t++){const n=kC.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Pc(e){for(let t=0;t<e.attrs.length;t++){const n=_C.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function SC(e){const t=NC.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ii(e.tagName))}function wC(e,t){return t===F.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function IC(e,t,n){if(t===F.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ir.ENCODING){const i=n[r].value.toLowerCase();return i===Th.TEXT_HTML||i===Th.APPLICATION_XML}}return t===F.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function vC(e,t,n,r){return(!r||r===F.HTML)&&IC(e,t,n)||(!r||r===F.MATHML)&&wC(e,t)}const LC="hidden",OC=8,RC=3;var N;(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"})(N||(N={}));const DC={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},C1=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),bh={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:yn,onParseError:null};class xh{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=N.INITIAL,this.originalInsertionMode=N.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={...bh,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new iC(this.options,this),this.activeFormattingElements=new fC(this.treeAdapter),this.fragmentContextID=r?ii(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new dC(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...bh,...n};t??(t=r.treeAdapter.createElement(v.TEMPLATE,F.HTML,[]));const i=r.treeAdapter.createElement("documentmock",F.HTML,[]),u=new this(r,i,t);return u.fragmentContextID===l.TEMPLATE&&u.tmplInsertionModeStack.unshift(N.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const u=(i=t.location)!==null&&i!==void 0?i:DC,s={code:n,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:r?u.startLine:u.endLine,endCol:r?u.startCol:u.endCol,endOffset:r?u.startOffset:u.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,u;(u=(i=this.treeAdapter).onItemPush)===null||u===void 0||u.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let u,s;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,s=this.fragmentContextID):{current:u,currentTagId:s}=this.openElements,this._setContextModes(u,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===F.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,F.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=N.TEXT}switchToPlaintextParsing(){this.insertionMode=N.TEXT,this.originalInsertionMode=N.IN_BODY,this.tokenizer.state=Re.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)===v.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==F.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=Re.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=Re.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=Re.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=Re.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,F.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,F.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(v.HTML,F.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),u=r?i.lastIndexOf(r):i.length,s=i[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:o,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:o,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),u=n.type===ie.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===v.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===F.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,F.HTML)}_processToken(t){switch(t.type){case ie.CHARACTER:{this.onCharacter(t);break}case ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case ie.COMMENT:{this.onComment(t);break}case ie.DOCTYPE:{this.onDoctype(t);break}case ie.START_TAG:{this._processStartTag(t);break}case ie.END_TAG:{this.onEndTag(t);break}case ie.EOF:{this.onEof(t);break}case ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),u=this.treeAdapter.getAttrList(n);return vC(t,i,u,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Qt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const u=this.activeFormattingElements.entries[i];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=N.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=N.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=N.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=N.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=N.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=N.IN_TABLE;return}case l.BODY:{this.insertionMode=N.IN_BODY;return}case l.FRAMESET:{this.insertionMode=N.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?N.AFTER_HEAD:N.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=N.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=N.IN_HEAD;return}break}}this.insertionMode=N.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=N.IN_SELECT_IN_TABLE;return}}this.insertionMode=N.IN_SELECT}_isElementCausesFosterParenting(t){return C1.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 n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===F.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return eC[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){cS(this,t);return}switch(this.insertionMode){case N.INITIAL:{xi(this,t);break}case N.BEFORE_HTML:{Ui(this,t);break}case N.BEFORE_HEAD:{Hi(this,t);break}case N.IN_HEAD:{ji(this,t);break}case N.IN_HEAD_NO_SCRIPT:{zi(this,t);break}case N.AFTER_HEAD:{Yi(this,t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:{S1(this,t);break}case N.TEXT:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{ao(this,t);break}case N.IN_TABLE_TEXT:{R1(this,t);break}case N.IN_COLUMN_GROUP:{js(this,t);break}case N.AFTER_BODY:{zs(this,t);break}case N.AFTER_AFTER_BODY:{cs(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lS(this,t);return}switch(this.insertionMode){case N.INITIAL:{xi(this,t);break}case N.BEFORE_HTML:{Ui(this,t);break}case N.BEFORE_HEAD:{Hi(this,t);break}case N.IN_HEAD:{ji(this,t);break}case N.IN_HEAD_NO_SCRIPT:{zi(this,t);break}case N.AFTER_HEAD:{Yi(this,t);break}case N.TEXT:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{ao(this,t);break}case N.IN_COLUMN_GROUP:{js(this,t);break}case N.AFTER_BODY:{zs(this,t);break}case N.AFTER_AFTER_BODY:{cs(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){El(this,t);return}switch(this.insertionMode){case N.INITIAL:case N.BEFORE_HTML:case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_TEMPLATE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{El(this,t);break}case N.IN_TABLE_TEXT:{yi(this,t);break}case N.AFTER_BODY:{jC(this,t);break}case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{zC(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case N.INITIAL:{YC(this,t);break}case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:{this._err(t,R.misplacedDoctype);break}case N.IN_TABLE_TEXT:{yi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,R.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?dS(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{xi(this,t);break}case N.BEFORE_HTML:{VC(this,t);break}case N.BEFORE_HEAD:{QC(this,t);break}case N.IN_HEAD:{jt(this,t);break}case N.IN_HEAD_NO_SCRIPT:{qC(this,t);break}case N.AFTER_HEAD:{XC(this,t);break}case N.IN_BODY:{Ze(this,t);break}case N.IN_TABLE:{Xr(this,t);break}case N.IN_TABLE_TEXT:{yi(this,t);break}case N.IN_CAPTION:{$A(this,t);break}case N.IN_COLUMN_GROUP:{Bc(this,t);break}case N.IN_TABLE_BODY:{ga(this,t);break}case N.IN_ROW:{Ea(this,t);break}case N.IN_CELL:{KA(this,t);break}case N.IN_SELECT:{M1(this,t);break}case N.IN_SELECT_IN_TABLE:{JA(this,t);break}case N.IN_TEMPLATE:{eS(this,t);break}case N.AFTER_BODY:{nS(this,t);break}case N.IN_FRAMESET:{rS(this,t);break}case N.AFTER_FRAMESET:{uS(this,t);break}case N.AFTER_AFTER_BODY:{aS(this,t);break}case N.AFTER_AFTER_FRAMESET:{oS(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?fS(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{xi(this,t);break}case N.BEFORE_HTML:{WC(this,t);break}case N.BEFORE_HEAD:{$C(this,t);break}case N.IN_HEAD:{GC(this,t);break}case N.IN_HEAD_NO_SCRIPT:{KC(this,t);break}case N.AFTER_HEAD:{JC(this,t);break}case N.IN_BODY:{pa(this,t);break}case N.TEXT:{FA(this,t);break}case N.IN_TABLE:{cu(this,t);break}case N.IN_TABLE_TEXT:{yi(this,t);break}case N.IN_CAPTION:{GA(this,t);break}case N.IN_COLUMN_GROUP:{qA(this,t);break}case N.IN_TABLE_BODY:{Tl(this,t);break}case N.IN_ROW:{P1(this,t);break}case N.IN_CELL:{XA(this,t);break}case N.IN_SELECT:{F1(this,t);break}case N.IN_SELECT_IN_TABLE:{ZA(this,t);break}case N.IN_TEMPLATE:{tS(this,t);break}case N.AFTER_BODY:{U1(this,t);break}case N.IN_FRAMESET:{iS(this,t);break}case N.AFTER_FRAMESET:{sS(this,t);break}case N.AFTER_AFTER_BODY:{cs(this,t);break}}}onEof(t){switch(this.insertionMode){case N.INITIAL:{xi(this,t);break}case N.BEFORE_HTML:{Ui(this,t);break}case N.BEFORE_HEAD:{Hi(this,t);break}case N.IN_HEAD:{ji(this,t);break}case N.IN_HEAD_NO_SCRIPT:{zi(this,t);break}case N.AFTER_HEAD:{Yi(this,t);break}case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{L1(this,t);break}case N.TEXT:{BA(this,t);break}case N.IN_TABLE_TEXT:{yi(this,t);break}case N.IN_TEMPLATE:{B1(this,t);break}case N.AFTER_BODY:case N.IN_FRAMESET:case N.AFTER_FRAMESET:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{Fc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===b.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 N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.TEXT:case N.IN_COLUMN_GROUP:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{this._insertCharacters(t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:case N.AFTER_BODY:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{A1(this,t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{ao(this,t);break}case N.IN_TABLE_TEXT:{O1(this,t);break}}}}function PC(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):v1(e,t),n}function MC(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function FC(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let u=0,s=i;s!==n;u++,s=i){i=e.openElements.getCommonAncestor(s);const a=e.activeFormattingElements.getElementEntry(s),o=a&&u>=RC;!a||o?(o&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(s)):(s=BC(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function BC(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function UC(e,t,n){const r=e.treeAdapter.getTagName(t),i=ii(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const u=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&u===F.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function HC(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,u=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,u,i.tagID)}function Mc(e,t){for(let n=0;n<OC;n++){const r=PC(e,t);if(!r)break;const i=MC(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const u=FC(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(u),s&&UC(e,s,u),HC(e,i,r)}}function El(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function jC(e,t){e._appendCommentNode(t,e.openElements.items[0])}function zC(e,t){e._appendCommentNode(t,e.document)}function Fc(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const u=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(u);s&&!s.endTag&&e._setEndLocation(u,t)}}}}function YC(e,t){e._setDocumentType(t);const n=t.forceQuirks?At.QUIRKS:bC(t);TC(t)||e._err(t,R.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=N.BEFORE_HTML}function xi(e,t){e._err(t,R.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,At.QUIRKS),e.insertionMode=N.BEFORE_HTML,e._processToken(t)}function VC(e,t){t.tagID===l.HTML?(e._insertElement(t,F.HTML),e.insertionMode=N.BEFORE_HEAD):Ui(e,t)}function WC(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&Ui(e,t)}function Ui(e,t){e._insertFakeRootElement(),e.insertionMode=N.BEFORE_HEAD,e._processToken(t)}function QC(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.HEAD:{e._insertElement(t,F.HTML),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD;break}default:Hi(e,t)}}function $C(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?Hi(e,t):e._err(t,R.endTagWithoutMatchingOpenElement)}function Hi(e,t){e._insertFakeElement(v.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD,e._processToken(t)}function jt(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,Re.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Re.RAWTEXT):(e._insertElement(t,F.HTML),e.insertionMode=N.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,Re.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,Re.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=N.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(N.IN_TEMPLATE);break}case l.HEAD:{e._err(t,R.misplacedStartTagForHeadElement);break}default:ji(e,t)}}function GC(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=N.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{ji(e,t);break}case l.TEMPLATE:{pr(e,t);break}default:e._err(t,R.endTagWithoutMatchingOpenElement)}}function pr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,R.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,R.endTagWithoutMatchingOpenElement)}function ji(e,t){e.openElements.pop(),e.insertionMode=N.AFTER_HEAD,e._processToken(t)}function qC(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{jt(e,t);break}case l.NOSCRIPT:{e._err(t,R.nestedNoscriptInHead);break}default:zi(e,t)}}function KC(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=N.IN_HEAD;break}case l.BR:{zi(e,t);break}default:e._err(t,R.endTagWithoutMatchingOpenElement)}}function zi(e,t){const n=t.type===ie.EOF?R.openElementsLeftAfterEof:R.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=N.IN_HEAD,e._processToken(t)}function XC(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.BODY:{e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=N.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,F.HTML),e.insertionMode=N.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,R.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),jt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,R.misplacedStartTagForHeadElement);break}default:Yi(e,t)}}function JC(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Yi(e,t);break}case l.TEMPLATE:{pr(e,t);break}default:e._err(t,R.endTagWithoutMatchingOpenElement)}}function Yi(e,t){e._insertFakeElement(v.BODY,l.BODY),e.insertionMode=N.IN_BODY,ma(e,t)}function ma(e,t){switch(t.type){case ie.CHARACTER:{S1(e,t);break}case ie.WHITESPACE_CHARACTER:{A1(e,t);break}case ie.COMMENT:{El(e,t);break}case ie.START_TAG:{Ze(e,t);break}case ie.END_TAG:{pa(e,t);break}case ie.EOF:{L1(e,t);break}}}function A1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function S1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ZC(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function eA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function tA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,F.HTML),e.insertionMode=N.IN_FRAMESET)}function nA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,F.HTML)}function rA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&gl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,F.HTML)}function iA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function uA(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,F.HTML),n||(e.formElement=e.openElements.current))}function sA(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,F.HTML)}function aA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.tokenizer.state=Re.PLAINTEXT}function oA(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.framesetOk=!1}function lA(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(v.A);n&&(Mc(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function dA(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(Mc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function fA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function hA(e,t){e.treeAdapter.getDocumentMode(e.document)!==At.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=N.IN_TABLE}function w1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,F.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function I1(e){const t=E1(e,ir.TYPE);return t!=null&&t.toLowerCase()===LC}function mA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,F.HTML),I1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function pA(e,t){e._appendElement(t,F.HTML),t.ackSelfClosing=!0}function gA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,F.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function EA(e,t){t.tagName=v.IMG,t.tagID=l.IMG,w1(e,t)}function TA(e,t){e._insertElement(t,F.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Re.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=N.TEXT}function bA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Re.RAWTEXT)}function xA(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Re.RAWTEXT)}function yh(e,t){e._switchToTextParsing(t,Re.RAWTEXT)}function yA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===N.IN_TABLE||e.insertionMode===N.IN_CAPTION||e.insertionMode===N.IN_TABLE_BODY||e.insertionMode===N.IN_ROW||e.insertionMode===N.IN_CELL?N.IN_SELECT_IN_TABLE:N.IN_SELECT}function kA(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML)}function _A(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,F.HTML)}function NA(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,F.HTML)}function CA(e,t){e._reconstructActiveFormattingElements(),_1(t),Pc(t),t.selfClosing?e._appendElement(t,F.MATHML):e._insertElement(t,F.MATHML),t.ackSelfClosing=!0}function AA(e,t){e._reconstructActiveFormattingElements(),N1(t),Pc(t),t.selfClosing?e._appendElement(t,F.SVG):e._insertElement(t,F.SVG),t.ackSelfClosing=!0}function kh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML)}function Ze(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{cA(e,t);break}case l.A:{lA(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{rA(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{nA(e,t);break}case l.LI:case l.DD:case l.DT:{sA(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{w1(e,t);break}case l.HR:{gA(e,t);break}case l.RB:case l.RTC:{_A(e,t);break}case l.RT:case l.RP:{NA(e,t);break}case l.PRE:case l.LISTING:{iA(e,t);break}case l.XMP:{bA(e,t);break}case l.SVG:{AA(e,t);break}case l.HTML:{ZC(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{jt(e,t);break}case l.BODY:{eA(e,t);break}case l.FORM:{uA(e,t);break}case l.NOBR:{dA(e,t);break}case l.MATH:{CA(e,t);break}case l.TABLE:{hA(e,t);break}case l.INPUT:{mA(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{pA(e,t);break}case l.IMAGE:{EA(e,t);break}case l.BUTTON:{oA(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{fA(e,t);break}case l.IFRAME:{xA(e,t);break}case l.SELECT:{yA(e,t);break}case l.OPTION:case l.OPTGROUP:{kA(e,t);break}case l.NOEMBED:case l.NOFRAMES:{yh(e,t);break}case l.FRAMESET:{tA(e,t);break}case l.TEXTAREA:{TA(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?yh(e,t):kh(e,t);break}case l.PLAINTEXT:{aA(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:kh(e,t)}}function SA(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=N.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function wA(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=N.AFTER_BODY,U1(e,t))}function IA(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function vA(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function LA(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(v.P,l.P),e._closePElement()}function OA(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function RA(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function DA(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function PA(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function MA(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(v.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function v1(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const u=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(u)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(u,s))break}}function pa(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{Mc(e,t);break}case l.P:{LA(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{IA(e,t);break}case l.LI:{OA(e);break}case l.DD:case l.DT:{RA(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{DA(e);break}case l.BR:{MA(e);break}case l.BODY:{SA(e,t);break}case l.HTML:{wA(e,t);break}case l.FORM:{vA(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{PA(e,t);break}case l.TEMPLATE:{pr(e,t);break}default:v1(e,t)}}function L1(e,t){e.tmplInsertionModeStack.length>0?B1(e,t):Fc(e,t)}function FA(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function BA(e,t){e._err(t,R.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ao(e,t){if(e.openElements.currentTagId!==void 0&&C1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=N.IN_TABLE_TEXT,t.type){case ie.CHARACTER:{R1(e,t);break}case ie.WHITESPACE_CHARACTER:{O1(e,t);break}}else yu(e,t)}function UA(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,F.HTML),e.insertionMode=N.IN_CAPTION}function HA(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,F.HTML),e.insertionMode=N.IN_COLUMN_GROUP}function jA(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.COLGROUP,l.COLGROUP),e.insertionMode=N.IN_COLUMN_GROUP,Bc(e,t)}function zA(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,F.HTML),e.insertionMode=N.IN_TABLE_BODY}function YA(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.TBODY,l.TBODY),e.insertionMode=N.IN_TABLE_BODY,ga(e,t)}function VA(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function WA(e,t){I1(t)?e._appendElement(t,F.HTML):yu(e,t),t.ackSelfClosing=!0}function QA(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,F.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Xr(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{YA(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{jt(e,t);break}case l.COL:{jA(e,t);break}case l.FORM:{QA(e,t);break}case l.TABLE:{VA(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{zA(e,t);break}case l.INPUT:{WA(e,t);break}case l.CAPTION:{UA(e,t);break}case l.COLGROUP:{HA(e,t);break}default:yu(e,t)}}function cu(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{pr(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:yu(e,t)}}function yu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ma(e,t),e.fosterParentingEnabled=n}function O1(e,t){e.pendingCharacterTokens.push(t)}function R1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function yi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)yu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const D1=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function $A(e,t){const n=t.tagID;D1.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,Xr(e,t)):Ze(e,t)}function GA(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,n===l.TABLE&&cu(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:pa(e,t)}}function Bc(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.COL:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{jt(e,t);break}default:js(e,t)}}function qA(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case l.TEMPLATE:{pr(e,t);break}case l.COL:break;default:js(e,t)}}function js(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE,e._processToken(t))}function ga(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,F.HTML),e.insertionMode=N.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(v.TR,l.TR),e.insertionMode=N.IN_ROW,Ea(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,Xr(e,t));break}default:Xr(e,t)}}function Tl(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,cu(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:cu(e,t)}}function Ea(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,F.HTML),e.insertionMode=N.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,ga(e,t));break}default:Xr(e,t)}}function P1(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,Tl(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,Tl(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:cu(e,t)}}function KA(e,t){const n=t.tagID;D1.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),Ea(e,t)):Ze(e,t)}function XA(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),P1(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:pa(e,t)}}function M1(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,F.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,F.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{jt(e,t);break}}}function F1(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{pr(e,t);break}}}function JA(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):M1(e,t)}function ZA(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):F1(e,t)}function eS(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{jt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=N.IN_TABLE,e.insertionMode=N.IN_TABLE,Xr(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=N.IN_COLUMN_GROUP,e.insertionMode=N.IN_COLUMN_GROUP,Bc(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=N.IN_TABLE_BODY,e.insertionMode=N.IN_TABLE_BODY,ga(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=N.IN_ROW,e.insertionMode=N.IN_ROW,Ea(e,t);break}default:e.tmplInsertionModeStack[0]=N.IN_BODY,e.insertionMode=N.IN_BODY,Ze(e,t)}}function tS(e,t){t.tagID===l.TEMPLATE&&pr(e,t)}function B1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Fc(e,t)}function nS(e,t){t.tagID===l.HTML?Ze(e,t):zs(e,t)}function U1(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=N.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else zs(e,t)}function zs(e,t){e.insertionMode=N.IN_BODY,ma(e,t)}function rS(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.FRAMESET:{e._insertElement(t,F.HTML);break}case l.FRAME:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{jt(e,t);break}}}function iS(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=N.AFTER_FRAMESET))}function uS(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.NOFRAMES:{jt(e,t);break}}}function sS(e,t){t.tagID===l.HTML&&(e.insertionMode=N.AFTER_AFTER_FRAMESET)}function aS(e,t){t.tagID===l.HTML?Ze(e,t):cs(e,t)}function cs(e,t){e.insertionMode=N.IN_BODY,ma(e,t)}function oS(e,t){switch(t.tagID){case l.HTML:{Ze(e,t);break}case l.NOFRAMES:{jt(e,t);break}}}function lS(e,t){t.chars=Ce,e._insertCharacters(t)}function cS(e,t){e._insertCharacters(t),e.framesetOk=!1}function H1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==F.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function dS(e,t){if(AC(t))H1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===F.MATHML?_1(t):r===F.SVG&&(SC(t),N1(t)),Pc(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function fS(e,t){if(t.tagID===l.P||t.tagID===l.BR){H1(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===F.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}v.AREA,v.BASE,v.BASEFONT,v.BGSOUND,v.BR,v.COL,v.EMBED,v.FRAME,v.HR,v.IMG,v.INPUT,v.KEYGEN,v.LINK,v.META,v.PARAM,v.SOURCE,v.TRACK,v.WBR;const hS=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,mS=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),_h={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function j1(e,t){const n=NS(e),r=Vp("type",{handlers:{root:pS,element:gS,text:ES,comment:Y1,doctype:TS,raw:xS},unknown:yS}),i={parser:n?new xh(_h):xh.getFragmentParser(void 0,_h),handle(a){r(a,i)},stitches:!1,options:t||{}};r(e,i),ui(i,Kt());const u=n?i.parser.document:i.parser.getFragment(),s=CN(u,{file:i.options.file});return i.stitches&&ha(s,"comment",function(a,o,c){const f=a;if(f.value.stitch&&c&&o!==void 0){const d=c.children;return d[o]=f.value.stitch,o}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function z1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function pS(e,t){z1(e.children,t)}function gS(e,t){kS(e,t),z1(e.children,t),_S(e,t)}function ES(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ie.CHARACTER,chars:e.value,location:ku(e)};ui(t,Kt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function TS(e,t){const n={type:ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ku(e)};ui(t,Kt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function bS(e,t){t.stitches=!0;const n=CS(e);if("children"in e&&"children"in n){const r=j1({type:"root",children:e.children},t.options);n.children=r.children}Y1({type:"comment",value:{stitch:n}},t)}function Y1(e,t){const n=e.value,r={type:ie.COMMENT,data:n,location:ku(e)};ui(t,Kt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function xS(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,V1(t,Kt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(hS,"<$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 n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function yS(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))bS(n,t);else{let r="";throw mS.has(n.type)&&(r=". 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 `"+n.type+"` node"+r)}}function ui(e,t){V1(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,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=Re.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 V1(e,t){if(t&&t.offset!==void 0){const n={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=n}}function kS(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Re.PLAINTEXT)return;ui(t,Kt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:tr.html;i===tr.html&&n==="svg"&&(i=tr.svg);const u=vN({...e,children:[]},{space:i===tr.svg?"svg":"html"}),s={type:ie.START_TAG,tagName:n,tagID:ii(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:ku(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function _S(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&BN.includes(n)||t.parser.tokenizer.state===Re.PLAINTEXT)return;ui(t,aa(e));const r={type:ie.END_TAG,tagName:n,tagID:ii(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ku(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Re.RCDATA||t.parser.tokenizer.state===Re.RAWTEXT||t.parser.tokenizer.state===Re.SCRIPT_DATA)&&(t.parser.tokenizer.state=Re.DATA)}function NS(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ku(e){const t=Kt(e)||{line:void 0,column:void 0,offset:void 0},n=aa(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function CS(e){return"children"in e?Kr({...e,children:[]}):Kr(e)}function AS(e){return function(t,n){return j1(t,{...e,file:n})}}function SS({title:e,content:t}){const n=t.trim().split(/\s+/).filter(Boolean).length,r=t.split(`
|
|
70
|
+
`).length,[i,u]=M.useState(!1);return h.jsxs("div",{className:"bg-card rounded-xl border shadow-soft overflow-hidden animate-scale-in",children:[h.jsx("div",{className:"bg-gradient-to-r from-muted/50 to-transparent px-4 py-3 border-b cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>u(!i),children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("div",{className:"flex items-center gap-3",children:h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold text-sm",children:e}),h.jsxs("p",{className:"text-xs text-muted-foreground",children:[n," 字 · ",r," 行"]})]})}),h.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:h.jsx("span",{className:Z("transition-transform block",i&&"-rotate-90"),children:"▼"})})]})}),!i&&h.jsx("div",{className:"p-6 overflow-auto max-h-[70vh]",children:h.jsx("article",{className:`prose prose-sm max-w-none
|
|
71
|
+
prose-headings:font-semibold prose-headings:border-b prose-headings:pb-2 prose-headings:scroll-mt-20
|
|
72
|
+
prose-h1:text-2xl prose-h1:mb-6 prose-h1:flex prose-h1:items-center prose-h1:gap-3
|
|
73
|
+
prose-h2:text-xl prose-h2:mt-8 prose-h2:mb-4
|
|
74
|
+
prose-h3:text-lg prose-h3:mt-6 prose-h3:mb-3
|
|
75
|
+
prose-h4:text-base prose-h4:mt-4 prose-h4:mb-2
|
|
76
|
+
prose-p:text-foreground prose-p:leading-7 prose-p:my-4
|
|
77
|
+
prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-a:transition-colors
|
|
78
|
+
prose-code:bg-muted/80 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded-md prose-code:text-xs prose-code:font-mono prose-code:font-medium
|
|
79
|
+
prose-pre:bg-muted/80 prose-pre:rounded-lg prose-pre:p-4 prose-pre:text-xs prose-pre:border prose-pre:overflow-x-auto prose-pre:my-4
|
|
80
|
+
prose-pre:shadow-inner
|
|
81
|
+
prose-blockquote:border-l-4 prose-blockquote:border-primary/50 prose-blockquote:bg-primary/5
|
|
82
|
+
prose-blockquote:pl-4 prose-blockquote:py-2 prose-blockquote:rounded-r prose-blockquote:my-4 prose-blockquote:not-italic
|
|
83
|
+
prose-blockquote:text-muted-foreground
|
|
84
|
+
prose-ul:my-3 prose-ol:my-3
|
|
85
|
+
prose-li:my-1.5 prose-li:leading-7
|
|
86
|
+
prose-li:marker:text-primary prose-li:marker:font-bold
|
|
87
|
+
prose-table:text-xs prose-table:border-collapse
|
|
88
|
+
prose-th:bg-muted/80 prose-th:px-4 prose-th:py-3 prose-th:border prose-th:font-semibold
|
|
89
|
+
prose-td:px-4 prose-td:py-3 prose-td:border prose-td:first-child:font-medium
|
|
90
|
+
prose-hr:border-muted/50 prose-hr:my-8
|
|
91
|
+
prose-img:rounded-lg prose-img:shadow-lg
|
|
92
|
+
prose-strong:text-foreground prose-strong:font-semibold
|
|
93
|
+
prose-em:italic prose-em:text-muted-foreground
|
|
94
|
+
dark:prose-invert
|
|
95
|
+
dark:prose-blockquote:bg-primary/10
|
|
96
|
+
dark:prose-code:bg-muted/50
|
|
97
|
+
dark:prose-pre:bg-muted/50`,children:h.jsx(tk,{remarkPlugins:[mN],rehypePlugins:[AS],components:{a:({href:s,children:a})=>h.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:a}),code:({inline:s,className:a,children:o,...c})=>s?h.jsx("code",{className:"bg-muted/80 px-1.5 py-0.5 rounded text-xs font-mono",...c,children:o}):h.jsx("code",{className:Z("not-prose",a),...c,children:o}),pre:({children:s})=>h.jsx("pre",{className:"bg-muted/80 rounded-lg p-4 border overflow-x-auto text-xs my-4 shadow-inner",children:s}),blockquote:({children:s})=>h.jsx("blockquote",{className:"border-l-4 border-primary/50 bg-primary/5 pl-4 py-2 rounded-r my-4 not-italic text-muted-foreground",children:s}),table:({children:s})=>h.jsx("div",{className:"overflow-x-auto my-4 rounded-lg border",children:h.jsx("table",{className:"border-collapse w-full",children:s})}),th:({children:s})=>h.jsx("th",{className:"bg-muted/50 px-4 py-3 border text-left font-semibold",children:s}),td:({children:s})=>h.jsx("td",{className:"px-4 py-3 border",children:s}),h1:({children:s})=>h.jsxs("h1",{className:"text-2xl font-bold mb-4 pb-2 border-b flex items-center gap-3",children:[h.jsx("span",{className:"w-1 h-6 bg-gradient-to-b from-primary to-accent rounded-full"}),s]}),h2:({children:s})=>h.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:s}),h3:({children:s})=>h.jsx("h3",{className:"text-lg font-semibold mt-6 mb-3",children:s})},children:t})})})]})}function wS({taskProgress:e}){const t=(e==null?void 0:e.completed)??0,n=(e==null?void 0:e.total)??0,r=n>0?t/n*100:0;return!e||n===0?null:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 progress-bar",children:h.jsx("div",{className:"progress-bar-fill bg-gradient-to-r from-emerald-400 to-teal-500",style:{width:`${r}%`}})}),h.jsxs("span",{className:"text-xs font-medium text-muted-foreground min-w-[3rem] text-right",children:[t,"/",n]})]})}function ge({className:e=""}){return h.jsx("div",{className:Z("animate-pulse bg-gradient-to-r from-muted via-muted/50 to-muted bg-[length:200%_100%] rounded-lg",e)})}function IS(){return h.jsxs("div",{className:"p-4 space-y-4",children:[h.jsxs("div",{className:"flex items-center justify-between px-2 py-3",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(ge,{className:"w-10 h-10 rounded-xl"}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx(ge,{className:"h-4 w-32"}),h.jsx(ge,{className:"h-3 w-20"})]})]}),h.jsx(ge,{className:"h-8 w-16 rounded-lg"})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[0,1,2].map(e=>h.jsx("div",{className:"rounded-xl bg-gradient-to-b from-amber-500/5 to-orange-500/5 p-1",children:h.jsxs("div",{className:"bg-card rounded-lg p-3 space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(ge,{className:"w-6 h-6 rounded"}),h.jsx(ge,{className:"h-4 w-16"})]}),h.jsx(ge,{className:"h-6 w-8 rounded-full"})]}),h.jsx("div",{className:"space-y-2",children:[0,1].map(t=>h.jsxs("div",{className:"bg-card rounded-xl border p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsx(ge,{className:"h-4 w-24"}),h.jsx(ge,{className:"h-3 w-16"})]}),h.jsx(ge,{className:"h-5 w-12 rounded-full"})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsx(ge,{className:"h-3 w-16"}),h.jsx(ge,{className:"h-3 w-8"})]}),h.jsx(ge,{className:"h-2 w-full rounded-full"})]})]},t))})]})},e))})]})}function vS(){return h.jsxs("div",{className:"animate-fade-in",children:[h.jsxs("div",{className:"sticky top-16 z-30 bg-background/80 backdrop-blur-xl border-b px-4 py-4",children:[h.jsx(ge,{className:"h-4 w-20 mb-4"}),h.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[h.jsx(ge,{className:"h-8 w-8 rounded-lg"}),h.jsx(ge,{className:"h-8 w-48"}),h.jsx(ge,{className:"h-6 w-16 rounded-full"})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(ge,{className:"h-6 w-20 rounded-full"}),h.jsx(ge,{className:"h-6 w-24 rounded-full"}),h.jsx(ge,{className:"h-6 w-16 rounded-full"})]}),h.jsxs("div",{className:"mt-4 max-w-md space-y-2",children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsx(ge,{className:"h-3 w-16"}),h.jsx(ge,{className:"h-3 w-8"})]}),h.jsx(ge,{className:"h-2 w-full rounded-full"})]})]}),h.jsx("div",{className:"px-4 py-3 border-b bg-muted/30 flex gap-2",children:[0,1,2].map(e=>h.jsx(ge,{className:"h-8 w-20 rounded-lg"},e))}),h.jsx("div",{className:"p-4 space-y-4",children:h.jsxs("div",{className:"bg-card rounded-xl border p-4 space-y-4",children:[h.jsx(ge,{className:"h-6 w-32"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(ge,{className:"h-4 w-full"}),h.jsx(ge,{className:"h-4 w-5/6"}),h.jsx(ge,{className:"h-4 w-4/6"})]})]})})]})}function Nh({skills:e,currentChange:t,executionState:n,disabled:r=!1,onSkillStarted:i}){const[u,s]=M.useState(!1),[a,o]=M.useState(null),[c,f]=M.useState(null),[d,p]=M.useState(""),[m,E]=M.useState(null),k=M.useRef(null),I=M.useRef(null),g=n.status==="running",T=r||g;M.useEffect(()=>{const C=O=>{k.current&&!k.current.contains(O.target)&&(s(!1),E(null),p(""))};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[]);const y=C=>{E(C),setTimeout(()=>{var O;return(O=I.current)==null?void 0:O.focus()},0)},S=async()=>{if(m){o(m),f(null),s(!1);try{await De.startSkill(m,t,d.trim()||void 0),i==null||i()}catch(C){f(String(C))}finally{o(null),E(null),p("")}}},D=()=>{E(null),p("")};return h.jsxs("div",{className:"relative",ref:k,children:[h.jsxs("button",{onClick:()=>!T&&s(!u),disabled:T,title:"选择要执行的技能",className:Z("inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all","border border-border/50 bg-background/90 hover:bg-background","dark:bg-background/90 dark:border-border/50",T&&"opacity-50 cursor-not-allowed",u&&"ring-2 ring-primary/50"),children:[h.jsx("span",{children:a?"⏳":"⚡"}),h.jsx("span",{className:"font-medium",children:"执行技能"}),h.jsx("span",{className:Z("text-xs transition-transform",u&&"rotate-180"),children:"▾"})]}),u&&h.jsx("div",{className:"absolute top-full left-0 mt-1 w-72 bg-background border border-border rounded-lg shadow-lg z-50 overflow-hidden animate-fade-in",children:m?h.jsxs("div",{className:"p-3 space-y-2",children:[h.jsx("div",{className:"flex items-center gap-2 text-sm",children:h.jsxs("span",{className:"font-medium",children:["/opsx:",m]})}),h.jsx("textarea",{ref:I,value:d,onChange:C=>p(C.target.value),placeholder:"输入备注(可选)...",className:"w-full px-2 py-1.5 text-xs bg-muted rounded border border-border focus:outline-none focus:ring-1 focus:ring-primary resize-none",rows:3,onKeyDown:C=>{C.key==="Enter"&&(C.metaKey||C.ctrlKey)&&S(),C.key==="Escape"&&D()}}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-[10px] text-muted-foreground",children:"⌘+Enter 确认"}),h.jsxs("div",{className:"flex gap-1",children:[h.jsx("button",{onClick:D,className:"px-2 py-1 text-xs rounded bg-secondary hover:bg-accent transition-colors",children:"取消"}),h.jsx("button",{onClick:S,className:"px-2 py-1 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:"确认执行"})]})]})]}):h.jsx("div",{className:"p-1 max-h-64 overflow-y-auto",children:e.length===0?h.jsx("div",{className:"px-3 py-4 text-xs text-muted-foreground text-center",children:"暂无可用技能"}):e.map(C=>h.jsxs("button",{onClick:()=>y(C.id),className:Z("w-full text-left px-3 py-2 rounded-md text-sm transition-colors","hover:bg-muted/80 text-foreground",a===C.id&&"bg-blue-500/10 text-blue-500"),children:[h.jsx("div",{className:"flex items-center gap-2",children:h.jsxs("span",{className:"font-medium",children:["/opsx:",C.id]})}),C.description&&h.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:C.description})]},C.id))})}),c&&h.jsx("span",{className:"absolute -bottom-5 left-0 text-xs text-red-400 whitespace-nowrap",children:c})]})}function LS(e){if(e.status==="archived")return[];if(e.applied)return["archive"];switch(e.status){case"in_progress":return["continue"];case"ready":return["apply"];default:return[]}}function OS({change:e,skills:t,executionState:n,compact:r=!1}){const[i,u]=M.useState(null),[s,a]=M.useState(null),c=LS(e).map(m=>t.find(E=>E.id===m)).filter(m=>m!==void 0);if(c.length===0&&t.length===0&&n.status==="idle")return null;const f=async m=>{u(m),a(null);try{await De.startSkill(m,e.name)}catch(E){a(String(E))}finally{u(null)}},d=async()=>{try{await De.cancelSkill()}catch{}},p=n.status==="running";return r?h.jsxs("div",{className:"flex items-center gap-2",children:[s&&h.jsx("span",{className:"text-xs text-red-400",children:s}),t.length>0&&h.jsx(Nh,{skills:t,currentChange:e.name,executionState:n}),c.map(m=>{const E=of(m.id),k=i===m.id;return h.jsxs("button",{onClick:()=>f(m.id),disabled:p||k,title:`点击执行 /opsx:${m.id}`,className:Z("inline-flex items-center gap-1 px-2 py-1 rounded text-xs font-medium transition-all",E.color?`${E.color} text-white`:E.primary?"bg-primary text-primary-foreground hover:bg-primary/90":"bg-secondary border border-border hover:bg-accent",k&&"bg-blue-500 text-white",p&&!k&&"opacity-50 cursor-not-allowed"),children:[h.jsx("span",{children:k?"⏳":E.icon}),h.jsx("span",{children:E.label.replace("/opsx:","")})]},m.id)}),p&&h.jsxs("button",{onClick:d,className:"inline-flex items-center gap-1 px-2 py-1 rounded text-xs bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20",children:[h.jsx("span",{children:"⏹"}),h.jsx("span",{children:"取消"})]})]}):h.jsxs("div",{className:"p-3 bg-muted/30 rounded-xl border border-border/50",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx("span",{className:"text-xs text-muted-foreground uppercase tracking-wider font-medium",children:"⚡ 可用操作"}),s&&h.jsx("span",{className:"text-xs text-red-400",children:s})]}),h.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.length>0&&h.jsx(Nh,{skills:t,currentChange:e.name,executionState:n}),c.map(m=>{const E=of(m.id),k=i===m.id;return h.jsxs("button",{onClick:()=>f(m.id),disabled:p||k,title:`点击执行 /opsx:${m.id}`,className:Z("inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200","active:scale-[0.97]",E.primary?"bg-primary text-primary-foreground shadow-sm hover:shadow-md hover:bg-primary/90":"bg-secondary text-secondary-foreground border border-border hover:bg-accent hover:text-accent-foreground",k&&"bg-blue-500 text-white",p&&!k&&"opacity-50 cursor-not-allowed"),children:[h.jsx("span",{children:k?"⏳":E.icon}),h.jsx("span",{className:"font-mono",children:k?"启动中...":E.label})]},m.id)}),p&&h.jsxs("button",{onClick:d,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition-all",children:[h.jsx("span",{children:"⏹"}),h.jsx("span",{children:"取消执行"})]})]})]})}function RS(e){const t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return r>0?`${r}:${String(n%60).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`:`${n}:${String(t%60).padStart(2,"0")}`}function W1({state:e,logs:t}){const[n,r]=M.useState(!1),[i,u]=M.useState(""),[s,a]=M.useState(0),o=M.useRef(null),c=M.useRef(null);M.useEffect(()=>{if(e.status==="running"&&e.startedAt){const g=new Date(e.startedAt).getTime();a(Date.now()-g);const T=setInterval(()=>{a(Date.now()-g)},1e3);return()=>clearInterval(T)}else if(e.startedAt){const g=new Date(e.startedAt).getTime(),T=e.updatedAt?new Date(e.updatedAt).getTime():Date.now();a(T-g)}},[e.status,e.startedAt,e.updatedAt]),M.useEffect(()=>{const g=c.current;g&&(g.scrollTop=g.scrollHeight)},[t.length]),M.useEffect(()=>{var g;e.status==="running"&&(r(!1),(g=o.current)==null||g.focus())},[e.status]);const f=M.useMemo(()=>e.status!=="idle"||e.startedAt?e:null,[e]);if(e.status==="idle"&&!e.startedAt)return null;const d=f||e,p=d.totalTasks>0?Math.round(d.currentTask/d.totalTasks*100):0,m=d.status==="failed"?"border-red-500/50":d.status==="completed"?"border-emerald-500/50":"border-blue-500/50",E=d.status==="failed"?"text-red-400":d.status==="completed"?"text-emerald-400":"text-blue-400",k=async()=>{const g=i.trim();if(!(!g||d.status!=="running")){u("");try{await De.sendInput(g)}catch(T){console.error("Failed to send input:",T)}}},I=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),k())};return n?h.jsxs("button",{onClick:()=>r(!1),className:Z("w-full p-2 rounded-lg border flex items-center justify-center gap-2","hover:bg-muted/50 transition-colors",m),title:"展开执行详情",children:[h.jsx("span",{className:Z("w-2 h-2 rounded-full",E.replace("text-","bg-"))}),h.jsx("span",{className:"text-xs text-muted-foreground",children:"▼"})]}):h.jsxs("div",{className:Z("rounded-xl border-l-[3px] border bg-card/50 overflow-hidden",m),children:[h.jsxs("div",{className:"flex items-center justify-between p-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("span",{className:Z("text-xs font-semibold",E),children:["🤖 ",d.status==="running"?"执行中":d.status==="completed"?"已完成":d.status==="failed"?"执行失败":"就绪",": /opsx:",d.skill]}),d.status==="running"&&h.jsxs("span",{className:"relative flex h-2 w-2",children:[h.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),h.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]}),d.status==="completed"&&h.jsx("span",{className:"text-emerald-400",children:"✓"}),d.status==="failed"&&h.jsx("span",{className:"text-red-400",children:"✗"})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[d.startedAt&&h.jsxs("span",{className:"text-xs text-muted-foreground font-mono",children:["⏱ ",RS(s)]}),d.totalTasks>0&&h.jsxs("span",{className:"text-xs text-muted-foreground",children:["任务 ",d.currentTask,"/",d.totalTasks]}),d.currentArtifact&&h.jsxs("span",{className:"text-xs text-muted-foreground",children:["生成: ",d.currentArtifact]}),h.jsx("button",{onClick:()=>r(!0),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"收起"})]})]}),d.totalTasks>0&&h.jsx("div",{className:"px-3 pb-2",children:h.jsx("div",{className:"h-1.5 bg-muted rounded-full overflow-hidden",children:h.jsx("div",{className:Z("h-full rounded-full transition-all duration-500",d.status==="completed"?"bg-emerald-500":d.status==="failed"?"bg-red-500":"bg-blue-500"),style:{width:`${p}%`}})})}),h.jsxs("div",{ref:c,className:"mx-3 mb-3 terminal text-slate-300 max-h-[200px] overflow-y-auto",children:[t.map((g,T)=>h.jsx("pre",{className:Z("whitespace-pre-wrap break-word overflow-wrap-break-word",g.line.includes("✓")&&"text-emerald-400",g.line.includes("✗")&&"text-red-400",!g.line.includes("✓")&&!g.line.includes("✗")&&"text-slate-300",g.line.startsWith("[")&&g.line.includes("Starting")&&"text-blue-400"),style:{wordBreak:"break-all"},children:g.line},T)),d.status==="running"&&h.jsx("span",{className:"inline-block w-[7px] h-[14px] bg-blue-400 animate-pulse ml-0.5 align-middle"})]}),d.status==="running"&&h.jsxs("div",{className:"mx-3 mb-3 flex gap-2",children:[h.jsx("input",{ref:o,type:"text",value:i,onChange:g=>u(g.target.value),onKeyDown:I,placeholder:"输入回复并按 Enter 发送...",className:Z("flex-1 bg-terminal border border-slate-600 rounded px-3 py-1.5","font-mono text-xs text-slate-300 placeholder:text-slate-500","focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500/50","transition-colors")}),h.jsx("button",{onClick:k,disabled:!i.trim(),className:Z("px-3 py-1.5 rounded text-xs font-medium transition-colors","bg-blue-600 hover:bg-blue-500 text-white","disabled:opacity-50 disabled:cursor-not-allowed"),children:"发送"})]})]})}function DS({open:e,onClose:t,title:n,children:r,className:i}){return e?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm z-[50]",onClick:t}),h.jsxs("div",{className:Z("fixed top-0 right-0 h-full w-full max-w-3xl bg-background border-l border-border shadow-2xl z-[50] flex flex-col animate-slide-in",i),children:[h.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b",children:[h.jsx("h2",{className:"text-lg font-semibold",children:n}),h.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:h.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsx("div",{className:"flex-1 overflow-auto",children:r})]})]}):null}function PS({name:e,onBack:t,skills:n,executionState:r,executionLogs:i}){var w;const[u,s]=M.useState(null),[a,o]=M.useState(!0),[c,f]=M.useState(null),[d,p]=M.useState(""),[m,E]=M.useState(!1),[k,I]=M.useState(!1),g=M.useCallback(()=>{E(!0),De.getChangeDetail(e).then(B=>s(B)).catch(()=>{}).finally(()=>E(!1))},[e]);if(M.useEffect(()=>{o(!0),f(null),De.getChangeDetail(e).then(B=>{s(B);const ee=Object.keys(B.artifactContents||{})[0];p(ee||"_specs")}).catch(B=>{f(String(B))}).finally(()=>{o(!1)})},[e]),M.useEffect(()=>{(r.status==="completed"||r.status==="failed")&&De.getChangeDetail(e).then(B=>s(B)).catch(()=>{})},[r.status,e]),a)return h.jsx(vS,{});if(c)return h.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4 p-4",children:[h.jsx("div",{className:"text-6xl",children:"❌"}),h.jsx("p",{className:"text-red-500",children:c}),h.jsx("button",{onClick:t,className:"btn-primary",children:"返回"})]});if(!u)return h.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4",children:[h.jsx("div",{className:"text-6xl",children:"🔍"}),h.jsxs("p",{className:"text-muted-foreground",children:["未找到变更: ",e]}),h.jsx("button",{onClick:t,className:"btn-primary",children:"返回看板"})]});const T=tp(u.type),y=yb(u.status),S=u.applied?{icon:"✅",badge:"badge-success"}:y,D=Object.keys(u.artifactContents||{}).map(B=>{var V;return{id:B,label:B,content:(V=u.artifactContents)==null?void 0:V[B]}}),C=((w=u.specFiles)==null?void 0:w.map(B=>({id:`spec_${B.capability}`,label:`specs/${B.capability}`,content:B.content})))||[],O=[...D,...C],L=O.find(B=>B.id===d)||O[0],W=B=>{p(B),I(!0)};return h.jsxs("div",{className:"animate-fade-in h-[calc(100vh-4rem)] flex flex-col",children:[h.jsxs("div",{className:"flex-shrink-0 border-b bg-background/50 px-4 py-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[h.jsx("button",{onClick:t,className:"flex-shrink-0 w-8 h-8 flex items-center justify-center rounded-lg bg-muted/50 hover:bg-muted hover:scale-105 active:scale-95 transition-all duration-200 group",title:"返回看板",children:h.jsx("svg",{className:"w-4 h-4 text-muted-foreground group-hover:text-foreground transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),h.jsx("h1",{className:"text-lg font-bold truncate",children:u.displayName}),u.type!=="unknown"&&h.jsxs("span",{className:Z("flex-shrink-0 badge",T.badge),children:[T.icon," ",u.type]}),h.jsxs("span",{className:Z("flex-shrink-0 badge",S.badge),children:[S.icon," ",u.applied?"已完成":u.status==="in_progress"?"进行中":u.status==="ready"?"待实现":"已归档"]})]}),h.jsxs("div",{className:"flex-shrink-0 flex items-center gap-3",children:[h.jsxs("span",{className:"text-xs text-muted-foreground hidden sm:inline",children:[u.schema," · ",bb(u.createdAt)]}),h.jsx("button",{onClick:g,disabled:m,className:Z("text-xs px-2 py-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-opacity",m&&"opacity-50"),children:"🔄"})]})]}),h.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[h.jsx("div",{className:"flex-1 max-w-xs",children:h.jsx(wS,{taskProgress:u.taskProgress})}),h.jsx("div",{className:"flex-shrink-0",children:h.jsx(OS,{change:u,skills:n,executionState:r,compact:!0})})]})]}),r.change===e&&r.status!=="idle"&&h.jsx("div",{className:"flex-shrink-0 px-4 py-2 border-b bg-muted/20",children:h.jsx(W1,{state:r,logs:i})}),h.jsx("div",{className:"flex-1 overflow-auto px-4 py-4",children:O.length>0?h.jsx("div",{className:"grid gap-3",children:O.map(B=>{var X,oe;const ee=!B.id.startsWith("spec_")?(oe=(X=u.artifacts)==null?void 0:X.find(he=>he.id===B.id))==null?void 0:oe.status:void 0,ce=r.currentArtifact===B.id;return h.jsxs("button",{onClick:()=>W(B.id),className:Z("w-full text-left p-4 rounded-xl border transition-all hover:border-primary/50 hover:shadow-md group",d===B.id&&"border-primary bg-primary/5"),children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[ce&&h.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-400 animate-pulse"}),!ce&&ee==="done"&&h.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500"}),!ce&&ee==="pending"&&h.jsx("span",{className:"w-2 h-2 rounded-full border border-muted-foreground/40"}),h.jsx("span",{className:"font-medium text-sm",children:B.label})]}),h.jsx("svg",{className:"w-4 h-4 text-muted-foreground group-hover:text-primary transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]}),B.content&&h.jsxs("p",{className:"mt-2 text-xs text-muted-foreground line-clamp-2",children:[B.content.substring(0,100),"..."]})]},B.id)})}):h.jsx("div",{className:"text-center text-muted-foreground py-8",children:"暂无产物文档"})}),h.jsx(DS,{open:k,onClose:()=>I(!1),title:(L==null?void 0:L.label)||"",children:L!=null&&L.content?h.jsx(SS,{title:L.label,content:L.content}):h.jsx("div",{className:"text-center text-muted-foreground py-8",children:"暂无内容"})})]})}const $u="openspec-dashboard-project",bl="openspec-dashboard-projects",Q1=M.createContext(null);function MS({children:e}){const[t,n]=M.useState([]),[r,i]=M.useState(null),[u,s]=M.useState(!0),a=M.useCallback(async()=>{try{const d=await De.getProjects(),p=Ch(),m=BS(d,p);if(n(m),!r&&m.length>0){const E=localStorage.getItem($u),k=E?m.find(I=>I.path===E):null;i(k||m[0])}}catch{}finally{s(!1)}},[r]);M.useEffect(()=>{a()},[a]);const o=M.useCallback(async d=>{await De.switchProject(d);const p=t.find(m=>m.path===d);p&&(i(p),localStorage.setItem($u,d)),window.location.reload()},[t]),c=M.useCallback(async d=>{await De.switchProject(d);const p=Ch();p.includes(d)||(p.push(d),localStorage.setItem(bl,JSON.stringify(p))),localStorage.setItem($u,d),await a();const m=t.find(E=>E.path===d);i(m||{name:d.split("/").pop()||d,path:d,available:!0})},[t,a]),f=M.useCallback(()=>{localStorage.removeItem($u),localStorage.removeItem(bl),i(t[0]||null)},[t]);return h.jsx(Q1.Provider,{value:{projects:t,currentProject:r,loading:u,switchProject:o,addProject:c,clearSavedProjects:f,refresh:a},children:e})}function FS(){const e=M.useContext(Q1);if(!e)throw new Error("useProjects must be used within ProjectProvider");return e}function Ch(){try{const e=localStorage.getItem(bl);return e?JSON.parse(e):[]}catch{return[]}}function BS(e,t){const n=[...e];for(const r of t)n.some(i=>i.path===r)||n.push({name:r.split("/").pop()||r,path:r,available:!0});return n}function US(){const{projects:e,currentProject:t,switchProject:n,addProject:r,clearSavedProjects:i}=FS(),[u,s]=M.useState(!1),[a,o]=M.useState(!1),[c,f]=M.useState(""),[d,p]=M.useState(!1),m=M.useRef(null);M.useEffect(()=>{const g=T=>{m.current&&!m.current.contains(T.target)&&(s(!1),o(!1))};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const E=async g=>{if(g===(t==null?void 0:t.path)){s(!1);return}p(!0);try{await n(g),s(!1)}catch(T){console.error("Switch failed:",T)}finally{p(!1)}},k=async()=>{if(c.trim()){p(!0);try{await r(c.trim()),f(""),o(!1),s(!1)}catch(g){console.error("Add project failed:",g)}finally{p(!1)}}},I=()=>{i(),s(!1)};return h.jsxs("div",{className:"relative",ref:m,children:[h.jsxs("button",{onClick:()=>s(!u),className:Z("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm","bg-background/90 hover:bg-background border border-border/50 transition-colors","dark:bg-background/90 dark:border-border/50",d&&"opacity-50 pointer-events-none"),children:[h.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500"}),h.jsx("span",{className:"max-w-[160px] truncate font-medium text-foreground",children:(t==null?void 0:t.name)||"选择项目"}),h.jsx("span",{className:Z("text-xs transition-transform text-muted-foreground",u&&"rotate-180"),children:"▾"})]}),u&&h.jsxs("div",{className:"absolute top-full left-0 mt-1 w-72 bg-background border border-border rounded-lg shadow-lg z-50 overflow-hidden animate-fade-in",children:[h.jsx("div",{className:"p-1 max-h-64 overflow-y-auto",children:e.map(g=>h.jsxs("button",{onClick:()=>E(g.path),className:Z("w-full text-left px-3 py-2 rounded-md text-sm transition-colors","hover:bg-muted/80 text-foreground",g.path===(t==null?void 0:t.path)&&"bg-primary/10 text-primary"),children:[h.jsx("div",{className:"font-medium truncate",children:g.name}),h.jsx("div",{className:"text-xs text-muted-foreground truncate",children:g.path})]},g.path))}),h.jsx("div",{className:"border-t border-border p-1",children:a?h.jsxs("div",{className:"flex items-center gap-1 p-1",children:[h.jsx("input",{type:"text",value:c,onChange:g=>f(g.target.value),onKeyDown:g=>g.key==="Enter"&&k(),placeholder:"/path/to/project",className:"flex-1 px-2 py-1 text-xs bg-muted rounded border border-border focus:outline-none focus:ring-1 focus:ring-primary font-mono",autoFocus:!0}),h.jsx("button",{onClick:k,className:"btn-primary text-xs px-2 py-1",children:"添加"}),h.jsx("button",{onClick:()=>o(!1),className:"btn-ghost text-xs px-2 py-1",children:"✕"})]}):h.jsxs(h.Fragment,{children:[h.jsx("button",{onClick:()=>o(!0),className:"w-full text-left px-3 py-2 rounded-md text-sm text-muted-foreground hover:bg-muted/80 transition-colors",children:"+ 添加项目..."}),h.jsx("button",{onClick:I,className:"w-full text-left px-3 py-2 rounded-md text-sm text-red-500 hover:bg-red-500/10 transition-colors",children:"清除保存的项目"})]})})]})]})}class $1 extends fu.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error(t,n)}render(){var t;return this.state.hasError?this.props.fallback?this.props.fallback:h.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center gap-4 animate-fade-in",children:[h.jsx("span",{className:"text-4xl",children:"😵"}),h.jsx("h2",{className:"text-lg font-semibold",children:"出了点问题"}),h.jsx("p",{className:"text-sm text-red-500",children:(t=this.state.error)==null?void 0:t.message}),h.jsx("button",{className:"btn-primary",onClick:()=>window.location.reload(),children:"重新加载"})]}):this.props.children}}function HS({toast:e,onDismiss:t}){M.useEffect(()=>{const i=setTimeout(()=>{t(e.id)},3e3);return()=>clearTimeout(i)},[e.id,t]);const n={success:"bg-emerald-500 border-emerald-400",error:"bg-red-500 border-red-400",info:"bg-blue-500 border-blue-400",warning:"bg-amber-500 border-amber-400"}[e.type],r={success:"✓",error:"✗",info:"ℹ",warning:"⚠"}[e.type];return h.jsxs("div",{className:Z("flex items-start gap-2 px-4 py-3 rounded-lg text-white shadow-lg border animate-slide-in max-w-sm",n),children:[h.jsx("span",{className:"font-bold shrink-0",children:r}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("span",{className:"text-sm",children:e.message}),e.description&&h.jsx("p",{className:"text-xs opacity-80 mt-0.5",children:e.description})]}),h.jsx("button",{onClick:()=>t(e.id),className:"ml-auto shrink-0 opacity-70 hover:opacity-100 transition-opacity",children:"✕"})]})}const G1=fu.createContext(null);function jS(){const e=fu.useContext(G1);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}function zS({children:e}){const[t,n]=M.useState([]),r=M.useCallback((s,a,o)=>{const c=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`;n(f=>[...f,{id:c,type:s,message:a,description:o}])},[]),i=M.useCallback(s=>{n(a=>a.filter(o=>o.id!==s))},[]),u={addToast:r,success:(s,a)=>r("success",s,a),error:(s,a)=>r("error",s,a),info:(s,a)=>r("info",s,a),warning:(s,a)=>r("warning",s,a)};return h.jsxs(G1.Provider,{value:u,children:[e,h.jsx("div",{className:"fixed top-16 right-4 z-[100] flex flex-col gap-2",children:t.map(s=>h.jsx(HS,{toast:s,onDismiss:i},s.id))})]})}function YS({onMessage:e,onSkillProgress:t,onSkillLog:n,onSkillComplete:r,maxRetries:i=10,baseDelay:u=1e3}){const s=M.useRef(null),a=M.useRef(0),o=M.useRef(null),[c,f]=M.useState(!1),[d,p]=M.useState(!1),[m,E]=M.useState(!1),k=()=>{var S;if(((S=s.current)==null?void 0:S.readyState)===WebSocket.OPEN)return;const T=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/changes`,y=new WebSocket(T);y.onopen=()=>{f(!0),p(!1),E(!1),a.current=0},y.onmessage=D=>{try{const C=JSON.parse(D.data),O=C==null?void 0:C.type;if(O==="skill_progress"&&t){t(C.data);return}if(O==="skill_log"&&n){n(C.data);return}if(O==="skill_complete"&&r){r(C.data);return}e(C)}catch{}},y.onclose=()=>{if(s.current=null,a.current<i){f(!1),p(!0);const D=Math.min(u*Math.pow(2,a.current),3e4);o.current=setTimeout(()=>{a.current++,k()},D)}else f(!1),p(!1),E(!0)},y.onerror=()=>{},s.current=y};return M.useEffect(()=>(k(),()=>{var g;o.current&&clearTimeout(o.current),(g=s.current)==null||g.close()}),[]),{isConnected:c,isReconnecting:d,hasFailed:m,reconnect:()=>{var g;o.current&&clearTimeout(o.current),a.current=0,E(!1),p(!1),(g=s.current)==null||g.close(),k()}}}function VS({onRefresh:e,onSkillProgress:t,onSkillLog:n,onSkillComplete:r}={}){const[i,u]=M.useState([]),[s,a]=M.useState(!0),[o,c]=M.useState(null),[f,d]=M.useState(!1),[p,m]=M.useState(!1),E=M.useCallback(async()=>{if(!p){a(!0);try{const S=await De.getChanges();u(S),c(null),m(!0)}catch(S){c(String(S))}finally{a(!1)}}},[p]),k=M.useCallback(async()=>{d(!0);try{const S=await De.getChanges();u(S),c(null),e==null||e()}catch(S){c(String(S))}finally{d(!1)}},[e]);M.useEffect(()=>{E()},[E]);const{isConnected:I,isReconnecting:g,hasFailed:T,reconnect:y}=YS({onMessage:S=>{(S==null?void 0:S.type)==="refresh"&&(d(!0),De.getChanges().then(D=>{u(D),c(null)}).catch(D=>{console.error("Refresh failed:",D)}).finally(()=>{d(!1)}))},onSkillProgress:t?S=>t(S):void 0,onSkillLog:n?S=>n(S):void 0,onSkillComplete:r?S=>r(S):void 0});return{changes:i,loading:s,error:o,refresh:k,isConnected:I,isReconnecting:g,hasFailed:T,reconnect:y,isRefreshing:f}}function WS(){const[e,t]=M.useState(null),[n,r]=M.useState(!0);return M.useEffect(()=>{De.getConfig().then(t).finally(()=>r(!1))},[]),{config:e,loading:n}}function QS(){const[e,t]=M.useState([]),[n,r]=M.useState(!0);return M.useEffect(()=>{De.getSkills().then(t).catch(()=>t([])).finally(()=>r(!1))},[]),{skills:e,loading:n}}const Ah={skill:"",change:"",status:"idle",phase:"creating_artifact",currentTask:0,totalTasks:0,currentArtifact:null,startedAt:"",updatedAt:""},Sh=5*60*1e3;function $S(){const[e,t]=M.useState(Ah),[n,r]=M.useState([]),i=M.useRef(null),u=M.useRef(new Set),s=M.useCallback(async()=>{try{const[m,E]=await Promise.all([De.getExecution(),De.getExecutionLog()]);t(m),r(E),u.current=new Set(E.map(k=>k.line))}catch{t(Ah),r([])}},[]);M.useEffect(()=>{s()},[s]),M.useEffect(()=>{if(i.current&&clearTimeout(i.current),e.status==="running"&&e.updatedAt){const m=Date.now()-new Date(e.updatedAt).getTime();m>=Sh?t(E=>({...E,status:"idle"})):i.current=setTimeout(()=>{t(E=>({...E,status:"idle"}))},Sh-m)}return()=>{i.current&&clearTimeout(i.current)}},[e.status,e.updatedAt]);const a=M.useCallback(m=>{t(m)},[]),o=M.useCallback(m=>{u.current.has(m.line)||(u.current.add(m.line),r(E=>[...E,{line:m.line,timestamp:m.timestamp}]))},[]),c=M.useCallback(m=>{t(m)},[]),f=e.status==="running",d=e.status==="completed",p=e.status==="failed";return{state:e,logs:n,isRunning:f,isCompleted:d,isFailed:p,loadExecution:s,handleSkillProgress:a,handleSkillLog:o,handleSkillComplete:c}}function GS(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function qS(){try{return localStorage.getItem("theme")}catch{return null}}function KS(e){try{localStorage.setItem("theme",e)}catch{}}function XS(){const[e,t]=M.useState(()=>qS()??GS());return M.useEffect(()=>{const r=document.documentElement;e==="dark"?r.classList.add("dark"):r.classList.remove("dark"),KS(e)},[e]),{theme:e,toggleTheme:()=>{t(r=>r==="light"?"dark":"light")}}}function JS(e){M.useEffect(()=>{const t=n=>{var s;const r=document.activeElement,i=r==null?void 0:r.tagName.toLowerCase();if(i==="input"||i==="textarea"||i==="select"||(r==null?void 0:r.getAttribute("contenteditable"))==="true"){n.key==="Escape"&&(n.preventDefault(),e.onEscape());return}switch(n.key){case"r":n.preventDefault(),e.onRefresh();break;case"n":n.preventDefault(),e.onNewChange();break;case"Escape":n.preventDefault(),e.onEscape();break;case"?":n.preventDefault(),(s=e.onShowHelp)==null||s.call(e);break}};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function ZS(){return h.jsx(MS,{children:h.jsx($1,{children:h.jsx(e6,{})})})}function e6(){const{skills:e}=QS(),{theme:t,toggleTheme:n}=XS(),r=$S(),[i,u]=M.useState("idle"),s=jS(),a=M.useRef(""),{changes:o,loading:c,error:f,refresh:d,isConnected:p,isReconnecting:m,hasFailed:E,reconnect:k,isRefreshing:I}=VS({onSkillProgress:O=>r.handleSkillProgress(O),onSkillLog:O=>r.handleSkillLog(O),onSkillComplete:O=>{r.handleSkillComplete(O);const L=`${O.skill}-${O.change}-${O.status}`;a.current!==L&&(a.current=L,O.status==="completed"?s.success(`/opsx:${O.skill} ${O.change} 执行完成`):O.status==="failed"&&s.error(`/opsx:${O.skill} ${O.change} 执行失败`))}}),g=M.useCallback(async()=>{await d(),await r.loadExecution()},[d,r.loadExecution]);M.useEffect(()=>{i==="running"&&r.state.status!=="running"?u(r.state.status):r.state.status==="running"&&u("running")},[r.state.status,i]);const{config:T}=WS(),[y,S]=M.useState(null),[D,C]=M.useState(!1);return JS({onRefresh:g,onNewChange:()=>C(!0),onEscape:()=>{D?C(!1):y&&S(null)}}),c?h.jsxs("div",{className:"min-h-screen",children:[h.jsx(Gu,{config:T,isConnected:p,isReconnecting:m,hasFailed:E,onRefresh:g,reconnect:k,theme:t,onToggleTheme:n}),h.jsx(IS,{})]}):f?h.jsxs("div",{className:"min-h-screen",children:[h.jsx(Gu,{config:T,isConnected:p,isReconnecting:m,hasFailed:E,onRefresh:g,reconnect:k,theme:t,onToggleTheme:n}),h.jsx(n6,{error:f,onRetry:g})]}):T!=null&&T._notInitialized?h.jsxs("div",{className:"min-h-screen",children:[h.jsx(Gu,{config:T,isConnected:p,isReconnecting:m,hasFailed:E,onRefresh:g,reconnect:k,theme:t,onToggleTheme:n}),h.jsx(i6,{message:T._message,onInitialized:g})]}):h.jsxs("div",{className:"min-h-screen flex flex-col",children:[h.jsx(Gu,{config:T,isConnected:p,isReconnecting:m,hasFailed:E,onRefresh:d,reconnect:k,isRefreshing:I,skills:e,executionState:r.state,theme:t,onToggleTheme:n,showNewInput:D,onShowNewInput:C}),I&&h.jsx("div",{className:"fixed top-16 left-0 right-0 h-1 z-50",children:h.jsx("div",{className:"h-full bg-gradient-to-r from-primary via-accent to-primary animate-pulse"})}),r.state.status!=="idle"&&!y&&h.jsx("div",{className:"px-4 pt-4",children:h.jsx(W1,{state:r.state,logs:r.logs})}),h.jsxs("div",{className:"flex-1 relative",children:[h.jsx("div",{className:Z("transition-opacity duration-200",y?"opacity-0 pointer-events-none absolute inset-0":"opacity-100"),children:h.jsx(Cb,{changes:o,onSelectChange:S,executionState:r.state,skills:e})}),y&&h.jsx("div",{className:"animate-slide-in-right",children:h.jsx($1,{children:h.jsx(PS,{name:y,onBack:()=>S(null),skills:e,executionState:r.state,executionLogs:r.logs})})})]}),!y&&h.jsx(r6,{})]})}function Gu({config:e,isConnected:t,isReconnecting:n,hasFailed:r,onRefresh:i,reconnect:u,isRefreshing:s,skills:a,executionState:o,theme:c,onToggleTheme:f,showNewInput:d,onShowNewInput:p}){const[m,E]=M.useState(""),[k,I]=M.useState(!1),[g,T]=M.useState(!1),y=d??k,S=p??I,D=async()=>{if(!m.trim())return;const C=m.trim().replace(/\s+/g,"-");T(!0);try{await De.startSkill("propose",C),E(""),S(!1)}catch{}T(!1)};return h.jsxs("header",{className:"sticky top-0 z-40 bg-background/80 backdrop-blur-xl border-b",children:[h.jsx("div",{className:"h-1 bg-gradient-to-r from-primary via-violet-500 to-accent"}),h.jsx("div",{className:"px-4 py-3",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-primary to-accent flex items-center justify-center shadow-lg shadow-primary/25",children:h.jsx("span",{className:"text-white text-lg",children:"📋"})}),(o==null?void 0:o.status)==="running"&&h.jsx("div",{className:"absolute -bottom-1 -right-1 w-3 h-3 bg-blue-500 rounded-full border-2 border-background animate-pulse"}),(o==null?void 0:o.status)!=="running"&&h.jsx("div",{className:"absolute -bottom-1 -right-1 w-3 h-3 bg-emerald-500 rounded-full border-2 border-background"})]}),h.jsxs("div",{children:[h.jsx("h1",{className:"font-bold text-lg bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent",children:"OpenSpec Dashboard"}),h.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e&&h.jsxs("span",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"Schema: ",e.schema]}),(o==null?void 0:o.status)==="running"&&h.jsxs("span",{className:"flex items-center gap-1 text-blue-400",children:[h.jsx("span",{className:"animate-pulse",children:"●"}),"opsx:",o.skill," 执行中"]})]})]}),h.jsx(US,{})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsxs("button",{onClick:()=>S(!0),disabled:(o==null?void 0:o.status)==="running",className:Z("btn-primary text-sm gap-1",(o==null?void 0:o.status)==="running"&&"opacity-50 cursor-not-allowed"),children:[h.jsx("span",{children:"✨"}),h.jsx("span",{className:"hidden sm:inline",children:"新建变更"})]}),y&&h.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-[100]",onClick:()=>{S(!1),E("")},children:h.jsxs("div",{className:"bg-background border border-border rounded-xl shadow-2xl w-full mx-4 animate-scale-in max-w-2xl",style:{maxWidth:"600px",margin:"auto"},onClick:C=>C.stopPropagation(),children:[h.jsxs("div",{className:"p-6",children:[h.jsx("h3",{className:"text-lg font-bold mb-4",children:"新建变更"}),h.jsx("div",{className:"flex gap-2 mb-3",children:["feat-","fix-","hotfix-"].map(C=>h.jsx("button",{onClick:()=>E(O=>O.startsWith(C)?O:C+O.replace(/^(feat-|fix-|hotfix-)/,"")),className:Z("badge cursor-pointer transition-colors",m.startsWith(C)?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-primary hover:text-primary-foreground"),children:C},C))}),h.jsx("input",{type:"text",value:m,onChange:C=>E(C.target.value.replace(/\s+/g,"-")),onKeyDown:C=>C.key==="Enter"&&m.trim()&&D(),placeholder:"feat-user-auth 或 fix-login-bug",className:"w-full px-4 py-3 text-base bg-muted rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary font-mono",autoFocus:!0,style:{width:"100%"}}),m.trim()&&h.jsxs("p",{className:"text-xs text-muted-foreground mt-2 font-mono",children:["将执行: ",h.jsxs("span",{className:"text-primary",children:["/opsx:propose ",m.trim().replace(/\s+/g,"-")]})]})]}),h.jsxs("div",{className:"flex gap-3 justify-end px-6 pb-6",children:[h.jsx("button",{onClick:()=>{S(!1),E("")},className:"btn-ghost px-4 py-2",children:"取消"}),h.jsx("button",{onClick:D,disabled:g||!m.trim(),className:Z("btn-primary px-4 py-2",(g||!m.trim())&&"opacity-50"),children:g?"⏳ 启动中...":"✨ 创建并执行"})]})]})}),h.jsx(t6,{isConnected:t,isReconnecting:n,hasFailed:r,onReconnect:u}),c&&f&&h.jsx("button",{onClick:f,className:"btn-ghost gap-2 transition-all",title:c==="dark"?"切换到浅色模式":"切换到深色模式",children:h.jsx("span",{children:c==="dark"?"☀️":"🌙"})}),h.jsxs("button",{onClick:i,disabled:s,className:Z("btn-ghost gap-2 transition-all",s&&"opacity-50"),title:"刷新数据 (R)",children:[h.jsx("span",{className:Z("transition-transform",s&&"animate-spin"),children:"🔄"}),h.jsx("span",{className:"hidden sm:inline",children:s?"刷新中...":"刷新"})]})]})]})})]})}function t6({isConnected:e,isReconnecting:t,hasFailed:n,onReconnect:r}){return e?h.jsxs("div",{className:"badge badge-success gap-2 px-3 py-1.5",children:[h.jsxs("span",{className:"relative flex h-2 w-2",children:[h.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"}),h.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-emerald-500"})]}),"实时同步"]}):t?h.jsxs("div",{className:"badge badge-warning gap-2 px-3 py-1.5",children:[h.jsx("span",{className:"animate-spin",children:"⏳"}),"连接中..."]}):h.jsxs("button",{onClick:r,className:"badge badge-danger gap-2 px-3 py-1.5 hover:opacity-80 transition-opacity",title:"点击重连",children:[h.jsx("span",{children:"⚡"}),"重连"]})}function n6({error:e,onRetry:t}){return h.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] gap-6 px-4 animate-fade-in",children:[h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"text-8xl",children:"😵"}),h.jsx("div",{className:"absolute -top-2 -right-2 text-4xl animate-bounce",children:"💥"})]}),h.jsxs("div",{className:"text-center",children:[h.jsx("h2",{className:"text-2xl font-bold mb-2",children:"加载失败"}),h.jsx("p",{className:"text-muted-foreground max-w-md",children:e})]}),h.jsxs("button",{onClick:t,className:"btn-primary gap-2",children:[h.jsx("span",{children:"🔄"})," 重试"]})]})}function r6(){return h.jsxs("footer",{className:"relative border-t border-border/50 bg-gradient-to-r from-background via-background/95 to-background backdrop-blur-xl py-5 px-6 shadow-[0_-4px_20px_rgba(0,0,0,0.05)]",children:[h.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[h.jsx("div",{className:"absolute -top-1/2 -left-1/4 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),h.jsx("div",{className:"absolute -bottom-1/2 -right-1/4 w-96 h-96 bg-accent/5 rounded-full blur-3xl"})]}),h.jsxs("div",{className:"relative flex items-center justify-between text-sm",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsxs("div",{className:"flex items-center gap-2 group cursor-default",children:[h.jsx("div",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center transition-transform group-hover:scale-110",children:h.jsx("span",{className:"text-sm",children:"📋"})}),h.jsx("span",{className:"font-medium text-foreground/80",children:"OpenSpec Dashboard"})]}),h.jsxs("div",{className:"hidden sm:flex items-center gap-2 text-muted-foreground/60",children:[h.jsx("span",{className:"w-1 h-1 rounded-full bg-muted-foreground/40"}),h.jsxs("span",{className:"font-mono",children:["v","0.1.0"]})]})]}),h.jsx("div",{className:"flex items-center gap-2 text-muted-foreground/70",children:h.jsxs("div",{className:"flex items-center gap-1.5 group cursor-default",children:[h.jsx("span",{className:"transition-transform group-hover:scale-125",children:"👨💻"}),h.jsx("span",{className:"font-medium",children:"Vince"})]})})]})]})}function i6({message:e,onInitialized:t}){const[n,r]=M.useState(!1),[i,u]=M.useState(null),[s,a]=M.useState(!1),[o,c]=M.useState(!1),f=M.useCallback(async()=>{r(!1),a(!0),u(null),c(!1);try{const d=await De.initOpenspec();d.status==="success"?(c(!0),setTimeout(()=>{t==null||t(),window.location.reload()},2e3)):u(d.error||"初始化失败")}catch(d){u(String(d))}finally{a(!1)}},[t]);return h.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] gap-6 px-4 animate-fade-in",children:[h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"text-8xl",children:"📁"}),h.jsx("div",{className:"absolute -top-2 -right-2 text-4xl animate-bounce",children:"✨"})]}),h.jsxs("div",{className:"text-center",children:[h.jsx("h2",{className:"text-2xl font-bold mb-2",children:"OpenSpec 未初始化"}),h.jsx("p",{className:"text-muted-foreground max-w-md mb-4",children:e||"当前项目还没有初始化 OpenSpec 工作区"}),h.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-left max-w-lg mb-4",children:[h.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"请先安装 openspec CLI:"}),h.jsx("code",{className:"block bg-muted-foreground/10 px-3 py-2 rounded text-sm font-mono mb-2",children:"npm install -g @fission-ai/openspec@latest"}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"或使用 pnpm/yarn 安装,然后点击下方「一键初始化」按钮"})]}),i&&h.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-3 text-left max-w-lg mb-4",children:h.jsx("p",{className:"text-sm text-red-400",children:i})}),o&&h.jsx("div",{className:"bg-emerald-500/10 border border-emerald-500/20 rounded-lg p-3 text-left max-w-lg mb-4 animate-fade-in",children:h.jsxs("p",{className:"text-sm text-emerald-400 flex items-center gap-2",children:[h.jsx("span",{children:"✅"}),"初始化成功!2 秒后自动刷新..."]})}),!o&&h.jsxs("button",{onClick:()=>r(!0),disabled:s,className:"btn-primary gap-2",children:[h.jsx("span",{children:s?"⏳":"🚀"}),h.jsx("span",{children:s?"初始化中...":"一键初始化 OpenSpec"})]})]}),n&&h.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50 animate-fade-in",children:h.jsxs("div",{className:"bg-background border border-border rounded-xl p-6 max-w-md mx-4 shadow-xl animate-scale-in",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[h.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-500/10 flex items-center justify-center",children:h.jsx("span",{className:"text-2xl",children:"⚠️"})}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-bold",children:"确认初始化"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:"此操作将创建 openspec/ 目录"})]})]}),h.jsx("div",{className:"bg-muted/50 rounded-lg p-3 mb-4 text-sm",children:h.jsxs("p",{className:"text-muted-foreground",children:["将在当前项目目录创建 ",h.jsx("code",{className:"font-mono bg-muted px-1 rounded",children:"openspec/"})," 子目录, 包括配置和变更追踪文件。"]})}),h.jsxs("div",{className:"flex gap-3 justify-end",children:[h.jsxs("button",{onClick:()=>r(!1),className:"btn-ghost gap-2",children:[h.jsx("span",{children:"✕"}),"取消"]}),h.jsxs("button",{onClick:f,className:"btn-primary bg-amber-500 hover:bg-amber-600 gap-2",children:[h.jsx("span",{children:"✅"}),"确认初始化"]})]})]})})]})}oo.createRoot(document.getElementById("root")).render(h.jsx(fu.StrictMode,{children:h.jsx(zS,{children:h.jsx(ZS,{})})}));
|