@creative-dswork/dscode 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var A1=Object.defineProperty;var M1=(e,t,n)=>t in e?A1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _u=(e,t,n)=>M1(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $f={exports:{}},Ki={},Uf={exports:{}},ae={};/**
|
|
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 Ll=Symbol.for("react.element"),T1=Symbol.for("react.portal"),N1=Symbol.for("react.fragment"),P1=Symbol.for("react.strict_mode"),L1=Symbol.for("react.profiler"),I1=Symbol.for("react.provider"),_1=Symbol.for("react.context"),R1=Symbol.for("react.forward_ref"),j1=Symbol.for("react.suspense"),z1=Symbol.for("react.memo"),F1=Symbol.for("react.lazy"),Ru=Symbol.iterator;function D1(e){return e===null||typeof e!="object"?null:(e=Ru&&e[Ru]||e["@@iterator"],typeof e=="function"?e:null)}var Wf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qf=Object.assign,Xf={};function Ir(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||Wf}Ir.prototype.isReactComponent={};Ir.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")};Ir.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yf(){}Yf.prototype=Ir.prototype;function ys(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||Wf}var xs=ys.prototype=new Yf;xs.constructor=ys;Qf(xs,Ir.prototype);xs.isPureReactComponent=!0;var ju=Array.isArray,qf=Object.prototype.hasOwnProperty,vs={current:null},Kf={key:!0,ref:!0,__self:!0,__source:!0};function Gf(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)qf.call(t,r)&&!Kf.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];l.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:Ll,type:e,key:i,ref:o,props:l,_owner:vs.current}}function H1(e,t){return{$$typeof:Ll,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ks(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ll}function O1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zu=/\/+/g;function ko(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O1(""+e.key):t.toString(36)}function si(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ll:case T1:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+ko(o,0):r,ju(l)?(n="",e!=null&&(n=e.replace(zu,"$&/")+"/"),si(l,t,n,"",function(u){return u})):l!=null&&(ks(l)&&(l=H1(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(zu,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",ju(e))for(var a=0;a<e.length;a++){i=e[a];var s=r+ko(i,a);o+=si(i,t,n,s,l)}else if(s=D1(e),typeof s=="function")for(e=s.call(e),a=0;!(i=e.next()).done;)i=i.value,s=r+ko(i,a++),o+=si(i,t,n,s,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Hl(e,t,n){if(e==null)return e;var r=[],l=0;return si(e,r,"","",function(i){return t.call(n,i,l++)}),r}function V1(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 nt={current:null},ui={transition:null},Z1={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:ui,ReactCurrentOwner:vs};function Jf(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:Hl,forEach:function(e,t,n){Hl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hl(e,function(){t++}),t},toArray:function(e){return Hl(e,function(t){return t})||[]},only:function(e){if(!ks(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=Ir;ae.Fragment=N1;ae.Profiler=L1;ae.PureComponent=ys;ae.StrictMode=P1;ae.Suspense=j1;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z1;ae.act=Jf;ae.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=Qf({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=vs.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)qf.call(t,s)&&!Kf.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ll,type:e.type,key:l,ref:i,props:r,_owner:o}};ae.createContext=function(e){return e={$$typeof:_1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:I1,_context:e},e.Consumer=e};ae.createElement=Gf;ae.createFactory=function(e){var t=Gf.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:R1,render:e}};ae.isValidElement=ks;ae.lazy=function(e){return{$$typeof:F1,_payload:{_status:-1,_result:e},_init:V1}};ae.memo=function(e,t){return{$$typeof:z1,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=ui.transition;ui.transition={};try{e()}finally{ui.transition=t}};ae.unstable_act=Jf;ae.useCallback=function(e,t){return nt.current.useCallback(e,t)};ae.useContext=function(e){return nt.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};ae.useEffect=function(e,t){return nt.current.useEffect(e,t)};ae.useId=function(){return nt.current.useId()};ae.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return nt.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};ae.useRef=function(e){return nt.current.useRef(e)};ae.useState=function(e){return nt.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return nt.current.useTransition()};ae.version="18.3.1";Uf.exports=ae;var d=Uf.exports;const e0=gs(d);/**
|
|
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 B1=d,$1=Symbol.for("react.element"),U1=Symbol.for("react.fragment"),W1=Object.prototype.hasOwnProperty,Q1=B1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X1={key:!0,ref:!0,__self:!0,__source:!0};function t0(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)W1.call(t,r)&&!X1.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:$1,type:e,key:i,ref:o,props:l,_owner:Q1.current}}Ki.Fragment=U1;Ki.jsx=t0;Ki.jsxs=t0;$f.exports=Ki;var v=$f.exports,ca={},n0={exports:{}},vt={},r0={exports:{}},l0={};/**
|
|
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(B,X){var w=B.length;B.push(X);e:for(;0<w;){var re=w-1>>>1,se=B[re];if(0<l(se,X))B[re]=X,B[w]=se,w=re;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var X=B[0],w=B.pop();if(w!==X){B[0]=w;e:for(var re=0,se=B.length,E=se>>>1;re<E;){var we=2*(re+1)-1,Ne=B[we],z=we+1,J=B[z];if(0>l(Ne,w))z<se&&0>l(J,Ne)?(B[re]=J,B[z]=w,re=z):(B[re]=Ne,B[we]=w,re=we);else if(z<se&&0>l(J,w))B[re]=J,B[z]=w,re=z;else break e}}return X}function l(B,X){var w=B.sortIndex-X.sortIndex;return w!==0?w:B.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],f=1,c=null,h=3,p=!1,k=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(B){for(var X=n(u);X!==null;){if(X.callback===null)r(u);else if(X.startTime<=B)r(u),X.sortIndex=X.expirationTime,t(s,X);else break;X=n(u)}}function N(B){if(S=!1,x(B),!k)if(n(s)!==null)k=!0,fe(_);else{var X=n(u);X!==null&&T(N,X.startTime-B)}}function _(B,X){k=!1,S&&(S=!1,m(V),V=-1),p=!0;var w=h;try{for(x(X),c=n(s);c!==null&&(!(c.expirationTime>X)||B&&!$());){var re=c.callback;if(typeof re=="function"){c.callback=null,h=c.priorityLevel;var se=re(c.expirationTime<=X);X=e.unstable_now(),typeof se=="function"?c.callback=se:c===n(s)&&r(s),x(X)}else r(s);c=n(s)}if(c!==null)var E=!0;else{var we=n(u);we!==null&&T(N,we.startTime-X),E=!1}return E}finally{c=null,h=w,p=!1}}var b=!1,D=null,V=-1,Q=5,C=-1;function $(){return!(e.unstable_now()-C<Q)}function W(){if(D!==null){var B=e.unstable_now();C=B;var X=!0;try{X=D(!0,B)}finally{X?ne():(b=!1,D=null)}}else b=!1}var ne;if(typeof g=="function")ne=function(){g(W)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,te=ie.port2;ie.port1.onmessage=W,ne=function(){te.postMessage(null)}}else ne=function(){P(W,0)};function fe(B){D=B,b||(b=!0,ne())}function T(B,X){V=P(function(){B(e.unstable_now())},X)}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(B){B.callback=null},e.unstable_continueExecution=function(){k||p||(k=!0,fe(_))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(B){switch(h){case 1:case 2:case 3:var X=3;break;default:X=h}var w=h;h=X;try{return B()}finally{h=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var w=h;h=B;try{return X()}finally{h=w}},e.unstable_scheduleCallback=function(B,X,w){var re=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?re+w:re):w=re,B){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=w+se,B={id:f++,callback:X,priorityLevel:B,startTime:w,expirationTime:se,sortIndex:-1},w>re?(B.sortIndex=w,t(u,B),n(s)===null&&B===n(u)&&(S?(m(V),V=-1):S=!0,T(N,w-re))):(B.sortIndex=se,t(s,B),k||p||(k=!0,fe(_))),B},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(B){var X=h;return function(){var w=h;h=X;try{return B.apply(this,arguments)}finally{h=w}}}})(l0);r0.exports=l0;var Y1=r0.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 q1=d,xt=Y1;function O(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 i0=new Set,dl={};function Wn(e,t){Cr(e,t),Cr(e+"Capture",t)}function Cr(e,t){for(dl[e]=t,e=0;e<t.length;e++)i0.add(t[e])}var Gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,Fu={},Du={};function G1(e){return fa.call(Du,e)?!0:fa.call(Fu,e)?!1:K1.test(e)?Du[e]=!0:(Fu[e]=!0,!1)}function J1(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 eh(e,t,n,r){if(t===null||typeof t>"u"||J1(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 rt(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new rt(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){$e[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ws=/[\-:]([a-z])/g;function Ss(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(ws,Ss);$e[t]=new rt(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(ws,Ss);$e[t]=new rt(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(ws,Ss);$e[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Es(e,t,n,r){var l=$e.hasOwnProperty(t)?$e[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eh(t,n,l,r)&&(n=null),r||l===null?G1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nn=q1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ol=Symbol.for("react.element"),ir=Symbol.for("react.portal"),or=Symbol.for("react.fragment"),Cs=Symbol.for("react.strict_mode"),da=Symbol.for("react.profiler"),o0=Symbol.for("react.provider"),a0=Symbol.for("react.context"),bs=Symbol.for("react.forward_ref"),pa=Symbol.for("react.suspense"),ha=Symbol.for("react.suspense_list"),As=Symbol.for("react.memo"),cn=Symbol.for("react.lazy"),s0=Symbol.for("react.offscreen"),Hu=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=Hu&&e[Hu]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,wo;function qr(e){if(wo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);wo=t&&t[1]||""}return`
|
|
34
|
+
`+wo+e}var So=!1;function Eo(e,t){if(!e||So)return"";So=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var l=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),o=l.length-1,a=i.length-1;1<=o&&0<=a&&l[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==i[a]){var s=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{So=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qr(e):""}function th(e){switch(e.tag){case 5:return qr(e.type);case 16:return qr("Lazy");case 13:return qr("Suspense");case 19:return qr("SuspenseList");case 0:case 2:case 15:return e=Eo(e.type,!1),e;case 11:return e=Eo(e.type.render,!1),e;case 1:return e=Eo(e.type,!0),e;default:return""}}function ma(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 or:return"Fragment";case ir:return"Portal";case da:return"Profiler";case Cs:return"StrictMode";case pa:return"Suspense";case ha:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case a0:return(e.displayName||"Context")+".Consumer";case o0:return(e._context.displayName||"Context")+".Provider";case bs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case As:return t=e.displayName||null,t!==null?t:ma(e.type)||"Memo";case cn:t=e._payload,e=e._init;try{return ma(e(t))}catch{}}return null}function nh(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 ma(t);case 8:return t===Cs?"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 Cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function u0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rh(e){var t=u0(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vl(e){e._valueTracker||(e._valueTracker=rh(e))}function c0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=u0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ei(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 ga(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ou(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(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 f0(e,t){t=t.checked,t!=null&&Es(e,"checked",t,!1)}function ya(e,t){f0(e,t);var n=Cn(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")?xa(e,t.type,n):t.hasOwnProperty("defaultValue")&&xa(e,t.type,Cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vu(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 xa(e,t,n){(t!=="number"||Ei(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function yr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Cn(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function va(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Kr(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Cn(n)}}function d0(e,t){var n=Cn(t.value),r=Cn(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 Bu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p0(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 ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zl,h0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zl=Zl||document.createElement("div"),Zl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var el={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},lh=["Webkit","ms","Moz","O"];Object.keys(el).forEach(function(e){lh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),el[t]=el[e]})});function m0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||el.hasOwnProperty(e)&&el[e]?(""+t).trim():t+"px"}function g0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=m0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var ih=Te({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 wa(e,t){if(t){if(ih[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Sa(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 Ea=null;function Ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,xr=null,vr=null;function $u(e){if(e=Rl(e)){if(typeof Ca!="function")throw Error(O(280));var t=e.stateNode;t&&(t=no(t),Ca(e.stateNode,e.type,t))}}function y0(e){xr?vr?vr.push(e):vr=[e]:xr=e}function x0(){if(xr){var e=xr,t=vr;if(vr=xr=null,$u(e),t)for(e=0;e<t.length;e++)$u(t[e])}}function v0(e,t){return e(t)}function k0(){}var Co=!1;function w0(e,t,n){if(Co)return e(t,n);Co=!0;try{return v0(e,t,n)}finally{Co=!1,(xr!==null||vr!==null)&&(k0(),x0())}}function hl(e,t){var n=e.stateNode;if(n===null)return null;var r=no(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(O(231,t,typeof n));return n}var ba=!1;if(Gt)try{var Or={};Object.defineProperty(Or,"passive",{get:function(){ba=!0}}),window.addEventListener("test",Or,Or),window.removeEventListener("test",Or,Or)}catch{ba=!1}function oh(e,t,n,r,l,i,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var tl=!1,Ci=null,bi=!1,Aa=null,ah={onError:function(e){tl=!0,Ci=e}};function sh(e,t,n,r,l,i,o,a,s){tl=!1,Ci=null,oh.apply(ah,arguments)}function uh(e,t,n,r,l,i,o,a,s){if(sh.apply(this,arguments),tl){if(tl){var u=Ci;tl=!1,Ci=null}else throw Error(O(198));bi||(bi=!0,Aa=u)}}function Qn(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 S0(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 Uu(e){if(Qn(e)!==e)throw Error(O(188))}function ch(e){var t=e.alternate;if(!t){if(t=Qn(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Uu(l),e;if(i===r)return Uu(l),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function E0(e){return e=ch(e),e!==null?C0(e):null}function C0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=C0(e);if(t!==null)return t;e=e.sibling}return null}var b0=xt.unstable_scheduleCallback,Wu=xt.unstable_cancelCallback,fh=xt.unstable_shouldYield,dh=xt.unstable_requestPaint,_e=xt.unstable_now,ph=xt.unstable_getCurrentPriorityLevel,Ts=xt.unstable_ImmediatePriority,A0=xt.unstable_UserBlockingPriority,Ai=xt.unstable_NormalPriority,hh=xt.unstable_LowPriority,M0=xt.unstable_IdlePriority,Gi=null,Bt=null;function mh(e){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:xh,gh=Math.log,yh=Math.LN2;function xh(e){return e>>>=0,e===0?32:31-(gh(e)/yh|0)|0}var Bl=64,$l=4194304;function Gr(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 Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Gr(a):(i&=o,i!==0&&(r=Gr(i)))}else o=n&~l,o!==0?r=Gr(o):i!==0&&(r=Gr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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-_t(t),l=1<<n,r|=e[n],t&=~l;return r}function vh(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 kh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-_t(i),a=1<<o,s=l[o];s===-1?(!(a&n)||a&r)&&(l[o]=vh(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}function Ma(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function T0(){var e=Bl;return Bl<<=1,!(Bl&4194240)&&(Bl=64),e}function bo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Il(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function wh(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 l=31-_t(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function Ns(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var me=0;function N0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var P0,Ps,L0,I0,_0,Ta=!1,Ul=[],gn=null,yn=null,xn=null,ml=new Map,gl=new Map,dn=[],Sh="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 Qu(e,t){switch(e){case"focusin":case"focusout":gn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gl.delete(t.pointerId)}}function Vr(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Rl(t),t!==null&&Ps(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Eh(e,t,n,r,l){switch(t){case"focusin":return gn=Vr(gn,e,t,n,r,l),!0;case"dragenter":return yn=Vr(yn,e,t,n,r,l),!0;case"mouseover":return xn=Vr(xn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return ml.set(i,Vr(ml.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,gl.set(i,Vr(gl.get(i)||null,e,t,n,r,l)),!0}return!1}function R0(e){var t=jn(e.target);if(t!==null){var n=Qn(t);if(n!==null){if(t=n.tag,t===13){if(t=S0(n),t!==null){e.blockedOn=t,_0(e.priority,function(){L0(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 ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Na(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ea=r,n.target.dispatchEvent(r),Ea=null}else return t=Rl(n),t!==null&&Ps(t),e.blockedOn=n,!1;t.shift()}return!0}function Xu(e,t,n){ci(e)&&n.delete(t)}function Ch(){Ta=!1,gn!==null&&ci(gn)&&(gn=null),yn!==null&&ci(yn)&&(yn=null),xn!==null&&ci(xn)&&(xn=null),ml.forEach(Xu),gl.forEach(Xu)}function Zr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ta||(Ta=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,Ch)))}function yl(e){function t(l){return Zr(l,e)}if(0<Ul.length){Zr(Ul[0],e);for(var n=1;n<Ul.length;n++){var r=Ul[n];r.blockedOn===e&&(r.blockedOn=null)}}for(gn!==null&&Zr(gn,e),yn!==null&&Zr(yn,e),xn!==null&&Zr(xn,e),ml.forEach(t),gl.forEach(t),n=0;n<dn.length;n++)r=dn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<dn.length&&(n=dn[0],n.blockedOn===null);)R0(n),n.blockedOn===null&&dn.shift()}var kr=nn.ReactCurrentBatchConfig,Ti=!0;function bh(e,t,n,r){var l=me,i=kr.transition;kr.transition=null;try{me=1,Ls(e,t,n,r)}finally{me=l,kr.transition=i}}function Ah(e,t,n,r){var l=me,i=kr.transition;kr.transition=null;try{me=4,Ls(e,t,n,r)}finally{me=l,kr.transition=i}}function Ls(e,t,n,r){if(Ti){var l=Na(e,t,n,r);if(l===null)jo(e,t,r,Ni,n),Qu(e,r);else if(Eh(l,e,t,n,r))r.stopPropagation();else if(Qu(e,r),t&4&&-1<Sh.indexOf(e)){for(;l!==null;){var i=Rl(l);if(i!==null&&P0(i),i=Na(e,t,n,r),i===null&&jo(e,t,r,Ni,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else jo(e,t,r,null,n)}}var Ni=null;function Na(e,t,n,r){if(Ni=null,e=Ms(r),e=jn(e),e!==null)if(t=Qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=S0(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 Ni=e,null}function j0(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(ph()){case Ts:return 1;case A0:return 4;case Ai:case hh:return 16;case M0:return 536870912;default:return 16}default:return 16}}var hn=null,Is=null,fi=null;function z0(){if(fi)return fi;var e,t=Is,n=t.length,r,l="value"in hn?hn.value:hn.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return fi=l.slice(e,1<r?1-r:void 0)}function di(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 Wl(){return!0}function Yu(){return!1}function kt(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wl:Yu,this.isPropagationStopped=Yu,this}return Te(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=Wl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),t}var _r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_s=kt(_r),_l=Te({},_r,{view:0,detail:0}),Mh=kt(_l),Ao,Mo,Br,Ji=Te({},_l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rs,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!==Br&&(Br&&e.type==="mousemove"?(Ao=e.screenX-Br.screenX,Mo=e.screenY-Br.screenY):Mo=Ao=0,Br=e),Ao)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),qu=kt(Ji),Th=Te({},Ji,{dataTransfer:0}),Nh=kt(Th),Ph=Te({},_l,{relatedTarget:0}),To=kt(Ph),Lh=Te({},_r,{animationName:0,elapsedTime:0,pseudoElement:0}),Ih=kt(Lh),_h=Te({},_r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rh=kt(_h),jh=Te({},_r,{data:0}),Ku=kt(jh),zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fh={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"},Dh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dh[e])?!!t[e]:!1}function Rs(){return Hh}var Oh=Te({},_l,{key:function(e){if(e.key){var t=zh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rs,charCode:function(e){return e.type==="keypress"?di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vh=kt(Oh),Zh=Te({},Ji,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gu=kt(Zh),Bh=Te({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rs}),$h=kt(Bh),Uh=Te({},_r,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wh=kt(Uh),Qh=Te({},Ji,{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}),Xh=kt(Qh),Yh=[9,13,27,32],js=Gt&&"CompositionEvent"in window,nl=null;Gt&&"documentMode"in document&&(nl=document.documentMode);var qh=Gt&&"TextEvent"in window&&!nl,F0=Gt&&(!js||nl&&8<nl&&11>=nl),Ju=" ",ec=!1;function D0(e,t){switch(e){case"keyup":return Yh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function Kh(e,t){switch(e){case"compositionend":return H0(t);case"keypress":return t.which!==32?null:(ec=!0,Ju);case"textInput":return e=t.data,e===Ju&&ec?null:e;default:return null}}function Gh(e,t){if(ar)return e==="compositionend"||!js&&D0(e,t)?(e=z0(),fi=Is=hn=null,ar=!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 F0&&t.locale!=="ko"?null:t.data;default:return null}}var Jh={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 tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jh[e.type]:t==="textarea"}function O0(e,t,n,r){y0(r),t=Pi(t,"onChange"),0<t.length&&(n=new _s("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rl=null,xl=null;function em(e){K0(e,0)}function eo(e){var t=cr(e);if(c0(t))return e}function tm(e,t){if(e==="change")return t}var V0=!1;if(Gt){var No;if(Gt){var Po="oninput"in document;if(!Po){var nc=document.createElement("div");nc.setAttribute("oninput","return;"),Po=typeof nc.oninput=="function"}No=Po}else No=!1;V0=No&&(!document.documentMode||9<document.documentMode)}function rc(){rl&&(rl.detachEvent("onpropertychange",Z0),xl=rl=null)}function Z0(e){if(e.propertyName==="value"&&eo(xl)){var t=[];O0(t,xl,e,Ms(e)),w0(em,t)}}function nm(e,t,n){e==="focusin"?(rc(),rl=t,xl=n,rl.attachEvent("onpropertychange",Z0)):e==="focusout"&&rc()}function rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(xl)}function lm(e,t){if(e==="click")return eo(t)}function im(e,t){if(e==="input"||e==="change")return eo(t)}function om(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:om;function vl(e,t){if(zt(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 l=n[r];if(!fa.call(t,l)||!zt(e[l],t[l]))return!1}return!0}function lc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ic(e,t){var n=lc(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=lc(n)}}function B0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?B0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Ei();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ei(e.document)}return t}function zs(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 am(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&B0(n.ownerDocument.documentElement,n)){if(r!==null&&zs(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ic(n,i);var o=ic(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sm=Gt&&"documentMode"in document&&11>=document.documentMode,sr=null,Pa=null,ll=null,La=!1;function oc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;La||sr==null||sr!==Ei(r)||(r=sr,"selectionStart"in r&&zs(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}),ll&&vl(ll,r)||(ll=r,r=Pi(Pa,"onSelect"),0<r.length&&(t=new _s("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sr)))}function Ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionend:Ql("Transition","TransitionEnd")},Lo={},U0={};Gt&&(U0=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);function to(e){if(Lo[e])return Lo[e];if(!ur[e])return e;var t=ur[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in U0)return Lo[e]=t[n];return e}var W0=to("animationend"),Q0=to("animationiteration"),X0=to("animationstart"),Y0=to("transitionend"),q0=new Map,ac="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 An(e,t){q0.set(e,t),Wn(t,[e])}for(var Io=0;Io<ac.length;Io++){var _o=ac[Io],um=_o.toLowerCase(),cm=_o[0].toUpperCase()+_o.slice(1);An(um,"on"+cm)}An(W0,"onAnimationEnd");An(Q0,"onAnimationIteration");An(X0,"onAnimationStart");An("dblclick","onDoubleClick");An("focusin","onFocus");An("focusout","onBlur");An(Y0,"onTransitionEnd");Cr("onMouseEnter",["mouseout","mouseover"]);Cr("onMouseLeave",["mouseout","mouseover"]);Cr("onPointerEnter",["pointerout","pointerover"]);Cr("onPointerLeave",["pointerout","pointerover"]);Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="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(" "),fm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function sc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uh(r,t,void 0,e),e.currentTarget=null}function K0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&l.isPropagationStopped())break e;sc(l,a,u),i=s}else for(o=0;o<r.length;o++){if(a=r[o],s=a.instance,u=a.currentTarget,a=a.listener,s!==i&&l.isPropagationStopped())break e;sc(l,a,u),i=s}}}if(bi)throw e=Aa,bi=!1,Aa=null,e}function Se(e,t){var n=t[za];n===void 0&&(n=t[za]=new Set);var r=e+"__bubble";n.has(r)||(G0(t,e,2,!1),n.add(r))}function Ro(e,t,n){var r=0;t&&(r|=4),G0(n,e,r,t)}var Xl="_reactListening"+Math.random().toString(36).slice(2);function kl(e){if(!e[Xl]){e[Xl]=!0,i0.forEach(function(n){n!=="selectionchange"&&(fm.has(n)||Ro(n,!1,e),Ro(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xl]||(t[Xl]=!0,Ro("selectionchange",!1,t))}}function G0(e,t,n,r){switch(j0(t)){case 1:var l=bh;break;case 4:l=Ah;break;default:l=Ls}n=l.bind(null,t,n,e),l=void 0,!ba||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function jo(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;o=o.return}for(;a!==null;){if(o=jn(a),o===null)return;if(s=o.tag,s===5||s===6){r=i=o;continue e}a=a.parentNode}}r=r.return}w0(function(){var u=i,f=Ms(n),c=[];e:{var h=q0.get(e);if(h!==void 0){var p=_s,k=e;switch(e){case"keypress":if(di(n)===0)break e;case"keydown":case"keyup":p=Vh;break;case"focusin":k="focus",p=To;break;case"focusout":k="blur",p=To;break;case"beforeblur":case"afterblur":p=To;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":p=qu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=$h;break;case W0:case Q0:case X0:p=Ih;break;case Y0:p=Wh;break;case"scroll":p=Mh;break;case"wheel":p=Xh;break;case"copy":case"cut":case"paste":p=Rh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Gu}var S=(t&4)!==0,P=!S&&e==="scroll",m=S?h!==null?h+"Capture":null:h;S=[];for(var g=u,x;g!==null;){x=g;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,m!==null&&(N=hl(g,m),N!=null&&S.push(wl(g,N,x)))),P)break;g=g.return}0<S.length&&(h=new p(h,k,null,n,f),c.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Ea&&(k=n.relatedTarget||n.fromElement)&&(jn(k)||k[Jt]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(k=n.relatedTarget||n.toElement,p=u,k=k?jn(k):null,k!==null&&(P=Qn(k),k!==P||k.tag!==5&&k.tag!==6)&&(k=null)):(p=null,k=u),p!==k)){if(S=qu,N="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(S=Gu,N="onPointerLeave",m="onPointerEnter",g="pointer"),P=p==null?h:cr(p),x=k==null?h:cr(k),h=new S(N,g+"leave",p,n,f),h.target=P,h.relatedTarget=x,N=null,jn(f)===u&&(S=new S(m,g+"enter",k,n,f),S.target=x,S.relatedTarget=P,N=S),P=N,p&&k)t:{for(S=p,m=k,g=0,x=S;x;x=er(x))g++;for(x=0,N=m;N;N=er(N))x++;for(;0<g-x;)S=er(S),g--;for(;0<x-g;)m=er(m),x--;for(;g--;){if(S===m||m!==null&&S===m.alternate)break t;S=er(S),m=er(m)}S=null}else S=null;p!==null&&uc(c,h,p,S,!1),k!==null&&P!==null&&uc(c,P,k,S,!0)}}e:{if(h=u?cr(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var _=tm;else if(tc(h))if(V0)_=im;else{_=rm;var b=nm}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=lm);if(_&&(_=_(e,u))){O0(c,_,n,f);break e}b&&b(e,h,u),e==="focusout"&&(b=h._wrapperState)&&b.controlled&&h.type==="number"&&xa(h,"number",h.value)}switch(b=u?cr(u):window,e){case"focusin":(tc(b)||b.contentEditable==="true")&&(sr=b,Pa=u,ll=null);break;case"focusout":ll=Pa=sr=null;break;case"mousedown":La=!0;break;case"contextmenu":case"mouseup":case"dragend":La=!1,oc(c,n,f);break;case"selectionchange":if(sm)break;case"keydown":case"keyup":oc(c,n,f)}var D;if(js)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else ar?D0(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(F0&&n.locale!=="ko"&&(ar||V!=="onCompositionStart"?V==="onCompositionEnd"&&ar&&(D=z0()):(hn=f,Is="value"in hn?hn.value:hn.textContent,ar=!0)),b=Pi(u,V),0<b.length&&(V=new Ku(V,e,null,n,f),c.push({event:V,listeners:b}),D?V.data=D:(D=H0(n),D!==null&&(V.data=D)))),(D=qh?Kh(e,n):Gh(e,n))&&(u=Pi(u,"onBeforeInput"),0<u.length&&(f=new Ku("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=D))}K0(c,t)})}function wl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pi(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=hl(e,n),i!=null&&r.unshift(wl(e,i,l)),i=hl(e,t),i!=null&&r.push(wl(e,i,l))),e=e.return}return r}function er(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uc(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,l?(s=hl(n,i),s!=null&&o.unshift(wl(n,s,a))):l||(s=hl(n,i),s!=null&&o.push(wl(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var dm=/\r\n?/g,pm=/\u0000|\uFFFD/g;function cc(e){return(typeof e=="string"?e:""+e).replace(dm,`
|
|
38
|
+
`).replace(pm,"")}function Yl(e,t,n){if(t=cc(t),cc(e)!==t&&n)throw Error(O(425))}function Li(){}var Ia=null,_a=null;function Ra(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 ja=typeof setTimeout=="function"?setTimeout:void 0,hm=typeof clearTimeout=="function"?clearTimeout:void 0,fc=typeof Promise=="function"?Promise:void 0,mm=typeof queueMicrotask=="function"?queueMicrotask:typeof fc<"u"?function(e){return fc.resolve(null).then(e).catch(gm)}:ja;function gm(e){setTimeout(function(){throw e})}function zo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),yl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);yl(t)}function vn(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 dc(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 Rr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Rr,Sl="__reactProps$"+Rr,Jt="__reactContainer$"+Rr,za="__reactEvents$"+Rr,ym="__reactListeners$"+Rr,xm="__reactHandles$"+Rr;function jn(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dc(e);e!==null;){if(n=e[Zt])return n;e=dc(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){return e=e[Zt]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function no(e){return e[Sl]||null}var Fa=[],fr=-1;function Mn(e){return{current:e}}function Ee(e){0>fr||(e.current=Fa[fr],Fa[fr]=null,fr--)}function ke(e,t){fr++,Fa[fr]=e.current,e.current=t}var bn={},Ye=Mn(bn),at=Mn(!1),On=bn;function br(e,t){var n=e.type.contextTypes;if(!n)return bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function st(e){return e=e.childContextTypes,e!=null}function Ii(){Ee(at),Ee(Ye)}function pc(e,t,n){if(Ye.current!==bn)throw Error(O(168));ke(Ye,t),ke(at,n)}function J0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(O(108,nh(e)||"Unknown",l));return Te({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bn,On=Ye.current,ke(Ye,e),ke(at,at.current),!0}function hc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=J0(e,t,On),r.__reactInternalMemoizedMergedChildContext=e,Ee(at),Ee(Ye),ke(Ye,e)):Ee(at),ke(at,n)}var Xt=null,ro=!1,Fo=!1;function ed(e){Xt===null?Xt=[e]:Xt.push(e)}function vm(e){ro=!0,ed(e)}function Tn(){if(!Fo&&Xt!==null){Fo=!0;var e=0,t=me;try{var n=Xt;for(me=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xt=null,ro=!1}catch(l){throw Xt!==null&&(Xt=Xt.slice(e+1)),b0(Ts,Tn),l}finally{me=t,Fo=!1}}return null}var dr=[],pr=0,Ri=null,ji=0,St=[],Et=0,Vn=null,Yt=1,qt="";function In(e,t){dr[pr++]=ji,dr[pr++]=Ri,Ri=e,ji=t}function td(e,t,n){St[Et++]=Yt,St[Et++]=qt,St[Et++]=Vn,Vn=e;var r=Yt;e=qt;var l=32-_t(r)-1;r&=~(1<<l),n+=1;var i=32-_t(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Yt=1<<32-_t(t)+l|n<<l|r,qt=i+e}else Yt=1<<i|n<<l|r,qt=e}function Fs(e){e.return!==null&&(In(e,1),td(e,1,0))}function Ds(e){for(;e===Ri;)Ri=dr[--pr],dr[pr]=null,ji=dr[--pr],dr[pr]=null;for(;e===Vn;)Vn=St[--Et],St[Et]=null,qt=St[--Et],St[Et]=null,Yt=St[--Et],St[Et]=null}var gt=null,mt=null,Ce=!1,It=null;function nd(e,t){var n=bt(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 mc(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,gt=e,mt=vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,gt=e,mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vn!==null?{id:Yt,overflow:qt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,gt=e,mt=null,!0):!1;default:return!1}}function Da(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ha(e){if(Ce){var t=mt;if(t){var n=t;if(!mc(e,t)){if(Da(e))throw Error(O(418));t=vn(n.nextSibling);var r=gt;t&&mc(e,t)?nd(r,n):(e.flags=e.flags&-4097|2,Ce=!1,gt=e)}}else{if(Da(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ce=!1,gt=e}}}function gc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function ql(e){if(e!==gt)return!1;if(!Ce)return gc(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ra(e.type,e.memoizedProps)),t&&(t=mt)){if(Da(e))throw rd(),Error(O(418));for(;t;)nd(e,t),t=vn(t.nextSibling)}if(gc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mt=vn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mt=null}}else mt=gt?vn(e.stateNode.nextSibling):null;return!0}function rd(){for(var e=mt;e;)e=vn(e.nextSibling)}function Ar(){mt=gt=null,Ce=!1}function Hs(e){It===null?It=[e]:It.push(e)}var km=nn.ReactCurrentBatchConfig;function $r(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(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=l.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Kl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yc(e){var t=e._init;return t(e._payload)}function ld(e){function t(m,g){if(e){var x=m.deletions;x===null?(m.deletions=[g],m.flags|=16):x.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function l(m,g){return m=En(m,g),m.index=0,m.sibling=null,m}function i(m,g,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<g?(m.flags|=2,g):x):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,x,N){return g===null||g.tag!==6?(g=$o(x,m.mode,N),g.return=m,g):(g=l(g,x),g.return=m,g)}function s(m,g,x,N){var _=x.type;return _===or?f(m,g,x.props.children,N,x.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===cn&&yc(_)===g.type)?(N=l(g,x.props),N.ref=$r(m,g,x),N.return=m,N):(N=vi(x.type,x.key,x.props,null,m.mode,N),N.ref=$r(m,g,x),N.return=m,N)}function u(m,g,x,N){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=Uo(x,m.mode,N),g.return=m,g):(g=l(g,x.children||[]),g.return=m,g)}function f(m,g,x,N,_){return g===null||g.tag!==7?(g=Hn(x,m.mode,N,_),g.return=m,g):(g=l(g,x),g.return=m,g)}function c(m,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=$o(""+g,m.mode,x),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ol:return x=vi(g.type,g.key,g.props,null,m.mode,x),x.ref=$r(m,null,g),x.return=m,x;case ir:return g=Uo(g,m.mode,x),g.return=m,g;case cn:var N=g._init;return c(m,N(g._payload),x)}if(Kr(g)||Hr(g))return g=Hn(g,m.mode,x,null),g.return=m,g;Kl(m,g)}return null}function h(m,g,x,N){var _=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(m,g,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ol:return x.key===_?s(m,g,x,N):null;case ir:return x.key===_?u(m,g,x,N):null;case cn:return _=x._init,h(m,g,_(x._payload),N)}if(Kr(x)||Hr(x))return _!==null?null:f(m,g,x,N,null);Kl(m,x)}return null}function p(m,g,x,N,_){if(typeof N=="string"&&N!==""||typeof N=="number")return m=m.get(x)||null,a(g,m,""+N,_);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Ol:return m=m.get(N.key===null?x:N.key)||null,s(g,m,N,_);case ir:return m=m.get(N.key===null?x:N.key)||null,u(g,m,N,_);case cn:var b=N._init;return p(m,g,x,b(N._payload),_)}if(Kr(N)||Hr(N))return m=m.get(x)||null,f(g,m,N,_,null);Kl(g,N)}return null}function k(m,g,x,N){for(var _=null,b=null,D=g,V=g=0,Q=null;D!==null&&V<x.length;V++){D.index>V?(Q=D,D=null):Q=D.sibling;var C=h(m,D,x[V],N);if(C===null){D===null&&(D=Q);break}e&&D&&C.alternate===null&&t(m,D),g=i(C,g,V),b===null?_=C:b.sibling=C,b=C,D=Q}if(V===x.length)return n(m,D),Ce&&In(m,V),_;if(D===null){for(;V<x.length;V++)D=c(m,x[V],N),D!==null&&(g=i(D,g,V),b===null?_=D:b.sibling=D,b=D);return Ce&&In(m,V),_}for(D=r(m,D);V<x.length;V++)Q=p(D,m,V,x[V],N),Q!==null&&(e&&Q.alternate!==null&&D.delete(Q.key===null?V:Q.key),g=i(Q,g,V),b===null?_=Q:b.sibling=Q,b=Q);return e&&D.forEach(function($){return t(m,$)}),Ce&&In(m,V),_}function S(m,g,x,N){var _=Hr(x);if(typeof _!="function")throw Error(O(150));if(x=_.call(x),x==null)throw Error(O(151));for(var b=_=null,D=g,V=g=0,Q=null,C=x.next();D!==null&&!C.done;V++,C=x.next()){D.index>V?(Q=D,D=null):Q=D.sibling;var $=h(m,D,C.value,N);if($===null){D===null&&(D=Q);break}e&&D&&$.alternate===null&&t(m,D),g=i($,g,V),b===null?_=$:b.sibling=$,b=$,D=Q}if(C.done)return n(m,D),Ce&&In(m,V),_;if(D===null){for(;!C.done;V++,C=x.next())C=c(m,C.value,N),C!==null&&(g=i(C,g,V),b===null?_=C:b.sibling=C,b=C);return Ce&&In(m,V),_}for(D=r(m,D);!C.done;V++,C=x.next())C=p(D,m,V,C.value,N),C!==null&&(e&&C.alternate!==null&&D.delete(C.key===null?V:C.key),g=i(C,g,V),b===null?_=C:b.sibling=C,b=C);return e&&D.forEach(function(W){return t(m,W)}),Ce&&In(m,V),_}function P(m,g,x,N){if(typeof x=="object"&&x!==null&&x.type===or&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ol:e:{for(var _=x.key,b=g;b!==null;){if(b.key===_){if(_=x.type,_===or){if(b.tag===7){n(m,b.sibling),g=l(b,x.props.children),g.return=m,m=g;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===cn&&yc(_)===b.type){n(m,b.sibling),g=l(b,x.props),g.ref=$r(m,b,x),g.return=m,m=g;break e}n(m,b);break}else t(m,b);b=b.sibling}x.type===or?(g=Hn(x.props.children,m.mode,N,x.key),g.return=m,m=g):(N=vi(x.type,x.key,x.props,null,m.mode,N),N.ref=$r(m,g,x),N.return=m,m=N)}return o(m);case ir:e:{for(b=x.key;g!==null;){if(g.key===b)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(m,g.sibling),g=l(g,x.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Uo(x,m.mode,N),g.return=m,m=g}return o(m);case cn:return b=x._init,P(m,g,b(x._payload),N)}if(Kr(x))return k(m,g,x,N);if(Hr(x))return S(m,g,x,N);Kl(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(m,g.sibling),g=l(g,x),g.return=m,m=g):(n(m,g),g=$o(x,m.mode,N),g.return=m,m=g),o(m)):n(m,g)}return P}var Mr=ld(!0),id=ld(!1),zi=Mn(null),Fi=null,hr=null,Os=null;function Vs(){Os=hr=Fi=null}function Zs(e){var t=zi.current;Ee(zi),e._currentValue=t}function Oa(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 wr(e,t){Fi=e,Os=hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Os!==e)if(e={context:e,memoizedValue:t,next:null},hr===null){if(Fi===null)throw Error(O(308));hr=e,Fi.dependencies={lanes:0,firstContext:e}}else hr=hr.next=e;return t}var zn=null;function Bs(e){zn===null?zn=[e]:zn.push(e)}function od(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Bs(t)):(n.next=l.next,l.next=n),t.interleaved=n,en(e,r)}function en(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 fn=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ad(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 Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,en(e,n)}return l=r.interleaved,l===null?(t.next=t,Bs(r)):(t.next=l.next,l.next=t),r.interleaved=t,en(e,n)}function pi(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,Ns(e,n)}}function xc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,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 Di(e,t,n,r){var l=e.updateQueue;fn=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var s=a,u=s.next;s.next=null,o===null?i=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=l.baseState;o=0,f=u=s=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var k=e,S=a;switch(h=t,p=n,S.tag){case 1:if(k=S.payload,typeof k=="function"){c=k.call(p,c,h);break e}c=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=S.payload,h=typeof k=="function"?k.call(p,c,h):k,h==null)break e;c=Te({},c,h);break e;case 2:fn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=p,s=c):f=f.next=p,o|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(f===null&&(s=c),l.baseState=s,l.firstBaseUpdate=u,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Bn|=o,e.lanes=o,e.memoizedState=c}}function vc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(O(191,l));l.call(r)}}}var jl={},$t=Mn(jl),El=Mn(jl),Cl=Mn(jl);function Fn(e){if(e===jl)throw Error(O(174));return e}function Us(e,t){switch(ke(Cl,t),ke(El,e),ke($t,jl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ka(t,e)}Ee($t),ke($t,t)}function Tr(){Ee($t),Ee(El),Ee(Cl)}function sd(e){Fn(Cl.current);var t=Fn($t.current),n=ka(t,e.type);t!==n&&(ke(El,e),ke($t,n))}function Ws(e){El.current===e&&(Ee($t),Ee(El))}var Ae=Mn(0);function Hi(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 Do=[];function Qs(){for(var e=0;e<Do.length;e++)Do[e]._workInProgressVersionPrimary=null;Do.length=0}var hi=nn.ReactCurrentDispatcher,Ho=nn.ReactCurrentBatchConfig,Zn=0,Me=null,De=null,Oe=null,Oi=!1,il=!1,bl=0,wm=0;function Ue(){throw Error(O(321))}function Xs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Ys(e,t,n,r,l,i){if(Zn=i,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hi.current=e===null||e.memoizedState===null?bm:Am,e=n(r,l),il){i=0;do{if(il=!1,bl=0,25<=i)throw Error(O(301));i+=1,Oe=De=null,t.updateQueue=null,hi.current=Mm,e=n(r,l)}while(il)}if(hi.current=Vi,t=De!==null&&De.next!==null,Zn=0,Oe=De=Me=null,Oi=!1,t)throw Error(O(300));return e}function qs(){var e=bl!==0;return bl=0,e}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?Me.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function Tt(){if(De===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Oe===null?Me.memoizedState:Oe.next;if(t!==null)Oe=t,De=e;else{if(e===null)throw Error(O(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Oe===null?Me.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function Al(e,t){return typeof t=="function"?t(e):t}function Oo(e){var t=Tt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=De,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var a=o=null,s=null,u=i;do{var f=u.lane;if((Zn&f)===f)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=r):s=s.next=c,Me.lanes|=f,Bn|=f}u=u.next}while(u!==null&&u!==i);s===null?o=r:s.next=a,zt(r,t.memoizedState)||(ot=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Me.lanes|=i,Bn|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vo(e){var t=Tt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);zt(i,t.memoizedState)||(ot=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ud(){}function cd(e,t){var n=Me,r=Tt(),l=t(),i=!zt(r.memoizedState,l);if(i&&(r.memoizedState=l,ot=!0),r=r.queue,Ks(pd.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,Ml(9,dd.bind(null,n,r,l,t),void 0,null),Ve===null)throw Error(O(349));Zn&30||fd(n,t,l)}return l}function fd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dd(e,t,n,r){t.value=n,t.getSnapshot=r,hd(t)&&md(e)}function pd(e,t,n){return n(function(){hd(t)&&md(e)})}function hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function md(e){var t=en(e,1);t!==null&&Rt(t,e,1,-1)}function kc(e){var t=Ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:e},t.queue=e,e=e.dispatch=Cm.bind(null,Me,e),[t.memoizedState,e]}function Ml(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.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 gd(){return Tt().memoizedState}function mi(e,t,n,r){var l=Ot();Me.flags|=e,l.memoizedState=Ml(1|t,n,void 0,r===void 0?null:r)}function lo(e,t,n,r){var l=Tt();r=r===void 0?null:r;var i=void 0;if(De!==null){var o=De.memoizedState;if(i=o.destroy,r!==null&&Xs(r,o.deps)){l.memoizedState=Ml(t,n,i,r);return}}Me.flags|=e,l.memoizedState=Ml(1|t,n,i,r)}function wc(e,t){return mi(8390656,8,e,t)}function Ks(e,t){return lo(2048,8,e,t)}function yd(e,t){return lo(4,2,e,t)}function xd(e,t){return lo(4,4,e,t)}function vd(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 kd(e,t,n){return n=n!=null?n.concat([e]):null,lo(4,4,vd.bind(null,t,e),n)}function Gs(){}function wd(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sd(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ed(e,t,n){return Zn&21?(zt(n,t)||(n=T0(),Me.lanes|=n,Bn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=n)}function Sm(e,t){var n=me;me=n!==0&&4>n?n:4,e(!0);var r=Ho.transition;Ho.transition={};try{e(!1),t()}finally{me=n,Ho.transition=r}}function Cd(){return Tt().memoizedState}function Em(e,t,n){var r=Sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Ad(t,n);else if(n=od(e,t,n,r),n!==null){var l=tt();Rt(n,e,r,l),Md(n,t,r)}}function Cm(e,t,n){var r=Sn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Ad(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,zt(a,o)){var s=t.interleaved;s===null?(l.next=l,Bs(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=od(e,t,l,r),n!==null&&(l=tt(),Rt(n,e,r,l),Md(n,t,r))}}function bd(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function Ad(e,t){il=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Md(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ns(e,n)}}var Vi={readContext:Mt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},bm={readContext:Mt,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:wc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mi(4194308,4,vd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return mi(4,2,e,t)},useMemo:function(e,t){var n=Ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ot();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=Em.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:kc,useDebugValue:Gs,useDeferredValue:function(e){return Ot().memoizedState=e},useTransition:function(){var e=kc(!1),t=e[0];return e=Sm.bind(null,e[1]),Ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,l=Ot();if(Ce){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ve===null)throw Error(O(349));Zn&30||fd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,wc(pd.bind(null,r,i,e),[e]),r.flags|=2048,Ml(9,dd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ot(),t=Ve.identifierPrefix;if(Ce){var n=qt,r=Yt;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Am={readContext:Mt,useCallback:wd,useContext:Mt,useEffect:Ks,useImperativeHandle:kd,useInsertionEffect:yd,useLayoutEffect:xd,useMemo:Sd,useReducer:Oo,useRef:gd,useState:function(){return Oo(Al)},useDebugValue:Gs,useDeferredValue:function(e){var t=Tt();return Ed(t,De.memoizedState,e)},useTransition:function(){var e=Oo(Al)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:cd,useId:Cd,unstable_isNewReconciler:!1},Mm={readContext:Mt,useCallback:wd,useContext:Mt,useEffect:Ks,useImperativeHandle:kd,useInsertionEffect:yd,useLayoutEffect:xd,useMemo:Sd,useReducer:Vo,useRef:gd,useState:function(){return Vo(Al)},useDebugValue:Gs,useDeferredValue:function(e){var t=Tt();return De===null?t.memoizedState=e:Ed(t,De.memoizedState,e)},useTransition:function(){var e=Vo(Al)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:cd,useId:Cd,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Va(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var io={isMounted:function(e){return(e=e._reactInternals)?Qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),l=Sn(e),i=Kt(r,l);i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,l),t!==null&&(Rt(t,e,l,r),pi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),l=Sn(e),i=Kt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,l),t!==null&&(Rt(t,e,l,r),pi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=Sn(e),l=Kt(n,r);l.tag=2,t!=null&&(l.callback=t),t=kn(e,l,r),t!==null&&(Rt(t,e,r,n),pi(t,e,r))}};function Sc(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!vl(n,r)||!vl(l,i):!0}function Td(e,t,n){var r=!1,l=bn,i=t.contextType;return typeof i=="object"&&i!==null?i=Mt(i):(l=st(t)?On:Ye.current,r=t.contextTypes,i=(r=r!=null)?br(e,l):bn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=io,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ec(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&&io.enqueueReplaceState(t,t.state,null)}function Za(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},$s(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Mt(i):(i=st(t)?On:Ye.current,l.context=br(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Va(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&io.enqueueReplaceState(l,l.state,null),Di(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Nr(e,t){try{var n="",r=t;do n+=th(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ba(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tm=typeof WeakMap=="function"?WeakMap:Map;function Nd(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bi||(Bi=!0,Ja=r),Ba(e,t)},n}function Pd(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ba(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ba(e,t),typeof r!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Cc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Zm.bind(null,e,t,n),t.then(e,e))}function bc(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 Ac(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=Kt(-1,1),t.tag=2,kn(n,t,1))),n.lanes|=1),e)}var Nm=nn.ReactCurrentOwner,ot=!1;function Je(e,t,n,r){t.child=e===null?id(t,null,n,r):Mr(t,e.child,n,r)}function Mc(e,t,n,r,l){n=n.render;var i=t.ref;return wr(t,l),r=Ys(e,t,n,r,i,l),n=qs(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tn(e,t,l)):(Ce&&n&&Fs(t),t.flags|=1,Je(e,t,r,l),t.child)}function Tc(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!ou(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ld(e,t,i,r,l)):(e=vi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:vl,n(o,r)&&e.ref===t.ref)return tn(e,t,l)}return t.flags|=1,e=En(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ld(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(vl(i,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ot=!0);else return t.lanes=e.lanes,tn(e,t,l)}return $a(e,t,n,r,l)}function Id(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(gr,ht),ht|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(gr,ht),ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ke(gr,ht),ht|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ke(gr,ht),ht|=r;return Je(e,t,l,n),t.child}function _d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $a(e,t,n,r,l){var i=st(n)?On:Ye.current;return i=br(t,i),wr(t,l),n=Ys(e,t,n,r,i,l),r=qs(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tn(e,t,l)):(Ce&&r&&Fs(t),t.flags|=1,Je(e,t,n,l),t.child)}function Nc(e,t,n,r,l){if(st(n)){var i=!0;_i(t)}else i=!1;if(wr(t,l),t.stateNode===null)gi(e,t),Td(t,n,r),Za(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Mt(u):(u=st(n)?On:Ye.current,u=br(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&Ec(t,o,r,u),fn=!1;var h=t.memoizedState;o.state=h,Di(t,r,o,l),s=t.memoizedState,a!==r||h!==s||at.current||fn?(typeof f=="function"&&(Va(t,n,f,r),s=t.memoizedState),(a=fn||Sc(t,n,a,r,h,s,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ad(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Pt(t.type,a),o.props=u,c=t.pendingProps,h=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Mt(s):(s=st(n)?On:Ye.current,s=br(t,s));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||h!==s)&&Ec(t,o,r,s),fn=!1,h=t.memoizedState,o.state=h,Di(t,r,o,l);var k=t.memoizedState;a!==c||h!==k||at.current||fn?(typeof p=="function"&&(Va(t,n,p,r),k=t.memoizedState),(u=fn||Sc(t,n,u,r,h,k,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,k,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,k,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),o.props=r,o.state=k,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ua(e,t,n,r,i,l)}function Ua(e,t,n,r,l,i){_d(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&hc(t,n,!1),tn(e,t,i);r=t.stateNode,Nm.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Mr(t,e.child,null,i),t.child=Mr(t,null,a,i)):Je(e,t,a,i),t.memoizedState=r.state,l&&hc(t,n,!0),t.child}function Rd(e){var t=e.stateNode;t.pendingContext?pc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pc(e,t.context,!1),Us(e,t.containerInfo)}function Pc(e,t,n,r,l){return Ar(),Hs(l),t.flags|=256,Je(e,t,n,r),t.child}var Wa={dehydrated:null,treeContext:null,retryLane:0};function Qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function jd(e,t,n){var r=t.pendingProps,l=Ae.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ke(Ae,l&1),e===null)return Ha(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=so(o,r,0,null),e=Hn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qa(n),t.memoizedState=Wa,e):Js(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Pm(e,t,o,r,a,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,a=l.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=En(l,s),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?i=En(a,i):(i=Hn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Qa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Wa,r}return i=e.child,e=i.sibling,r=En(i,{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 Js(e,t){return t=so({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gl(e,t,n,r){return r!==null&&Hs(r),Mr(t,e.child,null,n),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pm(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Zo(Error(O(422))),Gl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=so({mode:"visible",children:r.children},l,0,null),i=Hn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Mr(t,e.child,null,o),t.child.memoizedState=Qa(o),t.memoizedState=Wa,i);if(!(t.mode&1))return Gl(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(O(419)),r=Zo(i,r,void 0),Gl(e,t,o,r)}if(a=(o&e.childLanes)!==0,ot||a){if(r=Ve,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,en(e,l),Rt(r,e,l,-1))}return iu(),r=Zo(Error(O(421))),Gl(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Bm.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,mt=vn(l.nextSibling),gt=t,Ce=!0,It=null,e!==null&&(St[Et++]=Yt,St[Et++]=qt,St[Et++]=Vn,Yt=e.id,qt=e.overflow,Vn=t),t=Js(t,r.children),t.flags|=4096,t)}function Lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Oa(e.return,t,n)}function Bo(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function zd(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=Ae.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&&Lc(e,n,t);else if(e.tag===19)Lc(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(ke(Ae,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Hi(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Bo(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Hi(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Bo(t,!0,n,null,i);break;case"together":Bo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=En(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=En(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lm(e,t,n){switch(t.tag){case 3:Rd(t),Ar();break;case 5:sd(t);break;case 1:st(t.type)&&_i(t);break;case 4:Us(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;ke(zi,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ke(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?jd(e,t,n):(ke(Ae,Ae.current&1),e=tn(e,t,n),e!==null?e.sibling:null);ke(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ke(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Id(e,t,n)}return tn(e,t,n)}var Fd,Xa,Dd,Hd;Fd=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}};Xa=function(){};Dd=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Fn($t.current);var i=null;switch(n){case"input":l=ga(e,l),r=ga(e,r),i=[];break;case"select":l=Te({},l,{value:void 0}),r=Te({},r,{value:void 0}),i=[];break;case"textarea":l=va(e,l),r=va(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Li)}wa(n,r);var o;n=null;for(u in l)if(!r.hasOwnProperty(u)&&l.hasOwnProperty(u)&&l[u]!=null)if(u==="style"){var a=l[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(dl.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(a=l!=null?l[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&a[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(dl.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Se("scroll",e),i||a===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Hd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ur(e,t){if(!Ce)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 We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Im(e,t,n){var r=t.pendingProps;switch(Ds(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return st(t.type)&&Ii(),We(t),null;case 3:return r=t.stateNode,Tr(),Ee(at),Ee(Ye),Qs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ql(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,It!==null&&(ns(It),It=null))),Xa(e,t),We(t),null;case 5:Ws(t);var l=Fn(Cl.current);if(n=t.type,e!==null&&t.stateNode!=null)Dd(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return We(t),null}if(e=Fn($t.current),ql(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Zt]=t,r[Sl]=i,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(l=0;l<Jr.length;l++)Se(Jr[l],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Ou(r,i),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Se("invalid",r);break;case"textarea":Zu(r,i),Se("invalid",r)}wa(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Yl(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Yl(r.textContent,a,e),l=["children",""+a]):dl.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Se("scroll",r)}switch(n){case"input":Vl(r),Vu(r,i,!0);break;case"textarea":Vl(r),Bu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Li)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zt]=t,e[Sl]=r,Fd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Sa(n,r),n){case"dialog":Se("cancel",e),Se("close",e),l=r;break;case"iframe":case"object":case"embed":Se("load",e),l=r;break;case"video":case"audio":for(l=0;l<Jr.length;l++)Se(Jr[l],e);l=r;break;case"source":Se("error",e),l=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),l=r;break;case"details":Se("toggle",e),l=r;break;case"input":Ou(e,r),l=ga(e,r),Se("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Te({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Zu(e,r),l=va(e,r),Se("invalid",e);break;default:l=r}wa(n,l),a=l;for(i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="style"?g0(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&h0(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&pl(e,s):typeof s=="number"&&pl(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(dl.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Se("scroll",e):s!=null&&Es(e,i,s,o))}switch(n){case"input":Vl(e),Vu(e,r,!1);break;case"textarea":Vl(e),Bu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Cn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?yr(e,!!r.multiple,i,!1):r.defaultValue!=null&&yr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Li)}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 We(t),null;case 6:if(e&&t.stateNode!=null)Hd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Fn(Cl.current),Fn($t.current),ql(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(i=r.nodeValue!==n)&&(e=gt,e!==null))switch(e.tag){case 3:Yl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return We(t),null;case 13:if(Ee(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&mt!==null&&t.mode&1&&!(t.flags&128))rd(),Ar(),t.flags|=98560,i=!1;else if(i=ql(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Zt]=t}else Ar(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else It!==null&&(ns(It),It=null),i=!0;if(!i)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||Ae.current&1?He===0&&(He=3):iu())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Tr(),Xa(e,t),e===null&&kl(t.stateNode.containerInfo),We(t),null;case 10:return Zs(t.type._context),We(t),null;case 17:return st(t.type)&&Ii(),We(t),null;case 19:if(Ee(Ae),i=t.memoizedState,i===null)return We(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Ur(i,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Hi(e),o!==null){for(t.flags|=128,Ur(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ke(Ae,Ae.current&1|2),t.child}e=e.sibling}i.tail!==null&&_e()>Pr&&(t.flags|=128,r=!0,Ur(i,!1),t.lanes=4194304)}else{if(!r)if(e=Hi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ur(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ce)return We(t),null}else 2*_e()-i.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,Ur(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ae.current,ke(Ae,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function _m(e,t){switch(Ds(t),t.tag){case 1:return st(t.type)&&Ii(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tr(),Ee(at),Ee(Ye),Qs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ws(t),null;case 13:if(Ee(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Ae),null;case 4:return Tr(),null;case 10:return Zs(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var Jl=!1,Qe=!1,Rm=typeof WeakSet=="function"?WeakSet:Set,Y=null;function mr(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 Ya(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Ic=!1;function jm(e,t){if(Ia=Ti,e=$0(),zs(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==n||l!==0&&c.nodeType!==3||(a=o+l),c!==i||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===n&&++u===l&&(a=o),h===i&&++f===r&&(s=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(_a={focusedElem:e,selectionRange:n},Ti=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var S=k.memoizedProps,P=k.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Pt(t.type,S),P);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(N){Le(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return k=Ic,Ic=!1,k}function ol(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ya(t,n,i)}l=l.next}while(l!==r)}}function oo(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 qa(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 Od(e){var t=e.alternate;t!==null&&(e.alternate=null,Od(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[Sl],delete t[za],delete t[ym],delete t[xm])),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 Vd(e){return e.tag===5||e.tag===3||e.tag===4}function _c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vd(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 Ka(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=Li));else if(r!==4&&(e=e.child,e!==null))for(Ka(e,t,n),e=e.sibling;e!==null;)Ka(e,t,n),e=e.sibling}function Ga(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(Ga(e,t,n),e=e.sibling;e!==null;)Ga(e,t,n),e=e.sibling}var Ze=null,Lt=!1;function sn(e,t,n){for(n=n.child;n!==null;)Zd(e,t,n),n=n.sibling}function Zd(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Gi,n)}catch{}switch(n.tag){case 5:Qe||mr(n,t);case 6:var r=Ze,l=Lt;Ze=null,sn(e,t,n),Ze=r,Lt=l,Ze!==null&&(Lt?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(Lt?(e=Ze,n=n.stateNode,e.nodeType===8?zo(e.parentNode,n):e.nodeType===1&&zo(e,n),yl(e)):zo(Ze,n.stateNode));break;case 4:r=Ze,l=Lt,Ze=n.stateNode.containerInfo,Lt=!0,sn(e,t,n),Ze=r,Lt=l;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ya(n,t,o),l=l.next}while(l!==r)}sn(e,t,n);break;case 1:if(!Qe&&(mr(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)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,sn(e,t,n),Qe=r):sn(e,t,n);break;default:sn(e,t,n)}}function Rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rm),t.forEach(function(r){var l=$m.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ze=a.stateNode,Lt=!1;break e;case 3:Ze=a.stateNode.containerInfo,Lt=!0;break e;case 4:Ze=a.stateNode.containerInfo,Lt=!0;break e}a=a.return}if(Ze===null)throw Error(O(160));Zd(i,o,l),Ze=null,Lt=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(u){Le(l,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bd(t,e),t=t.sibling}function Bd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Nt(t,e),Dt(e),r&4){try{ol(3,e,e.return),oo(3,e)}catch(S){Le(e,e.return,S)}try{ol(5,e,e.return)}catch(S){Le(e,e.return,S)}}break;case 1:Nt(t,e),Dt(e),r&512&&n!==null&&mr(n,n.return);break;case 5:if(Nt(t,e),Dt(e),r&512&&n!==null&&mr(n,n.return),e.flags&32){var l=e.stateNode;try{pl(l,"")}catch(S){Le(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&f0(l,i),Sa(a,o);var u=Sa(a,i);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?g0(l,c):f==="dangerouslySetInnerHTML"?h0(l,c):f==="children"?pl(l,c):Es(l,f,c,u)}switch(a){case"input":ya(l,i);break;case"textarea":d0(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?yr(l,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?yr(l,!!i.multiple,i.defaultValue,!0):yr(l,!!i.multiple,i.multiple?[]:"",!1))}l[Sl]=i}catch(S){Le(e,e.return,S)}}break;case 6:if(Nt(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(O(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(S){Le(e,e.return,S)}}break;case 3:if(Nt(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{yl(t.containerInfo)}catch(S){Le(e,e.return,S)}break;case 4:Nt(t,e),Dt(e);break;case 13:Nt(t,e),Dt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(nu=_e())),r&4&&Rc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||f,Nt(t,e),Qe=u):Nt(t,e),Dt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Y=e,f=e.child;f!==null;){for(c=Y=f;Y!==null;){switch(h=Y,p=h.child,h.tag){case 0:case 11:case 14:case 15:ol(4,h,h.return);break;case 1:mr(h,h.return);var k=h.stateNode;if(typeof k.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(S){Le(r,n,S)}}break;case 5:mr(h,h.return);break;case 22:if(h.memoizedState!==null){zc(c);continue}}p!==null?(p.return=h,Y=p):zc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{l=c.stateNode,u?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=c.stateNode,s=c.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=m0("display",o))}catch(S){Le(e,e.return,S)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(S){Le(e,e.return,S)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Nt(t,e),Dt(e),r&4&&Rc(e);break;case 21:break;default:Nt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vd(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(pl(l,""),r.flags&=-33);var i=_c(e);Ga(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=_c(e);Ka(e,a,o);break;default:throw Error(O(161))}}catch(s){Le(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zm(e,t,n){Y=e,$d(e)}function $d(e,t,n){for(var r=(e.mode&1)!==0;Y!==null;){var l=Y,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Jl;if(!o){var a=l.alternate,s=a!==null&&a.memoizedState!==null||Qe;a=Jl;var u=Qe;if(Jl=o,(Qe=s)&&!u)for(Y=l;Y!==null;)o=Y,s=o.child,o.tag===22&&o.memoizedState!==null?Fc(l):s!==null?(s.return=o,Y=s):Fc(l);for(;i!==null;)Y=i,$d(i),i=i.sibling;Y=l,Jl=a,Qe=u}jc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,Y=i):jc(e)}}function jc(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qe||oo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Pt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&vc(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}vc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&yl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Qe||t.flags&512&&qa(t)}catch(h){Le(t,t.return,h)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function zc(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Fc(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{oo(4,t)}catch(s){Le(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){Le(t,l,s)}}var i=t.return;try{qa(t)}catch(s){Le(t,i,s)}break;case 5:var o=t.return;try{qa(t)}catch(s){Le(t,o,s)}}}catch(s){Le(t,t.return,s)}if(t===e){Y=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Y=a;break}Y=t.return}}var Fm=Math.ceil,Zi=nn.ReactCurrentDispatcher,eu=nn.ReactCurrentOwner,At=nn.ReactCurrentBatchConfig,ce=0,Ve=null,ze=null,Be=0,ht=0,gr=Mn(0),He=0,Tl=null,Bn=0,ao=0,tu=0,al=null,it=null,nu=0,Pr=1/0,Qt=null,Bi=!1,Ja=null,wn=null,ei=!1,mn=null,$i=0,sl=0,es=null,yi=-1,xi=0;function tt(){return ce&6?_e():yi!==-1?yi:yi=_e()}function Sn(e){return e.mode&1?ce&2&&Be!==0?Be&-Be:km.transition!==null?(xi===0&&(xi=T0()),xi):(e=me,e!==0||(e=window.event,e=e===void 0?16:j0(e.type)),e):1}function Rt(e,t,n,r){if(50<sl)throw sl=0,es=null,Error(O(185));Il(e,n,r),(!(ce&2)||e!==Ve)&&(e===Ve&&(!(ce&2)&&(ao|=n),He===4&&pn(e,Be)),ut(e,r),n===1&&ce===0&&!(t.mode&1)&&(Pr=_e()+500,ro&&Tn()))}function ut(e,t){var n=e.callbackNode;kh(e,t);var r=Mi(e,e===Ve?Be:0);if(r===0)n!==null&&Wu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wu(n),t===1)e.tag===0?vm(Dc.bind(null,e)):ed(Dc.bind(null,e)),mm(function(){!(ce&6)&&Tn()}),n=null;else{switch(N0(r)){case 1:n=Ts;break;case 4:n=A0;break;case 16:n=Ai;break;case 536870912:n=M0;break;default:n=Ai}n=Gd(n,Ud.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ud(e,t){if(yi=-1,xi=0,ce&6)throw Error(O(327));var n=e.callbackNode;if(Sr()&&e.callbackNode!==n)return null;var r=Mi(e,e===Ve?Be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ui(e,r);else{t=r;var l=ce;ce|=2;var i=Qd();(Ve!==e||Be!==t)&&(Qt=null,Pr=_e()+500,Dn(e,t));do try{Om();break}catch(a){Wd(e,a)}while(!0);Vs(),Zi.current=i,ce=l,ze!==null?t=0:(Ve=null,Be=0,t=He)}if(t!==0){if(t===2&&(l=Ma(e),l!==0&&(r=l,t=ts(e,l))),t===1)throw n=Tl,Dn(e,0),pn(e,r),ut(e,_e()),n;if(t===6)pn(e,r);else{if(l=e.current.alternate,!(r&30)&&!Dm(l)&&(t=Ui(e,r),t===2&&(i=Ma(e),i!==0&&(r=i,t=ts(e,i))),t===1))throw n=Tl,Dn(e,0),pn(e,r),ut(e,_e()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:_n(e,it,Qt);break;case 3:if(pn(e,r),(r&130023424)===r&&(t=nu+500-_e(),10<t)){if(Mi(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ja(_n.bind(null,e,it,Qt),t);break}_n(e,it,Qt);break;case 4:if(pn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-_t(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fm(r/1960))-r,10<r){e.timeoutHandle=ja(_n.bind(null,e,it,Qt),r);break}_n(e,it,Qt);break;case 5:_n(e,it,Qt);break;default:throw Error(O(329))}}}return ut(e,_e()),e.callbackNode===n?Ud.bind(null,e):null}function ts(e,t){var n=al;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=Ui(e,t),e!==2&&(t=it,it=n,t!==null&&ns(t)),e}function ns(e){it===null?it=e:it.push.apply(it,e)}function Dm(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 l=n[r],i=l.getSnapshot;l=l.value;try{if(!zt(i(),l))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 pn(e,t){for(t&=~tu,t&=~ao,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Dc(e){if(ce&6)throw Error(O(327));Sr();var t=Mi(e,0);if(!(t&1))return ut(e,_e()),null;var n=Ui(e,t);if(e.tag!==0&&n===2){var r=Ma(e);r!==0&&(t=r,n=ts(e,r))}if(n===1)throw n=Tl,Dn(e,0),pn(e,t),ut(e,_e()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_n(e,it,Qt),ut(e,_e()),null}function ru(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(Pr=_e()+500,ro&&Tn())}}function $n(e){mn!==null&&mn.tag===0&&!(ce&6)&&Sr();var t=ce;ce|=1;var n=At.transition,r=me;try{if(At.transition=null,me=1,e)return e()}finally{me=r,At.transition=n,ce=t,!(ce&6)&&Tn()}}function lu(){ht=gr.current,Ee(gr)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hm(n)),ze!==null)for(n=ze.return;n!==null;){var r=n;switch(Ds(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ii();break;case 3:Tr(),Ee(at),Ee(Ye),Qs();break;case 5:Ws(r);break;case 4:Tr();break;case 13:Ee(Ae);break;case 19:Ee(Ae);break;case 10:Zs(r.type._context);break;case 22:case 23:lu()}n=n.return}if(Ve=e,ze=e=En(e.current,null),Be=ht=t,He=0,Tl=null,tu=ao=Bn=0,it=al=null,zn!==null){for(t=0;t<zn.length;t++)if(n=zn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}zn=null}return e}function Wd(e,t){do{var n=ze;try{if(Vs(),hi.current=Vi,Oi){for(var r=Me.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Oi=!1}if(Zn=0,Oe=De=Me=null,il=!1,bl=0,eu.current=null,n===null||n.return===null){He=1,Tl=t,ze=null;break}e:{var i=e,o=n.return,a=n,s=t;if(t=Be,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,f=a,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=bc(o);if(p!==null){p.flags&=-257,Ac(p,o,a,i,t),p.mode&1&&Cc(i,u,t),t=p,s=u;var k=t.updateQueue;if(k===null){var S=new Set;S.add(s),t.updateQueue=S}else k.add(s);break e}else{if(!(t&1)){Cc(i,u,t),iu();break e}s=Error(O(426))}}else if(Ce&&a.mode&1){var P=bc(o);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Ac(P,o,a,i,t),Hs(Nr(s,a));break e}}i=s=Nr(s,a),He!==4&&(He=2),al===null?al=[i]:al.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Nd(i,s,t);xc(i,m);break e;case 1:a=s;var g=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(wn===null||!wn.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=Pd(i,a,t);xc(i,N);break e}}i=i.return}while(i!==null)}Yd(n)}catch(_){t=_,ze===n&&n!==null&&(ze=n=n.return);continue}break}while(!0)}function Qd(){var e=Zi.current;return Zi.current=Vi,e===null?Vi:e}function iu(){(He===0||He===3||He===2)&&(He=4),Ve===null||!(Bn&268435455)&&!(ao&268435455)||pn(Ve,Be)}function Ui(e,t){var n=ce;ce|=2;var r=Qd();(Ve!==e||Be!==t)&&(Qt=null,Dn(e,t));do try{Hm();break}catch(l){Wd(e,l)}while(!0);if(Vs(),ce=n,Zi.current=r,ze!==null)throw Error(O(261));return Ve=null,Be=0,He}function Hm(){for(;ze!==null;)Xd(ze)}function Om(){for(;ze!==null&&!fh();)Xd(ze)}function Xd(e){var t=Kd(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Yd(e):ze=t,eu.current=null}function Yd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_m(n,t),n!==null){n.flags&=32767,ze=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,ze=null;return}}else if(n=Im(n,t,ht),n!==null){ze=n;return}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);He===0&&(He=5)}function _n(e,t,n){var r=me,l=At.transition;try{At.transition=null,me=1,Vm(e,t,n,r)}finally{At.transition=l,me=r}return null}function Vm(e,t,n,r){do Sr();while(mn!==null);if(ce&6)throw Error(O(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(wh(e,i),e===Ve&&(ze=Ve=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ei||(ei=!0,Gd(Ai,function(){return Sr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=At.transition,At.transition=null;var o=me;me=1;var a=ce;ce|=4,eu.current=null,jm(e,n),Bd(n,e),am(_a),Ti=!!Ia,_a=Ia=null,e.current=n,zm(n),dh(),ce=a,me=o,At.transition=i}else e.current=n;if(ei&&(ei=!1,mn=e,$i=l),i=e.pendingLanes,i===0&&(wn=null),mh(n.stateNode),ut(e,_e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Bi)throw Bi=!1,e=Ja,Ja=null,e;return $i&1&&e.tag!==0&&Sr(),i=e.pendingLanes,i&1?e===es?sl++:(sl=0,es=e):sl=0,Tn(),null}function Sr(){if(mn!==null){var e=N0($i),t=At.transition,n=me;try{if(At.transition=null,me=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,$i=0,ce&6)throw Error(O(331));var l=ce;for(ce|=4,Y=e.current;Y!==null;){var i=Y,o=i.child;if(Y.flags&16){var a=i.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(Y=u;Y!==null;){var f=Y;switch(f.tag){case 0:case 11:case 15:ol(8,f,i)}var c=f.child;if(c!==null)c.return=f,Y=c;else for(;Y!==null;){f=Y;var h=f.sibling,p=f.return;if(Od(f),f===u){Y=null;break}if(h!==null){h.return=p,Y=h;break}Y=p}}}var k=i.alternate;if(k!==null){var S=k.child;if(S!==null){k.child=null;do{var P=S.sibling;S.sibling=null,S=P}while(S!==null)}}Y=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Y=o;else e:for(;Y!==null;){if(i=Y,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ol(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,Y=m;break e}Y=i.return}}var g=e.current;for(Y=g;Y!==null;){o=Y;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Y=x;else e:for(o=g;Y!==null;){if(a=Y,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:oo(9,a)}}catch(_){Le(a,a.return,_)}if(a===o){Y=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,Y=N;break e}Y=a.return}}if(ce=l,Tn(),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Gi,e)}catch{}r=!0}return r}finally{me=n,At.transition=t}}return!1}function Hc(e,t,n){t=Nr(n,t),t=Nd(e,t,1),e=kn(e,t,1),t=tt(),e!==null&&(Il(e,1,t),ut(e,t))}function Le(e,t,n){if(e.tag===3)Hc(e,e,n);else for(;t!==null;){if(t.tag===3){Hc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(wn===null||!wn.has(r))){e=Nr(n,e),e=Pd(t,e,1),t=kn(t,e,1),e=tt(),t!==null&&(Il(t,1,e),ut(t,e));break}}t=t.return}}function Zm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(Be&n)===n&&(He===4||He===3&&(Be&130023424)===Be&&500>_e()-nu?Dn(e,0):tu|=n),ut(e,t)}function qd(e,t){t===0&&(e.mode&1?(t=$l,$l<<=1,!($l&130023424)&&($l=4194304)):t=1);var n=tt();e=en(e,t),e!==null&&(Il(e,t,n),ut(e,n))}function Bm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qd(e,n)}function $m(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),qd(e,n)}var Kd;Kd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,Lm(e,t,n);ot=!!(e.flags&131072)}else ot=!1,Ce&&t.flags&1048576&&td(t,ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gi(e,t),e=t.pendingProps;var l=br(t,Ye.current);wr(t,n),l=Ys(null,t,r,e,l,n);var i=qs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)?(i=!0,_i(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,$s(t),l.updater=io,t.stateNode=l,l._reactInternals=t,Za(t,r,e,n),t=Ua(null,t,r,!0,i,n)):(t.tag=0,Ce&&i&&Fs(t),Je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gi(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Wm(r),e=Pt(r,e),l){case 0:t=$a(null,t,r,e,n);break e;case 1:t=Nc(null,t,r,e,n);break e;case 11:t=Mc(null,t,r,e,n);break e;case 14:t=Tc(null,t,r,Pt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Pt(r,l),$a(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Pt(r,l),Nc(e,t,r,l,n);case 3:e:{if(Rd(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ad(e,t),Di(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Nr(Error(O(423)),t),t=Pc(e,t,r,n,l);break e}else if(r!==l){l=Nr(Error(O(424)),t),t=Pc(e,t,r,n,l);break e}else for(mt=vn(t.stateNode.containerInfo.firstChild),gt=t,Ce=!0,It=null,n=id(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),r===l){t=tn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return sd(t),e===null&&Ha(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ra(r,l)?o=null:i!==null&&Ra(r,i)&&(t.flags|=32),_d(e,t),Je(e,t,o,n),t.child;case 6:return e===null&&Ha(t),null;case 13:return jd(e,t,n);case 4:return Us(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mr(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Pt(r,l),Mc(e,t,r,l,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,ke(zi,r._currentValue),r._currentValue=o,i!==null)if(zt(i.value,o)){if(i.children===l.children&&!at.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Kt(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Oa(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Oa(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,wr(t,n),l=Mt(l),r=r(l),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,l=Pt(r,t.pendingProps),l=Pt(r.type,l),Tc(e,t,r,l,n);case 15:return Ld(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Pt(r,l),gi(e,t),t.tag=1,st(r)?(e=!0,_i(t)):e=!1,wr(t,n),Td(t,r,l),Za(t,r,l,n),Ua(null,t,r,!0,e,n);case 19:return zd(e,t,n);case 22:return Id(e,t,n)}throw Error(O(156,t.tag))};function Gd(e,t){return b0(e,t)}function Um(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 bt(e,t,n,r){return new Um(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wm(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bs)return 11;if(e===As)return 14}return 2}function En(e,t){var n=e.alternate;return n===null?(n=bt(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 vi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ou(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case or:return Hn(n.children,l,i,t);case Cs:o=8,l|=8;break;case da:return e=bt(12,n,t,l|2),e.elementType=da,e.lanes=i,e;case pa:return e=bt(13,n,t,l),e.elementType=pa,e.lanes=i,e;case ha:return e=bt(19,n,t,l),e.elementType=ha,e.lanes=i,e;case s0:return so(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case o0:o=10;break e;case a0:o=9;break e;case bs:o=11;break e;case As:o=14;break e;case cn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=bt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function so(e,t,n,r){return e=bt(22,e,r,t),e.elementType=s0,e.lanes=n,e.stateNode={isHidden:!1},e}function $o(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function Uo(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qm(e,t,n,r,l){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=bo(0),this.expirationTimes=bo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,l,i,o,a,s){return e=new Qm(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$s(i),e}function Xm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ir,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Jd(e){if(!e)return bn;e=e._reactInternals;e:{if(Qn(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(st(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(st(n))return J0(e,n,t)}return t}function ep(e,t,n,r,l,i,o,a,s){return e=au(n,r,!0,e,l,i,o,a,s),e.context=Jd(null),n=e.current,r=tt(),l=Sn(n),i=Kt(r,l),i.callback=t??null,kn(n,i,l),e.current.lanes=l,Il(e,l,r),ut(e,r),e}function uo(e,t,n,r){var l=t.current,i=tt(),o=Sn(l);return n=Jd(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kn(l,t,o),e!==null&&(Rt(e,l,o,i),pi(e,l,o)),o}function Wi(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 Oc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){Oc(e,t),(e=e.alternate)&&Oc(e,t)}function Ym(){return null}var tp=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}co.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));uo(e,t,null,null)};co.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$n(function(){uo(null,e,null,null)}),t[Jt]=null}};function co(e){this._internalRoot=e}co.prototype.unstable_scheduleHydration=function(e){if(e){var t=I0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dn.length&&t!==0&&t<dn[n].priority;n++);dn.splice(n,0,e),n===0&&R0(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vc(){}function qm(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var u=Wi(o);i.call(u)}}var o=ep(t,r,e,0,null,!1,!1,"",Vc);return e._reactRootContainer=o,e[Jt]=o.current,kl(e.nodeType===8?e.parentNode:e),$n(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var u=Wi(s);a.call(u)}}var s=au(e,0,!1,null,null,!1,!1,"",Vc);return e._reactRootContainer=s,e[Jt]=s.current,kl(e.nodeType===8?e.parentNode:e),$n(function(){uo(t,s,n,r)}),s}function po(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var a=l;l=function(){var s=Wi(o);a.call(s)}}uo(t,o,e,l)}else o=qm(n,t,e,l,r);return Wi(o)}P0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Gr(t.pendingLanes);n!==0&&(Ns(t,n|1),ut(t,_e()),!(ce&6)&&(Pr=_e()+500,Tn()))}break;case 13:$n(function(){var r=en(e,1);if(r!==null){var l=tt();Rt(r,e,1,l)}}),su(e,1)}};Ps=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=tt();Rt(t,e,134217728,n)}su(e,134217728)}};L0=function(e){if(e.tag===13){var t=Sn(e),n=en(e,t);if(n!==null){var r=tt();Rt(n,e,t,r)}su(e,t)}};I0=function(){return me};_0=function(e,t){var n=me;try{return me=e,t()}finally{me=n}};Ca=function(e,t,n){switch(t){case"input":if(ya(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 l=no(r);if(!l)throw Error(O(90));c0(r),ya(r,l)}}}break;case"textarea":d0(e,n);break;case"select":t=n.value,t!=null&&yr(e,!!n.multiple,t,!1)}};v0=ru;k0=$n;var Km={usingClientEntryPoint:!1,Events:[Rl,cr,no,y0,x0,ru]},Wr={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gm={bundleType:Wr.bundleType,version:Wr.version,rendererPackageName:Wr.rendererPackageName,rendererConfig:Wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=E0(e),e===null?null:e.stateNode},findFiberByHostInstance:Wr.findFiberByHostInstance||Ym,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 ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ti.isDisabled&&ti.supportsFiber)try{Gi=ti.inject(Gm),Bt=ti}catch{}}vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Km;vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(O(200));return Xm(e,t,null,n)};vt.createRoot=function(e,t){if(!cu(e))throw Error(O(299));var n=!1,r="",l=tp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,r,l),e[Jt]=t.current,kl(e.nodeType===8?e.parentNode:e),new uu(t)};vt.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=E0(t),e=e===null?null:e.stateNode,e};vt.flushSync=function(e){return $n(e)};vt.hydrate=function(e,t,n){if(!fo(t))throw Error(O(200));return po(null,e,t,!0,n)};vt.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=tp;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ep(t,null,e,1,n??null,l,!1,i,o),e[Jt]=t.current,kl(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new co(t)};vt.render=function(e,t,n){if(!fo(t))throw Error(O(200));return po(null,e,t,!1,n)};vt.unmountComponentAtNode=function(e){if(!fo(e))throw Error(O(40));return e._reactRootContainer?($n(function(){po(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};vt.unstable_batchedUpdates=ru;vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fo(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return po(e,t,n,!1,r)};vt.version="18.3.1-next-f1338f8080-20240426";function np(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(np)}catch(e){console.error(e)}}np(),n0.exports=vt;var Jm=n0.exports,Zc=Jm;ca.createRoot=Zc.createRoot,ca.hydrateRoot=Zc.hydrateRoot;function Bc(e){return typeof e=="string"?e:Array.isArray(e)?e.filter(t=>t.type==="text").map(t=>t.text).join(`
|
|
41
|
+
`):""}function Wo(e,t){const n=[...e],r=n[n.length-1];return r!=null&&r.isStreaming?n[n.length-1]={...r,...t(r)}:n.push({id:`assistant-${Date.now()}`,role:"assistant",content:"",thinking:"",tools:[],isStreaming:!0,images:void 0,...t({id:"",role:"assistant",content:"",thinking:"",tools:[]})}),n}function ni(e,t){switch(t.type){case"ready":return t.messages.map((n,r)=>({id:`hist-${r}`,role:n.role,content:Bc(n.content),thinking:typeof n.thinking=="string"?n.thinking:"",tools:Array.isArray(n.tools)?n.tools:[],images:Array.isArray(n.images)?n.images:[]}));case"user_message":return[...e,{id:`user-${Date.now()}`,role:"user",content:Bc(t.text),images:t.images??[]}];case"assistant_start":return e;case"thinking_delta":return Wo(e,n=>({thinking:(n.thinking??"")+t.delta}));case"text_delta":return Wo(e,n=>({content:n.content+t.delta}));case"tool_start":return Wo(e,n=>({tools:[...n.tools??[],{name:t.name,args:typeof t.args=="string"?t.args:JSON.stringify(t.args).slice(0,80),result:"",isError:!1,images:[]}]}));case"tool_end":{const n=[...e],r=n[n.length-1];if(r!=null&&r.isStreaming){const l=(r.tools??[]).map(i=>i.name===t.name&&!i.result?{...i,result:t.result,isError:t.isError,images:t.images??i.images}:i);n[n.length-1]={...r,tools:l}}return n}case"mcp_app":{const n=[...e];for(let r=n.length-1;r>=0;r--){const l=n[r];if(l.tools){const i=l.tools.findIndex(o=>o.name===t.app.toolName);if(i>=0){const o=[...l.tools];o[i]={...o[i],mcpApp:t.app},n[r]={...l,tools:o};break}}}return n}case"assistant_end":{const n=[...e],r=n[n.length-1];return r!=null&&r.isStreaming&&(n[n.length-1]={...r,isStreaming:!1}),n}case"clear_conversation":return[];default:return e}}function eg(e){const t=d.useRef(null),[n,r]=d.useState(!1),l=d.useRef(),i=d.useRef(e);i.current=e;const o=d.useCallback(()=>{var h;if(((h=t.current)==null?void 0:h.readyState)===WebSocket.OPEN)return;const s=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.host,f=`${s}//${u}/ws`,c=new WebSocket(f);t.current=c,c.onopen=()=>{r(!0)},c.onmessage=p=>{try{const k=JSON.parse(p.data);i.current(k)}catch{}},c.onclose=()=>{r(!1),t.current=null,l.current=setTimeout(o,2e3)},c.onerror=()=>{c.close()}},[]),a=d.useCallback(s=>{var u;((u=t.current)==null?void 0:u.readyState)===WebSocket.OPEN&&t.current.send(JSON.stringify(s))},[]);return d.useEffect(()=>(o(),()=>{var s;clearTimeout(l.current),(s=t.current)==null||s.close()}),[o]),{connected:n,send:a}}function tg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ng=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lg={};function $c(e,t){return(lg.jsx?rg:ng).test(e)}const ig=/[ \t\n\f\r]/g;function og(e){return typeof e=="object"?e.type==="text"?Uc(e.value):!1:Uc(e)}function Uc(e){return e.replace(ig,"")===""}class zl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zl.prototype.normal={};zl.prototype.property={};zl.prototype.space=void 0;function rp(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new zl(n,r,t)}function rs(e){return e.toLowerCase()}class ct{constructor(t,n){this.attribute=n,this.property=t}}ct.prototype.attribute="";ct.prototype.booleanish=!1;ct.prototype.boolean=!1;ct.prototype.commaOrSpaceSeparated=!1;ct.prototype.commaSeparated=!1;ct.prototype.defined=!1;ct.prototype.mustUseProperty=!1;ct.prototype.number=!1;ct.prototype.overloadedBoolean=!1;ct.prototype.property="";ct.prototype.spaceSeparated=!1;ct.prototype.space=void 0;let ag=0;const le=Xn(),je=Xn(),ls=Xn(),Z=Xn(),ve=Xn(),Er=Xn(),pt=Xn();function Xn(){return 2**++ag}const is=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:je,commaOrSpaceSeparated:pt,commaSeparated:Er,number:Z,overloadedBoolean:ls,spaceSeparated:ve},Symbol.toStringTag,{value:"Module"})),Qo=Object.keys(is);class fu extends ct{constructor(t,n,r,l){let i=-1;if(super(t,n),Wc(this,"space",l),typeof r=="number")for(;++i<Qo.length;){const o=Qo[i];Wc(this,Qo[i],(r&is[o])===is[o])}}}fu.prototype.defined=!0;function Wc(e,t,n){n&&(e[t]=n)}function jr(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new fu(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[rs(r)]=r,n[rs(i.attribute)]=r}return new zl(t,n,e.space)}const lp=jr({properties:{ariaActiveDescendant:null,ariaAtomic:je,ariaAutoComplete:null,ariaBusy:je,ariaChecked:je,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:ve,ariaCurrent:null,ariaDescribedBy:ve,ariaDetails:null,ariaDisabled:je,ariaDropEffect:ve,ariaErrorMessage:null,ariaExpanded:je,ariaFlowTo:ve,ariaGrabbed:je,ariaHasPopup:null,ariaHidden:je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ve,ariaLevel:Z,ariaLive:null,ariaModal:je,ariaMultiLine:je,ariaMultiSelectable:je,ariaOrientation:null,ariaOwns:ve,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:je,ariaReadOnly:je,ariaRelevant:null,ariaRequired:je,ariaRoleDescription:ve,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:je,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ip(e,t){return t in e?e[t]:t}function op(e,t){return ip(e,t.toLowerCase())}const sg=jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:ve,accessKey:ve,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:ve,autoFocus:le,autoPlay:le,blocking:ve,capture:null,charSet:null,checked:le,cite:null,className:ve,cols:Z,colSpan:null,content:null,contentEditable:je,controls:le,controlsList:ve,coords:Z|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:ls,draggable:je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:ve,height:Z,hidden:ls,high:Z,href:null,hrefLang:null,htmlFor:ve,httpEquiv:ve,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:ve,itemRef:ve,itemScope:le,itemType:ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:Z,pattern:null,ping:ve,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:ve,required:le,reversed:le,rows:Z,rowSpan:Z,sandbox:ve,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:je,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ve,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:je,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:op}),ug=jr({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:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:ve,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Er,g2:Er,glyphName:Er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pt,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,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:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ip}),ap=jr({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()}}),sp=jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:op}),up=jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cg={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"},fg=/[A-Z]/g,Qc=/-[a-z]/g,dg=/^data[-\w.:]+$/i;function pg(e,t){const n=rs(t);let r=t,l=ct;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&dg.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Qc,mg);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Qc.test(i)){let o=i.replace(fg,hg);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=fu}return new l(r,t)}function hg(e){return"-"+e.toLowerCase()}function mg(e){return e.charAt(1).toUpperCase()}const gg=rp([lp,sg,ap,sp,up],"html"),du=rp([lp,ug,ap,sp,up],"svg");function yg(e){return e.join(" ").trim()}var pu={},Xc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xg=/\n/g,vg=/^\s*/,kg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wg=/^:\s*/,Sg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Eg=/^[;\s]*/,Cg=/^\s+|\s+$/g,bg=`
|
|
42
|
+
`,Yc="/",qc="*",Rn="",Ag="comment",Mg="declaration";function Tg(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 l(k){var S=k.match(xg);S&&(n+=S.length);var P=k.lastIndexOf(bg);r=~P?k.length-P:r+k.length}function i(){var k={line:n,column:r};return function(S){return S.position=new o(k),u(),S}}function o(k){this.start=k,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(k){var S=new Error(t.source+":"+n+":"+r+": "+k);if(S.reason=k,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function s(k){var S=k.exec(e);if(S){var P=S[0];return l(P),e=e.slice(P.length),S}}function u(){s(vg)}function f(k){var S;for(k=k||[];S=c();)S!==!1&&k.push(S);return k}function c(){var k=i();if(!(Yc!=e.charAt(0)||qc!=e.charAt(1))){for(var S=2;Rn!=e.charAt(S)&&(qc!=e.charAt(S)||Yc!=e.charAt(S+1));)++S;if(S+=2,Rn===e.charAt(S-1))return a("End of comment missing");var P=e.slice(2,S-2);return r+=2,l(P),e=e.slice(S),r+=2,k({type:Ag,comment:P})}}function h(){var k=i(),S=s(kg);if(S){if(c(),!s(wg))return a("property missing ':'");var P=s(Sg),m=k({type:Mg,property:Kc(S[0].replace(Xc,Rn)),value:P?Kc(P[0].replace(Xc,Rn)):Rn});return s(Eg),m}}function p(){var k=[];f(k);for(var S;S=h();)S!==!1&&(k.push(S),f(k));return k}return u(),p()}function Kc(e){return e?e.replace(Cg,Rn):Rn}var Ng=Tg,Pg=Si&&Si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pu,"__esModule",{value:!0});pu.default=Ig;const Lg=Pg(Ng);function Ig(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Lg.default)(e),l=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:a}=i;l?t(o,a,i):a&&(n=n||{},n[o]=a)}),n}var ho={};Object.defineProperty(ho,"__esModule",{value:!0});ho.camelCase=void 0;var _g=/^--[a-zA-Z0-9_-]+$/,Rg=/-([a-z])/g,jg=/^[^-]+$/,zg=/^-(webkit|moz|ms|o|khtml)-/,Fg=/^-(ms)-/,Dg=function(e){return!e||jg.test(e)||_g.test(e)},Hg=function(e,t){return t.toUpperCase()},Gc=function(e,t){return"".concat(t,"-")},Og=function(e,t){return t===void 0&&(t={}),Dg(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Fg,Gc):e=e.replace(zg,Gc),e.replace(Rg,Hg))};ho.camelCase=Og;var Vg=Si&&Si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Zg=Vg(pu),Bg=ho;function os(e,t){var n={};return!e||typeof e!="string"||(0,Zg.default)(e,function(r,l){r&&l&&(n[(0,Bg.camelCase)(r,t)]=l)}),n}os.default=os;var $g=os;const Ug=gs($g),cp=fp("end"),hu=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 Wg(e){const t=hu(e),n=cp(e);if(t&&n)return{start:t,end:n}}function ul(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Jc(e.position):"start"in e||"end"in e?Jc(e):"line"in e||"column"in e?as(e):""}function as(e){return ef(e&&e.line)+":"+ef(e&&e.column)}function Jc(e){return as(e&&e.start)+"-"+as(e&&e.end)}function ef(e){return e&&typeof e=="number"?e:1}class qe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=a?a.line:void 0,this.name=ul(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qe.prototype.file="";qe.prototype.name="";qe.prototype.reason="";qe.prototype.message="";qe.prototype.stack="";qe.prototype.column=void 0;qe.prototype.line=void 0;qe.prototype.ancestors=void 0;qe.prototype.cause=void 0;qe.prototype.fatal=void 0;qe.prototype.place=void 0;qe.prototype.ruleId=void 0;qe.prototype.source=void 0;const mu={}.hasOwnProperty,Qg=new Map,Xg=/[A-Z]/g,Yg=new Set(["table","tbody","thead","tfoot","tr"]),qg=new Set(["td","th"]),dp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kg(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=i2(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=l2(n,t.jsx,t.jsxs)}const l={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"?du:gg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=pp(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function pp(e,t,n){if(t.type==="element")return Gg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Jg(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return t2(e,t,n);if(t.type==="mdxjsEsm")return e2(e,t);if(t.type==="root")return n2(e,t,n);if(t.type==="text")return r2(e,t)}function Gg(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=du,e.schema=l),e.ancestors.push(t);const i=mp(e,t.tagName,!1),o=o2(e,t);let a=yu(e,t);return Yg.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!og(s):!0})),hp(e,o,i,t),gu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function Jg(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)}Nl(e,t.position)}function e2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Nl(e,t.position)}function t2(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=du,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:mp(e,t.name,!0),o=a2(e,t),a=yu(e,t);return hp(e,o,i,t),gu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function n2(e,t,n){const r={};return gu(r,yu(e,t)),e.create(t,e.Fragment,r,n)}function r2(e,t){return t.value}function hp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function l2(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function i2(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=hu(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function o2(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&mu.call(t.properties,l)){const i=s2(e,l,t.properties[l]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&qg.has(t.tagName)?r=a:n[o]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a2(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Nl(e,t.position);else{const l=r.name;let i;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,i=e.evaluater.evaluateExpression(a.expression)}else Nl(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function yu(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:Qg;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const s=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(s){const u=l.get(s)||0;o=s+"-"+u,l.set(s,u+1)}}const a=pp(e,i,o);a!==void 0&&n.push(a)}return n}function s2(e,t,n){const r=pg(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?tg(n):yg(n)),r.property==="style"){let l=typeof n=="object"?n:u2(e,String(n));return e.stylePropertyNameCase==="css"&&(l=c2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?cg[r.property]||r.property:r.attribute,n]}}function u2(e,t){try{return Ug(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new qe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=dp+"#cannot-parse-style-attribute",l}}function mp(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,o;for(;++i<l.length;){const a=$c(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=o}else r=$c(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return mu.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);Nl(e)}function Nl(e,t){const n=new qe("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=dp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function c2(e){const t={};let n;for(n in e)mu.call(e,n)&&(t[f2(n)]=e[n]);return t}function f2(e){let t=e.replace(Xg,d2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function d2(e){return"-"+e.toLowerCase()}const Xo={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"]},p2={};function xu(e,t){const n=p2,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return gp(e,r,l)}function gp(e,t,n){if(h2(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 tf(e.children,t,n)}return Array.isArray(e)?tf(e,t,n):""}function tf(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=gp(e[l],t,n);return r.join("")}function h2(e){return!!(e&&typeof e=="object")}const nf=document.createElement("i");function vu(e){const t="&"+e+";";nf.innerHTML=t;const n=nf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function yt(e,t,n,r){const l=e.length;let i=0,o;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Ct(e,t){return e.length>0?(yt(e,e.length,0,t),e):t}const rf={}.hasOwnProperty;function yp(e){const t={};let n=-1;for(;++n<e.length;)m2(t,e[n]);return t}function m2(e,t){let n;for(n in t){const l=(rf.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){rf.call(l,o)||(l[o]=[]);const a=i[o];g2(l[o],Array.isArray(a)?a:a?[a]:[])}}}function g2(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);yt(e,0,0,r)}function xp(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 jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const et=Nn(/[A-Za-z]/),Xe=Nn(/[\dA-Za-z]/),y2=Nn(/[#-'*+\--9=?A-Z^-~]/);function Qi(e){return e!==null&&(e<32||e===127)}const ss=Nn(/\d/),x2=Nn(/[\dA-Fa-f]/),v2=Nn(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function xe(e){return e!==null&&(e<0||e===32)}function oe(e){return e===-2||e===-1||e===32}const mo=Nn(new RegExp("\\p{P}|\\p{S}","u")),Un=Nn(/\s/);function Nn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function zr(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Xe(e.charCodeAt(n+1))&&Xe(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function ue(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return oe(s)?(e.enter(n),a(s)):t(s)}function a(s){return oe(s)&&i++<l?(e.consume(s),a):(e.exit(n),t(s))}}const k2={tokenize:w2};function w2(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ue(e,t,"linePrefix")}function l(a){return e.enter("paragraph"),i(a)}function i(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return G(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),o)}}const S2={tokenize:E2},lf={tokenize:C2};function E2(e){const t=this,n=[];let r=0,l,i,o;return a;function a(x){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,s,u)(x)}return u(x)}function s(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&g();const N=t.events.length;let _=N,b;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){b=t.events[_][1].end;break}m(r);let D=N;for(;D<t.events.length;)t.events[D][1].end={...b},D++;return yt(t.events,_+1,0,t.events.slice(N)),t.events.length=D,u(x)}return a(x)}function u(x){if(r===n.length){if(!l)return h(x);if(l.currentConstruct&&l.currentConstruct.concrete)return k(x);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(lf,f,c)(x)}function f(x){return l&&g(),m(r),h(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,k(x)}function h(x){return t.containerState={},e.attempt(lf,p,k)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),h(x)}function k(x){if(x===null){l&&g(),m(0),e.consume(x);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),S(x)}function S(x){if(x===null){P(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return G(x)?(e.consume(x),P(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),S)}function P(x,N){const _=t.sliceStream(x);if(N&&_.push(null),x.previous=i,i&&(i.next=x),i=x,l.defineSkip(x.start),l.write(_),t.parser.lazy[x.start.line]){let b=l.events.length;for(;b--;)if(l.events[b][1].start.offset<o&&(!l.events[b][1].end||l.events[b][1].end.offset>o))return;const D=t.events.length;let V=D,Q,C;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(Q){C=t.events[V][1].end;break}Q=!0}for(m(r),b=D;b<t.events.length;)t.events[b][1].end={...C},b++;yt(t.events,V+1,0,t.events.slice(D)),t.events.length=b}}function m(x){let N=n.length;for(;N-- >x;){const _=n[N];t.containerState=_[1],_[0].exit.call(t,e)}n.length=x}function g(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function C2(e,t,n){return ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lr(e){if(e===null||xe(e)||Un(e))return 1;if(mo(e))return 2}function go(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const us={name:"attention",resolveAll:b2,tokenize:A2};function b2(e,t){let n=-1,r,l,i,o,a,s,u,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;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};of(c,-s),of(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},i={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ct(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ct(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Ct(u,go(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ct(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Ct(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,yt(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function A2(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Lr(r);let i;return o;function o(s){return i=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===i)return e.consume(s),a;const u=e.exit("attentionSequence"),f=Lr(s),c=!f||f===2&&l||n.includes(s),h=!l||l===2&&f||n.includes(r);return u._open=!!(i===42?c:c&&(l||!h)),u._close=!!(i===42?h:h&&(f||!c)),t(s)}}function of(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const M2={name:"autolink",tokenize:T2};function T2(e,t,n){let r=0;return l;function l(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return et(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||Xe(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||Xe(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Qi(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):y2(p)?(e.consume(p),u):n(p)}function f(p){return Xe(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Xe(p))&&r++<63){const k=p===45?h:c;return e.consume(p),k}return n(p)}}const Fl={partial:!0,tokenize:N2};function N2(e,t,n){return r;function r(i){return oe(i)?ue(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||G(i)?t(i):n(i)}}const vp={continuation:{tokenize:L2},exit:I2,name:"blockQuote",tokenize:P2};function P2(e,t,n){const r=this;return l;function l(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return oe(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function L2(e,t,n){const r=this;return l;function l(o){return oe(o)?ue(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(vp,t,n)(o)}}function I2(e){e.exit("blockQuote")}const kp={name:"characterEscape",tokenize:_2};function _2(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return v2(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const wp={name:"characterReference",tokenize:R2};function R2(e,t,n){const r=this;let l=0,i,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Xe,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=x2,f):(e.enter("characterReferenceValue"),i=7,o=ss,f(c))}function f(c){if(c===59&&l){const h=e.exit("characterReferenceValue");return o===Xe&&!vu(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&l++<i?(e.consume(c),f):n(c)}}const af={partial:!0,tokenize:z2},sf={concrete:!0,name:"codeFenced",tokenize:j2};function j2(e,t,n){const r=this,l={partial:!0,tokenize:_};let i=0,o=0,a;return s;function s(b){return u(b)}function u(b){const D=r.events[r.events.length-1];return i=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(o++,e.consume(b),f):o<3?n(b):(e.exit("codeFencedFenceSequence"),oe(b)?ue(e,c,"whitespace")(b):c(b))}function c(b){return b===null||G(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(af,S,N)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||G(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):oe(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ue(e,p,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),h)}function p(b){return b===null||G(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(b))}function k(b){return b===null||G(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),k)}function S(b){return e.attempt(l,N,P)(b)}function P(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return i>0&&oe(b)?ue(e,g,"linePrefix",i+1)(b):g(b)}function g(b){return b===null||G(b)?e.check(af,S,N)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||G(b)?(e.exit("codeFlowValue"),g(b)):(e.consume(b),x)}function N(b){return e.exit("codeFenced"),t(b)}function _(b,D,V){let Q=0;return C;function C(te){return b.enter("lineEnding"),b.consume(te),b.exit("lineEnding"),$}function $(te){return b.enter("codeFencedFence"),oe(te)?ue(b,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):W(te)}function W(te){return te===a?(b.enter("codeFencedFenceSequence"),ne(te)):V(te)}function ne(te){return te===a?(Q++,b.consume(te),ne):Q>=o?(b.exit("codeFencedFenceSequence"),oe(te)?ue(b,ie,"whitespace")(te):ie(te)):V(te)}function ie(te){return te===null||G(te)?(b.exit("codeFencedFence"),D(te)):V(te)}}}function z2(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Yo={name:"codeIndented",tokenize:D2},F2={partial:!0,tokenize:H2};function D2(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),ue(e,i,"linePrefix",5)(u)}function i(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):G(u)?e.attempt(F2,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||G(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function H2(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):ue(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):G(o)?l(o):n(o)}}const O2={name:"codeText",previous:Z2,resolve:V2,tokenize:B2};function V2(e){let t=e.length-4,n=3,r,l;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;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function Z2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function B2(e,t,n){let r=0,l,i;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(i=e.enter("codeTextSequence"),l=0,f(c)):G(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||G(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),l++,f):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(i.type="codeTextData",u(c))}}class $2{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 l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&Qr(this.left,r),i.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),Qr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Qr(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);Qr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Qr(this.left,n.reverse())}}}function Qr(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 Sp(e){const t={};let n=-1,r,l,i,o,a,s,u;const f=new $2(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"&&(s=r[1]._tokenizer.events,i=0,i<s.length&&s[i][1].type==="lineEndingBlank"&&(i+=2),i<s.length&&s[i][1].type==="content"))for(;++i<s.length&&s[i][1].type!=="content";)s[i][1].type==="chunkText"&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,U2(f,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(o=f.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(l&&(f.get(l)[1].type="lineEndingBlank"),o[1].type="lineEnding",l=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;l&&(r[1].end={...f.get(l)[1].start},a=f.slice(l,n),a.unshift(r),f.splice(l,n-l+1,a))}}return yt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function U2(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let f,c,h=-1,p=n,k=0,S=0;const P=[S];for(;p;){for(;e.get(++l)[1]!==p;);i.push(l),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(S=h+1,P.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):P.pop(),h=P.length;h--;){const m=a.slice(P[h],P[h+1]),g=i.pop();s.push([g,g+m.length-1]),e.splice(g,2,m)}for(s.reverse(),h=-1;++h<s.length;)u[k+s[h][0]]=k+s[h][1],k+=s[h][1]-s[h][0]-1;return u}const W2={resolve:X2,tokenize:Y2},Q2={partial:!0,tokenize:q2};function X2(e){return Sp(e),e}function Y2(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(a)}function l(a){return a===null?i(a):G(a)?e.check(Q2,o,i)(a):(e.consume(a),l)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function q2(e,t,n){const r=this;return l;function l(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ue(e,i,"linePrefix")}function i(o){if(o===null||G(o))return n(o);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(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Ep(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return m===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(m),e.exit(i),h):m===null||m===32||m===41||Qi(m)?n(m):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(m))}function h(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),h(m)):m===null||m===60||G(m)?n(m):(e.consume(m),m===92?k:p)}function k(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function S(m){return!f&&(m===null||m===41||xe(m))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(m)):f<u&&m===40?(e.consume(m),f++,S):m===41?(e.consume(m),f--,S):m===null||m===32||m===40||Qi(m)?n(m):(e.consume(m),m===92?P:S)}function P(m){return m===40||m===41||m===92?(e.consume(m),S):S(m)}}function Cp(e,t,n,r,l,i){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(l),e.consume(p),e.exit(l),e.enter(i),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||G(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!oe(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function bp(e,t,n,r,l,i){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(l),e.consume(h),e.exit(l),o=h===40?41:h,s):n(h)}function s(h){return h===o?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),t):(e.enter(i),u(h))}function u(h){return h===o?(e.exit(i),s(o)):h===null?n(h):G(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ue(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||G(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===o||h===92?(e.consume(h),f):f(h)}}function cl(e,t){let n;return r;function r(l){return G(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):oe(l)?ue(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const K2={name:"definition",tokenize:J2},G2={partial:!0,tokenize:ey};function J2(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return Cp.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return xe(p)?cl(e,u)(p):u(p)}function u(p){return Ep(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(G2,c,c)(p)}function c(p){return oe(p)?ue(e,h,"whitespace")(p):h(p)}function h(p){return p===null||G(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function ey(e,t,n){return r;function r(a){return xe(a)?cl(e,l)(a):n(a)}function l(a){return bp(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return oe(a)?ue(e,o,"whitespace")(a):o(a)}function o(a){return a===null||G(a)?t(a):n(a)}}const ty={name:"hardBreakEscape",tokenize:ny};function ny(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return G(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const ry={name:"headingAtx",resolve:ly,tokenize:iy};function ly(e,t){let n=e.length-2,r=3,l,i;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&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},yt(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function iy(e,t,n){let r=0;return l;function l(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||xe(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||G(f)?(e.exit("atxHeading"),t(f)):oe(f)?ue(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||xe(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const oy=["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"],uf=["pre","script","style","textarea"],ay={concrete:!0,name:"htmlFlow",resolveTo:cy,tokenize:fy},sy={partial:!0,tokenize:py},uy={partial:!0,tokenize:dy};function cy(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 fy(e,t,n){const r=this;let l,i,o,a,s;return u;function u(E){return f(E)}function f(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),h):E===47?(e.consume(E),i=!0,S):E===63?(e.consume(E),l=3,r.interrupt?t:w):et(E)?(e.consume(E),o=String.fromCharCode(E),P):n(E)}function h(E){return E===45?(e.consume(E),l=2,p):E===91?(e.consume(E),l=5,a=0,k):et(E)?(e.consume(E),l=4,r.interrupt?t:w):n(E)}function p(E){return E===45?(e.consume(E),r.interrupt?t:w):n(E)}function k(E){const we="CDATA[";return E===we.charCodeAt(a++)?(e.consume(E),a===we.length?r.interrupt?t:W:k):n(E)}function S(E){return et(E)?(e.consume(E),o=String.fromCharCode(E),P):n(E)}function P(E){if(E===null||E===47||E===62||xe(E)){const we=E===47,Ne=o.toLowerCase();return!we&&!i&&uf.includes(Ne)?(l=1,r.interrupt?t(E):W(E)):oy.includes(o.toLowerCase())?(l=6,we?(e.consume(E),m):r.interrupt?t(E):W(E)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):i?g(E):x(E))}return E===45||Xe(E)?(e.consume(E),o+=String.fromCharCode(E),P):n(E)}function m(E){return E===62?(e.consume(E),r.interrupt?t:W):n(E)}function g(E){return oe(E)?(e.consume(E),g):C(E)}function x(E){return E===47?(e.consume(E),C):E===58||E===95||et(E)?(e.consume(E),N):oe(E)?(e.consume(E),x):C(E)}function N(E){return E===45||E===46||E===58||E===95||Xe(E)?(e.consume(E),N):_(E)}function _(E){return E===61?(e.consume(E),b):oe(E)?(e.consume(E),_):x(E)}function b(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,D):oe(E)?(e.consume(E),b):V(E)}function D(E){return E===s?(e.consume(E),s=null,Q):E===null||G(E)?n(E):(e.consume(E),D)}function V(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||xe(E)?_(E):(e.consume(E),V)}function Q(E){return E===47||E===62||oe(E)?x(E):n(E)}function C(E){return E===62?(e.consume(E),$):n(E)}function $(E){return E===null||G(E)?W(E):oe(E)?(e.consume(E),$):n(E)}function W(E){return E===45&&l===2?(e.consume(E),fe):E===60&&l===1?(e.consume(E),T):E===62&&l===4?(e.consume(E),re):E===63&&l===3?(e.consume(E),w):E===93&&l===5?(e.consume(E),X):G(E)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(sy,se,ne)(E)):E===null||G(E)?(e.exit("htmlFlowData"),ne(E)):(e.consume(E),W)}function ne(E){return e.check(uy,ie,se)(E)}function ie(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),te}function te(E){return E===null||G(E)?ne(E):(e.enter("htmlFlowData"),W(E))}function fe(E){return E===45?(e.consume(E),w):W(E)}function T(E){return E===47?(e.consume(E),o="",B):W(E)}function B(E){if(E===62){const we=o.toLowerCase();return uf.includes(we)?(e.consume(E),re):W(E)}return et(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),B):W(E)}function X(E){return E===93?(e.consume(E),w):W(E)}function w(E){return E===62?(e.consume(E),re):E===45&&l===2?(e.consume(E),w):W(E)}function re(E){return E===null||G(E)?(e.exit("htmlFlowData"),se(E)):(e.consume(E),re)}function se(E){return e.exit("htmlFlow"),t(E)}}function dy(e,t,n){const r=this;return l;function l(o){return G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function py(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Fl,t,n)}}const hy={name:"htmlText",tokenize:my};function my(e,t,n){const r=this;let l,i,o;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),s}function s(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),_):w===63?(e.consume(w),x):et(w)?(e.consume(w),V):n(w)}function u(w){return w===45?(e.consume(w),f):w===91?(e.consume(w),i=0,k):et(w)?(e.consume(w),g):n(w)}function f(w){return w===45?(e.consume(w),p):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),h):G(w)?(o=c,T(w)):(e.consume(w),c)}function h(w){return w===45?(e.consume(w),p):c(w)}function p(w){return w===62?fe(w):w===45?h(w):c(w)}function k(w){const re="CDATA[";return w===re.charCodeAt(i++)?(e.consume(w),i===re.length?S:k):n(w)}function S(w){return w===null?n(w):w===93?(e.consume(w),P):G(w)?(o=S,T(w)):(e.consume(w),S)}function P(w){return w===93?(e.consume(w),m):S(w)}function m(w){return w===62?fe(w):w===93?(e.consume(w),m):S(w)}function g(w){return w===null||w===62?fe(w):G(w)?(o=g,T(w)):(e.consume(w),g)}function x(w){return w===null?n(w):w===63?(e.consume(w),N):G(w)?(o=x,T(w)):(e.consume(w),x)}function N(w){return w===62?fe(w):x(w)}function _(w){return et(w)?(e.consume(w),b):n(w)}function b(w){return w===45||Xe(w)?(e.consume(w),b):D(w)}function D(w){return G(w)?(o=D,T(w)):oe(w)?(e.consume(w),D):fe(w)}function V(w){return w===45||Xe(w)?(e.consume(w),V):w===47||w===62||xe(w)?Q(w):n(w)}function Q(w){return w===47?(e.consume(w),fe):w===58||w===95||et(w)?(e.consume(w),C):G(w)?(o=Q,T(w)):oe(w)?(e.consume(w),Q):fe(w)}function C(w){return w===45||w===46||w===58||w===95||Xe(w)?(e.consume(w),C):$(w)}function $(w){return w===61?(e.consume(w),W):G(w)?(o=$,T(w)):oe(w)?(e.consume(w),$):Q(w)}function W(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),l=w,ne):G(w)?(o=W,T(w)):oe(w)?(e.consume(w),W):(e.consume(w),ie)}function ne(w){return w===l?(e.consume(w),l=void 0,te):w===null?n(w):G(w)?(o=ne,T(w)):(e.consume(w),ne)}function ie(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||xe(w)?Q(w):(e.consume(w),ie)}function te(w){return w===47||w===62||xe(w)?Q(w):n(w)}function fe(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function T(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),B}function B(w){return oe(w)?ue(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):X(w)}function X(w){return e.enter("htmlTextData"),o(w)}}const ku={name:"labelEnd",resolveAll:vy,resolveTo:ky,tokenize:wy},gy={tokenize:Sy},yy={tokenize:Ey},xy={tokenize:Cy};function vy(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 l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&yt(e,0,e.length,n),e}function ky(e,t){let n=e.length,r=0,l,i,o,a;for(;n--;)if(l=e[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(o=n);const s={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=Ct(a,e.slice(i+1,i+r+3)),a=Ct(a,[["enter",f,t]]),a=Ct(a,go(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),a=Ct(a,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),a=Ct(a,e.slice(o+1)),a=Ct(a,[["exit",s,t]]),yt(e,i,e.length,a),e}function wy(e,t,n){const r=this;let l=r.events.length,i,o;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return a;function a(h){return i?i._inactive?c(h):(o=r.parser.defined.includes(jt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):n(h)}function s(h){return h===40?e.attempt(gy,f,o?f:c)(h):h===91?e.attempt(yy,f,o?u:c)(h):o?f(h):c(h)}function u(h){return e.attempt(xy,f,c)(h)}function f(h){return t(h)}function c(h){return i._balanced=!0,n(h)}}function Sy(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),l}function l(c){return xe(c)?cl(e,i)(c):i(c)}function i(c){return c===41?f(c):Ep(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return xe(c)?cl(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?bp(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return xe(c)?cl(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Ey(e,t,n){const r=this;return l;function l(a){return Cp.call(r,e,i,o,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function Cy(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const by={name:"labelStartImage",resolveAll:ku.resolveAll,tokenize:Ay};function Ay(e,t,n){const r=this;return l;function l(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const My={name:"labelStartLink",resolveAll:ku.resolveAll,tokenize:Ty};function Ty(e,t,n){const r=this;return l;function l(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const qo={name:"lineEnding",tokenize:Ny};function Ny(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ue(e,t,"linePrefix")}}const ki={name:"thematicBreak",tokenize:Py};function Py(e,t,n){let r=0,l;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return l=u,a(u)}function a(u){return u===l?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||G(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),oe(u)?ue(e,a,"whitespace")(u):a(u))}}const lt={continuation:{tokenize:Ry},exit:zy,name:"list",tokenize:_y},Ly={partial:!0,tokenize:Fy},Iy={partial:!0,tokenize:jy};function _y(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const k=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ss(p)){if(r.containerState.type||(r.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ki,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return ss(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Fl,r.interrupt?n:f,e.attempt(Ly,h,c))}function f(p){return r.containerState.initialBlankLine=!0,i++,h(p)}function c(p){return oe(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Ry(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Fl,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ue(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!oe(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Iy,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ue(e,e.attempt(lt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function jy(e,t,n){const r=this;return ue(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function zy(e){e.exit(this.containerState.type)}function Fy(e,t,n){const r=this;return ue(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!oe(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const cf={name:"setextUnderline",resolveTo:Dy,tokenize:Hy};function Dy(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Hy(e,t,n){const r=this;let l;return i;function i(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),oe(u)?ue(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||G(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Oy={tokenize:Vy};function Vy(e){const t=this,n=e.attempt(Fl,r,e.attempt(this.parser.constructs.flowInitial,l,ue(e,e.attempt(this.parser.constructs.flow,l,e.attempt(W2,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Zy={resolveAll:Mp()},By=Ap("string"),$y=Ap("text");function Ap(e){return{resolveAll:Mp(e==="text"?Uy:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(f){return u(f)?i(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),i(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=l[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Mp(e){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(n,r):n}}function Uy(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],l=t.sliceStream(r);let i=l.length,o=-1,a=0,s;for(;i--;){const u=l[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Wy={42:lt,43:lt,45:lt,48:lt,49:lt,50:lt,51:lt,52:lt,53:lt,54:lt,55:lt,56:lt,57:lt,62:vp},Qy={91:K2},Xy={[-2]:Yo,[-1]:Yo,32:Yo},Yy={35:ry,42:ki,45:[cf,ki],60:ay,61:cf,95:ki,96:sf,126:sf},qy={38:wp,92:kp},Ky={[-5]:qo,[-4]:qo,[-3]:qo,33:by,38:wp,42:us,60:[M2,hy],91:My,92:[ty,kp],93:ku,95:us,96:O2},Gy={null:[us,Zy]},Jy={null:[42,95]},ex={null:[]},tx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Jy,contentInitial:Qy,disable:ex,document:Wy,flow:Yy,flowInitial:Xy,insideSpan:Gy,string:qy,text:Ky},Symbol.toStringTag,{value:"Module"}));function nx(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 l={},i=[];let o=[],a=[];const s={attempt:D(_),check:D(b),consume:g,enter:x,exit:N,interrupt:D(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:k,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function c($){return o=Ct(o,$),P(),o[o.length-1]!==null?[]:(V(t,0),u.events=go(i,u.events,u),u.events)}function h($,W){return lx(p($),W)}function p($){return rx(o,$)}function k(){const{_bufferIndex:$,_index:W,line:ne,column:ie,offset:te}=r;return{_bufferIndex:$,_index:W,line:ne,column:ie,offset:te}}function S($){l[$.line]=$.column,C()}function P(){let $;for(;r._index<o.length;){const W=o[r._index];if(typeof W=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<W.length;)m(W.charCodeAt(r._bufferIndex));else m(W)}}function m($){f=f($)}function g($){G($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,C()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function x($,W){const ne=W||{};return ne.type=$,ne.start=k(),u.events.push(["enter",ne,u]),a.push(ne),ne}function N($){const W=a.pop();return W.end=k(),u.events.push(["exit",W,u]),W}function _($,W){V($,W.from)}function b($,W){W.restore()}function D($,W){return ne;function ne(ie,te,fe){let T,B,X,w;return Array.isArray(ie)?se(ie):"tokenize"in ie?se([ie]):re(ie);function re(z){return J;function J(U){const ge=U!==null&&z[U],Pe=U!==null&&z.null,Ie=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return se(Ie)(U)}}function se(z){return T=z,B=0,z.length===0?fe:E(z[B])}function E(z){return J;function J(U){return w=Q(),X=z,z.partial||(u.currentConstruct=z),z.name&&u.parser.constructs.disable.null.includes(z.name)?Ne():z.tokenize.call(W?Object.assign(Object.create(u),W):u,s,we,Ne)(U)}}function we(z){return $(X,w),te}function Ne(z){return w.restore(),++B<T.length?E(T[B]):fe}}}function V($,W){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&yt(u.events,W,u.events.length-W,$.resolve(u.events.slice(W),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function Q(){const $=k(),W=u.previous,ne=u.currentConstruct,ie=u.events.length,te=Array.from(a);return{from:ie,restore:fe};function fe(){r=$,u.previous=W,u.currentConstruct=ne,u.events.length=ie,a=te,C()}}function C(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function rx(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let o;if(n===l)o=[e[n].slice(r,i)];else{if(o=e.slice(n,l),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function lx(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
43
|
+
`;break}case-3:{o=`\r
|
|
44
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}function ix(e){const r={constructs:yp([tx,...(e||{}).extensions||[]]),content:l(k2),defined:[],document:l(S2),flow:l(Oy),lazy:{},string:l(By),text:l($y)};return r;function l(i){return o;function o(a){return nx(r,i,a)}}}function ox(e){for(;!Sp(e););return e}const ff=/[\0\t\n\r]/g;function ax(){let e=1,t="",n=!0,r;return l;function l(i,o,a){const s=[];let u,f,c,h,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),c=0,t="",n&&(i.charCodeAt(0)===65279&&c++,n=void 0);c<i.length;){if(ff.lastIndex=c,u=ff.exec(i),h=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(h),!u){t=i.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(i.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const sx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ux(e){return e.replace(sx,cx)}function cx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return xp(n.slice(i?2:1),i?16:10)}return vu(n)||e}const Tp={}.hasOwnProperty;function fx(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),dx(n)(ox(ix(n).document().write(ax()(e,t,!0))))}function dx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(qn),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:i(Fe),blockQuote:i(Pe),characterEscape:Q,characterReference:Q,codeFenced:i(Ie),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Ie,o),codeText:i(ft,o),codeTextData:Q,data:Q,codeFlowValue:Q,definition:i(Ft),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(wt),hardBreakEscape:i(de),hardBreakTrailing:i(de),htmlFlow:i(Yn,o),htmlFlowData:Q,htmlText:i(Yn,o),htmlTextData:Q,image:i(Fr),label:o,link:i(qn),listItem:i(Kn),listItemValue:h,listOrdered:i(ln,c),listUnordered:i(ln),paragraph:i(Wt),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Fe),strong:i(on),thematicBreak:i(I)},exit:{atxHeading:s(),atxHeadingSequence:_,autolink:s(),autolinkEmail:ge,autolinkProtocol:U,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:z,characterReference:J,codeFenced:s(P),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:k,codeFlowValue:C,codeIndented:s(m),codeText:s(te),codeTextData:C,data:C,definition:s(),definitionDestinationString:N,definitionLabelString:g,definitionTitleString:x,emphasis:s(),hardBreakEscape:s(W),hardBreakTrailing:s(W),htmlFlow:s(ne),htmlFlowData:C,htmlText:s(ie),htmlTextData:C,image:s(T),label:X,labelText:B,lineEnding:$,link:s(fe),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:we,resourceDestinationString:w,resourceTitleString:re,resource:se,setextHeading:s(V),setextHeadingLineSequence:D,setextHeadingText:b,strong:s(),thematicBreak:s()}};Np(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(y){let L={type:"root",children:[]};const A={stack:[L],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:f,data:n},R=[];let H=-1;for(;++H<y.length;)if(y[H][1].type==="listOrdered"||y[H][1].type==="listUnordered")if(y[H][0]==="enter")R.push(H);else{const j=R.pop();H=l(y,j,H)}for(H=-1;++H<y.length;){const j=t[y[H][0]];Tp.call(j,y[H][1].type)&&j[y[H][1].type].call(Object.assign({sliceSerialize:y[H][2].sliceSerialize},A),y[H][1])}if(A.tokenStack.length>0){const j=A.tokenStack[A.tokenStack.length-1];(j[1]||df).call(A,void 0,j[0])}for(L.position={start:un(y.length>0?y[0][1].start:{line:1,column:1,offset:0}),end:un(y.length>0?y[y.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)L=t.transforms[H](L)||L;return L}function l(y,L,A){let R=L-1,H=-1,j=!1,F,K,q,ye;for(;++R<=A;){const pe=y[R];switch(pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pe[0]==="enter"?H++:H--,ye=void 0;break}case"lineEndingBlank":{pe[0]==="enter"&&(F&&!ye&&!H&&!q&&(q=R),ye=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ye=void 0}if(!H&&pe[0]==="enter"&&pe[1].type==="listItemPrefix"||H===-1&&pe[0]==="exit"&&(pe[1].type==="listUnordered"||pe[1].type==="listOrdered")){if(F){let be=R;for(K=void 0;be--;){const he=y[be];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;K&&(y[K][1].type="lineEndingBlank",j=!0),he[1].type="lineEnding",K=be}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}q&&(!K||q<K)&&(F._spread=!0),F.end=Object.assign({},K?y[K][1].start:pe[1].end),y.splice(K||R,0,["exit",F,pe[2]]),R++,A++}if(pe[1].type==="listItemPrefix"){const be={type:"listItem",_spread:!1,start:Object.assign({},pe[1].start),end:void 0};F=be,y.splice(R,0,["enter",be,pe[2]]),R++,A++,q=void 0,ye=!0}}}return y[L][1]._spread=j,A}function i(y,L){return A;function A(R){a.call(this,y(R),R),L&&L.call(this,R)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(y,L,A){this.stack[this.stack.length-1].children.push(y),this.stack.push(y),this.tokenStack.push([L,A||void 0]),y.position={start:un(L.start),end:void 0}}function s(y){return L;function L(A){y&&y.call(this,A),u.call(this,A)}}function u(y,L){const A=this.stack.pop(),R=this.tokenStack.pop();if(R)R[0].type!==y.type&&(L?L.call(this,y,R[0]):(R[1]||df).call(this,y,R[0]));else throw new Error("Cannot close `"+y.type+"` ("+ul({start:y.start,end:y.end})+"): it’s not open");A.position.end=un(y.end)}function f(){return xu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(y){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(y),10),this.data.expectingFirstListItemValue=void 0}}function p(){const y=this.resume(),L=this.stack[this.stack.length-1];L.lang=y}function k(){const y=this.resume(),L=this.stack[this.stack.length-1];L.meta=y}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const y=this.resume(),L=this.stack[this.stack.length-1];L.value=y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const y=this.resume(),L=this.stack[this.stack.length-1];L.value=y.replace(/(\r?\n|\r)$/g,"")}function g(y){const L=this.resume(),A=this.stack[this.stack.length-1];A.label=L,A.identifier=jt(this.sliceSerialize(y)).toLowerCase()}function x(){const y=this.resume(),L=this.stack[this.stack.length-1];L.title=y}function N(){const y=this.resume(),L=this.stack[this.stack.length-1];L.url=y}function _(y){const L=this.stack[this.stack.length-1];if(!L.depth){const A=this.sliceSerialize(y).length;L.depth=A}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function D(y){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(y).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(y){const A=this.stack[this.stack.length-1].children;let R=A[A.length-1];(!R||R.type!=="text")&&(R=M(),R.position={start:un(y.start),end:void 0},A.push(R)),this.stack.push(R)}function C(y){const L=this.stack.pop();L.value+=this.sliceSerialize(y),L.position.end=un(y.end)}function $(y){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=L.children[L.children.length-1];A.position.end=un(y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(Q.call(this,y),C.call(this,y))}function W(){this.data.atHardBreak=!0}function ne(){const y=this.resume(),L=this.stack[this.stack.length-1];L.value=y}function ie(){const y=this.resume(),L=this.stack[this.stack.length-1];L.value=y}function te(){const y=this.resume(),L=this.stack[this.stack.length-1];L.value=y}function fe(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=L,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function T(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=L,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function B(y){const L=this.sliceSerialize(y),A=this.stack[this.stack.length-2];A.label=ux(L),A.identifier=jt(L).toLowerCase()}function X(){const y=this.stack[this.stack.length-1],L=this.resume(),A=this.stack[this.stack.length-1];if(this.data.inReference=!0,A.type==="link"){const R=y.children;A.children=R}else A.alt=L}function w(){const y=this.resume(),L=this.stack[this.stack.length-1];L.url=y}function re(){const y=this.resume(),L=this.stack[this.stack.length-1];L.title=y}function se(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function we(y){const L=this.resume(),A=this.stack[this.stack.length-1];A.label=L,A.identifier=jt(this.sliceSerialize(y)).toLowerCase(),this.data.referenceType="full"}function Ne(y){this.data.characterReferenceType=y.type}function z(y){const L=this.sliceSerialize(y),A=this.data.characterReferenceType;let R;A?(R=xp(L,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=vu(L);const H=this.stack[this.stack.length-1];H.value+=R}function J(y){const L=this.stack.pop();L.position.end=un(y.end)}function U(y){C.call(this,y);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(y)}function ge(y){C.call(this,y);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(y)}function Pe(){return{type:"blockquote",children:[]}}function Ie(){return{type:"code",lang:null,meta:null,value:""}}function ft(){return{type:"inlineCode",value:""}}function Ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wt(){return{type:"emphasis",children:[]}}function Fe(){return{type:"heading",depth:0,children:[]}}function de(){return{type:"break"}}function Yn(){return{type:"html",value:""}}function Fr(){return{type:"image",title:null,url:"",alt:null}}function qn(){return{type:"link",title:null,url:"",children:[]}}function ln(y){return{type:"list",ordered:y.type==="listOrdered",start:null,spread:y._spread,children:[]}}function Kn(y){return{type:"listItem",spread:y._spread,checked:null,children:[]}}function Wt(){return{type:"paragraph",children:[]}}function on(){return{type:"strong",children:[]}}function M(){return{type:"text",value:""}}function I(){return{type:"thematicBreak"}}}function un(e){return{line:e.line,column:e.column,offset:e.offset}}function Np(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Np(e,r):px(e,r)}}function px(e,t){let n;for(n in t)if(Tp.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 df(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ul({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is still open")}function hx(e){const t=this;t.parser=n;function n(r){return fx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function mx(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 gx(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
45
|
+
`}]}function yx(e,t){const n=t.value?t.value+`
|
|
46
|
+
`:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function xx(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vx(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kx(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=zr(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function wx(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 Sx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Pp(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 l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function Ex(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Pp(e,t);const l={src:zr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function Cx(e,t){const n={src:zr(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 bx(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 Ax(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Pp(e,t);const l={href:zr(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Mx(e,t){const n={href:zr(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 Tx(e,t,n){const r=e.all(t),l=n?Nx(n):Lp(t),i={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(l||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
|
|
47
|
+
`}),f.type==="element"&&f.tagName==="p"&&!l?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(l||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
48
|
+
`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function Nx(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=Lp(n[r])}return t}function Lp(e){const t=e.spread;return t??e.children.length>1}function Px(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const o=r[l];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function Lx(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ix(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function _x(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rx(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),l.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=hu(t.children[1]),s=cp(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function jx(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const c=t.children[s],h={},p=o?o[s]:void 0;p&&(h.align=p);let k={type:"element",tagName:i,properties:h,children:[]};c&&(k.children=e.all(c),e.patch(c,k),k=e.applyData(c,k)),u.push(k)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function zx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const pf=9,hf=32;function Fx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(mf(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(mf(t.slice(l),l>0,!1)),i.join("")}function mf(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===pf||i===hf;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===pf||i===hf;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function Dx(e,t){const n={type:"text",value:Fx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Hx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ox={blockquote:mx,break:gx,code:yx,delete:xx,emphasis:vx,footnoteReference:kx,heading:wx,html:Sx,imageReference:Ex,image:Cx,inlineCode:bx,linkReference:Ax,link:Mx,listItem:Tx,list:Px,paragraph:Lx,root:Ix,strong:_x,table:Rx,tableCell:zx,tableRow:jx,text:Dx,thematicBreak:Hx,toml:ri,yaml:ri,definition:ri,footnoteDefinition:ri};function ri(){}const Ip=-1,yo=0,fl=1,Xi=2,wu=3,Su=4,Eu=5,Cu=6,_p=7,Rp=8,Vx=typeof self=="object"?self:globalThis,gf=(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 Vx[e](t)},Zx=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case yo:case Ip:return n(o,l);case fl:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Xi:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case wu:return n(new Date(o),l);case Su:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case Eu:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case Cu:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case _p:{const{name:a,message:s}=o;return n(gf(a,s),l)}case Rp:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(gf(i,o),l)};return r},yf=e=>Zx(new Map,e)(0),tr="",{toString:Bx}={},{keys:$x}=Object,Xr=e=>{const t=typeof e;if(t!=="object"||!e)return[yo,t];const n=Bx.call(e).slice(8,-1);switch(n){case"Array":return[fl,tr];case"Object":return[Xi,tr];case"Date":return[wu,tr];case"RegExp":return[Su,tr];case"Map":return[Eu,tr];case"Set":return[Cu,tr];case"DataView":return[fl,n]}return n.includes("Array")?[fl,n]:n.includes("Error")?[_p,n]:[Xi,n]},li=([e,t])=>e===yo&&(t==="function"||t==="symbol"),Ux=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=Xr(o);switch(a){case yo:{let f=o;switch(s){case"bigint":a=Rp,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return l([Ip],o)}return l([a,f],o)}case fl:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),l([s,[...h]],o)}const f=[],c=l([a,f],o);for(const h of o)f.push(i(h));return c}case Xi:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const f=[],c=l([a,f],o);for(const h of $x(o))(e||!li(Xr(o[h])))&&f.push([i(h),i(o[h])]);return c}case wu:return l([a,o.toISOString()],o);case Su:{const{source:f,flags:c}=o;return l([a,{source:f,flags:c}],o)}case Eu:{const f=[],c=l([a,f],o);for(const[h,p]of o)(e||!(li(Xr(h))||li(Xr(p))))&&f.push([i(h),i(p)]);return c}case Cu:{const f=[],c=l([a,f],o);for(const h of o)(e||!li(Xr(h)))&&f.push(i(h));return c}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},xf=(e,{json:t,lossy:n}={})=>{const r=[];return Ux(!(t||n),!!t,new Map,r)(e),r},Yi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yf(xf(e,t)):structuredClone(e):(e,t)=>yf(xf(e,t));function Wx(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 Qx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Xx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Wx,r=e.options.footnoteBackLabel||Qx,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=zr(c.toLowerCase());let p=0;const k=[],S=e.footnoteCounts.get(c);for(;S!==void 0&&++p<=S;){k.length>0&&k.push({type:"text",value:" "});let g=typeof n=="string"?n:n(s,p);typeof g=="string"&&(g={type:"text",value:g}),k.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const P=f[f.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const g=P.children[P.children.length-1];g&&g.type==="text"?g.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...k)}else f.push(...k);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,m),a.push(m)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Yi(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
49
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
50
|
+
`}]}}const xo=function(e){if(e==null)return Gx;if(typeof e=="function")return vo(e);if(typeof e=="object")return Array.isArray(e)?Yx(e):qx(e);if(typeof e=="string")return Kx(e);throw new Error("Expected function, string, or object as test")};function Yx(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=xo(e[n]);return vo(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function qx(e){const t=e;return vo(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function Kx(e){return vo(t);function t(n){return n&&n.type===e}}function vo(e){return t;function t(n,r,l){return!!(Jx(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function Gx(){return!0}function Jx(e){return e!==null&&typeof e=="object"&&"type"in e}const jp=[],e8=!0,cs=!1,t8="skip";function zp(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const i=xo(l),o=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=jp,k,S,P;if((!t||i(s,u,f[f.length-1]||void 0))&&(p=n8(n(s,f)),p[0]===cs))return p;if("children"in s&&s.children){const m=s;if(m.children&&p[0]!==t8)for(S=(r?m.children.length:-1)+o,P=f.concat(m);S>-1&&S<m.children.length;){const g=m.children[S];if(k=a(g,S,P)(),k[0]===cs)return k;S=typeof k[1]=="number"?k[1]:S+o}}return p}}}function n8(e){return Array.isArray(e)?e:typeof e=="number"?[e8,e]:e==null?jp:[e]}function bu(e,t,n,r){let l,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,l=n):(i=t,o=n,l=r),zp(e,i,a,l);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const fs={}.hasOwnProperty,r8={};function l8(e,t){const n=t||r8,r=new Map,l=new Map,i=new Map,o={...Ox,...n.handlers},a={all:u,applyData:o8,definitionById:r,footnoteById:l,footnoteCounts:i,footnoteOrder:[],handlers:o,one:s,options:n,patch:i8,wrap:s8};return bu(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:l,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function s(f,c){const h=f.type,p=a.handlers[h];if(fs.call(a.handlers,h)&&p)return p(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:S,...P}=f,m=Yi(P);return m.children=a.all(f),m}return Yi(f)}return(a.options.unknownHandler||a8)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const k=a.one(h[p],f);if(k){if(p&&h[p-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=vf(k.value)),!Array.isArray(k)&&k.type==="element")){const S=k.children[0];S&&S.type==="text"&&(S.value=vf(S.value))}Array.isArray(k)?c.push(...k):c.push(k)}}}return c}}function i8(e,t){e.position&&(t.position=Wg(e))}function o8(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,Yi(i)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function a8(e,t){const n=t.data||{},r="value"in t&&!(fs.call(n,"hProperties")||fs.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 s8(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
51
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
52
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
53
|
+
`}),n}function vf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function kf(e,t){const n=l8(e,t),r=n.one(e,void 0),l=Xx(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:`
|
|
54
|
+
`},l),i}function u8(e,t){return e&&"run"in e?async function(n,r){const l=kf(n,{file:r,...t});await e.run(l,r)}:function(n,r){return kf(n,{file:r,...e||t})}}function wf(e){if(e)throw e}var wi=Object.prototype.hasOwnProperty,Fp=Object.prototype.toString,Sf=Object.defineProperty,Ef=Object.getOwnPropertyDescriptor,Cf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Fp.call(t)==="[object Array]"},bf=function(t){if(!t||Fp.call(t)!=="[object Object]")return!1;var n=wi.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||wi.call(t,l)},Af=function(t,n){Sf&&n.name==="__proto__"?Sf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Mf=function(t,n){if(n==="__proto__")if(wi.call(t,n)){if(Ef)return Ef(t,n).value}else return;return t[n]},c8=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=Mf(a,n),l=Mf(t,n),a!==l&&(f&&l&&(bf(l)||(i=Cf(l)))?(i?(i=!1,o=r&&Cf(r)?r:[]):o=r&&bf(r)?r:{},Af(a,{name:n,newValue:e(f,o,l)})):typeof l<"u"&&Af(a,{name:n,newValue:l}));return a};const Ko=gs(c8);function ds(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 f8(){const e=[],t={run:n,use:r};return t;function n(...l){let i=-1;const o=l.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...l);function a(s,...u){const f=e[++i];let c=-1;if(s){o(s);return}for(;++c<l.length;)(u[c]===null||u[c]===void 0)&&(u[c]=l[c]);l=u,f?d8(f,a)(...u):o(null,...u)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function d8(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&n)throw f;return l(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const Vt={basename:p8,dirname:h8,extname:m8,join:g8,sep:"/"};function p8(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Dl(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function h8(e){if(Dl(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 m8(e){Dl(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function g8(...e){let t=-1,n;for(;++t<e.length;)Dl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":y8(n)}function y8(e){Dl(e);const t=e.codePointAt(0)===47;let n=x8(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function x8(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(l===o-1||i===1))if(l!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function Dl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const v8={cwd:k8};function k8(){return"/"}function ps(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function w8(e){if(typeof e=="string")e=new URL(e);else if(!ps(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 S8(e)}function S8(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 l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Go=["history","path","basename","stem","extname","dirname"];class Dp{constructor(t){let n;t?ps(t)?n={path:t}:typeof t=="string"||E8(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":v8.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Go.length;){const i=Go[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let l;for(l in n)Go.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Vt.basename(this.path):void 0}set basename(t){ea(t,"basename"),Jo(t,"basename"),this.path=Vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Vt.dirname(this.path):void 0}set dirname(t){Tf(this.basename,"dirname"),this.path=Vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Vt.extname(this.path):void 0}set extname(t){if(Jo(t,"extname"),Tf(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=Vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ps(t)&&(t=w8(t)),ea(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Vt.basename(this.path,this.extname):void 0}set stem(t){ea(t,"stem"),Jo(t,"stem"),this.path=Vt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new qe(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Jo(e,t){if(e&&e.includes(Vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Vt.sep+"`")}function ea(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Tf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function E8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const C8=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},b8={}.hasOwnProperty;class Au extends C8{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=f8()}copy(){const t=new Au;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ko(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ra("data",this.frozen),this.namespace[t]=n,this):b8.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ra("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 l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ii(t),r=this.parser||this.Parser;return ta("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ta("process",this.parser||this.Parser),na("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,o){const a=ii(t),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,k=r.stringify(p,h);T8(k)?h.value=k:h.result=k,u(f,h)});function u(f,c){f||!c?o(f):i?i(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),ta("processSync",this.parser||this.Parser),na("processSync",this.compiler||this.Compiler),this.process(t,l),Pf("processSync","process",n),r;function l(i,o){n=!0,wf(i),r=o}}run(t,n,r){Nf(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,a){const s=ii(n);l.run(t,s,u);function u(f,c,h){const p=c||t;f?a(f):o?o(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),Pf("runSync","run",r),l;function i(o,a){wf(o),l=a,r=!0}}stringify(t,n){this.freeze();const r=ii(n),l=this.compiler||this.Compiler;return na("stringify",l),Nf(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(ra("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(l.settings=Ko(!0,l.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];i(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...k]=f;const S=r[h][1];ds(S)&&ds(p)&&(p=Ko(!0,S,p)),r[h]=[u,p,...k]}}}}const A8=new Au().freeze();function ta(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function na(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ra(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 Nf(e){if(!ds(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Pf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ii(e){return M8(e)?e:new Dp(e)}function M8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function T8(e){return typeof e=="string"||N8(e)}function N8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const P8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lf=[],If={allowDangerousHtml:!0},L8=/^(https?|ircs?|mailto|xmpp)$/i,I8=[{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 _8(e){const t=R8(e),n=j8(e);return z8(t.runSync(t.parse(n),n),e)}function R8(e){const t=e.rehypePlugins||Lf,n=e.remarkPlugins||Lf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...If}:If;return A8().use(hx).use(n).use(u8,r).use(t)}function j8(e){const t=e.children||"",n=new Dp;return typeof t=="string"&&(n.value=t),n}function z8(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||F8;for(const f of I8)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+P8+f.id,void 0);return bu(e,u),Kg(e,{Fragment:v.Fragment,components:l,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Xo)if(Object.hasOwn(Xo,p)&&Object.hasOwn(f.properties,p)){const k=f.properties[p],S=Xo[p];(S===null||S.includes(f.tagName))&&(f.properties[p]=s(String(k||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):i?i.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function F8(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||L8.test(e.slice(0,t))?e:""}function _f(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,l=n.indexOf(t);for(;l!==-1;)r++,l=n.indexOf(t,l+t.length);return r}function D8(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function H8(e,t,n){const l=xo((n||{}).ignore||[]),i=O8(t);let o=-1;for(;++o<i.length;)zp(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],k=h?h.children:void 0;if(l(p,k?k.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=i[o][0],p=i[o][1];let k=0;const P=c.children.indexOf(u);let m=!1,g=[];h.lastIndex=0;let x=h.exec(u.value);for(;x;){const N=x.index,_={index:x.index,input:x.input,stack:[...f,u]};let b=p(...x,_);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?h.lastIndex=N+1:(k!==N&&g.push({type:"text",value:u.value.slice(k,N)}),Array.isArray(b)?g.push(...b):b&&g.push(b),k=N+x[0].length,m=!0),!h.global)break;x=h.exec(u.value)}return m?(k<u.value.length&&g.push({type:"text",value:u.value.slice(k)}),c.children.splice(P,1,...g)):g=[u],P+g.length}}function O8(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 l=n[r];t.push([V8(l[0]),Z8(l[1])])}return t}function V8(e){return typeof e=="string"?new RegExp(D8(e),"g"):e}function Z8(e){return typeof e=="function"?e:function(){return e}}const la="phrasing",ia=["autolink","link","image","label"];function B8(){return{transforms:[q8],enter:{literalAutolink:U8,literalAutolinkEmail:oa,literalAutolinkHttp:oa,literalAutolinkWww:oa},exit:{literalAutolink:Y8,literalAutolinkEmail:X8,literalAutolinkHttp:W8,literalAutolinkWww:Q8}}}function $8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:la,notInConstruct:ia},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:la,notInConstruct:ia},{character:":",before:"[ps]",after:"\\/",inConstruct:la,notInConstruct:ia}]}}function U8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function oa(e){this.config.enter.autolinkProtocol.call(this,e)}function W8(e){this.config.exit.autolinkProtocol.call(this,e)}function Q8(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 X8(e){this.config.exit.autolinkEmail.call(this,e)}function Y8(e){this.exit(e)}function q8(e){H8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,K8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),G8]],{ignore:["link","linkReference"]})}function K8(e,t,n,r,l){let i="";if(!Hp(l)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!J8(n)))return!1;const o=e4(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function G8(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 J8(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 e4(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 l=_f(e,"(");let i=_f(e,")");for(;r!==-1&&l>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function Hp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Un(n)||mo(n))&&(!t||n!==47)}Op.peek=u4;function t4(){this.buffer()}function n4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function r4(){this.buffer()}function l4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function i4(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function o4(e){this.exit(e)}function a4(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function s4(e){this.exit(e)}function u4(){return"["}function Op(e,t,n,r){const l=n.createTracker(r);let i=l.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return i+=l.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),o(),i+=l.move("]"),i}function c4(){return{enter:{gfmFootnoteCallString:t4,gfmFootnoteCall:n4,gfmFootnoteDefinitionLabelString:r4,gfmFootnoteDefinition:l4},exit:{gfmFootnoteCallString:i4,gfmFootnoteCall:o4,gfmFootnoteDefinitionLabelString:a4,gfmFootnoteDefinition:s4}}}function f4(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Op},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,i,o){const a=i.createTracker(o);let s=a.move("[^");const u=i.enter("footnoteDefinition"),f=i.enter("label");return s+=a.move(i.safe(i.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
55
|
+
`:" ")+i.indentLines(i.containerFlow(r,a.current()),t?Vp:d4))),u(),s}}function d4(e,t,n){return t===0?e:Vp(e,t,n)}function Vp(e,t,n){return(n?"":" ")+e}const p4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zp.peek=x4;function h4(){return{canContainEols:["delete"],enter:{strikethrough:g4},exit:{strikethrough:y4}}}function m4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:p4}],handlers:{delete:Zp}}}function g4(e){this.enter({type:"delete",children:[]},e)}function y4(e){this.exit(e)}function Zp(e,t,n,r){const l=n.createTracker(r),i=n.enter("strikethrough");let o=l.move("~~");return o+=n.containerPhrasing(e,{...l.current(),before:o,after:"~"}),o+=l.move("~~"),i(),o}function x4(){return"~"}function v4(e){return e.length}function k4(e,t){const n=t||{},r=(n.align||[]).concat(),l=n.stringLength||v4,i=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const S=[],P=[];let m=-1;for(e[f].length>u&&(u=e[f].length);++m<e[f].length;){const g=w4(e[f][m]);if(n.alignDelimiters!==!1){const x=l(g);P[m]=x,(s[m]===void 0||x>s[m])&&(s[m]=x)}S.push(g)}o[f]=S,a[f]=P}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)i[c]=Rf(r[c]);else{const S=Rf(r);for(;++c<u;)i[c]=S}c=-1;const h=[],p=[];for(;++c<u;){const S=i[c];let P="",m="";S===99?(P=":",m=":"):S===108?P=":":S===114&&(m=":");let g=n.alignDelimiters===!1?1:Math.max(1,s[c]-P.length-m.length);const x=P+"-".repeat(g)+m;n.alignDelimiters!==!1&&(g=P.length+g+m.length,g>s[c]&&(s[c]=g),p[c]=g),h[c]=x}o.splice(1,0,h),a.splice(1,0,p),f=-1;const k=[];for(;++f<o.length;){const S=o[f],P=a[f];c=-1;const m=[];for(;++c<u;){const g=S[c]||"";let x="",N="";if(n.alignDelimiters!==!1){const _=s[c]-(P[c]||0),b=i[c];b===114?x=" ".repeat(_):b===99?_%2?(x=" ".repeat(_/2+.5),N=" ".repeat(_/2-.5)):(x=" ".repeat(_/2),N=x):N=" ".repeat(_)}n.delimiterStart!==!1&&!c&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||c)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(g),n.alignDelimiters!==!1&&m.push(N),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&m.push("|")}k.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return k.join(`
|
|
56
|
+
`)}function w4(e){return e==null?"":String(e)}function Rf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function S4(e,t,n,r){const l=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),E4);return l(),o}function E4(e,t,n){return">"+(n?"":" ")+e}function C4(e,t){return jf(e,t.inConstruct,!0)&&!jf(e,t.notInConstruct,!1)}function jf(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 zf(e,t,n,r){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
57
|
+
`&&C4(n.stack,n.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
58
|
+
`}function b4(e,t){const n=String(e);let r=n.indexOf(t),l=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===l?++i>o&&(o=i):i=1,l=r+t.length,r=n.indexOf(t,l);return o}function A4(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 M4(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 T4(e,t,n,r){const l=M4(n),i=e.value||"",o=l==="`"?"GraveAccent":"Tilde";if(A4(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(i,N4);return c(),h}const a=n.createTracker(r),s=l.repeat(Math.max(b4(i,l)+1,3)),u=n.enter("codeFenced");let f=a.move(s);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
59
|
+
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
60
|
+
`),i&&(f+=a.move(i+`
|
|
61
|
+
`)),f+=a.move(s),u(),f}function N4(e,t,n){return(n?"":" ")+e}function Mu(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 P4(e,t,n,r){const l=Mu(n),i=l==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
62
|
+
`,...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()})),u+=s.move(l),a()),o(),u}function L4(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Pl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qi(e,t,n){const r=Lr(e),l=Lr(t);return r===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Bp.peek=I4;function Bp(e,t,n,r){const l=L4(n),i=n.enter("emphasis"),o=n.createTracker(r),a=o.move(l);let s=o.move(n.containerPhrasing(e,{after:l,before:a,...o.current()}));const u=s.charCodeAt(0),f=qi(r.before.charCodeAt(r.before.length-1),u,l);f.inside&&(s=Pl(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=qi(r.after.charCodeAt(0),c,l);h.inside&&(s=s.slice(0,-1)+Pl(c));const p=o.move(l);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function I4(e,t,n){return n.options.emphasis||"*"}function _4(e,t){let n=!1;return bu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,cs}),!!((!e.depth||e.depth<3)&&xu(e)&&(t.options.setext||n))}function R4(e,t,n,r){const l=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(_4(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...i.current(),before:`
|
|
63
|
+
`,after:`
|
|
64
|
+
`});return c(),f(),h+`
|
|
65
|
+
`+(l===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
66
|
+
`))+1))}const o="#".repeat(l),a=n.enter("headingAtx"),s=n.enter("phrasing");i.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
67
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=Pl(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}$p.peek=j4;function $p(e){return e.value||""}function j4(){return"<"}Up.peek=z4;function Up(e,t,n,r){const l=Mu(n),i=l==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()})),u+=s.move(l),a()),u+=s.move(")"),o(),u}function z4(){return"!"}Wp.peek=F4;function Wp(e,t,n,r){const l=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=f,i(),l==="full"||!u||u!==c?s+=a.move(c+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function F4(){return"!"}Qp.peek=D4;function Qp(e,t,n){let r=e.value||"",l="`",i=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],a=n.compilePattern(o);let s;if(o.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return l+r+l}function D4(){return"`"}function Xp(e,t){const n=xu(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))}Yp.peek=H4;function Yp(e,t,n,r){const l=Mu(n),i=l==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(Xp(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),n.stack=f,c}a=n.enter("link"),s=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=o.move(" "+l),u+=o.move(n.safe(e.title,{before:u,after:l,...o.current()})),u+=o.move(l),s()),u+=o.move(")"),a(),u}function H4(e,t,n){return Xp(e,n)?"<":"["}qp.peek=O4;function qp(e,t,n,r){const l=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=f,i(),l==="full"||!u||u!==c?s+=a.move(c+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function O4(){return"["}function Tu(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 V4(e){const t=Tu(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 Z4(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 Kp(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 B4(e,t,n,r){const l=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?Z4(n):Tu(n);const a=e.ordered?o==="."?")":".":V4(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Kp(n)===o&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=a),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,l(),u}function $4(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 U4(e,t,n,r){const l=$4(n);let i=n.bulletCurrent||Tu(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(i+" ".repeat(o-i.length)),a.shift(o);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return s(),u;function f(c,h,p){return h?(p?"":" ".repeat(o))+c:(p?i:i+" ".repeat(o-i.length))+c}}function W4(e,t,n,r){const l=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),l(),o}const Q4=xo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function X4(e,t,n,r){return(e.children.some(function(o){return Q4(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Y4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gp.peek=q4;function Gp(e,t,n,r){const l=Y4(n),i=n.enter("strong"),o=n.createTracker(r),a=o.move(l+l);let s=o.move(n.containerPhrasing(e,{after:l,before:a,...o.current()}));const u=s.charCodeAt(0),f=qi(r.before.charCodeAt(r.before.length-1),u,l);f.inside&&(s=Pl(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=qi(r.after.charCodeAt(0),c,l);h.inside&&(s=s.slice(0,-1)+Pl(c));const p=o.move(l+l);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function q4(e,t,n){return n.options.strong||"*"}function K4(e,t,n,r){return n.safe(e.value,r)}function G4(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 J4(e,t,n){const r=(Kp(n)+(n.options.ruleSpaces?" ":"")).repeat(G4(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Jp={blockquote:S4,break:zf,code:T4,definition:P4,emphasis:Bp,hardBreak:zf,heading:R4,html:$p,image:Up,imageReference:Wp,inlineCode:Qp,link:Yp,linkReference:qp,list:B4,listItem:U4,paragraph:W4,root:X4,strong:Gp,text:K4,thematicBreak:J4};function e6(){return{enter:{table:t6,tableData:Ff,tableHeader:Ff,tableRow:r6},exit:{codeText:l6,table:n6,tableData:aa,tableHeader:aa,tableRow:aa}}}function t6(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 n6(e){this.exit(e),this.data.inTable=void 0}function r6(e){this.enter({type:"tableRow",children:[]},e)}function aa(e){this.exit(e)}function Ff(e){this.enter({type:"tableCell",children:[]},e)}function l6(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,i6));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function i6(e,t){return t==="|"?t:e}function o6(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,l=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
68
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:s,tableRow:a}};function o(p,k,S,P){return u(f(p,S,P),p.align)}function a(p,k,S,P){const m=c(p,S,P),g=u([m]);return g.slice(0,g.indexOf(`
|
|
69
|
+
`))}function s(p,k,S,P){const m=S.enter("tableCell"),g=S.enter("phrasing"),x=S.containerPhrasing(p,{...P,before:i,after:i});return g(),m(),x}function u(p,k){return k4(p,{align:k,alignDelimiters:r,padding:n,stringLength:l})}function f(p,k,S){const P=p.children;let m=-1;const g=[],x=k.enter("table");for(;++m<P.length;)g[m]=c(P[m],k,S);return x(),g}function c(p,k,S){const P=p.children;let m=-1;const g=[],x=k.enter("tableRow");for(;++m<P.length;)g[m]=s(P[m],p,k,S);return x(),g}function h(p,k,S){let P=Jp.inlineCode(p,k,S);return S.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function a6(){return{exit:{taskListCheckValueChecked:Df,taskListCheckValueUnchecked:Df,paragraph:u6}}}function s6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:c6}}}function Df(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function u6(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 l=t.children;let i=-1,o;for(;++i<l.length;){const a=l[i];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function c6(e,t,n,r){const l=e.children[0],i=typeof e.checked=="boolean"&&l&&l.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(o);let s=Jp.listItem(e,t,n,{...r,...a.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function f6(){return[B8(),c4(),h4(),e6(),a6()]}function d6(e){return{extensions:[$8(),f4(e),m4(),o6(e),s6()]}}const p6={tokenize:v6,partial:!0},e1={tokenize:k6,partial:!0},t1={tokenize:w6,partial:!0},n1={tokenize:S6,partial:!0},h6={tokenize:E6,partial:!0},r1={name:"wwwAutolink",tokenize:y6,previous:i1},l1={name:"protocolAutolink",tokenize:x6,previous:o1},rn={name:"emailAutolink",tokenize:g6,previous:a1},Ut={};function m6(){return{text:Ut}}let Ln=48;for(;Ln<123;)Ut[Ln]=rn,Ln++,Ln===58?Ln=65:Ln===91&&(Ln=97);Ut[43]=rn;Ut[45]=rn;Ut[46]=rn;Ut[95]=rn;Ut[72]=[rn,l1];Ut[104]=[rn,l1];Ut[87]=[rn,r1];Ut[119]=[rn,r1];function g6(e,t,n){const r=this;let l,i;return o;function o(c){return!hs(c)||!a1.call(r,r.previous)||Nu(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return hs(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(h6,f,u)(c):c===45||c===95||Xe(c)?(i=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),l=!0,s}function f(c){return i&&l&&et(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function y6(e,t,n){const r=this;return l;function l(o){return o!==87&&o!==119||!i1.call(r,r.previous)||Nu(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(p6,e.attempt(e1,e.attempt(t1,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function x6(e,t,n){const r=this;let l="",i=!1;return o;function o(c){return(c===72||c===104)&&o1.call(r,r.previous)&&!Nu(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(et(c)&&l.length<5)return l+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=l.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),i?u:(i=!0,s)):n(c)}function u(c){return c===null||Qi(c)||xe(c)||Un(c)||mo(c)?n(c):e.attempt(e1,e.attempt(t1,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function v6(e,t,n){let r=0;return l;function l(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),l):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function k6(e,t,n){let r,l,i;return o;function o(u){return u===46||u===95?e.check(n1,s,a)(u):u===null||xe(u)||Un(u)||u!==45&&mo(u)?s(u):(i=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(l=r,r=void 0),e.consume(u),o}function s(u){return l||r||!i?n(u):t(u)}}function w6(e,t){let n=0,r=0;return l;function l(o){return o===40?(n++,e.consume(o),l):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(n1,t,i)(o):o===null||xe(o)||Un(o)?t(o):(e.consume(o),l)}function i(o){return o===41&&r++,e.consume(o),l}}function S6(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),i):a===93?(e.consume(a),l):a===60||a===null||xe(a)||Un(a)?t(a):n(a)}function l(a){return a===null||a===40||a===91||xe(a)||Un(a)?t(a):r(a)}function i(a){return et(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):et(a)?(e.consume(a),o):n(a)}}function E6(e,t,n){return r;function r(i){return e.consume(i),l}function l(i){return Xe(i)?n(i):t(i)}}function i1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xe(e)}function o1(e){return!et(e)}function a1(e){return!(e===47||hs(e))}function hs(e){return e===43||e===45||e===46||e===95||Xe(e)}function Nu(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 C6={tokenize:I6,partial:!0};function b6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:N6,continuation:{tokenize:P6},exit:L6}},text:{91:{name:"gfmFootnoteCall",tokenize:T6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:A6,resolveTo:M6}}}}function A6(e,t,n){const r=this;let l=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;l--;){const s=r.events[l][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return n(s);const u=jt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function M6(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)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function T6(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(i>999||c===93&&!o||c===null||c===91||xe(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return l.includes(jt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return xe(c)||(o=!0),i++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),i++,u):u(c)}}function N6(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,a;return s;function s(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(k)}function f(k){if(o>999||k===93&&!a||k===null||k===91||xe(k))return n(k);if(k===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return i=jt(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return xe(k)||(a=!0),o++,e.consume(k),k===92?c:f}function c(k){return k===91||k===92||k===93?(e.consume(k),o++,f):f(k)}function h(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),l.includes(i)||l.push(i),ue(e,p,"gfmFootnoteDefinitionWhitespace")):n(k)}function p(k){return t(k)}}function P6(e,t,n){return e.check(Fl,t,e.attempt(C6,t,n))}function L6(e){e.exit("gfmFootnoteDefinition")}function I6(e,t,n){const r=this;return ue(e,l,"gfmFootnoteDefinitionIndent",5);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function _6(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:l};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&yt(h,h.length,0,go(p,o.slice(u+1,s),a)),yt(h,h.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),yt(o,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function i(o,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(k){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(k):(o.enter("strikethroughSequenceTemporary"),p(k))}function p(k){const S=Lr(u);if(k===126)return c>1?s(k):(o.consume(k),c++,p);if(c<2&&!n)return s(k);const P=o.exit("strikethroughSequenceTemporary"),m=Lr(k);return P._open=!m||m===2&&!!S,P._close=!S||S===2&&!!m,a(k)}}}class R6{constructor(){this.map=[]}add(t,n,r){j6(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let l=r.pop();for(;l;){for(const i of l)t.push(i);l=r.pop()}this.map.length=0}}function j6(e,t,n,r){let l=0;if(!(n===0&&r.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...r);return}l+=1}e.map.push([t,n,r])}}function z6(e,t){let n=!1;const r=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function F6(){return{flow:{null:{name:"table",tokenize:D6,resolveAll:H6}}}}function D6(e,t,n){const r=this;let l=0,i=0,o;return a;function a(C){let $=r.events.length-1;for(;$>-1;){const ie=r.events[$][1].type;if(ie==="lineEnding"||ie==="linePrefix")$--;else break}const W=$>-1?r.events[$][1].type:null,ne=W==="tableHead"||W==="tableRow"?b:s;return ne===b&&r.parser.lazy[r.now().line]?n(C):ne(C)}function s(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(o=!0,i+=1),f(C)}function f(C){return C===null?n(C):G(C)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):oe(C)?ue(e,f,"whitespace")(C):(i+=1,o&&(o=!1,l+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(C)))}function c(C){return C===null||C===124||xe(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?h:c)}function h(C){return C===92||C===124?(e.consume(C),c):c(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,oe(C)?ue(e,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):k(C))}function k(C){return C===45||C===58?P(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),S):_(C)}function S(C){return oe(C)?ue(e,P,"whitespace")(C):P(C)}function P(C){return C===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),m):C===45?(i+=1,m(C)):C===null||G(C)?N(C):_(C)}function m(C){return C===45?(e.enter("tableDelimiterFiller"),g(C)):_(C)}function g(C){return C===45?(e.consume(C),g):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(C))}function x(C){return oe(C)?ue(e,N,"whitespace")(C):N(C)}function N(C){return C===124?k(C):C===null||G(C)?!o||l!==i?_(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):_(C)}function _(C){return n(C)}function b(C){return e.enter("tableRow"),D(C)}function D(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),D):C===null||G(C)?(e.exit("tableRow"),t(C)):oe(C)?ue(e,D,"whitespace")(C):(e.enter("data"),V(C))}function V(C){return C===null||C===124||xe(C)?(e.exit("data"),D(C)):(e.consume(C),C===92?Q:V)}function Q(C){return C===92||C===124?(e.consume(C),V):V(C)}}function H6(e,t){let n=-1,r=!0,l=0,i=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const h=new R6;for(;++n<e.length;){const p=e[n],k=p[1];p[0]==="enter"?k.type==="tableHead"?(a=!1,s!==0&&(Hf(h,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},h.add(n,0,[["enter",u,t]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(r=!0,c=void 0,i=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},h.add(n,0,[["enter",f,t]])),l=k.type==="tableDelimiterRow"?2:f?3:1):l&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],c=oi(h,t,i,l,void 0,c),i=[0,0,0,0]),o[2]=n)):k.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],c=oi(h,t,i,l,void 0,c)),i=o,o=[i[1],n,0,0])):k.type==="tableHead"?(a=!0,s=n):k.type==="tableRow"||k.type==="tableDelimiterRow"?(s=n,i[1]!==0?(o[0]=o[1],c=oi(h,t,i,l,n,c)):o[1]!==0&&(c=oi(h,t,o,l,n,c)),l=0):l&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Hf(h,t,s,u,f),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=z6(t.events,n))}return e}function oi(e,t,n,r,l,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},lr(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=lr(t.events,n[1]);if(i={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=lr(t.events,n[2]),f=lr(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const k=n[2]+1,S=n[3]-n[2]-1;e.add(k,S,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return l!==void 0&&(i.end=Object.assign({},lr(t.events,l)),e.add(l,0,[["exit",i,t]]),i=void 0),i}function Hf(e,t,n,r,l){const i=[],o=lr(t.events,n);l&&(l.end=Object.assign({},o),i.push(["exit",l,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function lr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const O6={name:"tasklistCheck",tokenize:Z6};function V6(){return{text:{91:O6}}}function Z6(e,t,n){const r=this;return l;function l(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),i)}function i(s){return xe(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return G(s)?t(s):oe(s)?e.check({tokenize:B6},t,n)(s):n(s)}}function B6(e,t,n){return ue(e,r,"whitespace");function r(l){return l===null?n(l):t(l)}}function $6(e){return yp([m6(),b6(),_6(e),F6(),V6()])}const U6={};function W6(e){const t=this,n=e||U6,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push($6(n)),i.push(f6()),o.push(d6(n))}function ms({children:e,className:t=""}){return v.jsx("div",{className:`prose prose-sm max-w-none break-words ${t}`,children:v.jsx(_8,{remarkPlugins:[W6],components:{pre:({children:n})=>{var o;const r=n,l=(o=r==null?void 0:r.props)==null?void 0:o.children,i=typeof l=="string"?l.split(`
|
|
70
|
+
`).map((a,s)=>v.jsx("span",{"data-collider":"code-line",children:a},s)):n;return v.jsx("pre",{className:"p-3 overflow-x-auto text-xs my-2",style:{borderRadius:"8px",backgroundColor:"var(--color-bg)",border:"1px solid var(--color-border)",color:"var(--color-text)"},children:i})},code:({className:n,children:r,...l})=>n?v.jsx("code",{className:n,...l,children:r}):v.jsx("code",{className:"px-1.5 py-0.5 text-xs",style:{borderRadius:"4px",backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)",fontFamily:"Geist Mono, JetBrains Mono, monospace"},...l,children:r}),table:({children:n})=>v.jsx("div",{className:"overflow-x-auto my-2",children:v.jsx("table",{className:"min-w-full border-collapse text-xs",style:{border:"1px solid var(--color-border)"},children:n})}),th:({children:n})=>v.jsx("th",{"data-collider":"table-cell",className:"px-3 py-1.5 text-left font-medium",style:{border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:n}),td:({children:n})=>v.jsx("td",{"data-collider":"table-cell",className:"px-3 py-1.5",style:{border:"1px solid var(--color-border)"},children:n}),a:({href:n,children:r})=>v.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:"var(--color-accent)"},children:r}),img:({src:n,alt:r})=>v.jsx("img",{src:n,alt:r??"Image",className:"max-w-full max-h-[400px] object-contain my-2 cursor-pointer hover:opacity-90 transition-opacity",style:{borderRadius:"8px",border:"1px solid var(--color-border)"},loading:"lazy",onClick:()=>n&&window.open(n,"_blank")})},children:e})})}function Of(e){const t=[],n=/data:(image\/[a-zA-Z+.-]+);base64,([A-Za-z0-9+/=]+)/g;let r,l=e;for(;(r=n.exec(e))!==null;)t.push({mimeType:r[1],data:r[2]});if(l=l.replace(n,"[Image]"),t.length===0&&e.length>100&&/^[A-Za-z0-9+/=]+\n?$/.test(e.trim())){const i=e.trim();i.startsWith("iVBOR")?(t.push({data:i,mimeType:"image/png"}),l="[Image]"):i.startsWith("/9j/")?(t.push({data:i,mimeType:"image/jpeg"}),l="[Image]"):i.startsWith("R0lGOD")?(t.push({data:i,mimeType:"image/gif"}),l="[Image]"):i.startsWith("UklGR")&&(t.push({data:i,mimeType:"image/webp"}),l="[Image]")}return{images:t,cleanedText:l}}function Q6({tool:e}){const t=e.isError,n=e.result&&e.result.length>0,r=!!e.mcpApp,[l,i]=d.useState(!1),o=d.useMemo(()=>{if(e.images&&e.images.length>0)return e.images.map(f=>({data:f.data,mimeType:f.mimeType}));if(!n||r)return null;const u=Of(e.result);return u.images.length>0?u.images:null},[e.images,e.result,n,r]),a=d.useMemo(()=>e.images&&e.images.length>0?`Image: ${e.images.length} image(s)`:!n||r?e.result:Of(e.result).cleanedText,[e.images,e.result,n,r]),s=d.useMemo(()=>a?a.split(`
|
|
71
|
+
`):[],[a]);return v.jsxs("div",{className:"text-xs p-2.5 min-w-0",style:{borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)"},children:[v.jsxs("div",{"data-collider":"tool-header",className:"flex items-center gap-2 mb-1",children:[v.jsx("span",{style:{color:t?"var(--color-error-text)":"var(--color-success-text)"},children:t?"✗":"✓"}),v.jsx("span",{className:"font-mono font-medium",style:{color:"var(--color-accent)"},children:e.name}),e.args&&v.jsx("span",{className:"truncate max-w-[200px]",style:{color:"var(--color-text-muted)"},children:e.args}),r&&v.jsx("button",{onClick:()=>i(!l),className:"ml-auto px-2 py-0.5 text-xs rounded-btn transition-colors duration-200",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)"},children:l?"Hide App":"Open App"})]}),o&&o.length>0&&v.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:o.map((u,f)=>v.jsx("img",{src:`data:${u.mimeType};base64,${u.data}`,alt:`Tool result image ${f+1}`,className:"max-w-[300px] max-h-[300px] object-contain rounded cursor-pointer hover:opacity-90 transition-opacity",style:{border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},onClick:()=>window.open(`data:${u.mimeType};base64,${u.data}`,"_blank")},f))}),n&&!r&&v.jsx("div",{className:"mt-1.5 max-h-40 overflow-y-auto",style:{color:t?"var(--color-error-text)":"var(--color-text)"},children:s.map((u,f)=>v.jsx("span",{"data-collider":"tool-result-line",children:u?v.jsx(ms,{className:"text-xs",children:u}):v.jsx("br",{})},f))}),r&&l&&v.jsx("div",{className:"mt-2",children:v.jsx("iframe",{src:e.mcpApp.appUrl,className:"w-full rounded border",style:{minHeight:"480px",height:"60vh",maxHeight:"700px",borderColor:"var(--color-border)",backgroundColor:"#fff"},sandbox:"allow-scripts allow-same-origin",title:`MCP App: ${e.name}`})})]})}const X6=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),d.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z"}))]]),Y6=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),d.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,64V192a16,16,0,0,1-16,16H83l-32.6,28.16-.09.07A15.89,15.89,0,0,1,40,240a16.05,16.05,0,0,1-6.79-1.52A15.84,15.84,0,0,1,24,224V64A16,16,0,0,1,40,48H216A16,16,0,0,1,232,64Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z"}))]]),q6=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"}))]]),K6=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),d.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"}))]]),G6=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),J6=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),d.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),ev=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z",opacity:"0.2"}),d.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z"}))]]),tv=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),d.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),nv=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),d.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),rv=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),lv=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),d.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),iv=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),d.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),ov=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),av=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),d.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),sv=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),uv=d.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Ke=d.forwardRef((e,t)=>{const{alt:n,color:r,size:l,weight:i,mirrored:o,children:a,weights:s,...u}=e,{color:f="currentColor",size:c,weight:h="regular",mirrored:p=!1,...k}=d.useContext(uv);return d.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??c,height:l??c,fill:r??f,viewBox:"0 0 256 256",transform:o||p?"scale(-1, 1)":void 0,...k,...u},!!n&&d.createElement("title",null,n),a,s.get(i??h))});Ke.displayName="IconBase";const s1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:X6}));s1.displayName="ChartBarIcon";const cv=s1,u1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:Y6}));u1.displayName="ChatIcon";const fv=u1,c1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:q6}));c1.displayName="FileIcon";const dv=c1,f1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:K6}));f1.displayName="FolderIcon";const pv=f1,d1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:G6}));d1.displayName="InfoIcon";const hv=d1,p1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:J6}));p1.displayName="ListIcon";const mv=p1,h1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:ev}));h1.displayName="MoonIcon";const gv=h1,m1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:tv}));m1.displayName="PaperPlaneTiltIcon";const yv=m1,g1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:nv}));g1.displayName="PlusIcon";const y1=g1,x1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:rv}));x1.displayName="SpinnerIcon";const xv=x1,v1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:lv}));v1.displayName="SunIcon";const vv=v1,k1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:iv}));k1.displayName="TrashIcon";const w1=k1,S1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:ov}));S1.displayName="WarningIcon";const kv=S1,E1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:av}));E1.displayName="XIcon";const Pu=E1,C1=d.forwardRef((e,t)=>d.createElement(Ke,{ref:t,...e,weights:sv}));C1.displayName="XCircleIcon";const wv=C1;function Sv({messages:e,processing:t,hasStreaming:n,sessionActiveMs:r,permissionPrompt:l,onPermission:i,containerRef:o,scrollLocked:a=!1}){const s=d.useRef(null),u=d.useRef(null),f=d.useRef(!0),c=r;d.useLayoutEffect(()=>{f.current&&s.current&&s.current.scrollIntoView({behavior:n?"instant":"smooth"})},[e,t,l]);const h=d.useCallback(()=>{const p=u.current;if(!p)return;const k=f.current,S=p.scrollTop+p.clientHeight>=p.scrollHeight-64;f.current=S,!k&&S&&n&&requestAnimationFrame(()=>{var P;(P=s.current)==null||P.scrollIntoView({behavior:"instant"})})},[n]);return e.length===0&&!l?v.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:v.jsxs("div",{"data-collider":"message-card",className:"text-center max-w-md p-8",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:[v.jsx("h2",{className:"text-2xl font-bold mb-3",style:{color:"var(--color-accent)"},children:"DSCode Web"}),v.jsx("p",{className:"text-sm leading-relaxed mb-6",style:{color:"var(--color-text-muted)"},children:"DeepSeek-native AI coding agent. Ask me to write code, run commands, search files, or manage your project — all from the browser."}),v.jsxs("div",{className:"space-y-2 text-xs",style:{color:"var(--color-text-muted)"},children:[v.jsxs("p",{children:["Type"," ",v.jsx("code",{className:"px-1.5 py-0.5 rounded",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)",fontFamily:"Geist Mono, JetBrains Mono, monospace",fontSize:"0.75rem"},children:"/help"})," ","for available commands"]}),v.jsxs("p",{children:["Press"," ",v.jsx("code",{className:"px-1.5 py-0.5 rounded",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)",fontFamily:"Geist Mono, JetBrains Mono, monospace",fontSize:"0.75rem"},children:"/"})," ","to see slash commands"]})]})]})}):v.jsxs("div",{ref:p=>{u.current=p,o&&(o.current=p)},onScroll:h,className:"flex-1 overflow-y-auto min-h-0 px-4 py-4 space-y-4"+(a?" overflow-hidden pointer-events-none":""),children:[e.map(p=>v.jsx(Ev,{fallback:v.jsx(Cv,{message:p}),children:v.jsx(Mv,{message:p,sessionTime:c})},p.id)),t&&!n&&!l&&v.jsx(bv,{sessionTime:c}),l&&v.jsx(Av,{toolName:l.toolName,preview:l.preview,fuzzyPattern:l.fuzzyPattern,fuzzyArgDesc:l.fuzzyArgDesc,llmSuggestions:l.llmSuggestions,onDecision:i}),v.jsx("div",{ref:s})]})}class Ev extends e0.Component{constructor(){super(...arguments);_u(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}render(){var n;return this.state.hasError?(console.error("[ChatView] render error:",(n=this.state.error)==null?void 0:n.message),this.props.fallback):this.props.children}}function Cv({message:e}){return v.jsx("div",{className:"flex justify-start",children:v.jsxs("div",{"data-collider":"message-card",className:"max-w-[85%] px-4 py-3",style:{borderRadius:"12px",border:"1px solid var(--color-error-text)",backgroundColor:"var(--color-error)",color:"var(--color-error-text)"},children:[v.jsx("div",{className:"text-xs font-bold mb-1",children:"Render Error"}),v.jsxs("div",{className:"text-xs font-mono break-all",children:["role=",e.role," | content=",String(e.content).slice(0,60)]})]})})}function b1(e){return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function bv({sessionTime:e}){return v.jsx("div",{className:"flex justify-start animate-fade-up",children:v.jsx("div",{className:"px-4 py-3",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("div",{className:"flex gap-1",children:[v.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"0ms"}}),v.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"150ms"}}),v.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"300ms"}})]}),v.jsx("span",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Waiting..."}),v.jsxs("span",{className:"text-xs tabular-nums",style:{color:"var(--color-text-muted)"},children:["(",b1(Math.floor(e/1e3)),")"]})]})})})}function Av({toolName:e,preview:t,fuzzyPattern:n,fuzzyArgDesc:r,llmSuggestions:l,onDecision:i}){const[o,a]=d.useState(!1),[s,u]=d.useState(""),[f,c]=d.useState(!1),[h,p]=d.useState("save"),k=P=>{c(!1),h==="session"||h==="allow"?P===0?i("always_allow"):i("always_allow",void 0,n??void 0,P):i("always_allow_save",void 0,P===1?n??void 0:void 0,P)},S=()=>{s.trim()&&(i("deny",s.trim()),u(""),a(!1))};return v.jsx("div",{className:"flex justify-start animate-fade-up",children:v.jsxs("div",{className:"max-w-[85%] md:max-w-[75%] px-4 py-3","data-collider":"message-card",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-warning)"},children:[v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx(kv,{size:16,weight:"bold",style:{color:"var(--color-warning-text)"}}),v.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-warning-text)"},children:"Permission Required"})]}),v.jsx("div",{className:"mb-2 text-xs font-mono",style:{color:"var(--color-accent)"},children:e}),v.jsx("div",{className:"mb-3 text-xs font-mono break-all max-h-24 overflow-y-auto rounded p-2",style:{backgroundColor:"var(--color-bg)",color:"var(--color-text-muted)"},children:t}),o?v.jsxs("div",{className:"space-y-2",children:[v.jsx("textarea",{value:s,onChange:P=>u(P.target.value),placeholder:"Explain what you want the agent to do instead...",className:"w-full text-xs p-2 resize-none focus:outline-none",style:{borderRadius:"8px",backgroundColor:"var(--color-bg)",border:"1px solid var(--color-border)",color:"var(--color-text)"},rows:3,autoFocus:!0,onKeyDown:P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),S()),P.key==="Escape"&&(u(""),a(!1))}}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:S,disabled:!s.trim(),className:"btn-primary text-xs",children:"Submit"}),v.jsx("button",{onClick:()=>{u(""),a(!1)},className:"btn-secondary text-xs",children:"Cancel"})]})]}):f?v.jsxs("div",{className:"flex gap-2 flex-wrap",children:[h==="session"?v.jsxs(v.Fragment,{children:[v.jsxs("button",{onClick:()=>k(0),className:"btn-secondary text-xs",children:["Exact: ",e]}),v.jsxs("button",{onClick:()=>k(1),className:"btn-secondary text-xs",children:["Fuzzy: ",n]})]}):v.jsxs(v.Fragment,{children:[v.jsxs("button",{onClick:()=>k(0),className:"btn-secondary text-xs",children:["Exact: ",e,e.startsWith("mcp__")?"":" (this call)"]}),v.jsx("button",{onClick:()=>k(1),className:"btn-secondary text-xs",children:e.startsWith("mcp__")?n:"All calls"}),r&&v.jsx("button",{onClick:()=>k(2),className:"btn-secondary text-xs",children:r}),l&&l.map((P,m)=>v.jsxs("button",{onClick:()=>k(3+m),className:"btn-secondary text-xs",children:["[AI] ",P.label]},m))]}),v.jsx("button",{onClick:()=>c(!1),className:"btn text-xs",style:{backgroundColor:"var(--color-surface-hover)"},children:"Cancel"})]}):v.jsxs("div",{className:"flex gap-2 flex-wrap",children:[n&&n!==e?v.jsx("button",{onClick:()=>{p("allow"),c(!0)},className:"btn-primary text-xs",children:"Allow ▸"}):v.jsx("button",{onClick:()=>i("allow"),className:"btn-primary text-xs",children:"Allow"}),n&&n!==e?v.jsx("button",{onClick:()=>{p("session"),c(!0)},className:"btn-secondary text-xs",children:"Always Allow ▸"}):v.jsx("button",{onClick:()=>i("always_allow"),className:"btn-secondary text-xs",children:"Always Allow"}),v.jsx("button",{onClick:()=>{p("save"),c(!0)},className:"btn-secondary text-xs",children:"Save to Settings ▸"}),v.jsx("button",{onClick:()=>a(!0),className:"btn text-xs",style:{backgroundColor:"var(--color-warning)",color:"var(--color-warning-text)",borderColor:"var(--color-warning-text)"},children:"Explain"}),v.jsx("button",{onClick:()=>i("deny"),className:"btn-danger text-xs",children:"Deny"})]})]})})}function Mv({message:e,sessionTime:t}){const n=e.role==="user",r=typeof e.content=="string"?e.content:"";return v.jsx("div",{className:`flex ${n?"justify-end":"justify-start"} animate-fade-up`,children:v.jsxs("div",{"data-collider":"message-card",className:"max-w-[85%] md:max-w-[75%] px-4 py-3",style:n?{borderRadius:"12px 12px 4px 12px",backgroundColor:"var(--color-user-bubble)",color:"var(--color-user-bubble-text)"}:{borderRadius:"12px 12px 12px 4px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)",color:"var(--color-text)"},children:[e.thinking&&v.jsx(Tv,{thinking:e.thinking,isStreaming:e.isStreaming,sessionTime:t}),e.images&&e.images.length>0&&v.jsx("div",{className:`flex flex-wrap gap-2 mb-2 ${n?"justify-end":"justify-start"}`,children:e.images.map((l,i)=>{const o="data"in l?`data:${l.mimeType};base64,${l.data}`:void 0;return v.jsx("img",{src:o??"/placeholder-image.svg",alt:`Attached image ${i+1}`,className:"max-w-[200px] max-h-[200px] object-cover rounded cursor-pointer hover:opacity-90 transition-opacity",style:{border:"1px solid var(--color-border)"},onClick:()=>o&&window.open(o,"_blank")},i)})}),v.jsx("div",{style:{color:n?"var(--color-user-bubble-text)":"var(--color-text)"},children:r||e.images&&e.images.length>0?r?r.split(`
|
|
72
|
+
`).map((l,i)=>v.jsx("span",{"data-collider":"text-line",children:l?v.jsx(ms,{className:"text-sm leading-relaxed",children:l}):v.jsx("br",{})},i)):v.jsx(ms,{className:"text-sm leading-relaxed",children:r}):e.isStreaming&&!e.thinking&&(!e.images||e.images.length===0)?v.jsx("span",{className:"inline-block w-2 h-4 animate-pulse rounded-sm",style:{backgroundColor:"var(--color-accent)"}}):null}),e.tools&&e.tools.length>0&&v.jsx("div",{className:"mt-3 space-y-2",children:e.tools.map((l,i)=>v.jsx(Q6,{tool:l},`${l.name}-${i}`))})]})})}function Tv({thinking:e,isStreaming:t,sessionTime:n}){return v.jsxs("details",{className:"mb-2 group",open:t,children:[v.jsx("summary",{className:"text-xs cursor-pointer select-none",style:{color:"var(--color-text-muted)"},children:t?`Thinking... (${b1(Math.floor(n/1e3))})`:"Thought"}),v.jsx("div",{className:"mt-1.5 text-xs italic leading-relaxed pl-3 max-h-60 overflow-y-auto",style:{borderLeft:"2px solid var(--color-accent)",color:"var(--color-text-muted)"},children:e})]})}function Nv(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const l=r.result,i=l.indexOf(","),o=l.slice(5,l.indexOf(";")),a=l.slice(i+1);t({data:a,mimeType:o})},r.onerror=n,r.readAsDataURL(e)})}function Pv(e){return e.type.startsWith("image/")}function Lv({onSend:e,onAbort:t,onSlashCommand:n,onCommand:r,processing:l,slashCommands:i,fileListItems:o,fileListPrefix:a,viewMode:s}){const[u,f]=d.useState(""),[c,h]=d.useState([]),[p,k]=d.useState(!1),[S,P]=d.useState(""),[m,g]=d.useState(0),[x,N]=d.useState(!1),[_,b]=d.useState(""),[D,V]=d.useState(0),Q=d.useRef(null),C=d.useRef([]),$=d.useRef(-1),W=d.useRef(""),ne=d.useRef(!1),ie=100,te=i.filter(z=>!S||z.name.startsWith(S.slice(1))),fe=d.useRef();d.useEffect(()=>(x&&_!==void 0&&(clearTimeout(fe.current),fe.current=setTimeout(()=>{r({type:"file_list",prefix:_})},150)),()=>clearTimeout(fe.current)),[_,x,r]),d.useEffect(()=>{V(0)},[o]);const T=d.useCallback(()=>{const z=u.trim();!z&&c.length===0||(z&&C.current[0]!==z&&(C.current.unshift(z),C.current.length>ie&&C.current.pop()),$.current=-1,e(z,c.length>0?c:void 0),f(""),h([]),k(!1),N(!1))},[u,c,e,n]),B=z=>{const J=Q.current;if(!J)return;const U=J.selectionStart??u.length,ge=u.slice(0,U);if(!ge.match(/(?:^|[\s])@("([^"]*)"?|([^\s]*))$/))return;const Ie=ge.lastIndexOf("@");if(Ie===-1)return;const ft=u.slice(0,Ie),Ft=u.slice(U),wt=`@${z}/`,Fe=`${ft}${wt}${Ft}`;f(Fe),b(z+"/"),r({type:"file_list",prefix:z+"/"}),requestAnimationFrame(()=>{const de=Ie+wt.length;J.focus(),J.setSelectionRange(de,de)})},X=(z,J)=>{const U=Q.current;if(!U)return;const ge=U.selectionStart??u.length,Ie=u.slice(0,ge).lastIndexOf("@");if(Ie===-1)return;const ft=u.slice(0,Ie),Ft=u.slice(ge);if(J){const wt=`${ft}@${z} @${Ft}`;f(wt),b(""),r({type:"file_list",prefix:""}),requestAnimationFrame(()=>{const Fe=Ie+z.length+3;U.focus(),U.setSelectionRange(Fe,Fe)})}else{const wt=`${ft}@${z} ${Ft}`;f(wt),N(!1),requestAnimationFrame(()=>{const Fe=Ie+z.length+2;U.focus(),U.setSelectionRange(Fe,Fe)})}},w=z=>{var J;if(x){if(z.key==="ArrowDown"){z.preventDefault(),V(U=>Math.min(U+1,o.length-1));return}if(z.key==="ArrowUp"){z.preventDefault(),V(U=>Math.max(U-1,0));return}if(z.key==="Enter"){z.preventDefault();const U=o[D];U&&(U.isDir?B(U.path):X(U.path,!1));return}if(z.key==="Tab"){z.preventDefault();const U=o[D];U&&(U.isDir?B(U.path):X(U.path,!0));return}if(z.key==="Escape"){N(!1);return}return}if(p){if(z.key==="ArrowDown")z.preventDefault(),g(U=>Math.min(U+1,te.length-1));else if(z.key==="ArrowUp")z.preventDefault(),g(U=>Math.max(U-1,0));else if(z.key==="Enter"||z.key==="Tab"){z.preventDefault();const U=te[m];U&&(f(`/${U.name} `),k(!1),(J=Q.current)==null||J.focus())}else z.key==="Escape"&&k(!1);return}if(!l&&C.current.length>0){if(z.key==="ArrowUp"){z.preventDefault(),$.current===-1?(W.current=u,$.current=0):$.current=Math.min($.current+1,C.current.length-1),f(C.current[$.current]),requestAnimationFrame(()=>{const U=Q.current;U&&(U.focus(),U.setSelectionRange(U.value.length,U.value.length))});return}if(z.key==="ArrowDown"&&$.current>=0){z.preventDefault(),$.current--,$.current===-1?f(W.current):f(C.current[$.current]),requestAnimationFrame(()=>{const U=Q.current;U&&(U.focus(),U.setSelectionRange(U.value.length,U.value.length))});return}}if(z.key==="Escape"&&l){z.preventDefault(),t();return}z.key==="Enter"&&!z.shiftKey&&!ne.current&&(z.preventDefault(),l||T()),z.key==="Backspace"&&!u&&c.length>0&&(z.preventDefault(),h(U=>U.slice(0,-1)))},re=z=>{const J=z.target.value;f(J),$.current=-1,W.current="",J==="/"?(k(!0),P(""),g(0),N(!1)):J.startsWith("/")&&!J.includes(" ")?(k(!0),P(J),g(0),N(!1)):k(!1);const U=z.target.selectionStart??J.length,Pe=J.slice(0,U).match(/(?:^|[\s])@("([^"]*)"?|([^\s]*))$/);Pe?(N(!0),b(Pe[2]??Pe[3]??"")):N(!1)},se=d.useCallback(async z=>{const J=z.clipboardData.items,U=[];for(let ge=0;ge<J.length;ge++)Pv(J[ge])&&U.push(J[ge]);if(U.length>0){z.preventDefault();const ge=[];for(const Pe of U){const Ie=Pe.getAsFile();if(Ie)try{const ft=await Nv(Ie);ge.push(ft)}catch{}}h(Pe=>[...Pe,...ge])}},[]),E=d.useCallback(z=>{h(J=>J.filter((U,ge)=>ge!==z))},[]),we=()=>{const z=Q.current;z&&(z.style.height="auto",z.style.height=Math.min(z.scrollHeight,200)+"px")},Ne={borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)",color:"var(--color-text)"};return v.jsxs("div",{className:"px-4 py-3 relative",style:{borderTop:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:[p&&te.length>0&&s!=="dashboard"&&v.jsxs("div",{className:"absolute bottom-full left-4 mb-1 w-72 overflow-hidden z-50",style:Ne,children:[v.jsx("div",{className:"px-3 py-2 text-xs border-b",style:{color:"var(--color-text-muted)",borderColor:"var(--color-border)"},children:"Commands"}),v.jsx("div",{className:"max-h-48 overflow-y-auto",children:te.map((z,J)=>v.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2",style:{backgroundColor:J===m?"var(--color-surface-hover)":"transparent",color:"var(--color-text)"},onMouseEnter:()=>g(J),onClick:()=>{var U;f(`/${z.name} `),k(!1),(U=Q.current)==null||U.focus()},children:[v.jsxs("span",{className:"font-mono text-xs",style:{color:"var(--color-accent)"},children:["/",z.name]}),v.jsx("span",{className:"text-xs truncate",style:{color:"var(--color-text-muted)"},children:z.description})]},z.name))})]}),x&&v.jsxs("div",{className:"absolute bottom-full left-4 mb-1 w-80 overflow-hidden z-50",style:Ne,children:[v.jsxs("div",{className:"px-3 py-2 text-xs border-b",style:{color:"var(--color-text-muted)",borderColor:"var(--color-border)"},children:["Files ",_?`@${_}`:""]}),v.jsx("div",{className:"max-h-48 overflow-y-auto",children:o.length>0?o.map((z,J)=>v.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2",style:{paddingLeft:`${12+(z.depth??0)*14}px`,backgroundColor:J===D?"var(--color-surface-hover)":"transparent",color:"var(--color-text)"},onMouseEnter:()=>V(J),onClick:()=>{z.isDir?B(z.path):X(z.path,!1)},children:[z.isDir?v.jsx(pv,{size:14,weight:"bold",style:{color:"var(--color-text-muted)"}}):v.jsx(dv,{size:14,weight:"bold",style:{color:"var(--color-text-muted)"}}),v.jsx("span",{className:"font-mono text-xs truncate",style:{color:"var(--color-accent)"},children:z.name})]},z.path)):v.jsx("div",{className:"px-3 py-2 text-sm",style:{color:"var(--color-text-muted)"},children:_?"No matching files":"Type to search files..."})})]}),c.length>0&&v.jsx("div",{className:"flex flex-wrap gap-2 mb-2 max-w-4xl mx-auto",children:c.map((z,J)=>v.jsxs("div",{className:"relative group",children:[v.jsx("img",{src:`data:${z.mimeType};base64,${z.data}`,alt:`Pasted image ${J+1}`,className:"h-16 w-16 object-cover rounded",style:{border:"1px solid var(--color-border)"}}),v.jsx("button",{onClick:()=>E(J),className:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded text-xs flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",style:{backgroundColor:"var(--color-error-text)",color:"#fff"},title:"Remove image",children:"×"})]},J))}),v.jsxs("div",{className:"flex items-end gap-2 max-w-4xl mx-auto",children:[v.jsx("textarea",{ref:Q,value:u,onChange:z=>{re(z),we()},onKeyDown:w,onPaste:se,onCompositionStart:()=>{ne.current=!0},onCompositionEnd:()=>{ne.current=!1},placeholder:l?"Processing... (Esc to stop)":s==="dashboard"?"Describe how to modify the dashboard...":"Type a message... (@file, Tab for multi-file, Enter to send)",disabled:l,rows:1,className:"flex-1 resize-none text-sm min-h-[40px] max-h-[200px] px-4 py-2.5 focus:outline-none",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)",color:"var(--color-text)",fontFamily:"Geist Sans, system-ui, sans-serif"}}),l?v.jsx("button",{onClick:t,className:"btn-danger shrink-0",title:"Stop agent (Esc)",children:"Stop"}):v.jsx("button",{onClick:T,disabled:!u.trim()&&c.length===0,className:"btn-primary shrink-0",children:v.jsx(yv,{size:16,weight:"bold"})})]}),v.jsxs("div",{className:"text-xs text-center mt-1.5",style:{color:"var(--color-text-muted)"},children:["DSCode Web ·"," ",l?"Press Stop or Esc to abort":"Type @ for files, Tab to add more, Enter to send, Ctrl+V for images"]})]})}function Iv(e,t){try{const n=localStorage.getItem(e);if(n!==null){const r=parseInt(n,10);if(!isNaN(r)&&r>0)return r}}catch{}return t}function _v({minWidth:e=200,maxWidth:t=500,defaultWidth:n=320,storageKey:r,enabled:l=!0}){const[i,o]=d.useState(()=>Iv(r,n)),a=d.useRef(null),s=d.useRef(null),u=d.useRef(""),f=d.useRef(""),c=d.useCallback(h=>{if(!l)return;h.preventDefault(),h.target.setPointerCapture(h.pointerId),s.current={startX:h.clientX,startWidth:i},u.current=document.body.style.cursor,f.current=document.body.style.userSelect,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const p=S=>{if(!s.current)return;const P=S.clientX-s.current.startX,m=Math.min(t,Math.max(e,s.current.startWidth+P));o(m)},k=()=>{s.current=null,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",k),document.body.style.cursor=u.current,document.body.style.userSelect=f.current;try{localStorage.setItem(r,String(i))}catch{}};document.addEventListener("pointermove",p),document.addEventListener("pointerup",k)},[l,i,e,t,r]);return{width:i,panelRef:a,handleProps:{onPointerDown:c,role:"separator","aria-orientation":"vertical"}}}function Rv({open:e,onClose:t,activeTab:n,onTabChange:r,sessions:l,currentSessionId:i,mcpServers:o,config:a,onSessionAction:s,onMcpAction:u,onConfigChange:f,onNewSession:c,onMcpServerAction:h,isProcessing:p}){const{width:k,panelRef:S,handleProps:P}=_v({storageKey:"dscode-sidebar-width"}),m=d.useRef(null),g=d.useRef(0),x=d.useRef(n),N=d.useCallback(()=>{m.current&&(g.current=m.current.scrollTop)},[]);return d.useLayoutEffect(()=>{x.current!==n&&(g.current=0,x.current=n)},[n]),d.useLayoutEffect(()=>{n==="sessions"&&m.current&&g.current>0&&(m.current.scrollTop=g.current)},[l,n]),v.jsxs(v.Fragment,{children:[e&&v.jsx("div",{className:"fixed inset-0 bg-black/30 z-40 md:hidden",onClick:t}),v.jsxs("aside",{ref:S,className:`fixed md:static inset-y-0 left-0 z-50 flex flex-col transform transition-transform duration-200 ${e?"translate-x-0":"-translate-x-full md:translate-x-0"} ${!e&&"hidden md:flex"}`,style:{width:`${k}px`,minWidth:`${k}px`,backgroundColor:"var(--color-surface)",borderRight:"1px solid var(--color-border)"},children:[v.jsxs("div",{className:"flex items-center justify-between p-3 md:hidden",style:{borderBottom:"1px solid var(--color-border)"},children:[v.jsx("span",{className:"font-semibold text-sm",style:{color:"var(--color-accent)"},children:"DSCode"}),v.jsx("button",{onClick:t,className:"p-1 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},children:v.jsx(Pu,{size:18,weight:"bold",style:{color:"var(--color-text)"}})})]}),v.jsx("div",{className:"flex",style:{borderBottom:"1px solid var(--color-border)"},children:["sessions","mcp","settings"].map(_=>v.jsx("button",{onClick:()=>r(_),className:"flex-1 py-2.5 text-xs font-medium transition-colors capitalize",style:{color:n===_?"var(--color-accent)":"var(--color-text-muted)",borderBottom:n===_?"2px solid var(--color-accent)":"2px solid transparent"},children:_==="sessions"?"Sessions":_==="mcp"?"MCP":"Settings"},_))}),v.jsxs("div",{ref:m,onScroll:N,className:"flex-1 overflow-y-auto p-3",children:[n==="sessions"&&v.jsx(zv,{sessions:l,currentSessionId:i,onAction:s,isProcessing:p,onNewSession:c}),n==="mcp"&&v.jsx(Fv,{servers:o,onAction:u,onServerAction:h}),n==="settings"&&v.jsx(Dv,{config:a,onChange:f})]}),v.jsx("div",{className:"resize-handle hidden md:block",...P})]})]})}function jv(e){if(e<1e3)return"<1s";const t=Math.floor(e/1e3);if(t<60)return`${t}s`;if(t<3600)return`${Math.floor(t/60)}m ${t%60}s`;const n=Math.floor(t/3600),r=Math.floor(t%3600/60);return`${n}h ${r}m`}function zv({sessions:e,currentSessionId:t,onAction:n,onNewSession:r,isProcessing:l}){return v.jsxs("div",{className:"space-y-3",children:[v.jsxs("button",{onClick:()=>{l||r()},className:"w-full text-left px-3 py-1.5 text-sm transition-colors duration-200 flex items-center gap-2",style:{borderRadius:"8px",opacity:l?.4:1,pointerEvents:l?"none":"auto"},onMouseEnter:i=>{l||(i.currentTarget.style.backgroundColor="var(--color-surface-hover)")},onMouseLeave:i=>{i.currentTarget.style.backgroundColor="transparent"},children:[v.jsx(y1,{size:14,weight:"bold",style:{color:"var(--color-accent)"}}),v.jsx("span",{style:{color:"var(--color-accent)"},children:"New Session"})]}),e.length===0?v.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"No saved sessions"}):v.jsx("div",{className:"space-y-1",children:e.map(i=>{const o=i.id===t,a=l&&!o;return v.jsxs("div",{className:"flex items-center justify-between p-2 transition-colors group",style:{borderRadius:"8px",backgroundColor:o?"var(--color-accent-bg)":"transparent",opacity:a?.4:1,pointerEvents:a?"none":"auto"},onMouseEnter:s=>{!o&&!a&&(s.currentTarget.style.backgroundColor="var(--color-surface-hover)")},onMouseLeave:s=>{s.currentTarget.style.backgroundColor=o?"var(--color-accent-bg)":"transparent"},children:[v.jsxs("button",{onClick:()=>{o&&l||a||n("load",i.id)},className:"flex-1 text-left min-w-0",children:[v.jsx("div",{className:"text-sm truncate flex items-center gap-1.5",style:{color:"var(--color-text)"},children:i.title}),v.jsxs("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[jv(i.totalActiveMs)," · ",i.messageCount," msgs"]})]}),o&&l&&v.jsx(xv,{size:14,weight:"bold",style:{color:"var(--color-accent)",opacity:.6,animation:"spin 1s linear infinite"}}),v.jsx("button",{onClick:()=>{!a&&!l&&n("delete",i.id)},className:`opacity-0 group-hover:opacity-100 p-1 rounded transition-all ${l?"!opacity-0":""}`,style:{color:"var(--color-error-text)"},title:"Delete",children:v.jsx(w1,{size:14,weight:"bold"})})]},i.id)})})]})}function Fv({servers:e,onServerAction:t,onAction:n}){const[r,l]=d.useState(null);return v.jsxs("div",{className:"space-y-3",children:[v.jsx("button",{onClick:()=>n("refresh"),className:"btn-secondary w-full text-xs",children:"Refresh"}),e.length===0?v.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"No MCP servers configured"}):v.jsx("div",{className:"space-y-1",children:e.map(i=>v.jsxs("div",{children:[v.jsxs("button",{onClick:()=>l(r===i.name?null:i.name),className:"w-full flex items-center justify-between p-2 transition-colors text-left",style:{borderRadius:"8px"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="var(--color-surface-hover)"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="transparent"},children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("div",{className:"text-sm truncate",style:{color:"var(--color-text)"},children:i.name}),v.jsxs("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[i.toolCount," tools"]})]}),v.jsx("div",{className:"flex items-center gap-1.5",children:v.jsx("div",{role:"button",tabIndex:0,onClick:o=>{o.stopPropagation(),i.status==="connected"||i.status==="connecting"?t("disconnect",i.name):t("connect",i.name)},onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),i.status==="connected"||i.status==="connecting"?t("disconnect",i.name):t("connect",i.name))},className:"flex-shrink-0",style:{position:"relative",width:"36px",height:"22px",borderRadius:"11px",border:i.status==="connected"||i.status==="connecting"?"none":"1px solid var(--color-border)",cursor:"pointer",backgroundColor:i.status==="connected"||i.status==="connecting"?"var(--color-accent)":i.status==="error"?"var(--color-error-text)":"var(--color-surface)",opacity:i.status==="connecting"?.7:1,transition:"background-color 250ms ease, border-color 250ms ease, opacity 250ms ease"},title:i.status==="connected"||i.status==="connecting"?`Disconnect ${i.name}`:`Connect ${i.name}`,children:v.jsx("span",{style:{position:"absolute",top:"3px",left:i.status==="connected"||i.status==="connecting"?"18px":"2px",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:"#ffffff",boxShadow:"0 1px 2px rgba(0,0,0,0.12)",transition:"left 200ms cubic-bezier(0.34, 1.56, 0.64, 1)"}})})})]}),r===i.name&&v.jsx("div",{className:"ml-3 mt-1 space-y-0.5 pl-3",style:{borderLeft:"2px solid var(--color-border)"},children:i.tools.map(o=>v.jsxs("div",{className:"text-xs py-1",children:[v.jsx("span",{className:"font-mono",style:{color:"var(--color-accent)"},children:o.name}),o.description&&v.jsx("span",{className:"ml-1",style:{color:"var(--color-text-muted)"},children:o.description})]},o.name))})]},i.name))})]})}function Dv({config:e,onChange:t}){var P,m,g;const[n,r]=d.useState(""),[l,i]=d.useState((e==null?void 0:e.modelId)??""),[o,a]=d.useState((e==null?void 0:e.thinkingLevel)??"off"),[s,u]=d.useState((e==null?void 0:e.provider)??""),[f,c]=d.useState((e==null?void 0:e.projectPath)??""),[h,p]=d.useState(!1),k=d.useRef(e);if(d.useEffect(()=>{e&&e!==k.current&&(u(e.provider),i(e.modelId),a(e.thinkingLevel),k.current=e)},[e]),!e)return v.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"Loading..."});const S={borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)",color:"var(--color-text)",fontSize:"0.75rem",width:"100%",padding:"0.5rem 0.75rem",outline:"none"};return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Provider"}),v.jsx("select",{value:s,onChange:x=>{u(x.target.value),t("set_provider",x.target.value)},style:S,children:e.providers.map(x=>v.jsx("option",{value:x,children:x},x))})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Model"}),v.jsx("select",{value:l,onChange:x=>{i(x.target.value),t("set_model",x.target.value)},style:S,children:e.models.map(x=>v.jsx("option",{value:x.id,children:x.name},x.id))})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Thinking Level"}),v.jsx("select",{value:o,onChange:x=>{a(x.target.value),t("set_thinking",x.target.value)},style:S,children:["off","minimal","low","medium","high","xhigh"].map(x=>v.jsx("option",{value:x,children:x},x))})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"API Key"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{type:"password",value:n,onChange:x=>r(x.target.value),className:"input text-xs flex-1",placeholder:e.apiKey||"sk-..."}),v.jsx("button",{onClick:()=>{n&&t("set_key",n),r("")},className:"btn-primary text-xs px-3",children:"Set"})]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Project Path"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{type:"text",value:f,onChange:x=>c(x.target.value),className:"input text-xs flex-1",placeholder:e.projectPath}),v.jsx("button",{onClick:()=>{f&&t("set_project_path",f.trim())},className:"btn-primary text-xs px-3",children:"Set"})]})]}),e.vision!=null||h?v.jsxs("div",{className:"pt-2 space-y-3",style:{borderTop:"1px solid var(--color-border)"},children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("p",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:"Vision Model"}),!h&&v.jsxs("button",{onClick:()=>t("set_vision_delete",""),className:"inline-flex items-center gap-1 text-xs px-2 py-1 rounded-btn transition-colors",style:{color:"var(--color-error-text)"},children:[v.jsx(w1,{size:12,weight:"bold"}),"Delete"]})]}),h||e.vision?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Provider"}),v.jsxs("select",{value:((P=e.vision)==null?void 0:P.provider)??"",onChange:x=>t("set_vision_provider",x.target.value),style:S,children:[v.jsx("option",{value:"",children:"Select..."}),e.visionProviders.map(x=>v.jsx("option",{value:x,children:x},x))]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Model"}),v.jsxs("select",{value:((m=e.vision)==null?void 0:m.model)??"",onChange:x=>t("set_vision_model",x.target.value),style:S,children:[v.jsx("option",{value:"",children:"Select..."}),e.visionModels.map(x=>v.jsx("option",{value:x.id,children:x.name},x.id))]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"API Key"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{type:"password",value:n,onChange:x=>r(x.target.value),className:"input text-xs flex-1",placeholder:(g=e.vision)!=null&&g.key?"••••••••":"Enter vision API key"}),v.jsx("button",{onClick:()=>{n&&t("set_vision_key",n),r("")},className:"btn-primary text-xs px-3",children:"Set"})]})]})]}):null,!e.vision&&h&&v.jsx("button",{onClick:()=>p(!1),className:"text-xs",style:{color:"var(--color-text-muted)"},children:"Cancel"})]}):v.jsxs("button",{onClick:()=>p(!0),className:"w-full text-left px-3 py-1.5 text-sm transition-colors duration-200 flex items-center gap-2",style:{borderRadius:"8px"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor="var(--color-surface-hover)"},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent"},children:[v.jsx(y1,{size:14,weight:"bold",style:{color:"var(--color-accent)"}}),v.jsx("span",{style:{color:"var(--color-accent)"},children:"Add Vision Model"})]}),v.jsx("div",{className:"pt-2",style:{borderTop:"1px solid var(--color-border)"},children:v.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:["Max Tokens: ",e.maxTokens.toLocaleString()]})})]})}function Hv({toasts:e,onRemove:t}){return v.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 max-w-sm",children:e.map(n=>v.jsx(Ov,{toast:n,onRemove:t},n.id))})}function Ov({toast:e,onRemove:t}){const n=e.type==="warning",r=e.type==="error";return d.useEffect(()=>{let l=null;if(e.type==="info"||e.type==="warning"?l=3e3:e.type==="error"&&(l=8e3),l===null)return;const i=setTimeout(()=>t(e.id),l);return()=>clearTimeout(i)},[e.id,e.type,t]),v.jsxs("div",{className:"px-4 py-3 text-sm flex items-start gap-2 animate-slide-in",style:{borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:r?"var(--color-error)":n?"var(--color-warning, #fef3c7)":"var(--color-surface)",color:r?"var(--color-error-text)":n?"var(--color-warning-text, #92400e)":"var(--color-text)"},children:[v.jsx("span",{className:"shrink-0 mt-0.5",children:r?v.jsx(wv,{size:16,weight:"bold",style:{color:"var(--color-error-text)"}}):v.jsx(hv,{size:16,weight:"bold",style:{color:"var(--color-accent)"}})}),v.jsx("span",{className:"flex-1 break-words",children:e.text}),v.jsx("button",{onClick:()=>t(e.id),className:"shrink-0 hover:opacity-70 ml-2",style:{color:"var(--color-text-muted)"},children:v.jsx(Pu,{size:14,weight:"bold"})})]})}function Vv(){const[e,t]=d.useState([]),n=d.useCallback(l=>{const i=`toast-${Date.now()}-${Math.random().toString(36).slice(2,7)}`;t(o=>[...o,{...l,id:i}])},[]),r=d.useCallback(l=>{t(i=>i.filter(o=>o.id!==l))},[]);return{toasts:e,addToast:n,removeToast:r}}function Zv({text:e,onClose:t}){d.useEffect(()=>{const l=i=>{i.key==="Escape"&&t()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]);const n=e.split(`
|
|
73
|
+
`),r=n[0].replace(/:$/,"");return v.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-end p-4 pt-16",onClick:t,children:v.jsxs("div",{className:"max-w-md w-full max-h-[70vh] overflow-y-auto",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)",color:"var(--color-text)"},onClick:l=>l.stopPropagation(),children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-3",style:{borderBottom:"1px solid var(--color-border)"},children:[v.jsx("span",{className:"text-sm font-semibold",style:{color:"var(--color-accent)"},children:r}),v.jsx("button",{onClick:t,className:"p-1 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},children:v.jsx(Pu,{size:16,weight:"bold",style:{color:"var(--color-text-muted)"}})})]}),v.jsx("div",{className:"p-4",children:v.jsx("pre",{className:"text-xs leading-relaxed whitespace-pre-wrap break-words",style:{fontFamily:"Geist Mono, JetBrains Mono, monospace",color:"var(--color-text)",margin:0},children:n.slice(1).join(`
|
|
74
|
+
`)})}),v.jsxs("div",{className:"px-4 py-2 text-xs",style:{borderTop:"1px solid var(--color-border)",color:"var(--color-text-muted)"},children:["Press ",v.jsx("kbd",{style:{borderRadius:"4px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)",padding:"1px 5px",fontFamily:"Geist Mono, JetBrains Mono, monospace",fontSize:"0.7rem"},children:"Esc"})," to close"]})]})})}const Bv=["system","rules","user","thinking","readwrite","edit","shell","skill","mcp","other"],$v={system:"System",rules:"Rules",user:"User",thinking:"Thinking",readwrite:"Read/Write",edit:"Edit",shell:"Shell",skill:"Skill",mcp:"MCP",other:"Other"},Uv={system:"var(--cw-system)",rules:"var(--cw-rules)",user:"var(--cw-user)",thinking:"var(--cw-thinking)",readwrite:"var(--cw-readwrite)",edit:"var(--cw-edit)",shell:"var(--cw-shell)",skill:"var(--cw-skill)",mcp:"var(--cw-mcp)",other:"var(--cw-other)"};function nr(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function Wv({data:e}){const[t,n]=d.useState(!1),r=d.useRef(null),l=d.useCallback(()=>n(!0),[]),i=d.useCallback(()=>n(!1),[]);if(!e)return null;const{total:o,used:a,free:s,categories:u}=e,f=2,c=Bv.map(g=>({key:g,label:$v[g],tokens:u[g],color:Uv[g]})).filter(g=>g.tokens>0),h=o>0?a/o*100:0,k=f/260*100;let S=c.map((g,x)=>{const N=o>0?c[x].tokens/o*100:0;return N>0&&N<k?k:N});const P=S.reduce((g,x)=>g+x,0);if(P>h&&P>0){const g=h/P;S=S.map(x=>x*g)}const m=o>0?Math.max(0,100-h):100;return v.jsxs("div",{className:"relative flex items-center gap-2",onMouseEnter:l,onMouseLeave:i,children:[v.jsxs("span",{className:"text-xs shrink-0 select-none tabular-nums",style:{color:"var(--color-text-muted)"},children:[nr(a)," / ",nr(o)]}),v.jsxs("div",{className:"flex flex-col items-center gap-0.5 shrink-0",children:[v.jsx("span",{className:"text-[10px] leading-none select-none",style:{color:"var(--color-text-muted)"},children:"Context Window"}),v.jsxs("div",{ref:r,className:"flex shrink-0 overflow-hidden",style:{width:"260px",height:"22px",backgroundColor:"var(--color-border)",gap:"1px"},children:[c.map((g,x)=>v.jsx("div",{className:"",style:{width:`${S[x]}%`,backgroundColor:g.color,minWidth:g.tokens>0?`${f}px`:0,transition:"width 0.3s ease, background-color 0.3s ease"},title:`${g.label}: ${nr(g.tokens)}`},g.key)),m>0&&v.jsx("div",{className:"",style:{flex:1,backgroundColor:"transparent",transition:"width 0.3s ease"}})]})]}),t&&v.jsxs("div",{className:"absolute top-full mt-2 left-1/2 -translate-x-1/2 z-50 p-3 rounded-lg shadow-lg",style:{backgroundColor:"var(--color-surface)",border:"1px solid var(--color-border)",minWidth:"220px"},children:[v.jsx("div",{className:"text-xs mb-2",style:{color:"var(--color-text-muted)"},children:"Context window (estimated)"}),v.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.map(g=>v.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--color-text)"},children:[v.jsx("span",{className:"w-2.5 h-2.5 rounded-sm shrink-0",style:{backgroundColor:g.color}}),v.jsx("span",{className:"flex-1",children:g.label}),v.jsx("span",{className:"tabular-nums",style:{color:"var(--color-text-muted)"},children:nr(g.tokens)})]},g.key)),s>0&&v.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--color-text)"},children:[v.jsx("span",{className:"w-2.5 h-2.5 rounded-sm shrink-0",style:{border:"1px dashed var(--color-border)",backgroundColor:"transparent"}}),v.jsx("span",{className:"flex-1",children:"Free"}),v.jsx("span",{className:"tabular-nums",style:{color:"var(--color-text-muted)"},children:nr(s)})]})]}),v.jsxs("div",{className:"text-xs mt-2 pt-2 flex justify-between tabular-nums",style:{color:"var(--color-text-muted)",borderTop:"1px solid var(--color-border)"},children:[v.jsx("span",{children:a>0?`${(a/o*100).toFixed(0)}% used`:""}),v.jsxs("span",{children:["Total: ",nr(o)]})]})]})]})}function Qv({viewMode:e,onChange:t,disabled:n}){const r=e==="chat"?fv:cv;return v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx(r,{size:18,weight:"bold",style:{color:"var(--color-text)"}}),v.jsxs("select",{value:e,onChange:l=>t(l.target.value),className:"text-sm font-medium cursor-pointer focus:outline-none",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-text)",border:"1px solid var(--color-border)",borderRadius:"8px",padding:"4px 8px"},children:[v.jsx("option",{value:"chat",children:"Chat"}),v.jsx("option",{value:"dashboard",disabled:n,children:"Dashboard"})]})]})}function Xv(e){let t=e.trim();return t=t.replace(/^```(?:html|HTML)?\s*\n?/,""),t=t.replace(/\n?```\s*$/,""),t}function Yv({html:e,loading:t}){const n=d.useRef(null),r=d.useMemo(()=>t||!e?"":Xv(e),[e,t]);return d.useEffect(()=>{n.current&&r&&(n.current.srcdoc=r)},[r]),t||!r?v.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsxs("div",{className:"flex gap-1.5",children:[v.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"0ms"}}),v.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"150ms"}}),v.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"300ms"}})]}),v.jsx("span",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Generating dashboard..."})]})}):v.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",style:{backgroundColor:"var(--color-bg)"},children:[v.jsx("iframe",{ref:n,srcDoc:r,sandbox:"allow-same-origin",className:"flex-1 w-full border-0",style:{backgroundColor:"var(--color-bg)",minHeight:"100%"},title:"Dashboard Artifact"}),v.jsxs("div",{className:"text-xs px-2 py-0.5",style:{color:"var(--color-text-muted)",borderTop:"1px solid var(--color-border)"},children:[r.length," bytes"]})]})}const Vf=2500,qv=2,sa=80,Zf=60,Kv=300,Bf=22,ai=70,Gv=4,Yr=[{char:"d",ox:-40,oy:0},{char:"s",ox:-24,oy:0},{char:"c",ox:-8,oy:0},{char:"o",ox:8,oy:0},{char:"d",ox:24,oy:0},{char:"e",ox:40,oy:0}];function ee(e,t){return e+Math.random()*(t-e)}function Ht(e,t){return Math.floor(ee(e,t+1))}function Jv(e){const t=e.replace("#","");return[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]}function ua(e,t,n){return Math.max(t,Math.min(n,e))}function rr(e,t,n){return e+(t-e)*n}function ek(e){return 1-(1-e)*(1-e)}function tk({artifactReady:e,onComplete:t,scrollContainerRef:n}){const r=d.useRef(null),l=d.useRef(null),i=d.useRef(t);i.current=t;const o=d.useRef(e);o.current=e;const a=d.useRef(!1);return d.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){i.current();return}const s=r.current;if(!s)return;const u=s.getContext("2d"),f=document.body.style.cursor;document.body.style.cursor="none";const c=getComputedStyle(document.documentElement),p={accent:c.getPropertyValue("--color-accent").trim()||"#ca8a04",text:c.getPropertyValue("--color-text").trim()||"#2d2a26",textMuted:c.getPropertyValue("--color-text-muted").trim()||"#8a8580"},S=`hsl(${((()=>{const[M,I,y]=Jv(p.accent),L=Math.max(M,I,y),A=Math.min(M,I,y),R=L-A;return R===0?38:L===M?((I-y)/R+(I<y?6:0))*60:L===I?((y-M)/R+2)*60:((M-I)/R+4)*60})()+20)%360}, 45%, 52%)`,P={d:p.accent,s:S,c:S,o:p.textMuted,e:p.text};let m=0,g=0;const x=s.parentElement,N=Math.min(window.devicePixelRatio||1,qv),b=(n==null?void 0:n.current)??(()=>{let M=x.parentElement;for(;M;){const I=getComputedStyle(M).overflowY;if(I==="auto"||I==="scroll")return M;M=M.parentElement}return null})();let D=0,V="";b&&(D=b.scrollTop,V=b.style.overflow,b.style.overflow="hidden");const Q=document.createElement("canvas"),C=Q.getContext("2d"),W=document.createElement("canvas").getContext("2d");function ne(M){let I=M.parentElement;for(;I&&I!==document.body;){const y=getComputedStyle(I).overflowY;if(y==="auto"||y==="scroll")return I;I=I.parentElement}return null}function ie(){const M=Math.min(320,m*.18,g*.5);Q.width=m*N,Q.height=g*N,C.setTransform(N,0,0,N,0,0),C.clearRect(0,0,m,g),C.font=`700 ${M}px "Geist", sans-serif`,C.textAlign="center",C.textBaseline="middle",C.fillStyle="#ffffff",C.fillText("DSCode",m/2,g/2);const I="DSCode",y=C.measureText(I).width,L=m/2-y/2,A=[];let R=L;for(let K=0;K<I.length;K++){const q=C.measureText(I[K]).width;A.push({letter:I[K],left:R,right:R+q}),R+=q}const H=C.getImageData(0,0,Math.floor(m*N),Math.floor(g*N)),j=[],F=6;for(let K=0;K<g;K+=F)for(let q=0;q<m;q+=F){const ye=(Math.floor(K*N)*Math.floor(m*N)+Math.floor(q*N))*4;if(ye+3<H.data.length&&H.data[ye+3]>128){const pe=A.find(he=>q>=he.left&&q<he.right),be=pe?pe.letter:I[Math.min(Math.floor((q-L)/(y/I.length)),I.length-1)];j.push({x:q,y:K,letter:be})}}for(let K=j.length-1;K>0;K--){const q=Math.floor(Math.random()*(K+1));[j[K],j[q]]=[j[q],j[K]]}return j.slice(0,Vf)}function te(){const M=x.querySelectorAll("[data-collider]"),I=s.getBoundingClientRect(),y=[],L=Math.abs(Yr[0].ox);M.forEach(A=>{var be;if(A.querySelector("[data-collider]")||!((be=A.textContent)!=null&&be.trim()))return;const R=A.getBoundingClientRect(),H=R.top-I.top,j=H+R.height;if(H>=g||j<=0)return;const F=ne(A);if(F){const he=F.getBoundingClientRect();if(R.bottom<=he.top||R.top>=he.bottom)return}const K=A.getAttribute("data-collider");let q=R.width;if(K==="text-line"||K==="code-line"||K==="tool-result-line"){const he=A.textContent||"",Re=getComputedStyle(A);W.font=`${Re.fontWeight||"400"} ${Re.fontSize} "${Re.fontFamily.split(",")[0].replace(/"/g,"")}", sans-serif`;const Gn=W.measureText(he).width+4;q=Math.min(R.width,Gn)}const ye=R.left-I.left;let pe;if(q>=ai){const he=ye+L,Re=ye+q-L;pe=he+ee(0,Re-he)}else pe=ye+q/2;y.push({el:A,top:H,left:ye,width:q,height:R.height,landingX:pe,struck:!1})}),y.sort((A,R)=>A.top-R.top);for(let A=1;A<y.length;A++){let R=0;for(;Math.abs(y[A].landingX-y[A-1].landingX)<ai*.3&&R<5;)y[A].landingX=y[A].width>=ai?y[A].left+L+ee(0,y[A].width-ai):y[A].left+y[A].width/2,R++}return y}function fe(){const M=x.querySelectorAll("[data-collider]"),I=s.getBoundingClientRect();M.forEach(y=>{var j;if(y.querySelector("[data-collider]")||!((j=y.textContent)!=null&&j.trim()))return;const L=y.getBoundingClientRect(),A=L.top-I.top,R=A+L.height;(A>=g||R<=0)&&(y.style.opacity="0",y.style.transition="none");const H=ne(y);if(H){const F=H.getBoundingClientRect();(L.bottom<=F.top||L.top>=F.bottom)&&(y.style.opacity="0",y.style.transition="none")}})}const T={phase:"cascade",phaseTime:0,colors:p,particles:[],impactRings:[],shards:[],shake:0,formedTime:0,targetPoints:[],particlesAssigned:0,gatherStarted:!1,W:m,H:g,cluster:{x:0,y:0,hopState:"drop",hopTimer:0,rowIndex:-1,hopStartX:0,hopStartY:0,hopEndX:0,hopEndY:0,hopDuration:0,hopProgress:0,nextRowIndex:-1},rows:[],scaleX:1,scaleY:1,breathPhase:0,letterColorMap:P};l.current=T;function B(M){M.key==="Escape"&&T.phase==="cascade"&&!T.gatherStarted&&U()}document.addEventListener("keydown",B);function X(M){const I=M.getBoundingClientRect(),y=s.getBoundingClientRect(),L=I.left-y.left,A=I.top-y.top,R=I.width,H=I.height,F=M.getAttribute("data-collider")==="tool-card"||M.getAttribute("data-collider")==="message-card"?Ht(30,50):Ht(20,40);for(let K=0;K<F;K++){const q=L+ee(0,R),ye=A+ee(0,H),pe=Math.atan2(ye-(A+H/2),q-(L+R/2)),be=ee(2,8),he=[p.accent,S,p.text],Re=he[Ht(0,he.length-1)];T.particles.push({x:q,y:ye,vx:Math.cos(pe)*be+ee(-3,3),vy:Math.sin(pe)*be-ee(1,5),size:ee(1.5,4),color:Re,phase:"fall",life:Ht(1500,3e3)})}}function w(M,I,y){const L=Ht(6,12);for(let A=0;A<L;A++){const R=ee(0,Math.PI*2),H=ee(2,6);T.particles.push({x:M,y:I,vx:Math.cos(R)*H,vy:Math.sin(R)*H-ee(1,3),size:ee(1,3),color:y,phase:"fall",life:Ht(800,1800)})}}function re(M){const I=M.textContent||"";if(I.length>80){X(M);return}const y=[...I];M.innerHTML="";const L=document.createElement("style"),A=`char-scatter-${Date.now()}`;L.id=A,L.textContent=`
|
|
75
|
+
@keyframes charScatter {
|
|
76
|
+
0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
|
|
77
|
+
100% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
|
|
78
|
+
}
|
|
79
|
+
`,document.head.appendChild(L),y.forEach(R=>{const H=document.createElement("span");H.textContent=R===" "?" ":R,H.style.display="inline-block",H.style.setProperty("--sx",`${ee(-60,60)}px`),H.style.setProperty("--sy",`${ee(-80,20)}px`),H.style.setProperty("--sr",`${ee(-180,180)}deg`),H.style.animation="charScatter 400ms ease-out forwards",M.appendChild(H)}),setTimeout(()=>{M.style.opacity="0",document.getElementById(A)&&document.getElementById(A).remove()},450)}function se(M){const y=[...M.textContent||""];function L(A,R){const H=y.map((j,F)=>j===" "||j===`
|
|
80
|
+
`?j:Math.random()<A?"▓":j);M.textContent=H.join(""),R>0&&(M.style.transform=`translateX(${ee(-R,R)}px)`)}L(.3,0),setTimeout(()=>L(.6,8),40),setTimeout(()=>{L(1,4),M.style.transition="opacity 200ms ease-out",M.style.opacity="0"},80)}function E(M,I,y){const L=s.getBoundingClientRect(),A=M.getBoundingClientRect(),R=A.left-L.left,H=A.top-L.top;M.style.clipPath=`circle(100% at ${I-R}px ${y-H}px)`,M.style.transition="clip-path 350ms ease-in, opacity 200ms ease-out 250ms",requestAnimationFrame(()=>{M.style.clipPath=`circle(0% at ${I-R}px ${y-H}px)`,M.style.opacity="0"});const j=Ht(40,70);for(let F=0;F<j;F++){const K=ee(0,Math.PI*2),q=ee(3,10);T.particles.push({x:I,y,vx:Math.cos(K)*q,vy:Math.sin(K)*q,size:ee(1.5,4),color:ee(0,1)>.5?p.accent:S,phase:"fall",life:Ht(2e3,3500)})}}function we(M){M.style.transition="none",M.style.backgroundColor="rgba(255,255,255,0.5)",requestAnimationFrame(()=>{M.style.transition="background-color 80ms ease-out",M.style.backgroundColor="transparent"});const I=s.getBoundingClientRect(),y=M.getBoundingClientRect(),L=y.left-I.left,A=y.top-I.top,R=y.width,H=y.height,j=Ht(4,6);for(let F=0;F<j;F++){const K=L+ee(R*.2,R*.8),q=A+ee(H*.2,H*.8),ye=[],pe=Ht(3,5);for(let be=0;be<pe;be++){const he=be/pe*Math.PI*2+ee(-.3,.3),Re=ee(8,25);ye.push({x:Math.cos(he)*Re,y:Math.sin(he)*Re})}T.shards.push({x:K,y:q,vx:ee(-3,3),vy:ee(-4,1),rotation:ee(0,Math.PI*2),rotationSpeed:ee(-.05,.05),size:ee(1,3),color:p.textMuted,life:500,points:ye})}}function Ne(M){const y=[...M.textContent||""];M.innerHTML="";const L=`th-scatter-${Date.now()}`,A=document.createElement("style");A.id=L,A.textContent=`
|
|
81
|
+
@keyframes thScatter {
|
|
82
|
+
0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
|
|
83
|
+
100% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
|
|
84
|
+
}
|
|
85
|
+
`,document.head.appendChild(A),y.forEach(R=>{const H=document.createElement("span");H.textContent=R===" "?" ":R,H.style.display="inline-block",H.style.setProperty("--sx",`${ee(-50,50)}px`),H.style.setProperty("--sy",`${ee(-60,10)}px`),H.style.setProperty("--sr",`${ee(-180,180)}deg`),H.style.animation="thScatter 350ms ease-out forwards",M.appendChild(H)}),setTimeout(()=>{M.style.opacity="0",document.getElementById(L)&&document.getElementById(L).remove()},380)}function z(M){const I=M.textContent||"";if(I.length>100){X(M);return}const y=[...I];M.innerHTML="";const L=`trl-scatter-${Date.now()}`,A=document.createElement("style");A.id=L,A.textContent=`
|
|
86
|
+
@keyframes trlScatter {
|
|
87
|
+
0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
|
|
88
|
+
100% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
|
|
89
|
+
}
|
|
90
|
+
`,document.head.appendChild(A),y.forEach(R=>{const H=document.createElement("span");H.textContent=R===" "?" ":R,H.style.display="inline-block",H.style.setProperty("--sx",`${ee(-40,40)}px`),H.style.setProperty("--sy",`${ee(-60,10)}px`),H.style.setProperty("--sr",`${ee(-120,120)}deg`),H.style.animation="trlScatter 300ms ease-out forwards",M.appendChild(H)}),setTimeout(()=>{M.style.opacity="0",document.getElementById(L)&&document.getElementById(L).remove()},330)}function J(M,I,y){switch(M.getAttribute("data-collider")){case"text-line":re(M);break;case"code-line":se(M);break;case"tool-header":Ne(M);break;case"tool-result-line":z(M);break;case"tool-card":E(M,I,y);break;case"message-card":we(M);break;case"table-cell":re(M);break;default:X(M);break}}function U(){if(T.gatherStarted)return;T.gatherStarted=!0,T.phase="gather",T.phaseTime=0,T.targetPoints=ie(),T.particlesAssigned=0;const M=Math.min(T.particles.length,T.targetPoints.length);for(let I=0;I<M;I++)T.particles[I].tx=T.targetPoints[I].x,T.particles[I].ty=T.targetPoints[I].y,T.particles[I].gatherDelay=ee(20,80),T.particlesAssigned++}function ge(){const M=T.cluster,I=s.getBoundingClientRect(),y=T.rows[M.rowIndex],L=y.top;let A=M.rowIndex+1,R=null,H=0;for(;A<T.rows.length;){const F=T.rows[A];if(F.struck){A++;continue}const K=F.el.getBoundingClientRect(),q=K.top-I.top;if(q<L||K.bottom-I.top<=0||q<0){A++;continue}R=F,M.nextRowIndex=A,H=q;break}if(!R){U();return}R.top=H,M.hopStartX=y.landingX,M.hopStartY=L,M.hopEndX=R.landingX,M.hopEndY=H;const j=Math.abs(M.hopEndY-M.hopStartY);M.hopDuration=Math.max(350,Math.min(800,Math.sqrt(j)*25)),M.hopState="hopping"}function Pe(){const M=T.cluster;if(M.rowIndex<0||M.rowIndex>=T.rows.length)return;const I=T.rows[M.rowIndex];if(I.struck)return;I.struck=!0;const y=s.getBoundingClientRect(),L=I.el.getBoundingClientRect(),A=L.top-y.top,R=L.left-y.left;console.log("[dscode] strikeRow preFreezeTop:",A,"row.top:",I.top,"c.y:",M.y);const H=I.landingX,j=I.top+I.height*.35;I.el.style.transition="none",I.el.style.backgroundColor="rgba(255,255,255,0.85)",I.el.style.boxShadow="0 0 20px rgba(255,255,255,0.6)";const F=getComputedStyle(I.el);F.display==="inline"&&(I.el.style.display="inline-block",I.el.style.verticalAlign=F.verticalAlign||"baseline"),I.el.style.boxSizing="border-box",I.el.style.height=I.height+"px",I.el.style.marginTop=F.marginTop,I.el.style.marginBottom=F.marginBottom,I.el.style.paddingTop=F.paddingTop,I.el.style.paddingBottom=F.paddingBottom,I.el.style.lineHeight=F.lineHeight;const K=s.getBoundingClientRect(),q=I.el.getBoundingClientRect(),ye=q.top-K.top,pe=q.left-K.left,be=A-ye,he=R-pe;console.log("[dscode] strikeRow compensate dy:",be,"dx:",he);const Re=ne(I.el),Gn=Re?Re.scrollTop:0;console.log("[dscode] strikeRow innerScrollTop snapshot:",Gn,"ancestor:",Re==null?void 0:Re.tagName),J(I.el,H,j),Re&&Re.scrollTop!==Gn&&(console.log("[dscode] strikeRow restoring innerScrollTop from",Re.scrollTop,"to",Gn),Re.scrollTop=Gn),requestAnimationFrame(()=>{I.el.style.transition="background-color 60ms ease-out, box-shadow 60ms ease-out, opacity 180ms ease-out 60ms",I.el.style.backgroundColor="",I.el.style.boxShadow="",I.el.getAttribute("data-collider")!=="message-card"&&(I.el.style.opacity="0")});const Lu=ee(-8,8),Iu=ee(-4,2);I.el.style.transform=`translate(${he+Lu}px, ${be+Iu}px)`,I.el.style.transition+=", transform 120ms ease-out",console.log("[dscode] strikeRow final transform:",`translate(${he+Lu}px, ${be+Iu}px)`,"compensateDy:",be);for(const an of Yr){const Pn=M.x+an.ox,Ge=M.y+an.oy+Bf/2,dt=T.letterColorMap[an.char]??p.accent;w(Pn,Ge,dt)}const Dr=I.el.closest('[data-collider="tool-card"], [data-collider="message-card"]');Dr&&[...Dr.querySelectorAll("[data-collider]")].every(Ge=>{const dt=T.rows.find(Jn=>Jn.el===Ge);return!dt||dt.struck===!0})&&(X(Dr),Dr.style.transition="opacity 200ms ease-out",Dr.style.opacity="0");{const an=s.getBoundingClientRect(),Pn=y.top-an.top;I.top=A+Pn,M.y=A+Pn,console.log("[dscode] strikeRow canvasShiftY:",Pn,"preFreezeTop:",A,"adjustedTop:",A+Pn);for(let Ge=0;Ge<T.rows.length;Ge++){const dt=T.rows[Ge];if(dt.struck)continue;const Jn=dt.el.getBoundingClientRect();dt.top=Jn.top-an.top,dt.left=Jn.left-an.left,dt.width=Jn.width,dt.height=Jn.height}if(T.rows.sort((Ge,dt)=>Ge.top-dt.top),M.rowIndex=T.rows.findIndex(Ge=>Ge===I),M.hopState==="hopping"){const Ge=M.rowIndex+1;Ge<T.rows.length&&(M.hopEndY=T.rows[Ge].top,M.hopEndX=T.rows[Ge].landingX)}}}function Ie(M,I){T.phaseTime+=M;const y=T.cluster;if(T.rows.length===0&&T.phaseTime>2e3&&!T.gatherStarted){U();return}switch(y.hopState){case"drop":{T.rows.length>0&&y.rowIndex===-1&&(y.rowIndex=0,y.x=T.rows[0].landingX);const A=T.rows.length>0?T.rows[0].top:g/2;y.y+=Gv*I,y.y>=A&&(y.y=A,y.hopState="squash",y.hopTimer=sa,Pe());break}case"squash":{y.hopTimer-=M;const A=ua(1-y.hopTimer/sa,0,1);T.scaleY=rr(1,.6,A),T.scaleX=rr(1,1.3,A),y.hopTimer<=0&&(y.hopState="stretch",y.hopTimer=Zf);break}case"stretch":{y.hopTimer-=M;const A=ua(1-y.hopTimer/Zf,0,1);T.scaleY=rr(.6,1.2,A),T.scaleX=rr(1.3,.85,A),y.hopTimer<=0&&(T.scaleY=1,T.scaleX=1,y.hopState="dwell",y.hopTimer=Kv);break}case"dwell":{y.hopTimer-=M,T.breathPhase+=M*(Math.PI*2/600);const A=1+Math.sin(T.breathPhase)*.02;T.scaleX=A,T.scaleY=A,y.hopTimer<=0&&(T.scaleX=1,T.scaleY=1,ge());break}case"hopping":{y.hopProgress+=M/y.hopDuration;const A=ua(y.hopProgress,0,1),R=ek(A),H=Math.abs(y.hopEndY-y.hopStartY),j=Math.max(40,H*.55),F=(y.hopStartY+y.hopEndY)/2,K=Math.min(j,Math.max(0,F));if(y.y=rr(y.hopStartY,y.hopEndY,A)-K*Math.sin(A*Math.PI),y.x=rr(y.hopStartX,y.hopEndX,R),A>=1){y.y=y.hopEndY,y.x=y.hopEndX,y.hopProgress=0;const q=y.nextRowIndex;if(y.nextRowIndex=-1,q<0||q>=T.rows.length){U();return}y.rowIndex=q,y.hopState="squash",y.hopTimer=sa,Pe()}break}}const L=[];for(const A of T.particles)A.phase==="fall"&&(A.vy+=.28*I,A.x+=A.vx,A.y+=A.vy,A.vx*=.995,A.life!==void 0&&(A.life-=M),(A.y>g+10||A.life!==void 0&&A.life<=0)&&L.push(A));L.length>0&&(T.particles=T.particles.filter(A=>!L.includes(A)));for(const A of T.shards)A.x+=A.vx,A.y+=A.vy,A.vy+=.15*I,A.rotation+=A.rotationSpeed,A.life-=M;T.shards=T.shards.filter(A=>A.life>0)}function ft(M,I){if(T.phaseTime+=M,T.particles.length<T.targetPoints.length&&T.particles.length<Vf){const y=Math.min(T.targetPoints.length-T.particles.length,50);for(let L=0;L<y&&T.particlesAssigned<T.targetPoints.length;L++){const A=T.targetPoints[T.particlesAssigned++];T.particles.push({x:ee(0,m),y:g+ee(20,80),vx:ee(-2,2),vy:ee(-8,-3),size:ee(2,4),color:T.letterColorMap[A.letter]??p.text,phase:"fall",tx:A.x,ty:A.y,gatherDelay:ee(20,80)})}}for(const y of T.particles)if(y.phase==="fall")y.vy+=.28*I,y.x+=y.vx,y.y+=y.vy,y.vx*=.995,y.y>g-4&&(y.y=g-4,y.vy*=-.3,y.vx*=.75),y.tx!==void 0&&y.gatherDelay!==void 0&&(y.gatherDelay-=M,y.gatherDelay<=0&&(y.phase="gather"));else if(y.phase==="gather"){if(y.tx===void 0||y.ty===void 0)continue;const L=y.tx-y.x,A=y.ty-y.y,R=Math.sqrt(L*L+A*A);R<4?(y.x=y.tx,y.y=y.ty,y.phase="formed",y.flash=1,T.impactRings.push({x:y.x,y:y.y,r:2,life:1}),T.shake=Math.min(T.shake+2.5,8)):(y.vx+=L/R*.55,y.vy+=A/R*.55,y.vx*=.88,y.vy*=.88,y.x+=y.vx,y.y+=y.vy)}else y.phase==="formed"&&y.flash!==void 0&&(y.flash*=.92);for(const y of T.shards)y.x+=y.vx,y.y+=y.vy,y.vy+=.12*I,y.rotation+=y.rotationSpeed,y.life-=M;T.shards=T.shards.filter(y=>y.life>0);for(const y of T.impactRings)y.r+=2.2,y.life-=.045;T.impactRings=T.impactRings.filter(y=>y.life>0),T.particles.length>0&&T.particles.every(y=>y.phase==="formed")&&T.phaseTime>800&&(T.phase="formed",T.phaseTime=0,T.formedTime=0),T.phaseTime>5e3&&(T.phase="formed",T.phaseTime=0,T.formedTime=0)}function Ft(M,I){T.phaseTime+=M,T.formedTime+=M;for(const y of T.impactRings)y.r+=1.5,y.life-=.03;T.impactRings=T.impactRings.filter(y=>y.life>0);for(const y of T.particles)y.flash!==void 0&&(y.flash*=.92);for(const y of T.shards)y.x+=y.vx,y.y+=y.vy,y.vy+=.1*I,y.rotation+=y.rotationSpeed,y.life-=M;T.shards=T.shards.filter(y=>y.life>0),T.formedTime>600&&o.current&&!a.current&&(a.current=!0,i.current()),T.formedTime>5e3&&!a.current&&(a.current=!0,i.current())}function wt(){if(T.phase!=="cascade"||T.cluster.hopState==="drop"&&T.rows.length===0)return;const M=T.cluster,I=T.scaleX,y=T.scaleY;let L=M.x;if(M.rowIndex>=0&&M.rowIndex<T.rows.length){const A=T.rows[M.rowIndex],R=M.x+Yr[0].ox,H=M.x+Yr[5].ox,j=R>=A.left&&R<=A.left+A.width,F=H>=A.left&&H<=A.left+A.width;j&&F?L=(R+H)/2:L=R}u.save(),u.translate(L,M.y),u.scale(I,y),u.translate(-L,-M.y);for(const A of Yr){const R=A.char,H=ee(-2,2),j=ee(-2,2),F=M.x+A.ox+H,K=M.y+A.oy+j;u.font=`700 ${Bf}px "Geist", sans-serif`,u.textAlign="center",u.textBaseline="middle",u.fillStyle=P[R]??p.text,u.fillText(R,F,K)}u.restore()}function Fe(){for(const M of T.particles){const I=M.phase==="formed"?M.size*(1+(M.flash??0)*3):M.size;M.phase==="formed"&&(M.flash??0)>.3&&(u.globalCompositeOperation="lighter");let y=M.x,L=M.y;if(M.phase==="formed"&&!o.current){const A=T.formedTime;y+=Math.sin(M.y*.04+A*.002)*Math.cos(M.x*.03+A*.0015)*2.5,L+=Math.cos(M.x*.04+A*.002)*Math.sin(M.y*.03+A*.0015)*2.5}u.beginPath(),u.arc(y,L,I,0,Math.PI*2),u.fillStyle=M.color,u.fill(),u.globalCompositeOperation="source-over"}}function de(){for(const M of T.impactRings)u.beginPath(),u.arc(M.x,M.y,M.r,0,Math.PI*2),u.strokeStyle=`rgba(255, 255, 255, ${M.life.toFixed(3)})`,u.lineWidth=2,u.stroke()}function Yn(){for(const M of T.shards){if(u.save(),u.translate(M.x,M.y),u.rotate(M.rotation),u.globalAlpha=Math.max(0,M.life/500),u.beginPath(),M.points.length>0){u.moveTo(M.points[0].x,M.points[0].y);for(let I=1;I<M.points.length;I++)u.lineTo(M.points[I].x,M.points[I].y);u.closePath()}else u.arc(0,0,M.size*3,0,Math.PI*2);u.fillStyle=M.color,u.fill(),u.strokeStyle=M.color,u.lineWidth=.5,u.stroke(),u.restore()}}function Fr(M){if(T.phase!=="formed")return;const I=m/2,y=g/2,L=Math.sin(M*.002)*.5+.5,A=Math.floor((.05+L*.08)*255).toString(16).padStart(2,"0");u.globalCompositeOperation="lighter";const R=u.createRadialGradient(I,y,0,I,y,Math.min(m,g)*.4);R.addColorStop(0,p.accent+A),R.addColorStop(1,"transparent"),u.fillStyle=R,u.fillRect(0,0,m,g),u.globalCompositeOperation="source-over"}function qn(){const M={cascade:"CASCADE ACTIVE",gather:"PARTICLE CONVERGENCE",formed:"FORMATION COMPLETE"};u.save(),u.font="600 11px 'Geist Mono', 'JetBrains Mono', monospace",u.textAlign="right",u.textBaseline="bottom",u.fillStyle=p.textMuted,u.fillText(M[T.phase],m-20,g-16),u.restore()}let ln=performance.now();function Kn(M){if(m=x.clientWidth,g=x.clientHeight,m===0||g===0){Wt=requestAnimationFrame(Kn);return}s.width=m*N,s.height=g*N,s.style.width=m+"px",s.style.height=g+"px",u.setTransform(N,0,0,N,0,0),T.W=m,T.H=g,T.rows=te(),fe(),T.cluster.x=m/2,T.cluster.y=-ee(60,140),T.cluster.hopState="drop",T.cluster.rowIndex=-1,console.log("[dscode] rows:",T.rows.length,"H:",g,"W:",m),ln=performance.now(),Wt=requestAnimationFrame(on)}let Wt=0;function on(M){const I=Math.min(M-ln,33);ln=M;const y=I/16.667;switch(u.clearRect(0,0,m,g),u.save(),T.shake>.1&&(u.translate(ee(-T.shake,T.shake),ee(-T.shake,T.shake)),T.shake*=.88),Fr(M),wt(),Fe(),de(),Yn(),u.restore(),T.phase){case"cascade":Ie(I,y);break;case"gather":ft(I,y);break;case"formed":Ft(I,y);break}qn(),Wt=requestAnimationFrame(on)}return Wt=requestAnimationFrame(Kn),()=>{cancelAnimationFrame(Wt),document.removeEventListener("keydown",B),document.body.style.cursor=f,b&&(b.style.overflow=V,b.scrollTop=D)}},[]),v.jsx("canvas",{ref:r,style:{position:"absolute",zIndex:50,inset:0,background:"transparent",pointerEvents:"none"}})}const nk=[{name:"help",description:"Show available commands"},{name:"reset",description:"Clear conversation history"},{name:"session",description:"Session management (list|save|load|delete)"},{name:"memory",description:"Memory management (list|add|remove|clear)"},{name:"skills",description:"Skill management (list|activate|deactivate)"},{name:"drivers",description:"List loaded drivers"},{name:"mcp",description:"Browse MCP servers and tools"},{name:"permissions",description:"Show session permission grants"},{name:"cost",description:"Show token usage for this session"},{name:"compact",description:"Force context compaction"},{name:"config",description:"Show or change user command config"},{name:"image",description:"Attach an image (file path or 'clipboard')"}];function rk(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.id===t[r].id&&n.updatedAt===t[r].updatedAt&&n.messageCount===t[r].messageCount&&n.contentHash===t[r].contentHash)}function lk(){const e=localStorage.getItem("dscode-theme");return e==="dark"||e==="light"?e:"light"}function ik(){try{const e=localStorage.getItem("dscode-dash-cache");if(e)return JSON.parse(e)}catch{}return{}}function ok(e){try{localStorage.setItem("dscode-dash-cache",JSON.stringify(e))}catch{}}const ak=20;function sk(){var H;const[e,t]=d.useState([]),[n,r]=d.useState(!1),[l,i]=d.useState(null),[o,a]=d.useState(""),[s,u]=d.useState(null),[f,c]=d.useState(!1),[h,p]=d.useState("sessions"),[k,S]=d.useState([]),[P,m]=d.useState(null),[g,x]=d.useState([]),[N,_]=d.useState([]),[b,D]=d.useState(""),[V,Q]=d.useState(lk),[C,$]=d.useState(null),[W,ne]=d.useState(null),[ie,te]=d.useState("chat"),[fe,T]=d.useState(""),[B,X]=d.useState(!1),[w,re]=d.useState("idle"),{toasts:se,addToast:E,removeToast:we}=Vv(),Ne=d.useRef(0),z=d.useRef(s);z.current=s;const J=d.useRef(P);J.current=P;const U=d.useRef(null),ge=d.useRef(ik()),Pe=d.useRef(fe);Pe.current=fe;const Ie=d.useRef(B);Ie.current=B;const ft=d.useRef(null);d.useEffect(()=>{const j=document.documentElement;V==="dark"?j.classList.add("dark"):j.classList.remove("dark"),localStorage.setItem("dscode-theme",V)},[V]),d.useEffect(()=>{const j=U.current;U.current=P,j!==null&&j!==P&&ie==="dashboard"&&te("chat")},[P,ie]),d.useEffect(()=>{e.length===0&&ie==="dashboard"&&te("chat")},[e,ie]);const Ft=d.useCallback(()=>Q(j=>j==="light"?"dark":"light"),[]),wt=d.useCallback(j=>{switch(j.type){case"ready":{a(j.model),i(j.config),t(F=>ni(F,j));break}case"user_message":case"thinking_delta":case"text_delta":case"tool_start":case"tool_end":case"mcp_app":t(F=>ni(F,j));break;case"assistant_end":t(F=>ni(F,j));break;case"clear_conversation":t(F=>ni(F,j)),u(null);break;case"assistant_start":break;case"info":{const F=j.text;F.includes(`
|
|
91
|
+
`)||F.startsWith("Available")||F.startsWith("Drivers")||F.startsWith("Skills")||F.startsWith("Configuration")||F.startsWith("Memories")||F.startsWith("Session grants")?ne(F):E({type:"info",text:F});break}case"warning":E({type:"warning",text:j.text});break;case"error":E({type:"error",text:j.text}),r(!1),Ne.current=0;break;case"permission_prompt":u({toolName:j.toolName,preview:j.preview,fuzzyPattern:j.fuzzyPattern??null,fuzzyArgDesc:j.fuzzyArgDesc??null,llmSuggestions:j.llmSuggestions??void 0});break;case"loader":r(j.state==="show"),j.state==="show"?Ne.current||(Ne.current=Date.now()):Ne.current=0;break;case"sessions":{if(S(F=>rk(F,j.data)?F:j.data),m(j.currentSessionId??null),j.currentSessionId){const F=j.data.find(K=>K.id===j.currentSessionId);F!=null&&F.pendingPermission&&!z.current&&u({toolName:F.pendingPermission.toolName,preview:F.pendingPermission.preview,fuzzyPattern:F.pendingPermission.fuzzyPattern??null})}break}case"session_time":{const F=J.current;F&&S(K=>K.map(q=>q.id===F?{...q,totalActiveMs:j.totalActiveMs}:q));break}case"mcp_state":x(j.servers);break;case"mcp_open_browser":c(!0),p("mcp");break;case"model":a(j.name);break;case"context_window":$(j);break;case"config":i(j.data);break;case"file_list_result":_(j.items),D(j.prefix);break;case"artifact_start":T(""),X(!0);break;case"artifact_delta":T(F=>F+j.delta);break;case"artifact_end":{X(!1);const F=J.current;if(F){const K=k.find(q=>q.id===F);if(K){const q=ge.current,ye=Object.keys(q);ye.length>=ak&&!q[F]&&delete q[ye[0]],q[F]={contentHash:K.contentHash,html:Pe.current},ok(q)}}break}}},[E,k]),{connected:Fe,send:de}=eg(wt),Yn=d.useCallback((j,F)=>{!j.trim()&&(!F||F.length===0)||(Ne.current=Date.now(),r(!0),de(ie==="dashboard"?{type:"artifact",action:"update",instruction:j}:{type:"chat",text:j,images:F!=null&&F.length?F:void 0}))},[de,ie]),Fr=d.useCallback((j,F,K,q)=>{de({type:F?"permission_response":"permission",decision:j,persistRule:j==="always_allow_save",denyReason:F,toolNamePattern:K,fuzzyMode:q,sessionGrantPattern:j==="always_allow"||j==="allow"&&q===1?K:void 0}),u(null)},[de]),qn=d.useCallback(()=>de({type:"abort"}),[de]),ln=d.useCallback(j=>de({type:"slash",command:j}),[de]),Kn=d.useCallback(j=>de(j),[de]),Wt=d.useCallback((j,F)=>de({type:"config",action:j,value:F}),[de]),on=d.useCallback((j,F)=>de({type:"session",action:j,id:F}),[de]),M=d.useCallback((j,F)=>de({type:"mcp",action:j,serverName:F}),[de]),I=d.useCallback(()=>de({type:"slash",command:"/reset"}),[de]),y=d.useCallback(j=>{var K;if(j==="chat"){te("chat");return}if(e.length===0)return;const F=J.current;if(F){const q=ge.current[F],ye=(K=k.find(pe=>pe.id===F))==null?void 0:K.contentHash;if(q&&ye!==void 0&&ye!==""&&q.contentHash===ye){T(q.html),X(!1),te("dashboard");return}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){te("dashboard"),T(""),X(!0),de({type:"artifact",action:"generate",context:"session_dashboard"});return}T(""),X(!0),de({type:"artifact",action:"generate",context:"session_dashboard"}),re("animating")},[de,k,e]),L=d.useCallback(()=>{const j=()=>{Ie.current?requestAnimationFrame(j):(re("idle"),te("dashboard"))};requestAnimationFrame(j)},[]);d.useEffect(()=>{Fe&&(on("list"),M("list"))},[Fe,on,M]);const A=e.some(j=>j.isStreaming),R=((H=k.find(j=>j.id===P))==null?void 0:H.totalActiveMs)??0;return v.jsxs("div",{className:"h-screen flex flex-col",style:{backgroundColor:"var(--color-bg)"},children:[v.jsxs("header",{className:"flex items-center px-4 py-2 shrink-0",style:{backgroundColor:"var(--color-surface)",borderBottom:"1px solid var(--color-border)"},children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("button",{onClick:()=>c(!f),className:"p-2 rounded-btn hover:brightness-95 transition-[filter] duration-200 md:hidden",style:{backgroundColor:"var(--color-surface-hover)"},"aria-label":"Toggle sidebar",children:v.jsx(mv,{size:20,weight:"bold",style:{color:"var(--color-text)"}})}),v.jsx("h1",{className:"font-bold text-lg",style:{color:"var(--color-accent)"},children:"DSCode"}),o&&v.jsx("span",{className:"text-sm hidden sm:inline",style:{color:"var(--color-text-muted)"},children:o})]}),v.jsx("div",{className:"flex-1 flex justify-center hidden md:flex",children:v.jsx(Wv,{data:C})}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Qv,{viewMode:ie,onChange:y,disabled:e.length===0}),v.jsx("button",{onClick:Ft,className:"p-2 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},"aria-label":"Toggle theme",children:V==="light"?v.jsx(gv,{size:18,weight:"bold",style:{color:"var(--color-text)"}}):v.jsx(vv,{size:18,weight:"bold",style:{color:"var(--color-text)"}})}),v.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1",style:{borderRadius:"8px",backgroundColor:Fe?"var(--color-success)":"var(--color-error)",color:Fe?"var(--color-success-text)":"var(--color-error-text)"},children:[v.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:Fe?"var(--color-success-text)":"var(--color-error-text)"}}),Fe?"Connected":"Reconnecting..."]})]})]}),v.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[v.jsx(Rv,{open:f,onClose:()=>c(!1),activeTab:h,onTabChange:p,sessions:k,currentSessionId:P,mcpServers:g,config:l,onSessionAction:on,onMcpAction:M,onMcpServerAction:M,onConfigChange:Wt,isProcessing:n,onNewSession:I}),v.jsx("main",{className:"flex-1 flex flex-col min-w-0",children:v.jsxs("div",{className:"flex-1 flex flex-col min-h-0",style:{position:"relative"},children:[w==="animating"&&v.jsx(tk,{artifactReady:!B&&fe!=="",onComplete:L,scrollContainerRef:ft}),ie==="dashboard"&&w==="idle"?v.jsx(Yv,{html:fe,loading:B}):v.jsx(Sv,{messages:e,processing:n,hasStreaming:A,sessionActiveMs:R,permissionPrompt:s,onPermission:Fr,containerRef:ft,scrollLocked:w==="animating"}),v.jsx(Lv,{onSend:Yn,onAbort:qn,onSlashCommand:ln,onCommand:Kn,processing:n,slashCommands:nk,fileListItems:N,fileListPrefix:b,viewMode:ie})]})})]}),v.jsx(Hv,{toasts:se,onRemove:we}),W&&v.jsx(Zv,{text:W,onClose:()=>ne(null)})]})}ca.createRoot(document.getElementById("root")).render(v.jsx(e0.StrictMode,{children:v.jsx(sk,{})}));
|