@creative-dswork/dscode 0.2.5 → 0.2.6
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.
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
var Sp=Object.defineProperty;var Ep=(e,t,n)=>t in e?Sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var po=(e,t,n)=>Ep(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 hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j0={exports:{}},$i={},I0={exports:{}},ue={};/**
|
|
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 El=Symbol.for("react.element"),Cp=Symbol.for("react.portal"),Ap=Symbol.for("react.fragment"),Mp=Symbol.for("react.strict_mode"),bp=Symbol.for("react.profiler"),Np=Symbol.for("react.provider"),Tp=Symbol.for("react.context"),Hp=Symbol.for("react.forward_ref"),Lp=Symbol.for("react.suspense"),Pp=Symbol.for("react.memo"),jp=Symbol.for("react.lazy"),Cu=Symbol.iterator;function Ip(e){return e===null||typeof e!="object"?null:(e=Cu&&e[Cu]||e["@@iterator"],typeof e=="function"?e:null)}var _0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F0=Object.assign,R0={};function Mr(e,t,n){this.props=e,this.context=t,this.refs=R0,this.updater=n||_0}Mr.prototype.isReactComponent={};Mr.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")};Mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z0(){}z0.prototype=Mr.prototype;function cs(e,t,n){this.props=e,this.context=t,this.refs=R0,this.updater=n||_0}var fs=cs.prototype=new z0;fs.constructor=cs;F0(fs,Mr.prototype);fs.isPureReactComponent=!0;var Au=Array.isArray,D0=Object.prototype.hasOwnProperty,ds={current:null},V0={key:!0,ref:!0,__self:!0,__source:!0};function Z0(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)D0.call(t,r)&&!V0.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:El,type:e,key:i,ref:o,props:l,_owner:ds.current}}function _p(e,t){return{$$typeof:El,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ps(e){return typeof e=="object"&&e!==null&&e.$$typeof===El}function Fp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mu=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fp(""+e.key):t.toString(36)}function ei(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 El:case Cp:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+ho(o,0):r,Au(l)?(n="",e!=null&&(n=e.replace(Mu,"$&/")+"/"),ei(l,t,n,"",function(u){return u})):l!=null&&(ps(l)&&(l=_p(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Mu,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",Au(e))for(var a=0;a<e.length;a++){i=e[a];var s=r+ho(i,a);o+=ei(i,t,n,s,l)}else if(s=Ip(e),typeof s=="function")for(e=s.call(e),a=0;!(i=e.next()).done;)i=i.value,s=r+ho(i,a++),o+=ei(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 Ll(e,t,n){if(e==null)return e;var r=[],l=0;return ei(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Rp(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 tt={current:null},ti={transition:null},zp={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:ti,ReactCurrentOwner:ds};function O0(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:Ll,forEach:function(e,t,n){Ll(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ll(e,function(){t++}),t},toArray:function(e){return Ll(e,function(t){return t})||[]},only:function(e){if(!ps(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Mr;ue.Fragment=Ap;ue.Profiler=bp;ue.PureComponent=cs;ue.StrictMode=Mp;ue.Suspense=Lp;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zp;ue.act=O0;ue.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=F0({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=ds.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)D0.call(t,s)&&!V0.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:El,type:e.type,key:l,ref:i,props:r,_owner:o}};ue.createContext=function(e){return e={$$typeof:Tp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Np,_context:e},e.Consumer=e};ue.createElement=Z0;ue.createFactory=function(e){var t=Z0.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:Hp,render:e}};ue.isValidElement=ps;ue.lazy=function(e){return{$$typeof:jp,_payload:{_status:-1,_result:e},_init:Rp}};ue.memo=function(e,t){return{$$typeof:Pp,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=ti.transition;ti.transition={};try{e()}finally{ti.transition=t}};ue.unstable_act=O0;ue.useCallback=function(e,t){return tt.current.useCallback(e,t)};ue.useContext=function(e){return tt.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};ue.useEffect=function(e,t){return tt.current.useEffect(e,t)};ue.useId=function(){return tt.current.useId()};ue.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return tt.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};ue.useRef=function(e){return tt.current.useRef(e)};ue.useState=function(e){return tt.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return tt.current.useTransition()};ue.version="18.3.1";I0.exports=ue;var c=I0.exports;const $0=us(c);/**
|
|
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 Dp=c,Vp=Symbol.for("react.element"),Zp=Symbol.for("react.fragment"),Op=Object.prototype.hasOwnProperty,$p=Dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bp={key:!0,ref:!0,__self:!0,__source:!0};function B0(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)Op.call(t,r)&&!Bp.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:Vp,type:e,key:i,ref:o,props:l,_owner:$p.current}}$i.Fragment=Zp;$i.jsx=B0;$i.jsxs=B0;j0.exports=$i;var m=j0.exports,la={},U0={exports:{}},vt={},W0={exports:{}},Q0={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(Z,K){var k=Z.length;Z.push(K);e:for(;0<k;){var ie=k-1>>>1,ce=Z[ie];if(0<l(ce,K))Z[ie]=K,Z[k]=ce,k=ie;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var K=Z[0],k=Z.pop();if(k!==K){Z[0]=k;e:for(var ie=0,ce=Z.length,S=ce>>>1;ie<S;){var ke=2*(ie+1)-1,be=Z[ke],he=ke+1,_e=Z[he];if(0>l(be,k))he<ce&&0>l(_e,be)?(Z[ie]=_e,Z[he]=k,ie=he):(Z[ie]=be,Z[ke]=k,ie=ke);else if(he<ce&&0>l(_e,k))Z[ie]=_e,Z[he]=k,ie=he;else break e}}return K}function l(Z,K){var k=Z.sortIndex-K.sortIndex;return k!==0?k:Z.id-K.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=[],d=1,f=null,h=3,p=!1,v=!1,w=!1,H=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(Z){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=Z)r(u),K.sortIndex=K.expirationTime,t(s,K);else break;K=n(u)}}function N(Z){if(w=!1,x(Z),!v)if(n(s)!==null)v=!0,re(_);else{var K=n(u);K!==null&&b(N,K.startTime-Z)}}function _(Z,K){v=!1,w&&(w=!1,g(z),z=-1),p=!0;var k=h;try{for(x(K),f=n(s);f!==null&&(!(f.expirationTime>K)||Z&&!$());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,h=f.priorityLevel;var ce=ie(f.expirationTime<=K);K=e.unstable_now(),typeof ce=="function"?f.callback=ce:f===n(s)&&r(s),x(K)}else r(s);f=n(s)}if(f!==null)var S=!0;else{var ke=n(u);ke!==null&&b(N,ke.startTime-K),S=!1}return S}finally{f=null,h=k,p=!1}}var M=!1,R=null,z=-1,W=5,A=-1;function $(){return!(e.unstable_now()-A<W)}function U(){if(R!==null){var Z=e.unstable_now();A=Z;var K=!0;try{K=R(!0,Z)}finally{K?le():(M=!1,R=null)}}else M=!1}var le;if(typeof y=="function")le=function(){y(U)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,Q=ne.port2;ne.port1.onmessage=U,le=function(){Q.postMessage(null)}}else le=function(){H(U,0)};function re(Z){R=Z,M||(M=!0,le())}function b(Z,K){z=H(function(){Z(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,re(_))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(Z){switch(h){case 1:case 2:case 3:var K=3;break;default:K=h}var k=h;h=K;try{return Z()}finally{h=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,K){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var k=h;h=Z;try{return K()}finally{h=k}},e.unstable_scheduleCallback=function(Z,K,k){var ie=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ie+k:ie):k=ie,Z){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=k+ce,Z={id:d++,callback:K,priorityLevel:Z,startTime:k,expirationTime:ce,sortIndex:-1},k>ie?(Z.sortIndex=k,t(u,Z),n(s)===null&&Z===n(u)&&(w?(g(z),z=-1):w=!0,b(N,k-ie))):(Z.sortIndex=ce,t(s,Z),v||p||(v=!0,re(_))),Z},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(Z){var K=h;return function(){var k=h;h=K;try{return Z.apply(this,arguments)}finally{h=k}}}})(Q0);W0.exports=Q0;var Up=W0.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 Wp=c,xt=Up;function D(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 Y0=new Set,ll={};function Un(e,t){xr(e,t),xr(e+"Capture",t)}function xr(e,t){for(ll[e]=t,e=0;e<t.length;e++)Y0.add(t[e])}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ia=Object.prototype.hasOwnProperty,Qp=/^[: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]*$/,bu={},Nu={};function Yp(e){return ia.call(Nu,e)?!0:ia.call(bu,e)?!1:Qp.test(e)?Nu[e]=!0:(bu[e]=!0,!1)}function Xp(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 qp(e,t,n,r){if(t===null||typeof t>"u"||Xp(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 nt(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 Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Be[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Be[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Be[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Be[e]=new nt(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){Be[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Be[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Be[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Be[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Be[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var hs=/[\-:]([a-z])/g;function ms(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(hs,ms);Be[t]=new nt(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(hs,ms);Be[t]=new nt(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(hs,ms);Be[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Be[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Be.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Be[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function gs(e,t,n,r){var l=Be.hasOwnProperty(t)?Be[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qp(t,n,l,r)&&(n=null),r||l===null?Yp(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 en=Wp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pl=Symbol.for("react.element"),Jn=Symbol.for("react.portal"),er=Symbol.for("react.fragment"),ys=Symbol.for("react.strict_mode"),oa=Symbol.for("react.profiler"),X0=Symbol.for("react.provider"),q0=Symbol.for("react.context"),xs=Symbol.for("react.forward_ref"),aa=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),vs=Symbol.for("react.memo"),sn=Symbol.for("react.lazy"),K0=Symbol.for("react.offscreen"),Tu=Symbol.iterator;function Lr(e){return e===null||typeof e!="object"?null:(e=Tu&&e[Tu]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,mo;function Or(e){if(mo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mo=t&&t[1]||""}return`
|
|
34
|
-
`+mo+e}var go=!1;function yo(e,t){if(!e||go)return"";go=!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{go=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Or(e):""}function Kp(e){switch(e.tag){case 5:return Or(e.type);case 16:return Or("Lazy");case 13:return Or("Suspense");case 19:return Or("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function ua(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 er:return"Fragment";case Jn:return"Portal";case oa:return"Profiler";case ys:return"StrictMode";case aa:return"Suspense";case sa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q0:return(e.displayName||"Context")+".Consumer";case X0:return(e._context.displayName||"Context")+".Provider";case xs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vs:return t=e.displayName||null,t!==null?t:ua(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return ua(e(t))}catch{}}return null}function Gp(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 ua(t);case 8:return t===ys?"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 Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function G0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jp(e){var t=G0(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 jl(e){e._valueTracker||(e._valueTracker=Jp(e))}function J0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mi(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 ca(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sn(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 e1(e,t){t=t.checked,t!=null&&gs(e,"checked",t,!1)}function fa(e,t){e1(e,t);var n=Sn(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")?da(e,t.type,n):t.hasOwnProperty("defaultValue")&&da(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(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 da(e,t,n){(t!=="number"||mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $r=Array.isArray;function fr(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=""+Sn(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 pa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if($r(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sn(n)}}function t1(e,t){var n=Sn(t.value),r=Sn(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 ju(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function n1(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 ha(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?n1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Il,r1=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(Il=Il||document.createElement("div"),Il.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Il.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function il(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wr={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},eh=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(e){eh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wr[t]=Wr[e]})});function l1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=l1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var th=Le({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 ma(e,t){if(t){if(th[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ga(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 ya=null;function ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xa=null,dr=null,pr=null;function Iu(e){if(e=Ml(e)){if(typeof xa!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Yi(t),xa(e.stateNode,e.type,t))}}function o1(e){dr?pr?pr.push(e):pr=[e]:dr=e}function a1(){if(dr){var e=dr,t=pr;if(pr=dr=null,Iu(e),t)for(e=0;e<t.length;e++)Iu(t[e])}}function s1(e,t){return e(t)}function u1(){}var xo=!1;function c1(e,t,n){if(xo)return e(t,n);xo=!0;try{return s1(e,t,n)}finally{xo=!1,(dr!==null||pr!==null)&&(u1(),a1())}}function ol(e,t){var n=e.stateNode;if(n===null)return null;var r=Yi(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(D(231,t,typeof n));return n}var va=!1;if(qt)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){va=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{va=!1}function nh(e,t,n,r,l,i,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Qr=!1,gi=null,yi=!1,ka=null,rh={onError:function(e){Qr=!0,gi=e}};function lh(e,t,n,r,l,i,o,a,s){Qr=!1,gi=null,nh.apply(rh,arguments)}function ih(e,t,n,r,l,i,o,a,s){if(lh.apply(this,arguments),Qr){if(Qr){var u=gi;Qr=!1,gi=null}else throw Error(D(198));yi||(yi=!0,ka=u)}}function Wn(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 f1(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 _u(e){if(Wn(e)!==e)throw Error(D(188))}function oh(e){var t=e.alternate;if(!t){if(t=Wn(e),t===null)throw Error(D(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 _u(l),e;if(i===r)return _u(l),t;i=i.sibling}throw Error(D(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(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function d1(e){return e=oh(e),e!==null?p1(e):null}function p1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=p1(e);if(t!==null)return t;e=e.sibling}return null}var h1=xt.unstable_scheduleCallback,Fu=xt.unstable_cancelCallback,ah=xt.unstable_shouldYield,sh=xt.unstable_requestPaint,Ie=xt.unstable_now,uh=xt.unstable_getCurrentPriorityLevel,ws=xt.unstable_ImmediatePriority,m1=xt.unstable_UserBlockingPriority,xi=xt.unstable_NormalPriority,ch=xt.unstable_LowPriority,g1=xt.unstable_IdlePriority,Bi=null,Zt=null;function fh(e){if(Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(Bi,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:hh,dh=Math.log,ph=Math.LN2;function hh(e){return e>>>=0,e===0?32:31-(dh(e)/ph|0)|0}var _l=64,Fl=4194304;function Br(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 vi(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=Br(a):(i&=o,i!==0&&(r=Br(i)))}else o=n&~l,o!==0?r=Br(o):i!==0&&(r=Br(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-jt(t),l=1<<n,r|=e[n],t&=~l;return r}function mh(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 gh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-jt(i),a=1<<o,s=l[o];s===-1?(!(a&n)||a&r)&&(l[o]=mh(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}function wa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function y1(){var e=_l;return _l<<=1,!(_l&4194240)&&(_l=64),e}function vo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function yh(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-jt(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function Ss(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ve=0;function x1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var v1,Es,k1,w1,S1,Sa=!1,Rl=[],hn=null,mn=null,gn=null,al=new Map,sl=new Map,cn=[],xh="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 Ru(e,t){switch(e){case"focusin":case"focusout":hn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":gn=null;break;case"pointerover":case"pointerout":al.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(t.pointerId)}}function jr(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=Ml(t),t!==null&&Es(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function vh(e,t,n,r,l){switch(t){case"focusin":return hn=jr(hn,e,t,n,r,l),!0;case"dragenter":return mn=jr(mn,e,t,n,r,l),!0;case"mouseover":return gn=jr(gn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return al.set(i,jr(al.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,sl.set(i,jr(sl.get(i)||null,e,t,n,r,l)),!0}return!1}function E1(e){var t=In(e.target);if(t!==null){var n=Wn(t);if(n!==null){if(t=n.tag,t===13){if(t=f1(n),t!==null){e.blockedOn=t,S1(e.priority,function(){k1(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 ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ea(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ya=r,n.target.dispatchEvent(r),ya=null}else return t=Ml(n),t!==null&&Es(t),e.blockedOn=n,!1;t.shift()}return!0}function zu(e,t,n){ni(e)&&n.delete(t)}function kh(){Sa=!1,hn!==null&&ni(hn)&&(hn=null),mn!==null&&ni(mn)&&(mn=null),gn!==null&&ni(gn)&&(gn=null),al.forEach(zu),sl.forEach(zu)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Sa||(Sa=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,kh)))}function ul(e){function t(l){return Ir(l,e)}if(0<Rl.length){Ir(Rl[0],e);for(var n=1;n<Rl.length;n++){var r=Rl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(hn!==null&&Ir(hn,e),mn!==null&&Ir(mn,e),gn!==null&&Ir(gn,e),al.forEach(t),sl.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)E1(n),n.blockedOn===null&&cn.shift()}var hr=en.ReactCurrentBatchConfig,ki=!0;function wh(e,t,n,r){var l=ve,i=hr.transition;hr.transition=null;try{ve=1,Cs(e,t,n,r)}finally{ve=l,hr.transition=i}}function Sh(e,t,n,r){var l=ve,i=hr.transition;hr.transition=null;try{ve=4,Cs(e,t,n,r)}finally{ve=l,hr.transition=i}}function Cs(e,t,n,r){if(ki){var l=Ea(e,t,n,r);if(l===null)To(e,t,r,wi,n),Ru(e,r);else if(vh(l,e,t,n,r))r.stopPropagation();else if(Ru(e,r),t&4&&-1<xh.indexOf(e)){for(;l!==null;){var i=Ml(l);if(i!==null&&v1(i),i=Ea(e,t,n,r),i===null&&To(e,t,r,wi,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else To(e,t,r,null,n)}}var wi=null;function Ea(e,t,n,r){if(wi=null,e=ks(r),e=In(e),e!==null)if(t=Wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=f1(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 wi=e,null}function C1(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(uh()){case ws:return 1;case m1:return 4;case xi:case ch:return 16;case g1:return 536870912;default:return 16}default:return 16}}var dn=null,As=null,ri=null;function A1(){if(ri)return ri;var e,t=As,n=t.length,r,l="value"in dn?dn.value:dn.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 ri=l.slice(e,1<r?1-r:void 0)}function li(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 zl(){return!0}function Du(){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)?zl:Du,this.isPropagationStopped=Du,this}return Le(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=zl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zl)},persist:function(){},isPersistent:zl}),t}var br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ms=kt(br),Al=Le({},br,{view:0,detail:0}),Eh=kt(Al),ko,wo,_r,Ui=Le({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,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!==_r&&(_r&&e.type==="mousemove"?(ko=e.screenX-_r.screenX,wo=e.screenY-_r.screenY):wo=ko=0,_r=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),Vu=kt(Ui),Ch=Le({},Ui,{dataTransfer:0}),Ah=kt(Ch),Mh=Le({},Al,{relatedTarget:0}),So=kt(Mh),bh=Le({},br,{animationName:0,elapsedTime:0,pseudoElement:0}),Nh=kt(bh),Th=Le({},br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hh=kt(Th),Lh=Le({},br,{data:0}),Zu=kt(Lh),Ph={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ih={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _h(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ih[e])?!!t[e]:!1}function bs(){return _h}var Fh=Le({},Al,{key:function(e){if(e.key){var t=Ph[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(e){return e.type==="keypress"?li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rh=kt(Fh),zh=Le({},Ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ou=kt(zh),Dh=Le({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),Vh=kt(Dh),Zh=Le({},br,{propertyName:0,elapsedTime:0,pseudoElement:0}),Oh=kt(Zh),$h=Le({},Ui,{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}),Bh=kt($h),Uh=[9,13,27,32],Ns=qt&&"CompositionEvent"in window,Yr=null;qt&&"documentMode"in document&&(Yr=document.documentMode);var Wh=qt&&"TextEvent"in window&&!Yr,M1=qt&&(!Ns||Yr&&8<Yr&&11>=Yr),$u=" ",Bu=!1;function b1(e,t){switch(e){case"keyup":return Uh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function Qh(e,t){switch(e){case"compositionend":return N1(t);case"keypress":return t.which!==32?null:(Bu=!0,$u);case"textInput":return e=t.data,e===$u&&Bu?null:e;default:return null}}function Yh(e,t){if(tr)return e==="compositionend"||!Ns&&b1(e,t)?(e=A1(),ri=As=dn=null,tr=!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 M1&&t.locale!=="ko"?null:t.data;default:return null}}var Xh={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 Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xh[e.type]:t==="textarea"}function T1(e,t,n,r){o1(r),t=Si(t,"onChange"),0<t.length&&(n=new Ms("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xr=null,cl=null;function qh(e){V1(e,0)}function Wi(e){var t=lr(e);if(J0(t))return e}function Kh(e,t){if(e==="change")return t}var H1=!1;if(qt){var Eo;if(qt){var Co="oninput"in document;if(!Co){var Wu=document.createElement("div");Wu.setAttribute("oninput","return;"),Co=typeof Wu.oninput=="function"}Eo=Co}else Eo=!1;H1=Eo&&(!document.documentMode||9<document.documentMode)}function Qu(){Xr&&(Xr.detachEvent("onpropertychange",L1),cl=Xr=null)}function L1(e){if(e.propertyName==="value"&&Wi(cl)){var t=[];T1(t,cl,e,ks(e)),c1(qh,t)}}function Gh(e,t,n){e==="focusin"?(Qu(),Xr=t,cl=n,Xr.attachEvent("onpropertychange",L1)):e==="focusout"&&Qu()}function Jh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wi(cl)}function em(e,t){if(e==="click")return Wi(t)}function tm(e,t){if(e==="input"||e==="change")return Wi(t)}function nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:nm;function fl(e,t){if(Ft(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(!ia.call(t,l)||!Ft(e[l],t[l]))return!1}return!0}function Yu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xu(e,t){var n=Yu(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=Yu(n)}}function P1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j1(){for(var e=window,t=mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=mi(e.document)}return t}function Ts(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 rm(e){var t=j1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&P1(n.ownerDocument.documentElement,n)){if(r!==null&&Ts(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=Xu(n,i);var o=Xu(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 lm=qt&&"documentMode"in document&&11>=document.documentMode,nr=null,Ca=null,qr=null,Aa=!1;function qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Aa||nr==null||nr!==mi(r)||(r=nr,"selectionStart"in r&&Ts(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}),qr&&fl(qr,r)||(qr=r,r=Si(Ca,"onSelect"),0<r.length&&(t=new Ms("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nr)))}function Dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var rr={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},Ao={},I1={};qt&&(I1=document.createElement("div").style,"AnimationEvent"in window||(delete rr.animationend.animation,delete rr.animationiteration.animation,delete rr.animationstart.animation),"TransitionEvent"in window||delete rr.transitionend.transition);function Qi(e){if(Ao[e])return Ao[e];if(!rr[e])return e;var t=rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in I1)return Ao[e]=t[n];return e}var _1=Qi("animationend"),F1=Qi("animationiteration"),R1=Qi("animationstart"),z1=Qi("transitionend"),D1=new Map,Ku="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 Cn(e,t){D1.set(e,t),Un(t,[e])}for(var Mo=0;Mo<Ku.length;Mo++){var bo=Ku[Mo],im=bo.toLowerCase(),om=bo[0].toUpperCase()+bo.slice(1);Cn(im,"on"+om)}Cn(_1,"onAnimationEnd");Cn(F1,"onAnimationIteration");Cn(R1,"onAnimationStart");Cn("dblclick","onDoubleClick");Cn("focusin","onFocus");Cn("focusout","onBlur");Cn(z1,"onTransitionEnd");xr("onMouseEnter",["mouseout","mouseover"]);xr("onMouseLeave",["mouseout","mouseover"]);xr("onPointerEnter",["pointerout","pointerover"]);xr("onPointerLeave",["pointerout","pointerover"]);Un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Un("onBeforeInput",["compositionend","keypress","textInput","paste"]);Un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),am=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ur));function Gu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ih(r,t,void 0,e),e.currentTarget=null}function V1(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;Gu(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;Gu(l,a,u),i=s}}}if(yi)throw e=ka,yi=!1,ka=null,e}function Ce(e,t){var n=t[Ha];n===void 0&&(n=t[Ha]=new Set);var r=e+"__bubble";n.has(r)||(Z1(t,e,2,!1),n.add(r))}function No(e,t,n){var r=0;t&&(r|=4),Z1(n,e,r,t)}var Vl="_reactListening"+Math.random().toString(36).slice(2);function dl(e){if(!e[Vl]){e[Vl]=!0,Y0.forEach(function(n){n!=="selectionchange"&&(am.has(n)||No(n,!1,e),No(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vl]||(t[Vl]=!0,No("selectionchange",!1,t))}}function Z1(e,t,n,r){switch(C1(t)){case 1:var l=wh;break;case 4:l=Sh;break;default:l=Cs}n=l.bind(null,t,n,e),l=void 0,!va||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 To(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=In(a),o===null)return;if(s=o.tag,s===5||s===6){r=i=o;continue e}a=a.parentNode}}r=r.return}c1(function(){var u=i,d=ks(n),f=[];e:{var h=D1.get(e);if(h!==void 0){var p=Ms,v=e;switch(e){case"keypress":if(li(n)===0)break e;case"keydown":case"keyup":p=Rh;break;case"focusin":v="focus",p=So;break;case"focusout":v="blur",p=So;break;case"beforeblur":case"afterblur":p=So;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=Vu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Ah;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Vh;break;case _1:case F1:case R1:p=Nh;break;case z1:p=Oh;break;case"scroll":p=Eh;break;case"wheel":p=Bh;break;case"copy":case"cut":case"paste":p=Hh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ou}var w=(t&4)!==0,H=!w&&e==="scroll",g=w?h!==null?h+"Capture":null:h;w=[];for(var y=u,x;y!==null;){x=y;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,g!==null&&(N=ol(y,g),N!=null&&w.push(pl(y,N,x)))),H)break;y=y.return}0<w.length&&(h=new p(h,v,null,n,d),f.push({event:h,listeners:w}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==ya&&(v=n.relatedTarget||n.fromElement)&&(In(v)||v[Kt]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=u,v=v?In(v):null,v!==null&&(H=Wn(v),v!==H||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=u),p!==v)){if(w=Vu,N="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(w=Ou,N="onPointerLeave",g="onPointerEnter",y="pointer"),H=p==null?h:lr(p),x=v==null?h:lr(v),h=new w(N,y+"leave",p,n,d),h.target=H,h.relatedTarget=x,N=null,In(d)===u&&(w=new w(g,y+"enter",v,n,d),w.target=x,w.relatedTarget=H,N=w),H=N,p&&v)t:{for(w=p,g=v,y=0,x=w;x;x=Yn(x))y++;for(x=0,N=g;N;N=Yn(N))x++;for(;0<y-x;)w=Yn(w),y--;for(;0<x-y;)g=Yn(g),x--;for(;y--;){if(w===g||g!==null&&w===g.alternate)break t;w=Yn(w),g=Yn(g)}w=null}else w=null;p!==null&&Ju(f,h,p,w,!1),v!==null&&H!==null&&Ju(f,H,v,w,!0)}}e:{if(h=u?lr(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var _=Kh;else if(Uu(h))if(H1)_=tm;else{_=Jh;var M=Gh}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=em);if(_&&(_=_(e,u))){T1(f,_,n,d);break e}M&&M(e,h,u),e==="focusout"&&(M=h._wrapperState)&&M.controlled&&h.type==="number"&&da(h,"number",h.value)}switch(M=u?lr(u):window,e){case"focusin":(Uu(M)||M.contentEditable==="true")&&(nr=M,Ca=u,qr=null);break;case"focusout":qr=Ca=nr=null;break;case"mousedown":Aa=!0;break;case"contextmenu":case"mouseup":case"dragend":Aa=!1,qu(f,n,d);break;case"selectionchange":if(lm)break;case"keydown":case"keyup":qu(f,n,d)}var R;if(Ns)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else tr?b1(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(M1&&n.locale!=="ko"&&(tr||z!=="onCompositionStart"?z==="onCompositionEnd"&&tr&&(R=A1()):(dn=d,As="value"in dn?dn.value:dn.textContent,tr=!0)),M=Si(u,z),0<M.length&&(z=new Zu(z,e,null,n,d),f.push({event:z,listeners:M}),R?z.data=R:(R=N1(n),R!==null&&(z.data=R)))),(R=Wh?Qh(e,n):Yh(e,n))&&(u=Si(u,"onBeforeInput"),0<u.length&&(d=new Zu("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=R))}V1(f,t)})}function pl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=ol(e,n),i!=null&&r.unshift(pl(e,i,l)),i=ol(e,t),i!=null&&r.push(pl(e,i,l))),e=e.return}return r}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ju(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=ol(n,i),s!=null&&o.unshift(pl(n,s,a))):l||(s=ol(n,i),s!=null&&o.push(pl(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var sm=/\r\n?/g,um=/\u0000|\uFFFD/g;function ec(e){return(typeof e=="string"?e:""+e).replace(sm,`
|
|
38
|
-
`).replace(um,"")}function Zl(e,t,n){if(t=ec(t),ec(e)!==t&&n)throw Error(D(425))}function Ei(){}var Ma=null,ba=null;function Na(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 Ta=typeof setTimeout=="function"?setTimeout:void 0,cm=typeof clearTimeout=="function"?clearTimeout:void 0,tc=typeof Promise=="function"?Promise:void 0,fm=typeof queueMicrotask=="function"?queueMicrotask:typeof tc<"u"?function(e){return tc.resolve(null).then(e).catch(dm)}:Ta;function dm(e){setTimeout(function(){throw e})}function Ho(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),ul(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);ul(t)}function yn(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 nc(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 Nr=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Nr,hl="__reactProps$"+Nr,Kt="__reactContainer$"+Nr,Ha="__reactEvents$"+Nr,pm="__reactListeners$"+Nr,hm="__reactHandles$"+Nr;function In(e){var t=e[Vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kt]||n[Vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=nc(e);e!==null;){if(n=e[Vt])return n;e=nc(e)}return t}e=n,n=e.parentNode}return null}function Ml(e){return e=e[Vt]||e[Kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Yi(e){return e[hl]||null}var La=[],ir=-1;function An(e){return{current:e}}function Ae(e){0>ir||(e.current=La[ir],La[ir]=null,ir--)}function Ee(e,t){ir++,La[ir]=e.current,e.current=t}var En={},Xe=An(En),at=An(!1),Dn=En;function vr(e,t){var n=e.type.contextTypes;if(!n)return En;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 Ci(){Ae(at),Ae(Xe)}function rc(e,t,n){if(Xe.current!==En)throw Error(D(168));Ee(Xe,t),Ee(at,n)}function O1(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(D(108,Gp(e)||"Unknown",l));return Le({},n,r)}function Ai(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,Dn=Xe.current,Ee(Xe,e),Ee(at,at.current),!0}function lc(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=O1(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,Ae(at),Ae(Xe),Ee(Xe,e)):Ae(at),Ee(at,n)}var Wt=null,Xi=!1,Lo=!1;function $1(e){Wt===null?Wt=[e]:Wt.push(e)}function mm(e){Xi=!0,$1(e)}function Mn(){if(!Lo&&Wt!==null){Lo=!0;var e=0,t=ve;try{var n=Wt;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wt=null,Xi=!1}catch(l){throw Wt!==null&&(Wt=Wt.slice(e+1)),h1(ws,Mn),l}finally{ve=t,Lo=!1}}return null}var or=[],ar=0,Mi=null,bi=0,wt=[],St=0,Vn=null,Qt=1,Yt="";function Ln(e,t){or[ar++]=bi,or[ar++]=Mi,Mi=e,bi=t}function B1(e,t,n){wt[St++]=Qt,wt[St++]=Yt,wt[St++]=Vn,Vn=e;var r=Qt;e=Yt;var l=32-jt(r)-1;r&=~(1<<l),n+=1;var i=32-jt(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Qt=1<<32-jt(t)+l|n<<l|r,Yt=i+e}else Qt=1<<i|n<<l|r,Yt=e}function Hs(e){e.return!==null&&(Ln(e,1),B1(e,1,0))}function Ls(e){for(;e===Mi;)Mi=or[--ar],or[ar]=null,bi=or[--ar],or[ar]=null;for(;e===Vn;)Vn=wt[--St],wt[St]=null,Yt=wt[--St],wt[St]=null,Qt=wt[--St],wt[St]=null}var gt=null,mt=null,Me=!1,Pt=null;function U1(e,t){var n=Ct(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 ic(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=yn(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:Qt,overflow:Yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,gt=e,mt=null,!0):!1;default:return!1}}function Pa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ja(e){if(Me){var t=mt;if(t){var n=t;if(!ic(e,t)){if(Pa(e))throw Error(D(418));t=yn(n.nextSibling);var r=gt;t&&ic(e,t)?U1(r,n):(e.flags=e.flags&-4097|2,Me=!1,gt=e)}}else{if(Pa(e))throw Error(D(418));e.flags=e.flags&-4097|2,Me=!1,gt=e}}}function oc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function Ol(e){if(e!==gt)return!1;if(!Me)return oc(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Na(e.type,e.memoizedProps)),t&&(t=mt)){if(Pa(e))throw W1(),Error(D(418));for(;t;)U1(e,t),t=yn(t.nextSibling)}if(oc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mt=yn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mt=null}}else mt=gt?yn(e.stateNode.nextSibling):null;return!0}function W1(){for(var e=mt;e;)e=yn(e.nextSibling)}function kr(){mt=gt=null,Me=!1}function Ps(e){Pt===null?Pt=[e]:Pt.push(e)}var gm=en.ReactCurrentBatchConfig;function Fr(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(D(309));var r=n.stateNode}if(!r)throw Error(D(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(D(284));if(!n._owner)throw Error(D(290,e))}return e}function $l(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ac(e){var t=e._init;return t(e._payload)}function Q1(e){function t(g,y){if(e){var x=g.deletions;x===null?(g.deletions=[y],g.flags|=16):x.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function l(g,y){return g=wn(g,y),g.index=0,g.sibling=null,g}function i(g,y,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<y?(g.flags|=2,y):x):(g.flags|=2,y)):(g.flags|=1048576,y)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,y,x,N){return y===null||y.tag!==6?(y=zo(x,g.mode,N),y.return=g,y):(y=l(y,x),y.return=g,y)}function s(g,y,x,N){var _=x.type;return _===er?d(g,y,x.props.children,N,x.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===sn&&ac(_)===y.type)?(N=l(y,x.props),N.ref=Fr(g,y,x),N.return=g,N):(N=fi(x.type,x.key,x.props,null,g.mode,N),N.ref=Fr(g,y,x),N.return=g,N)}function u(g,y,x,N){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Do(x,g.mode,N),y.return=g,y):(y=l(y,x.children||[]),y.return=g,y)}function d(g,y,x,N,_){return y===null||y.tag!==7?(y=zn(x,g.mode,N,_),y.return=g,y):(y=l(y,x),y.return=g,y)}function f(g,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=zo(""+y,g.mode,x),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Pl:return x=fi(y.type,y.key,y.props,null,g.mode,x),x.ref=Fr(g,null,y),x.return=g,x;case Jn:return y=Do(y,g.mode,x),y.return=g,y;case sn:var N=y._init;return f(g,N(y._payload),x)}if($r(y)||Lr(y))return y=zn(y,g.mode,x,null),y.return=g,y;$l(g,y)}return null}function h(g,y,x,N){var _=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(g,y,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Pl:return x.key===_?s(g,y,x,N):null;case Jn:return x.key===_?u(g,y,x,N):null;case sn:return _=x._init,h(g,y,_(x._payload),N)}if($r(x)||Lr(x))return _!==null?null:d(g,y,x,N,null);$l(g,x)}return null}function p(g,y,x,N,_){if(typeof N=="string"&&N!==""||typeof N=="number")return g=g.get(x)||null,a(y,g,""+N,_);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Pl:return g=g.get(N.key===null?x:N.key)||null,s(y,g,N,_);case Jn:return g=g.get(N.key===null?x:N.key)||null,u(y,g,N,_);case sn:var M=N._init;return p(g,y,x,M(N._payload),_)}if($r(N)||Lr(N))return g=g.get(x)||null,d(y,g,N,_,null);$l(y,N)}return null}function v(g,y,x,N){for(var _=null,M=null,R=y,z=y=0,W=null;R!==null&&z<x.length;z++){R.index>z?(W=R,R=null):W=R.sibling;var A=h(g,R,x[z],N);if(A===null){R===null&&(R=W);break}e&&R&&A.alternate===null&&t(g,R),y=i(A,y,z),M===null?_=A:M.sibling=A,M=A,R=W}if(z===x.length)return n(g,R),Me&&Ln(g,z),_;if(R===null){for(;z<x.length;z++)R=f(g,x[z],N),R!==null&&(y=i(R,y,z),M===null?_=R:M.sibling=R,M=R);return Me&&Ln(g,z),_}for(R=r(g,R);z<x.length;z++)W=p(R,g,z,x[z],N),W!==null&&(e&&W.alternate!==null&&R.delete(W.key===null?z:W.key),y=i(W,y,z),M===null?_=W:M.sibling=W,M=W);return e&&R.forEach(function($){return t(g,$)}),Me&&Ln(g,z),_}function w(g,y,x,N){var _=Lr(x);if(typeof _!="function")throw Error(D(150));if(x=_.call(x),x==null)throw Error(D(151));for(var M=_=null,R=y,z=y=0,W=null,A=x.next();R!==null&&!A.done;z++,A=x.next()){R.index>z?(W=R,R=null):W=R.sibling;var $=h(g,R,A.value,N);if($===null){R===null&&(R=W);break}e&&R&&$.alternate===null&&t(g,R),y=i($,y,z),M===null?_=$:M.sibling=$,M=$,R=W}if(A.done)return n(g,R),Me&&Ln(g,z),_;if(R===null){for(;!A.done;z++,A=x.next())A=f(g,A.value,N),A!==null&&(y=i(A,y,z),M===null?_=A:M.sibling=A,M=A);return Me&&Ln(g,z),_}for(R=r(g,R);!A.done;z++,A=x.next())A=p(R,g,z,A.value,N),A!==null&&(e&&A.alternate!==null&&R.delete(A.key===null?z:A.key),y=i(A,y,z),M===null?_=A:M.sibling=A,M=A);return e&&R.forEach(function(U){return t(g,U)}),Me&&Ln(g,z),_}function H(g,y,x,N){if(typeof x=="object"&&x!==null&&x.type===er&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Pl:e:{for(var _=x.key,M=y;M!==null;){if(M.key===_){if(_=x.type,_===er){if(M.tag===7){n(g,M.sibling),y=l(M,x.props.children),y.return=g,g=y;break e}}else if(M.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===sn&&ac(_)===M.type){n(g,M.sibling),y=l(M,x.props),y.ref=Fr(g,M,x),y.return=g,g=y;break e}n(g,M);break}else t(g,M);M=M.sibling}x.type===er?(y=zn(x.props.children,g.mode,N,x.key),y.return=g,g=y):(N=fi(x.type,x.key,x.props,null,g.mode,N),N.ref=Fr(g,y,x),N.return=g,g=N)}return o(g);case Jn:e:{for(M=x.key;y!==null;){if(y.key===M)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=l(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Do(x,g.mode,N),y.return=g,g=y}return o(g);case sn:return M=x._init,H(g,y,M(x._payload),N)}if($r(x))return v(g,y,x,N);if(Lr(x))return w(g,y,x,N);$l(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=l(y,x),y.return=g,g=y):(n(g,y),y=zo(x,g.mode,N),y.return=g,g=y),o(g)):n(g,y)}return H}var wr=Q1(!0),Y1=Q1(!1),Ni=An(null),Ti=null,sr=null,js=null;function Is(){js=sr=Ti=null}function _s(e){var t=Ni.current;Ae(Ni),e._currentValue=t}function Ia(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 mr(e,t){Ti=e,js=sr=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(js!==e)if(e={context:e,memoizedValue:t,next:null},sr===null){if(Ti===null)throw Error(D(308));sr=e,Ti.dependencies={lanes:0,firstContext:e}}else sr=sr.next=e;return t}var _n=null;function Fs(e){_n===null?_n=[e]:_n.push(e)}function X1(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Fs(t)):(n.next=l.next,l.next=n),t.interleaved=n,Gt(e,r)}function Gt(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 un=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function q1(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 Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Gt(e,n)}return l=r.interleaved,l===null?(t.next=t,Fs(r)):(t.next=l.next,l.next=t),r.interleaved=t,Gt(e,n)}function ii(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,Ss(e,n)}}function sc(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 Hi(e,t,n,r){var l=e.updateQueue;un=!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 d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=l.baseState;o=0,d=u=s=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,w=a;switch(h=t,p=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(p,f,h);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,h=typeof v=="function"?v.call(p,f,h):v,h==null)break e;f=Le({},f,h);break e;case 2:un=!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},d===null?(u=d=p,s=f):d=d.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(d===null&&(s=f),l.baseState=s,l.firstBaseUpdate=u,l.lastBaseUpdate=d,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);On|=o,e.lanes=o,e.memoizedState=f}}function uc(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(D(191,l));l.call(r)}}}var bl={},Ot=An(bl),ml=An(bl),gl=An(bl);function Fn(e){if(e===bl)throw Error(D(174));return e}function zs(e,t){switch(Ee(gl,t),Ee(ml,e),Ee(Ot,bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ha(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ha(t,e)}Ae(Ot),Ee(Ot,t)}function Sr(){Ae(Ot),Ae(ml),Ae(gl)}function K1(e){Fn(gl.current);var t=Fn(Ot.current),n=ha(t,e.type);t!==n&&(Ee(ml,e),Ee(Ot,n))}function Ds(e){ml.current===e&&(Ae(Ot),Ae(ml))}var Te=An(0);function Li(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 Po=[];function Vs(){for(var e=0;e<Po.length;e++)Po[e]._workInProgressVersionPrimary=null;Po.length=0}var oi=en.ReactCurrentDispatcher,jo=en.ReactCurrentBatchConfig,Zn=0,He=null,ze=null,Ve=null,Pi=!1,Kr=!1,yl=0,ym=0;function Ue(){throw Error(D(321))}function Zs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ft(e[n],t[n]))return!1;return!0}function Os(e,t,n,r,l,i){if(Zn=i,He=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=e===null||e.memoizedState===null?wm:Sm,e=n(r,l),Kr){i=0;do{if(Kr=!1,yl=0,25<=i)throw Error(D(301));i+=1,Ve=ze=null,t.updateQueue=null,oi.current=Em,e=n(r,l)}while(Kr)}if(oi.current=ji,t=ze!==null&&ze.next!==null,Zn=0,Ve=ze=He=null,Pi=!1,t)throw Error(D(300));return e}function $s(){var e=yl!==0;return yl=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?He.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function bt(){if(ze===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ve===null?He.memoizedState:Ve.next;if(t!==null)Ve=t,ze=e;else{if(e===null)throw Error(D(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ve===null?He.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function xl(e,t){return typeof t=="function"?t(e):t}function Io(e){var t=bt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=ze,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 d=u.lane;if((Zn&d)===d)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 f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=f,o=r):s=s.next=f,He.lanes|=d,On|=d}u=u.next}while(u!==null&&u!==i);s===null?o=r:s.next=a,Ft(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,He.lanes|=i,On|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _o(e){var t=bt(),n=t.queue;if(n===null)throw Error(D(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);Ft(i,t.memoizedState)||(ot=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function G1(){}function J1(e,t){var n=He,r=bt(),l=t(),i=!Ft(r.memoizedState,l);if(i&&(r.memoizedState=l,ot=!0),r=r.queue,Bs(nf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,vl(9,tf.bind(null,n,r,l,t),void 0,null),Ze===null)throw Error(D(349));Zn&30||ef(n,t,l)}return l}function ef(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tf(e,t,n,r){t.value=n,t.getSnapshot=r,rf(t)&&lf(e)}function nf(e,t,n){return n(function(){rf(t)&&lf(e)})}function rf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ft(e,n)}catch{return!0}}function lf(e){var t=Gt(e,1);t!==null&&It(t,e,1,-1)}function cc(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},t.queue=e,e=e.dispatch=km.bind(null,He,e),[t.memoizedState,e]}function vl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.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 of(){return bt().memoizedState}function ai(e,t,n,r){var l=zt();He.flags|=e,l.memoizedState=vl(1|t,n,void 0,r===void 0?null:r)}function qi(e,t,n,r){var l=bt();r=r===void 0?null:r;var i=void 0;if(ze!==null){var o=ze.memoizedState;if(i=o.destroy,r!==null&&Zs(r,o.deps)){l.memoizedState=vl(t,n,i,r);return}}He.flags|=e,l.memoizedState=vl(1|t,n,i,r)}function fc(e,t){return ai(8390656,8,e,t)}function Bs(e,t){return qi(2048,8,e,t)}function af(e,t){return qi(4,2,e,t)}function sf(e,t){return qi(4,4,e,t)}function uf(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 cf(e,t,n){return n=n!=null?n.concat([e]):null,qi(4,4,uf.bind(null,t,e),n)}function Us(){}function ff(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function df(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pf(e,t,n){return Zn&21?(Ft(n,t)||(n=y1(),He.lanes|=n,On|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=n)}function xm(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var r=jo.transition;jo.transition={};try{e(!1),t()}finally{ve=n,jo.transition=r}}function hf(){return bt().memoizedState}function vm(e,t,n){var r=kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mf(e))gf(t,n);else if(n=X1(e,t,n,r),n!==null){var l=et();It(n,e,r,l),yf(n,t,r)}}function km(e,t,n){var r=kn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mf(e))gf(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,Ft(a,o)){var s=t.interleaved;s===null?(l.next=l,Fs(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=X1(e,t,l,r),n!==null&&(l=et(),It(n,e,r,l),yf(n,t,r))}}function mf(e){var t=e.alternate;return e===He||t!==null&&t===He}function gf(e,t){Kr=Pi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ss(e,n)}}var ji={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},wm={readContext:Mt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:fc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ai(4194308,4,uf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return ai(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();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=vm.bind(null,He,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:cc,useDebugValue:Us,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=cc(!1),t=e[0];return e=xm.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=He,l=zt();if(Me){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Ze===null)throw Error(D(349));Zn&30||ef(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,fc(nf.bind(null,r,i,e),[e]),r.flags|=2048,vl(9,tf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=Ze.identifierPrefix;if(Me){var n=Yt,r=Qt;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ym++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sm={readContext:Mt,useCallback:ff,useContext:Mt,useEffect:Bs,useImperativeHandle:cf,useInsertionEffect:af,useLayoutEffect:sf,useMemo:df,useReducer:Io,useRef:of,useState:function(){return Io(xl)},useDebugValue:Us,useDeferredValue:function(e){var t=bt();return pf(t,ze.memoizedState,e)},useTransition:function(){var e=Io(xl)[0],t=bt().memoizedState;return[e,t]},useMutableSource:G1,useSyncExternalStore:J1,useId:hf,unstable_isNewReconciler:!1},Em={readContext:Mt,useCallback:ff,useContext:Mt,useEffect:Bs,useImperativeHandle:cf,useInsertionEffect:af,useLayoutEffect:sf,useMemo:df,useReducer:_o,useRef:of,useState:function(){return _o(xl)},useDebugValue:Us,useDeferredValue:function(e){var t=bt();return ze===null?t.memoizedState=e:pf(t,ze.memoizedState,e)},useTransition:function(){var e=_o(xl)[0],t=bt().memoizedState;return[e,t]},useMutableSource:G1,useSyncExternalStore:J1,useId:hf,unstable_isNewReconciler:!1};function Ht(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _a(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ki={isMounted:function(e){return(e=e._reactInternals)?Wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),l=kn(e),i=Xt(r,l);i.payload=t,n!=null&&(i.callback=n),t=xn(e,i,l),t!==null&&(It(t,e,l,r),ii(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),l=kn(e),i=Xt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=xn(e,i,l),t!==null&&(It(t,e,l,r),ii(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=kn(e),l=Xt(n,r);l.tag=2,t!=null&&(l.callback=t),t=xn(e,l,r),t!==null&&(It(t,e,r,n),ii(t,e,r))}};function dc(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?!fl(n,r)||!fl(l,i):!0}function xf(e,t,n){var r=!1,l=En,i=t.contextType;return typeof i=="object"&&i!==null?i=Mt(i):(l=st(t)?Dn:Xe.current,r=t.contextTypes,i=(r=r!=null)?vr(e,l):En),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ki,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function pc(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&&Ki.enqueueReplaceState(t,t.state,null)}function Fa(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Rs(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Mt(i):(i=st(t)?Dn:Xe.current,l.context=vr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(_a(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&&Ki.enqueueReplaceState(l,l.state,null),Hi(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Er(e,t){try{var n="",r=t;do n+=Kp(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 Fo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ra(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cm=typeof WeakMap=="function"?WeakMap:Map;function vf(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_i||(_i=!0,Qa=r),Ra(e,t)},n}function kf(e,t,n){n=Xt(-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(){Ra(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ra(e,t),typeof r!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function hc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cm;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 mc(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 gc(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=Xt(-1,1),t.tag=2,xn(n,t,1))),n.lanes|=1),e)}var Am=en.ReactCurrentOwner,ot=!1;function Ge(e,t,n,r){t.child=e===null?Y1(t,null,n,r):wr(t,e.child,n,r)}function yc(e,t,n,r,l){n=n.render;var i=t.ref;return mr(t,l),r=Os(e,t,n,r,i,l),n=$s(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Jt(e,t,l)):(Me&&n&&Hs(t),t.flags|=1,Ge(e,t,r,l),t.child)}function xc(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Js(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,wf(e,t,i,r,l)):(e=fi(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:fl,n(o,r)&&e.ref===t.ref)return Jt(e,t,l)}return t.flags|=1,e=wn(i,r),e.ref=t.ref,e.return=t,t.child=e}function wf(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(fl(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,Jt(e,t,l)}return za(e,t,n,r,l)}function Sf(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},Ee(cr,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,Ee(cr,ht),ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ee(cr,ht),ht|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ee(cr,ht),ht|=r;return Ge(e,t,l,n),t.child}function Ef(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function za(e,t,n,r,l){var i=st(n)?Dn:Xe.current;return i=vr(t,i),mr(t,l),n=Os(e,t,n,r,i,l),r=$s(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Jt(e,t,l)):(Me&&r&&Hs(t),t.flags|=1,Ge(e,t,n,l),t.child)}function vc(e,t,n,r,l){if(st(n)){var i=!0;Ai(t)}else i=!1;if(mr(t,l),t.stateNode===null)si(e,t),xf(t,n,r),Fa(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)?Dn:Xe.current,u=vr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&pc(t,o,r,u),un=!1;var h=t.memoizedState;o.state=h,Hi(t,r,o,l),s=t.memoizedState,a!==r||h!==s||at.current||un?(typeof d=="function"&&(_a(t,n,d,r),s=t.memoizedState),(a=un||dc(t,n,a,r,h,s,u))?(f||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,q1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ht(t.type,a),o.props=u,f=t.pendingProps,h=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Mt(s):(s=st(n)?Dn:Xe.current,s=vr(t,s));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==s)&&pc(t,o,r,s),un=!1,h=t.memoizedState,o.state=h,Hi(t,r,o,l);var v=t.memoizedState;a!==f||h!==v||at.current||un?(typeof p=="function"&&(_a(t,n,p,r),v=t.memoizedState),(u=un||dc(t,n,u,r,h,v,s)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,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=v),o.props=r,o.state=v,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 Da(e,t,n,r,i,l)}function Da(e,t,n,r,l,i){Ef(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&lc(t,n,!1),Jt(e,t,i);r=t.stateNode,Am.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=wr(t,e.child,null,i),t.child=wr(t,null,a,i)):Ge(e,t,a,i),t.memoizedState=r.state,l&&lc(t,n,!0),t.child}function Cf(e){var t=e.stateNode;t.pendingContext?rc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rc(e,t.context,!1),zs(e,t.containerInfo)}function kc(e,t,n,r,l){return kr(),Ps(l),t.flags|=256,Ge(e,t,n,r),t.child}var Va={dehydrated:null,treeContext:null,retryLane:0};function Za(e){return{baseLanes:e,cachePool:null,transitions:null}}function Af(e,t,n){var r=t.pendingProps,l=Te.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),Ee(Te,l&1),e===null)return ja(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=eo(o,r,0,null),e=zn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Za(n),t.memoizedState=Va,e):Ws(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Mm(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=wn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?i=wn(a,i):(i=zn(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?Za(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Va,r}return i=e.child,e=i.sibling,r=wn(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 Ws(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bl(e,t,n,r){return r!==null&&Ps(r),wr(t,e.child,null,n),e=Ws(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mm(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Fo(Error(D(422))),Bl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=eo({mode:"visible",children:r.children},l,0,null),i=zn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&wr(t,e.child,null,o),t.child.memoizedState=Za(o),t.memoizedState=Va,i);if(!(t.mode&1))return Bl(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(D(419)),r=Fo(i,r,void 0),Bl(e,t,o,r)}if(a=(o&e.childLanes)!==0,ot||a){if(r=Ze,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,Gt(e,l),It(r,e,l,-1))}return Gs(),r=Fo(Error(D(421))),Bl(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Dm.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,mt=yn(l.nextSibling),gt=t,Me=!0,Pt=null,e!==null&&(wt[St++]=Qt,wt[St++]=Yt,wt[St++]=Vn,Qt=e.id,Yt=e.overflow,Vn=t),t=Ws(t,r.children),t.flags|=4096,t)}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ia(e.return,t,n)}function Ro(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 Mf(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Ge(e,t,r.children,n),r=Te.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&&wc(e,n,t);else if(e.tag===19)wc(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(Ee(Te,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&&Li(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ro(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&&Li(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ro(t,!0,n,null,i);break;case"together":Ro(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function si(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bm(e,t,n){switch(t.tag){case 3:Cf(t),kr();break;case 5:K1(t);break;case 1:st(t.type)&&Ai(t);break;case 4:zs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Ee(Ni,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?Af(e,t,n):(Ee(Te,Te.current&1),e=Jt(e,t,n),e!==null?e.sibling:null);Ee(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ee(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,Sf(e,t,n)}return Jt(e,t,n)}var bf,Oa,Nf,Tf;bf=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}};Oa=function(){};Nf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Fn(Ot.current);var i=null;switch(n){case"input":l=ca(e,l),r=ca(e,r),i=[];break;case"select":l=Le({},l,{value:void 0}),r=Le({},r,{value:void 0}),i=[];break;case"textarea":l=pa(e,l),r=pa(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ei)}ma(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"&&(ll.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"&&(ll.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Ce("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)}};Tf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Rr(e,t){if(!Me)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 Nm(e,t,n){var r=t.pendingProps;switch(Ls(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)&&Ci(),We(t),null;case 3:return r=t.stateNode,Sr(),Ae(at),Ae(Xe),Vs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ol(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pt!==null&&(qa(Pt),Pt=null))),Oa(e,t),We(t),null;case 5:Ds(t);var l=Fn(gl.current);if(n=t.type,e!==null&&t.stateNode!=null)Nf(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return We(t),null}if(e=Fn(Ot.current),Ol(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Vt]=t,r[hl]=i,e=(t.mode&1)!==0,n){case"dialog":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(l=0;l<Ur.length;l++)Ce(Ur[l],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":Hu(r,i),Ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ce("invalid",r);break;case"textarea":Pu(r,i),Ce("invalid",r)}ma(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&&Zl(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Zl(r.textContent,a,e),l=["children",""+a]):ll.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ce("scroll",r)}switch(n){case"input":jl(r),Lu(r,i,!0);break;case"textarea":jl(r),ju(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ei)}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=n1(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[Vt]=t,e[hl]=r,bf(e,t,!1,!1),t.stateNode=e;e:{switch(o=ga(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),l=r;break;case"iframe":case"object":case"embed":Ce("load",e),l=r;break;case"video":case"audio":for(l=0;l<Ur.length;l++)Ce(Ur[l],e);l=r;break;case"source":Ce("error",e),l=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),l=r;break;case"details":Ce("toggle",e),l=r;break;case"input":Hu(e,r),l=ca(e,r),Ce("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Le({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":Pu(e,r),l=pa(e,r),Ce("invalid",e);break;default:l=r}ma(n,l),a=l;for(i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="style"?i1(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&r1(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&il(e,s):typeof s=="number"&&il(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ll.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Ce("scroll",e):s!=null&&gs(e,i,s,o))}switch(n){case"input":jl(e),Lu(e,r,!1);break;case"textarea":jl(e),ju(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?fr(e,!!r.multiple,i,!1):r.defaultValue!=null&&fr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ei)}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)Tf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Fn(gl.current),Fn(Ot.current),Ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vt]=t,(i=r.nodeValue!==n)&&(e=gt,e!==null))switch(e.tag){case 3:Zl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vt]=t,t.stateNode=r}return We(t),null;case 13:if(Ae(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&mt!==null&&t.mode&1&&!(t.flags&128))W1(),kr(),t.flags|=98560,i=!1;else if(i=Ol(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[Vt]=t}else kr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else Pt!==null&&(qa(Pt),Pt=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||Te.current&1?De===0&&(De=3):Gs())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Sr(),Oa(e,t),e===null&&dl(t.stateNode.containerInfo),We(t),null;case 10:return _s(t.type._context),We(t),null;case 17:return st(t.type)&&Ci(),We(t),null;case 19:if(Ae(Te),i=t.memoizedState,i===null)return We(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Rr(i,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Li(e),o!==null){for(t.flags|=128,Rr(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 Ee(Te,Te.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ie()>Cr&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Li(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Me)return We(t),null}else 2*Ie()-i.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,Rr(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=Ie(),t.sibling=null,n=Te.current,Ee(Te,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Ks(),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(D(156,t.tag))}function Tm(e,t){switch(Ls(t),t.tag){case 1:return st(t.type)&&Ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sr(),Ae(at),Ae(Xe),Vs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ds(t),null;case 13:if(Ae(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Te),null;case 4:return Sr(),null;case 10:return _s(t.type._context),null;case 22:case 23:return Ks(),null;case 24:return null;default:return null}}var Ul=!1,Qe=!1,Hm=typeof WeakSet=="function"?WeakSet:Set,Y=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function $a(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Sc=!1;function Lm(e,t){if(Ma=ki,e=j1(),Ts(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,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||l!==0&&f.nodeType!==3||(a=o+l),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===l&&(a=o),h===i&&++d===r&&(s=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ba={focusedElem:e,selectionRange:n},ki=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,H=v.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ht(t.type,w),H);g.__reactInternalSnapshotBeforeUpdate=y}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(D(163))}}catch(N){Pe(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=Sc,Sc=!1,v}function Gr(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&&$a(t,n,i)}l=l.next}while(l!==r)}}function Gi(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 Ba(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 Hf(e){var t=e.alternate;t!==null&&(e.alternate=null,Hf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[hl],delete t[Ha],delete t[pm],delete t[hm])),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 Lf(e){return e.tag===5||e.tag===3||e.tag===4}function Ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lf(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 Ua(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=Ei));else if(r!==4&&(e=e.child,e!==null))for(Ua(e,t,n),e=e.sibling;e!==null;)Ua(e,t,n),e=e.sibling}function Wa(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(Wa(e,t,n),e=e.sibling;e!==null;)Wa(e,t,n),e=e.sibling}var Oe=null,Lt=!1;function ln(e,t,n){for(n=n.child;n!==null;)Pf(e,t,n),n=n.sibling}function Pf(e,t,n){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(Bi,n)}catch{}switch(n.tag){case 5:Qe||ur(n,t);case 6:var r=Oe,l=Lt;Oe=null,ln(e,t,n),Oe=r,Lt=l,Oe!==null&&(Lt?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Lt?(e=Oe,n=n.stateNode,e.nodeType===8?Ho(e.parentNode,n):e.nodeType===1&&Ho(e,n),ul(e)):Ho(Oe,n.stateNode));break;case 4:r=Oe,l=Lt,Oe=n.stateNode.containerInfo,Lt=!0,ln(e,t,n),Oe=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)&&$a(n,t,o),l=l.next}while(l!==r)}ln(e,t,n);break;case 1:if(!Qe&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,ln(e,t,n),Qe=r):ln(e,t,n);break;default:ln(e,t,n)}}function Cc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hm),t.forEach(function(r){var l=Vm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Tt(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:Oe=a.stateNode,Lt=!1;break e;case 3:Oe=a.stateNode.containerInfo,Lt=!0;break e;case 4:Oe=a.stateNode.containerInfo,Lt=!0;break e}a=a.return}if(Oe===null)throw Error(D(160));Pf(i,o,l),Oe=null,Lt=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(u){Pe(l,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jf(t,e),t=t.sibling}function jf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),Rt(e),r&4){try{Gr(3,e,e.return),Gi(3,e)}catch(w){Pe(e,e.return,w)}try{Gr(5,e,e.return)}catch(w){Pe(e,e.return,w)}}break;case 1:Tt(t,e),Rt(e),r&512&&n!==null&&ur(n,n.return);break;case 5:if(Tt(t,e),Rt(e),r&512&&n!==null&&ur(n,n.return),e.flags&32){var l=e.stateNode;try{il(l,"")}catch(w){Pe(e,e.return,w)}}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&&e1(l,i),ga(a,o);var u=ga(a,i);for(o=0;o<s.length;o+=2){var d=s[o],f=s[o+1];d==="style"?i1(l,f):d==="dangerouslySetInnerHTML"?r1(l,f):d==="children"?il(l,f):gs(l,d,f,u)}switch(a){case"input":fa(l,i);break;case"textarea":t1(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?fr(l,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?fr(l,!!i.multiple,i.defaultValue,!0):fr(l,!!i.multiple,i.multiple?[]:"",!1))}l[hl]=i}catch(w){Pe(e,e.return,w)}}break;case 6:if(Tt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(D(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(w){Pe(e,e.return,w)}}break;case 3:if(Tt(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(w){Pe(e,e.return,w)}break;case 4:Tt(t,e),Rt(e);break;case 13:Tt(t,e),Rt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Xs=Ie())),r&4&&Cc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||d,Tt(t,e),Qe=u):Tt(t,e),Rt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Y=e,d=e.child;d!==null;){for(f=Y=d;Y!==null;){switch(h=Y,p=h.child,h.tag){case 0:case 11:case 14:case 15:Gr(4,h,h.return);break;case 1:ur(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){Pe(r,n,w)}}break;case 5:ur(h,h.return);break;case 22:if(h.memoizedState!==null){Mc(f);continue}}p!==null?(p.return=h,Y=p):Mc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{l=f.stateNode,u?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=l1("display",o))}catch(w){Pe(e,e.return,w)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(w){Pe(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Tt(t,e),Rt(e),r&4&&Cc(e);break;case 21:break;default:Tt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lf(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(il(l,""),r.flags&=-33);var i=Ec(e);Wa(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Ec(e);Ua(e,a,o);break;default:throw Error(D(161))}}catch(s){Pe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pm(e,t,n){Y=e,If(e)}function If(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||Ul;if(!o){var a=l.alternate,s=a!==null&&a.memoizedState!==null||Qe;a=Ul;var u=Qe;if(Ul=o,(Qe=s)&&!u)for(Y=l;Y!==null;)o=Y,s=o.child,o.tag===22&&o.memoizedState!==null?bc(l):s!==null?(s.return=o,Y=s):bc(l);for(;i!==null;)Y=i,If(i),i=i.sibling;Y=l,Ul=a,Qe=u}Ac(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,Y=i):Ac(e)}}function Ac(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||Gi(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:Ht(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&uc(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}uc(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 d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ul(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Qe||t.flags&512&&Ba(t)}catch(h){Pe(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 Mc(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 bc(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gi(4,t)}catch(s){Pe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){Pe(t,l,s)}}var i=t.return;try{Ba(t)}catch(s){Pe(t,i,s)}break;case 5:var o=t.return;try{Ba(t)}catch(s){Pe(t,o,s)}}}catch(s){Pe(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 jm=Math.ceil,Ii=en.ReactCurrentDispatcher,Qs=en.ReactCurrentOwner,At=en.ReactCurrentBatchConfig,pe=0,Ze=null,Re=null,$e=0,ht=0,cr=An(0),De=0,kl=null,On=0,Ji=0,Ys=0,Jr=null,it=null,Xs=0,Cr=1/0,Ut=null,_i=!1,Qa=null,vn=null,Wl=!1,pn=null,Fi=0,el=0,Ya=null,ui=-1,ci=0;function et(){return pe&6?Ie():ui!==-1?ui:ui=Ie()}function kn(e){return e.mode&1?pe&2&&$e!==0?$e&-$e:gm.transition!==null?(ci===0&&(ci=y1()),ci):(e=ve,e!==0||(e=window.event,e=e===void 0?16:C1(e.type)),e):1}function It(e,t,n,r){if(50<el)throw el=0,Ya=null,Error(D(185));Cl(e,n,r),(!(pe&2)||e!==Ze)&&(e===Ze&&(!(pe&2)&&(Ji|=n),De===4&&fn(e,$e)),ut(e,r),n===1&&pe===0&&!(t.mode&1)&&(Cr=Ie()+500,Xi&&Mn()))}function ut(e,t){var n=e.callbackNode;gh(e,t);var r=vi(e,e===Ze?$e:0);if(r===0)n!==null&&Fu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fu(n),t===1)e.tag===0?mm(Nc.bind(null,e)):$1(Nc.bind(null,e)),fm(function(){!(pe&6)&&Mn()}),n=null;else{switch(x1(r)){case 1:n=ws;break;case 4:n=m1;break;case 16:n=xi;break;case 536870912:n=g1;break;default:n=xi}n=Of(n,_f.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _f(e,t){if(ui=-1,ci=0,pe&6)throw Error(D(327));var n=e.callbackNode;if(gr()&&e.callbackNode!==n)return null;var r=vi(e,e===Ze?$e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ri(e,r);else{t=r;var l=pe;pe|=2;var i=Rf();(Ze!==e||$e!==t)&&(Ut=null,Cr=Ie()+500,Rn(e,t));do try{Fm();break}catch(a){Ff(e,a)}while(!0);Is(),Ii.current=i,pe=l,Re!==null?t=0:(Ze=null,$e=0,t=De)}if(t!==0){if(t===2&&(l=wa(e),l!==0&&(r=l,t=Xa(e,l))),t===1)throw n=kl,Rn(e,0),fn(e,r),ut(e,Ie()),n;if(t===6)fn(e,r);else{if(l=e.current.alternate,!(r&30)&&!Im(l)&&(t=Ri(e,r),t===2&&(i=wa(e),i!==0&&(r=i,t=Xa(e,i))),t===1))throw n=kl,Rn(e,0),fn(e,r),ut(e,Ie()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Pn(e,it,Ut);break;case 3:if(fn(e,r),(r&130023424)===r&&(t=Xs+500-Ie(),10<t)){if(vi(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ta(Pn.bind(null,e,it,Ut),t);break}Pn(e,it,Ut);break;case 4:if(fn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-jt(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jm(r/1960))-r,10<r){e.timeoutHandle=Ta(Pn.bind(null,e,it,Ut),r);break}Pn(e,it,Ut);break;case 5:Pn(e,it,Ut);break;default:throw Error(D(329))}}}return ut(e,Ie()),e.callbackNode===n?_f.bind(null,e):null}function Xa(e,t){var n=Jr;return e.current.memoizedState.isDehydrated&&(Rn(e,t).flags|=256),e=Ri(e,t),e!==2&&(t=it,it=n,t!==null&&qa(t)),e}function qa(e){it===null?it=e:it.push.apply(it,e)}function Im(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(!Ft(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 fn(e,t){for(t&=~Ys,t&=~Ji,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Nc(e){if(pe&6)throw Error(D(327));gr();var t=vi(e,0);if(!(t&1))return ut(e,Ie()),null;var n=Ri(e,t);if(e.tag!==0&&n===2){var r=wa(e);r!==0&&(t=r,n=Xa(e,r))}if(n===1)throw n=kl,Rn(e,0),fn(e,t),ut(e,Ie()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,it,Ut),ut(e,Ie()),null}function qs(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Cr=Ie()+500,Xi&&Mn())}}function $n(e){pn!==null&&pn.tag===0&&!(pe&6)&&gr();var t=pe;pe|=1;var n=At.transition,r=ve;try{if(At.transition=null,ve=1,e)return e()}finally{ve=r,At.transition=n,pe=t,!(pe&6)&&Mn()}}function Ks(){ht=cr.current,Ae(cr)}function Rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,cm(n)),Re!==null)for(n=Re.return;n!==null;){var r=n;switch(Ls(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ci();break;case 3:Sr(),Ae(at),Ae(Xe),Vs();break;case 5:Ds(r);break;case 4:Sr();break;case 13:Ae(Te);break;case 19:Ae(Te);break;case 10:_s(r.type._context);break;case 22:case 23:Ks()}n=n.return}if(Ze=e,Re=e=wn(e.current,null),$e=ht=t,De=0,kl=null,Ys=Ji=On=0,it=Jr=null,_n!==null){for(t=0;t<_n.length;t++)if(n=_n[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}_n=null}return e}function Ff(e,t){do{var n=Re;try{if(Is(),oi.current=ji,Pi){for(var r=He.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Pi=!1}if(Zn=0,Ve=ze=He=null,Kr=!1,yl=0,Qs.current=null,n===null||n.return===null){De=1,kl=t,Re=null;break}e:{var i=e,o=n.return,a=n,s=t;if(t=$e,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=mc(o);if(p!==null){p.flags&=-257,gc(p,o,a,i,t),p.mode&1&&hc(i,u,t),t=p,s=u;var v=t.updateQueue;if(v===null){var w=new Set;w.add(s),t.updateQueue=w}else v.add(s);break e}else{if(!(t&1)){hc(i,u,t),Gs();break e}s=Error(D(426))}}else if(Me&&a.mode&1){var H=mc(o);if(H!==null){!(H.flags&65536)&&(H.flags|=256),gc(H,o,a,i,t),Ps(Er(s,a));break e}}i=s=Er(s,a),De!==4&&(De=2),Jr===null?Jr=[i]:Jr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=vf(i,s,t);sc(i,g);break e;case 1:a=s;var y=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(vn===null||!vn.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=kf(i,a,t);sc(i,N);break e}}i=i.return}while(i!==null)}Df(n)}catch(_){t=_,Re===n&&n!==null&&(Re=n=n.return);continue}break}while(!0)}function Rf(){var e=Ii.current;return Ii.current=ji,e===null?ji:e}function Gs(){(De===0||De===3||De===2)&&(De=4),Ze===null||!(On&268435455)&&!(Ji&268435455)||fn(Ze,$e)}function Ri(e,t){var n=pe;pe|=2;var r=Rf();(Ze!==e||$e!==t)&&(Ut=null,Rn(e,t));do try{_m();break}catch(l){Ff(e,l)}while(!0);if(Is(),pe=n,Ii.current=r,Re!==null)throw Error(D(261));return Ze=null,$e=0,De}function _m(){for(;Re!==null;)zf(Re)}function Fm(){for(;Re!==null&&!ah();)zf(Re)}function zf(e){var t=Zf(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Df(e):Re=t,Qs.current=null}function Df(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Tm(n,t),n!==null){n.flags&=32767,Re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Re=null;return}}else if(n=Nm(n,t,ht),n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);De===0&&(De=5)}function Pn(e,t,n){var r=ve,l=At.transition;try{At.transition=null,ve=1,Rm(e,t,n,r)}finally{At.transition=l,ve=r}return null}function Rm(e,t,n,r){do gr();while(pn!==null);if(pe&6)throw Error(D(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(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(yh(e,i),e===Ze&&(Re=Ze=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wl||(Wl=!0,Of(xi,function(){return gr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=At.transition,At.transition=null;var o=ve;ve=1;var a=pe;pe|=4,Qs.current=null,Lm(e,n),jf(n,e),rm(ba),ki=!!Ma,ba=Ma=null,e.current=n,Pm(n),sh(),pe=a,ve=o,At.transition=i}else e.current=n;if(Wl&&(Wl=!1,pn=e,Fi=l),i=e.pendingLanes,i===0&&(vn=null),fh(n.stateNode),ut(e,Ie()),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(_i)throw _i=!1,e=Qa,Qa=null,e;return Fi&1&&e.tag!==0&&gr(),i=e.pendingLanes,i&1?e===Ya?el++:(el=0,Ya=e):el=0,Mn(),null}function gr(){if(pn!==null){var e=x1(Fi),t=At.transition,n=ve;try{if(At.transition=null,ve=16>e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,Fi=0,pe&6)throw Error(D(331));var l=pe;for(pe|=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 d=Y;switch(d.tag){case 0:case 11:case 15:Gr(8,d,i)}var f=d.child;if(f!==null)f.return=d,Y=f;else for(;Y!==null;){d=Y;var h=d.sibling,p=d.return;if(Hf(d),d===u){Y=null;break}if(h!==null){h.return=p,Y=h;break}Y=p}}}var v=i.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var H=w.sibling;w.sibling=null,w=H}while(w!==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:Gr(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,Y=g;break e}Y=i.return}}var y=e.current;for(Y=y;Y!==null;){o=Y;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Y=x;else e:for(o=y;Y!==null;){if(a=Y,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Gi(9,a)}}catch(_){Pe(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(pe=l,Mn(),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(Bi,e)}catch{}r=!0}return r}finally{ve=n,At.transition=t}}return!1}function Tc(e,t,n){t=Er(n,t),t=vf(e,t,1),e=xn(e,t,1),t=et(),e!==null&&(Cl(e,1,t),ut(e,t))}function Pe(e,t,n){if(e.tag===3)Tc(e,e,n);else for(;t!==null;){if(t.tag===3){Tc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(vn===null||!vn.has(r))){e=Er(n,e),e=kf(t,e,1),t=xn(t,e,1),e=et(),t!==null&&(Cl(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=et(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&($e&n)===n&&(De===4||De===3&&($e&130023424)===$e&&500>Ie()-Xs?Rn(e,0):Ys|=n),ut(e,t)}function Vf(e,t){t===0&&(e.mode&1?(t=Fl,Fl<<=1,!(Fl&130023424)&&(Fl=4194304)):t=1);var n=et();e=Gt(e,t),e!==null&&(Cl(e,t,n),ut(e,n))}function Dm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vf(e,n)}function Vm(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(D(314))}r!==null&&r.delete(t),Vf(e,n)}var Zf;Zf=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,bm(e,t,n);ot=!!(e.flags&131072)}else ot=!1,Me&&t.flags&1048576&&B1(t,bi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;si(e,t),e=t.pendingProps;var l=vr(t,Xe.current);mr(t,n),l=Os(null,t,r,e,l,n);var i=$s();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,Ai(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Rs(t),l.updater=Ki,t.stateNode=l,l._reactInternals=t,Fa(t,r,e,n),t=Da(null,t,r,!0,i,n)):(t.tag=0,Me&&i&&Hs(t),Ge(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(si(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Om(r),e=Ht(r,e),l){case 0:t=za(null,t,r,e,n);break e;case 1:t=vc(null,t,r,e,n);break e;case 11:t=yc(null,t,r,e,n);break e;case 14:t=xc(null,t,r,Ht(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),za(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),vc(e,t,r,l,n);case 3:e:{if(Cf(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,l=i.element,q1(e,t),Hi(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=Er(Error(D(423)),t),t=kc(e,t,r,n,l);break e}else if(r!==l){l=Er(Error(D(424)),t),t=kc(e,t,r,n,l);break e}else for(mt=yn(t.stateNode.containerInfo.firstChild),gt=t,Me=!0,Pt=null,n=Y1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kr(),r===l){t=Jt(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return K1(t),e===null&&ja(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Na(r,l)?o=null:i!==null&&Na(r,i)&&(t.flags|=32),Ef(e,t),Ge(e,t,o,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Af(e,t,n);case 4:return zs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wr(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),yc(e,t,r,l,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(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,Ee(Ni,r._currentValue),r._currentValue=o,i!==null)if(Ft(i.value,o)){if(i.children===l.children&&!at.current){t=Jt(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=Xt(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ia(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(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ia(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}Ge(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,mr(t,n),l=Mt(l),r=r(l),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,l=Ht(r,t.pendingProps),l=Ht(r.type,l),xc(e,t,r,l,n);case 15:return wf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ht(r,l),si(e,t),t.tag=1,st(r)?(e=!0,Ai(t)):e=!1,mr(t,n),xf(t,r,l),Fa(t,r,l,n),Da(null,t,r,!0,e,n);case 19:return Mf(e,t,n);case 22:return Sf(e,t,n)}throw Error(D(156,t.tag))};function Of(e,t){return h1(e,t)}function Zm(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 Ct(e,t,n,r){return new Zm(e,t,n,r)}function Js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Om(e){if(typeof e=="function")return Js(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xs)return 11;if(e===vs)return 14}return 2}function wn(e,t){var n=e.alternate;return n===null?(n=Ct(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 fi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Js(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case er:return zn(n.children,l,i,t);case ys:o=8,l|=8;break;case oa:return e=Ct(12,n,t,l|2),e.elementType=oa,e.lanes=i,e;case aa:return e=Ct(13,n,t,l),e.elementType=aa,e.lanes=i,e;case sa:return e=Ct(19,n,t,l),e.elementType=sa,e.lanes=i,e;case K0:return eo(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X0:o=10;break e;case q0:o=9;break e;case xs:o=11;break e;case vs:o=14;break e;case sn:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Ct(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function zn(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=K0,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Do(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $m(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=vo(0),this.expirationTimes=vo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function eu(e,t,n,r,l,i,o,a,s){return e=new $m(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ct(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rs(i),e}function Bm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $f(e){if(!e)return En;e=e._reactInternals;e:{if(Wn(e)!==e||e.tag!==1)throw Error(D(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(D(171))}if(e.tag===1){var n=e.type;if(st(n))return O1(e,n,t)}return t}function Bf(e,t,n,r,l,i,o,a,s){return e=eu(n,r,!0,e,l,i,o,a,s),e.context=$f(null),n=e.current,r=et(),l=kn(n),i=Xt(r,l),i.callback=t??null,xn(n,i,l),e.current.lanes=l,Cl(e,l,r),ut(e,r),e}function to(e,t,n,r){var l=t.current,i=et(),o=kn(l);return n=$f(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xn(l,t,o),e!==null&&(It(e,l,o,i),ii(e,l,o)),o}function zi(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 Hc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tu(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}function Um(){return null}var Uf=typeof reportError=="function"?reportError:function(e){console.error(e)};function nu(e){this._internalRoot=e}no.prototype.render=nu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));to(e,t,null,null)};no.prototype.unmount=nu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$n(function(){to(null,e,null,null)}),t[Kt]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=w1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&E1(e)}};function ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lc(){}function Wm(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var u=zi(o);i.call(u)}}var o=Bf(t,r,e,0,null,!1,!1,"",Lc);return e._reactRootContainer=o,e[Kt]=o.current,dl(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=zi(s);a.call(u)}}var s=eu(e,0,!1,null,null,!1,!1,"",Lc);return e._reactRootContainer=s,e[Kt]=s.current,dl(e.nodeType===8?e.parentNode:e),$n(function(){to(t,s,n,r)}),s}function lo(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=zi(o);a.call(s)}}to(t,o,e,l)}else o=Wm(n,t,e,l,r);return zi(o)}v1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Br(t.pendingLanes);n!==0&&(Ss(t,n|1),ut(t,Ie()),!(pe&6)&&(Cr=Ie()+500,Mn()))}break;case 13:$n(function(){var r=Gt(e,1);if(r!==null){var l=et();It(r,e,1,l)}}),tu(e,1)}};Es=function(e){if(e.tag===13){var t=Gt(e,134217728);if(t!==null){var n=et();It(t,e,134217728,n)}tu(e,134217728)}};k1=function(e){if(e.tag===13){var t=kn(e),n=Gt(e,t);if(n!==null){var r=et();It(n,e,t,r)}tu(e,t)}};w1=function(){return ve};S1=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};xa=function(e,t,n){switch(t){case"input":if(fa(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=Yi(r);if(!l)throw Error(D(90));J0(r),fa(r,l)}}}break;case"textarea":t1(e,n);break;case"select":t=n.value,t!=null&&fr(e,!!n.multiple,t,!1)}};s1=qs;u1=$n;var Qm={usingClientEntryPoint:!1,Events:[Ml,lr,Yi,o1,a1,qs]},zr={findFiberByHostInstance:In,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ym={bundleType:zr.bundleType,version:zr.version,rendererPackageName:zr.rendererPackageName,rendererConfig:zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:en.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=d1(e),e===null?null:e.stateNode},findFiberByHostInstance:zr.findFiberByHostInstance||Um,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 Ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ql.isDisabled&&Ql.supportsFiber)try{Bi=Ql.inject(Ym),Zt=Ql}catch{}}vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qm;vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ru(t))throw Error(D(200));return Bm(e,t,null,n)};vt.createRoot=function(e,t){if(!ru(e))throw Error(D(299));var n=!1,r="",l=Uf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=eu(e,1,!1,null,null,n,!1,r,l),e[Kt]=t.current,dl(e.nodeType===8?e.parentNode:e),new nu(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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=d1(t),e=e===null?null:e.stateNode,e};vt.flushSync=function(e){return $n(e)};vt.hydrate=function(e,t,n){if(!ro(t))throw Error(D(200));return lo(null,e,t,!0,n)};vt.hydrateRoot=function(e,t,n){if(!ru(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Uf;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Bf(t,null,e,1,n??null,l,!1,i,o),e[Kt]=t.current,dl(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 no(t)};vt.render=function(e,t,n){if(!ro(t))throw Error(D(200));return lo(null,e,t,!1,n)};vt.unmountComponentAtNode=function(e){if(!ro(e))throw Error(D(40));return e._reactRootContainer?($n(function(){lo(null,null,e,!1,function(){e._reactRootContainer=null,e[Kt]=null})}),!0):!1};vt.unstable_batchedUpdates=qs;vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return lo(e,t,n,!1,r)};vt.version="18.3.1-next-f1338f8080-20240426";function Wf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wf)}catch(e){console.error(e)}}Wf(),U0.exports=vt;var Xm=U0.exports,Pc=Xm;la.createRoot=Pc.createRoot,la.hydrateRoot=Pc.hydrateRoot;function jc(e){return typeof e=="string"?e:Array.isArray(e)?e.filter(t=>t.type==="text").map(t=>t.text).join(`
|
|
41
|
-
`):""}function Vo(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 Yl(e,t){switch(t.type){case"ready":return t.messages.map((n,r)=>({id:`hist-${r}`,role:n.role,content:jc(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:jc(t.text),images:t.images??[]}];case"assistant_start":return e;case"thinking_delta":return Vo(e,n=>({thinking:(n.thinking??"")+t.delta}));case"text_delta":return Vo(e,n=>({content:n.content+t.delta}));case"tool_start":return Vo(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_progress":{const n=[...e],r=n[n.length-1];if(r!=null&&r.isStreaming&&r.tools){const l=r.tools.map(i=>i.name===t.name&&!i.result?{...i,progress:t.progress,progressTotal:t.total,progressMessage:t.message}:i);n[n.length-1]={...r,tools:l}}return n}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 qm(e){const t=c.useRef(null),[n,r]=c.useState(!1),l=c.useRef(),i=c.useRef(e);i.current=e;const o=c.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,d=`${s}//${u}/ws`,f=new WebSocket(d);t.current=f,f.onopen=()=>{r(!0)},f.onmessage=p=>{try{const v=JSON.parse(p.data);i.current(v)}catch{}},f.onclose=()=>{r(!1),t.current=null,l.current=setTimeout(o,2e3)},f.onerror=()=>{f.close()}},[]),a=c.useCallback(s=>{var u;((u=t.current)==null?void 0:u.readyState)===WebSocket.OPEN&&t.current.send(JSON.stringify(s))},[]);return c.useEffect(()=>(o(),()=>{var s;clearTimeout(l.current),(s=t.current)==null||s.close()}),[o]),{connected:n,send:a}}function Km(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,e2={};function Ic(e,t){return(e2.jsx?Jm:Gm).test(e)}const t2=/[ \t\n\f\r]/g;function n2(e){return typeof e=="object"?e.type==="text"?_c(e.value):!1:_c(e)}function _c(e){return e.replace(t2,"")===""}class Nl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Nl.prototype.normal={};Nl.prototype.property={};Nl.prototype.space=void 0;function Qf(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new Nl(n,r,t)}function Ka(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 r2=0;const oe=Qn(),Fe=Qn(),Ga=Qn(),V=Qn(),Se=Qn(),yr=Qn(),pt=Qn();function Qn(){return 2**++r2}const Ja=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Fe,commaOrSpaceSeparated:pt,commaSeparated:yr,number:V,overloadedBoolean:Ga,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Zo=Object.keys(Ja);class lu extends ct{constructor(t,n,r,l){let i=-1;if(super(t,n),Fc(this,"space",l),typeof r=="number")for(;++i<Zo.length;){const o=Zo[i];Fc(this,Zo[i],(r&Ja[o])===Ja[o])}}}lu.prototype.defined=!0;function Fc(e,t,n){n&&(e[t]=n)}function Tr(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new lu(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Ka(r)]=r,n[Ka(i.attribute)]=r}return new Nl(t,n,e.space)}const Yf=Tr({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Se,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:V,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Se,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Fe,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xf(e,t){return t in e?e[t]:t}function qf(e,t){return Xf(e,t.toLowerCase())}const l2=Tr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yr,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Se,autoFocus:oe,autoPlay:oe,blocking:Se,capture:null,charSet:null,checked:oe,cite:null,className:Se,cols:V,colSpan:null,content:null,contentEditable:Fe,controls:oe,controlsList:Se,coords:V|yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Ga,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Se,height:V,hidden:Ga,high:V,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Se,itemRef:Se,itemScope:oe,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:V,pattern:null,ping:Se,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Se,required:oe,reversed:oe,rows:V,rowSpan:V,sandbox:Se,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Fe,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:qf}),i2=Tr({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:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Se,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:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:yr,g2:yr,glyphName:yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,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:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pt,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,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:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xf}),Kf=Tr({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()}}),Gf=Tr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qf}),Jf=Tr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),o2={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"},a2=/[A-Z]/g,Rc=/-[a-z]/g,s2=/^data[-\w.:]+$/i;function u2(e,t){const n=Ka(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"&&s2.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Rc,f2);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Rc.test(i)){let o=i.replace(a2,c2);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=lu}return new l(r,t)}function c2(e){return"-"+e.toLowerCase()}function f2(e){return e.charAt(1).toUpperCase()}const d2=Qf([Yf,l2,Kf,Gf,Jf],"html"),iu=Qf([Yf,i2,Kf,Gf,Jf],"svg");function p2(e){return e.join(" ").trim()}var ou={},zc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,h2=/\n/g,m2=/^\s*/,g2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,y2=/^:\s*/,x2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,v2=/^[;\s]*/,k2=/^\s+|\s+$/g,w2=`
|
|
42
|
-
`,Dc="/",Vc="*",jn="",S2="comment",E2="declaration";function C2(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(v){var w=v.match(h2);w&&(n+=w.length);var H=v.lastIndexOf(w2);r=~H?v.length-H:r+v.length}function i(){var v={line:n,column:r};return function(w){return w.position=new o(v),u(),w}}function o(v){this.start=v,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(v){var w=new Error(t.source+":"+n+":"+r+": "+v);if(w.reason=v,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function s(v){var w=v.exec(e);if(w){var H=w[0];return l(H),e=e.slice(H.length),w}}function u(){s(m2)}function d(v){var w;for(v=v||[];w=f();)w!==!1&&v.push(w);return v}function f(){var v=i();if(!(Dc!=e.charAt(0)||Vc!=e.charAt(1))){for(var w=2;jn!=e.charAt(w)&&(Vc!=e.charAt(w)||Dc!=e.charAt(w+1));)++w;if(w+=2,jn===e.charAt(w-1))return a("End of comment missing");var H=e.slice(2,w-2);return r+=2,l(H),e=e.slice(w),r+=2,v({type:S2,comment:H})}}function h(){var v=i(),w=s(g2);if(w){if(f(),!s(y2))return a("property missing ':'");var H=s(x2),g=v({type:E2,property:Zc(w[0].replace(zc,jn)),value:H?Zc(H[0].replace(zc,jn)):jn});return s(v2),g}}function p(){var v=[];d(v);for(var w;w=h();)w!==!1&&(v.push(w),d(v));return v}return u(),p()}function Zc(e){return e?e.replace(k2,jn):jn}var A2=C2,M2=hi&&hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ou,"__esModule",{value:!0});ou.default=N2;const b2=M2(A2);function N2(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,b2.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 io={};Object.defineProperty(io,"__esModule",{value:!0});io.camelCase=void 0;var T2=/^--[a-zA-Z0-9_-]+$/,H2=/-([a-z])/g,L2=/^[^-]+$/,P2=/^-(webkit|moz|ms|o|khtml)-/,j2=/^-(ms)-/,I2=function(e){return!e||L2.test(e)||T2.test(e)},_2=function(e,t){return t.toUpperCase()},Oc=function(e,t){return"".concat(t,"-")},F2=function(e,t){return t===void 0&&(t={}),I2(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(j2,Oc):e=e.replace(P2,Oc),e.replace(H2,_2))};io.camelCase=F2;var R2=hi&&hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},z2=R2(ou),D2=io;function es(e,t){var n={};return!e||typeof e!="string"||(0,z2.default)(e,function(r,l){r&&l&&(n[(0,D2.camelCase)(r,t)]=l)}),n}es.default=es;var V2=es;const Z2=us(V2),ed=td("end"),au=td("start");function td(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 O2(e){const t=au(e),n=ed(e);if(t&&n)return{start:t,end:n}}function tl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$c(e.position):"start"in e||"end"in e?$c(e):"line"in e||"column"in e?ts(e):""}function ts(e){return Bc(e&&e.line)+":"+Bc(e&&e.column)}function $c(e){return ts(e&&e.start)+"-"+ts(e&&e.end)}function Bc(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=tl(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 su={}.hasOwnProperty,$2=new Map,B2=/[A-Z]/g,U2=new Set(["table","tbody","thead","tfoot","tr"]),W2=new Set(["td","th"]),nd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Q2(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=tg(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=eg(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"?iu:d2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=rd(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function rd(e,t,n){if(t.type==="element")return Y2(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return X2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return K2(e,t,n);if(t.type==="mdxjsEsm")return q2(e,t);if(t.type==="root")return G2(e,t,n);if(t.type==="text")return J2(e,t)}function Y2(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=iu,e.schema=l),e.ancestors.push(t);const i=id(e,t.tagName,!1),o=ng(e,t);let a=cu(e,t);return U2.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!n2(s):!0})),ld(e,o,i,t),uu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function X2(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)}wl(e,t.position)}function q2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wl(e,t.position)}function K2(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=iu,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:id(e,t.name,!0),o=rg(e,t),a=cu(e,t);return ld(e,o,i,t),uu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function G2(e,t,n){const r={};return uu(r,cu(e,t)),e.create(t,e.Fragment,r,n)}function J2(e,t){return t.value}function ld(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function uu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function eg(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 tg(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=au(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 ng(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&su.call(t.properties,l)){const i=lg(e,l,t.properties[l]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&W2.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 rg(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 wl(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 wl(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function cu(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:$2;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=rd(e,i,o);a!==void 0&&n.push(a)}return n}function lg(e,t,n){const r=u2(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Km(n):p2(n)),r.property==="style"){let l=typeof n=="object"?n:ig(e,String(n));return e.stylePropertyNameCase==="css"&&(l=og(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?o2[r.property]||r.property:r.attribute,n]}}function ig(e,t){try{return Z2(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=nd+"#cannot-parse-style-attribute",l}}function id(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=Ic(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=Ic(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return su.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);wl(e)}function wl(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=nd+"#cannot-handle-mdx-estrees-without-createevaluater",n}function og(e){const t={};let n;for(n in e)su.call(e,n)&&(t[ag(n)]=e[n]);return t}function ag(e){let t=e.replace(B2,sg);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function sg(e){return"-"+e.toLowerCase()}const Oo={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"]},ug={};function fu(e,t){const n=ug,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return od(e,r,l)}function od(e,t,n){if(cg(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 Uc(e.children,t,n)}return Array.isArray(e)?Uc(e,t,n):""}function Uc(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=od(e[l],t,n);return r.join("")}function cg(e){return!!(e&&typeof e=="object")}const Wc=document.createElement("i");function du(e){const t="&"+e+";";Wc.innerHTML=t;const n=Wc.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 Et(e,t){return e.length>0?(yt(e,e.length,0,t),e):t}const Qc={}.hasOwnProperty;function ad(e){const t={};let n=-1;for(;++n<e.length;)fg(t,e[n]);return t}function fg(e,t){let n;for(n in t){const l=(Qc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Qc.call(l,o)||(l[o]=[]);const a=i[o];dg(l[o],Array.isArray(a)?a:a?[a]:[])}}}function dg(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 sd(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 _t(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Je=bn(/[A-Za-z]/),Ye=bn(/[\dA-Za-z]/),pg=bn(/[#-'*+\--9=?A-Z^-~]/);function Di(e){return e!==null&&(e<32||e===127)}const ns=bn(/\d/),hg=bn(/[\dA-Fa-f]/),mg=bn(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function se(e){return e===-2||e===-1||e===32}const oo=bn(new RegExp("\\p{P}|\\p{S}","u")),Bn=bn(/\s/);function bn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Hr(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Ye(e.charCodeAt(n+1))&&Ye(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 de(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return se(s)?(e.enter(n),a(s)):t(s)}function a(s){return se(s)&&i++<l?(e.consume(s),a):(e.exit(n),t(s))}}const gg={tokenize:yg};function yg(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"),de(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 te(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),o)}}const xg={tokenize:vg},Yc={tokenize:kg};function vg(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&&y();const N=t.events.length;let _=N,M;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){M=t.events[_][1].end;break}g(r);let R=N;for(;R<t.events.length;)t.events[R][1].end={...M},R++;return yt(t.events,_+1,0,t.events.slice(N)),t.events.length=R,u(x)}return a(x)}function u(x){if(r===n.length){if(!l)return h(x);if(l.currentConstruct&&l.currentConstruct.concrete)return v(x);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yc,d,f)(x)}function d(x){return l&&y(),g(r),h(x)}function f(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,v(x)}function h(x){return t.containerState={},e.attempt(Yc,p,v)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),h(x)}function v(x){if(x===null){l&&y(),g(0),e.consume(x);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),w(x)}function w(x){if(x===null){H(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return te(x)?(e.consume(x),H(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),w)}function H(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 M=l.events.length;for(;M--;)if(l.events[M][1].start.offset<o&&(!l.events[M][1].end||l.events[M][1].end.offset>o))return;const R=t.events.length;let z=R,W,A;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(W){A=t.events[z][1].end;break}W=!0}for(g(r),M=R;M<t.events.length;)t.events[M][1].end={...A},M++;yt(t.events,z+1,0,t.events.slice(R)),t.events.length=M}}function g(x){let N=n.length;for(;N-- >x;){const _=n[N];t.containerState=_[1],_[0].exit.call(t,e)}n.length=x}function y(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function kg(e,t,n){return de(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ar(e){if(e===null||we(e)||Bn(e))return 1;if(oo(e))return 2}function ao(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 rs={name:"attention",resolveAll:wg,tokenize:Sg};function wg(e,t){let n=-1,r,l,i,o,a,s,u,d;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 f={...e[r][1].end},h={...e[n][1].start};Xc(f,-s),Xc(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,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=Et(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Et(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Et(u,ao(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Et(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Et(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,yt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Sg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Ar(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"),d=Ar(s),f=!d||d===2&&l||n.includes(s),h=!l||l===2&&d||n.includes(r);return u._open=!!(i===42?f:f&&(l||!h)),u._close=!!(i===42?h:h&&(d||!f)),t(s)}}function Xc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Eg={name:"autolink",tokenize:Cg};function Cg(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 Je(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||Ye(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||Ye(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||Di(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),d):pg(p)?(e.consume(p),u):n(p)}function d(p){return Ye(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,d):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||Ye(p))&&r++<63){const v=p===45?h:f;return e.consume(p),v}return n(p)}}const Tl={partial:!0,tokenize:Ag};function Ag(e,t,n){return r;function r(i){return se(i)?de(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||te(i)?t(i):n(i)}}const ud={continuation:{tokenize:bg},exit:Ng,name:"blockQuote",tokenize:Mg};function Mg(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 se(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function bg(e,t,n){const r=this;return l;function l(o){return se(o)?de(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(ud,t,n)(o)}}function Ng(e){e.exit("blockQuote")}const cd={name:"characterEscape",tokenize:Tg};function Tg(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 mg(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const fd={name:"characterReference",tokenize:Hg};function Hg(e,t,n){const r=this;let l=0,i,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Ye,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=hg,d):(e.enter("characterReferenceValue"),i=7,o=ns,d(f))}function d(f){if(f===59&&l){const h=e.exit("characterReferenceValue");return o===Ye&&!du(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&l++<i?(e.consume(f),d):n(f)}}const qc={partial:!0,tokenize:Pg},Kc={concrete:!0,name:"codeFenced",tokenize:Lg};function Lg(e,t,n){const r=this,l={partial:!0,tokenize:_};let i=0,o=0,a;return s;function s(M){return u(M)}function u(M){const R=r.events[r.events.length-1];return i=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(M)}function d(M){return M===a?(o++,e.consume(M),d):o<3?n(M):(e.exit("codeFencedFenceSequence"),se(M)?de(e,f,"whitespace")(M):f(M))}function f(M){return M===null||te(M)?(e.exit("codeFencedFence"),r.interrupt?t(M):e.check(qc,w,N)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(M))}function h(M){return M===null||te(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(M)):se(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),de(e,p,"whitespace")(M)):M===96&&M===a?n(M):(e.consume(M),h)}function p(M){return M===null||te(M)?f(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===null||te(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(M)):M===96&&M===a?n(M):(e.consume(M),v)}function w(M){return e.attempt(l,N,H)(M)}function H(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),g}function g(M){return i>0&&se(M)?de(e,y,"linePrefix",i+1)(M):y(M)}function y(M){return M===null||te(M)?e.check(qc,w,N)(M):(e.enter("codeFlowValue"),x(M))}function x(M){return M===null||te(M)?(e.exit("codeFlowValue"),y(M)):(e.consume(M),x)}function N(M){return e.exit("codeFenced"),t(M)}function _(M,R,z){let W=0;return A;function A(Q){return M.enter("lineEnding"),M.consume(Q),M.exit("lineEnding"),$}function $(Q){return M.enter("codeFencedFence"),se(Q)?de(M,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===a?(M.enter("codeFencedFenceSequence"),le(Q)):z(Q)}function le(Q){return Q===a?(W++,M.consume(Q),le):W>=o?(M.exit("codeFencedFenceSequence"),se(Q)?de(M,ne,"whitespace")(Q):ne(Q)):z(Q)}function ne(Q){return Q===null||te(Q)?(M.exit("codeFencedFence"),R(Q)):z(Q)}}}function Pg(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 $o={name:"codeIndented",tokenize:Ig},jg={partial:!0,tokenize:_g};function Ig(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),de(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):te(u)?e.attempt(jg,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||te(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function _g(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):de(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):te(o)?l(o):n(o)}}const Fg={name:"codeText",previous:zg,resolve:Rg,tokenize:Dg};function Rg(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 zg(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Dg(e,t,n){let r=0,l,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(i=e.enter("codeTextSequence"),l=0,d(f)):te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||te(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),l++,d):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class Vg{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&&Dr(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),Dr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Dr(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);Dr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Dr(this.left,n.reverse())}}}function Dr(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 dd(e){const t={};let n=-1,r,l,i,o,a,s,u;const d=new Vg(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.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,Zg(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(l&&(d.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={...d.get(l)[1].start},a=d.slice(l,n),a.unshift(r),d.splice(l,n-l+1,a))}}return yt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function Zg(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 d,f,h=-1,p=n,v=0,w=0;const H=[w];for(;p;){for(;e.get(++l)[1]!==p;);i.push(l),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=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&&(w=h+1,H.push(w),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):H.pop(),h=H.length;h--;){const g=a.slice(H[h],H[h+1]),y=i.pop();s.push([y,y+g.length-1]),e.splice(y,2,g)}for(s.reverse(),h=-1;++h<s.length;)u[v+s[h][0]]=v+s[h][1],v+=s[h][1]-s[h][0]-1;return u}const Og={resolve:Bg,tokenize:Ug},$g={partial:!0,tokenize:Wg};function Bg(e){return dd(e),e}function Ug(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):te(a)?e.check($g,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 Wg(e,t,n){const r=this;return l;function l(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),de(e,i,"linePrefix")}function i(o){if(o===null||te(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 pd(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let d=0;return f;function f(g){return g===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(g),e.exit(i),h):g===null||g===32||g===41||Di(g)?n(g):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(g))}function h(g){return g===62?(e.enter(i),e.consume(g),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||te(g)?n(g):(e.consume(g),g===92?v:p)}function v(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function w(g){return!d&&(g===null||g===41||we(g))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(g)):d<u&&g===40?(e.consume(g),d++,w):g===41?(e.consume(g),d--,w):g===null||g===32||g===40||Di(g)?n(g):(e.consume(g),g===92?H:w)}function H(g){return g===40||g===41||g===92?(e.consume(g),w):w(g)}}function hd(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),d}function d(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):te(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||te(p)||a++>999?(e.exit("chunkString"),d(p)):(e.consume(p),s||(s=!se(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function md(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):te(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),de(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||te(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:d)}function f(h){return h===o||h===92?(e.consume(h),d):d(h)}}function nl(e,t){let n;return r;function r(l){return te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):se(l)?de(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const Qg={name:"definition",tokenize:Xg},Yg={partial:!0,tokenize:qg};function Xg(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return hd.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=_t(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 we(p)?nl(e,u)(p):u(p)}function u(p){return pd(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(Yg,f,f)(p)}function f(p){return se(p)?de(e,h,"whitespace")(p):h(p)}function h(p){return p===null||te(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function qg(e,t,n){return r;function r(a){return we(a)?nl(e,l)(a):n(a)}function l(a){return md(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return se(a)?de(e,o,"whitespace")(a):o(a)}function o(a){return a===null||te(a)?t(a):n(a)}}const Kg={name:"hardBreakEscape",tokenize:Gg};function Gg(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return te(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Jg={name:"headingAtx",resolve:e8,tokenize:t8};function e8(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 t8(e,t,n){let r=0;return l;function l(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||we(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),s(d)):d===null||te(d)?(e.exit("atxHeading"),t(d)):se(d)?de(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function s(d){return d===35?(e.consume(d),s):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||we(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const n8=["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"],Gc=["pre","script","style","textarea"],r8={concrete:!0,name:"htmlFlow",resolveTo:o8,tokenize:a8},l8={partial:!0,tokenize:u8},i8={partial:!0,tokenize:s8};function o8(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 a8(e,t,n){const r=this;let l,i,o,a,s;return u;function u(S){return d(S)}function d(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),h):S===47?(e.consume(S),i=!0,w):S===63?(e.consume(S),l=3,r.interrupt?t:k):Je(S)?(e.consume(S),o=String.fromCharCode(S),H):n(S)}function h(S){return S===45?(e.consume(S),l=2,p):S===91?(e.consume(S),l=5,a=0,v):Je(S)?(e.consume(S),l=4,r.interrupt?t:k):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:k):n(S)}function v(S){const ke="CDATA[";return S===ke.charCodeAt(a++)?(e.consume(S),a===ke.length?r.interrupt?t:U:v):n(S)}function w(S){return Je(S)?(e.consume(S),o=String.fromCharCode(S),H):n(S)}function H(S){if(S===null||S===47||S===62||we(S)){const ke=S===47,be=o.toLowerCase();return!ke&&!i&&Gc.includes(be)?(l=1,r.interrupt?t(S):U(S)):n8.includes(o.toLowerCase())?(l=6,ke?(e.consume(S),g):r.interrupt?t(S):U(S)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):i?y(S):x(S))}return S===45||Ye(S)?(e.consume(S),o+=String.fromCharCode(S),H):n(S)}function g(S){return S===62?(e.consume(S),r.interrupt?t:U):n(S)}function y(S){return se(S)?(e.consume(S),y):A(S)}function x(S){return S===47?(e.consume(S),A):S===58||S===95||Je(S)?(e.consume(S),N):se(S)?(e.consume(S),x):A(S)}function N(S){return S===45||S===46||S===58||S===95||Ye(S)?(e.consume(S),N):_(S)}function _(S){return S===61?(e.consume(S),M):se(S)?(e.consume(S),_):x(S)}function M(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),s=S,R):se(S)?(e.consume(S),M):z(S)}function R(S){return S===s?(e.consume(S),s=null,W):S===null||te(S)?n(S):(e.consume(S),R)}function z(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||we(S)?_(S):(e.consume(S),z)}function W(S){return S===47||S===62||se(S)?x(S):n(S)}function A(S){return S===62?(e.consume(S),$):n(S)}function $(S){return S===null||te(S)?U(S):se(S)?(e.consume(S),$):n(S)}function U(S){return S===45&&l===2?(e.consume(S),re):S===60&&l===1?(e.consume(S),b):S===62&&l===4?(e.consume(S),ie):S===63&&l===3?(e.consume(S),k):S===93&&l===5?(e.consume(S),K):te(S)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(l8,ce,le)(S)):S===null||te(S)?(e.exit("htmlFlowData"),le(S)):(e.consume(S),U)}function le(S){return e.check(i8,ne,ce)(S)}function ne(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Q}function Q(S){return S===null||te(S)?le(S):(e.enter("htmlFlowData"),U(S))}function re(S){return S===45?(e.consume(S),k):U(S)}function b(S){return S===47?(e.consume(S),o="",Z):U(S)}function Z(S){if(S===62){const ke=o.toLowerCase();return Gc.includes(ke)?(e.consume(S),ie):U(S)}return Je(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),Z):U(S)}function K(S){return S===93?(e.consume(S),k):U(S)}function k(S){return S===62?(e.consume(S),ie):S===45&&l===2?(e.consume(S),k):U(S)}function ie(S){return S===null||te(S)?(e.exit("htmlFlowData"),ce(S)):(e.consume(S),ie)}function ce(S){return e.exit("htmlFlow"),t(S)}}function s8(e,t,n){const r=this;return l;function l(o){return te(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 u8(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Tl,t,n)}}const c8={name:"htmlText",tokenize:f8};function f8(e,t,n){const r=this;let l,i,o;return a;function a(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),_):k===63?(e.consume(k),x):Je(k)?(e.consume(k),z):n(k)}function u(k){return k===45?(e.consume(k),d):k===91?(e.consume(k),i=0,v):Je(k)?(e.consume(k),y):n(k)}function d(k){return k===45?(e.consume(k),p):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),h):te(k)?(o=f,b(k)):(e.consume(k),f)}function h(k){return k===45?(e.consume(k),p):f(k)}function p(k){return k===62?re(k):k===45?h(k):f(k)}function v(k){const ie="CDATA[";return k===ie.charCodeAt(i++)?(e.consume(k),i===ie.length?w:v):n(k)}function w(k){return k===null?n(k):k===93?(e.consume(k),H):te(k)?(o=w,b(k)):(e.consume(k),w)}function H(k){return k===93?(e.consume(k),g):w(k)}function g(k){return k===62?re(k):k===93?(e.consume(k),g):w(k)}function y(k){return k===null||k===62?re(k):te(k)?(o=y,b(k)):(e.consume(k),y)}function x(k){return k===null?n(k):k===63?(e.consume(k),N):te(k)?(o=x,b(k)):(e.consume(k),x)}function N(k){return k===62?re(k):x(k)}function _(k){return Je(k)?(e.consume(k),M):n(k)}function M(k){return k===45||Ye(k)?(e.consume(k),M):R(k)}function R(k){return te(k)?(o=R,b(k)):se(k)?(e.consume(k),R):re(k)}function z(k){return k===45||Ye(k)?(e.consume(k),z):k===47||k===62||we(k)?W(k):n(k)}function W(k){return k===47?(e.consume(k),re):k===58||k===95||Je(k)?(e.consume(k),A):te(k)?(o=W,b(k)):se(k)?(e.consume(k),W):re(k)}function A(k){return k===45||k===46||k===58||k===95||Ye(k)?(e.consume(k),A):$(k)}function $(k){return k===61?(e.consume(k),U):te(k)?(o=$,b(k)):se(k)?(e.consume(k),$):W(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,le):te(k)?(o=U,b(k)):se(k)?(e.consume(k),U):(e.consume(k),ne)}function le(k){return k===l?(e.consume(k),l=void 0,Q):k===null?n(k):te(k)?(o=le,b(k)):(e.consume(k),le)}function ne(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||we(k)?W(k):(e.consume(k),ne)}function Q(k){return k===47||k===62||we(k)?W(k):n(k)}function re(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function b(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Z}function Z(k){return se(k)?de(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):K(k)}function K(k){return e.enter("htmlTextData"),o(k)}}const pu={name:"labelEnd",resolveAll:m8,resolveTo:g8,tokenize:y8},d8={tokenize:x8},p8={tokenize:v8},h8={tokenize:k8};function m8(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 g8(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}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=Et(a,e.slice(i+1,i+r+3)),a=Et(a,[["enter",d,t]]),a=Et(a,ao(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),a=Et(a,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),a=Et(a,e.slice(o+1)),a=Et(a,[["exit",s,t]]),yt(e,i,e.length,a),e}function y8(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?f(h):(o=r.parser.defined.includes(_t(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(d8,d,o?d:f)(h):h===91?e.attempt(p8,d,o?u:f)(h):o?d(h):f(h)}function u(h){return e.attempt(h8,d,f)(h)}function d(h){return t(h)}function f(h){return i._balanced=!0,n(h)}}function x8(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return we(f)?nl(e,i)(f):i(f)}function i(f){return f===41?d(f):pd(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return we(f)?nl(e,s)(f):d(f)}function a(f){return n(f)}function s(f){return f===34||f===39||f===40?md(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return we(f)?nl(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function v8(e,t,n){const r=this;return l;function l(a){return hd.call(r,e,i,o,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(_t(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function k8(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 w8={name:"labelStartImage",resolveAll:pu.resolveAll,tokenize:S8};function S8(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 E8={name:"labelStartLink",resolveAll:pu.resolveAll,tokenize:C8};function C8(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 Bo={name:"lineEnding",tokenize:A8};function A8(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),de(e,t,"linePrefix")}}const di={name:"thematicBreak",tokenize:M8};function M8(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||te(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),se(u)?de(e,a,"whitespace")(u):a(u))}}const lt={continuation:{tokenize:H8},exit:P8,name:"list",tokenize:T8},b8={partial:!0,tokenize:j8},N8={partial:!0,tokenize:L8};function T8(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 v=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ns(p)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(di,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 ns(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(Tl,r.interrupt?n:d,e.attempt(b8,h,f))}function d(p){return r.containerState.initialBlankLine=!0,i++,h(p)}function f(p){return se(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 H8(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Tl,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,de(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!se(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(N8,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,de(e,e.attempt(lt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function L8(e,t,n){const r=this;return de(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 P8(e){e.exit(this.containerState.type)}function j8(e,t,n){const r=this;return de(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!se(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Jc={name:"setextUnderline",resolveTo:I8,tokenize:_8};function I8(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 _8(e,t,n){const r=this;let l;return i;function i(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(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"),se(u)?de(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||te(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const F8={tokenize:R8};function R8(e){const t=this,n=e.attempt(Tl,r,e.attempt(this.parser.constructs.flowInitial,l,de(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Og,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 z8={resolveAll:yd()},D8=gd("string"),V8=gd("text");function gd(e){return{resolveAll:yd(e==="text"?Z8: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(d){return u(d)?i(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),s}function s(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),s)}function u(d){if(d===null)return!0;const f=l[d];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function yd(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 Z8(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 O8={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:ud},$8={91:Qg},B8={[-2]:$o,[-1]:$o,32:$o},U8={35:Jg,42:di,45:[Jc,di],60:r8,61:Jc,95:di,96:Kc,126:Kc},W8={38:fd,92:cd},Q8={[-5]:Bo,[-4]:Bo,[-3]:Bo,33:w8,38:fd,42:rs,60:[Eg,c8],91:E8,92:[Kg,cd],93:pu,95:rs,96:Fg},Y8={null:[rs,z8]},X8={null:[42,95]},q8={null:[]},K8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:X8,contentInitial:$8,disable:q8,document:O8,flow:U8,flowInitial:B8,insideSpan:Y8,string:W8,text:Q8},Symbol.toStringTag,{value:"Module"}));function G8(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:R(_),check:R(M),consume:y,enter:x,exit:N,interrupt:R(M,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let d=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function f($){return o=Et(o,$),H(),o[o.length-1]!==null?[]:(z(t,0),u.events=ao(i,u.events,u),u.events)}function h($,U){return e4(p($),U)}function p($){return J8(o,$)}function v(){const{_bufferIndex:$,_index:U,line:le,column:ne,offset:Q}=r;return{_bufferIndex:$,_index:U,line:le,column:ne,offset:Q}}function w($){l[$.line]=$.column,A()}function H(){let $;for(;r._index<o.length;){const U=o[r._index];if(typeof U=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<U.length;)g(U.charCodeAt(r._bufferIndex));else g(U)}}function g($){d=d($)}function y($){te($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,A()):$!==-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($,U){const le=U||{};return le.type=$,le.start=v(),u.events.push(["enter",le,u]),a.push(le),le}function N($){const U=a.pop();return U.end=v(),u.events.push(["exit",U,u]),U}function _($,U){z($,U.from)}function M($,U){U.restore()}function R($,U){return le;function le(ne,Q,re){let b,Z,K,k;return Array.isArray(ne)?ce(ne):"tokenize"in ne?ce([ne]):ie(ne);function ie(he){return _e;function _e(Ke){const ft=Ke!==null&&he[Ke],dt=Ke!==null&&he.null,Nt=[...Array.isArray(ft)?ft:ft?[ft]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return ce(Nt)(Ke)}}function ce(he){return b=he,Z=0,he.length===0?re:S(he[Z])}function S(he){return _e;function _e(Ke){return k=W(),K=he,he.partial||(u.currentConstruct=he),he.name&&u.parser.constructs.disable.null.includes(he.name)?be():he.tokenize.call(U?Object.assign(Object.create(u),U):u,s,ke,be)(Ke)}}function ke(he){return $(K,k),Q}function be(he){return k.restore(),++Z<b.length?S(b[Z]):re}}}function z($,U){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&yt(u.events,U,u.events.length-U,$.resolve(u.events.slice(U),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function W(){const $=v(),U=u.previous,le=u.currentConstruct,ne=u.events.length,Q=Array.from(a);return{from:ne,restore:re};function re(){r=$,u.previous=U,u.currentConstruct=le,u.events.length=ne,a=Q,A()}}function A(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function J8(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 e4(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 t4(e){const r={constructs:ad([K8,...(e||{}).extensions||[]]),content:l(gg),defined:[],document:l(xg),flow:l(F8),lazy:{},string:l(D8),text:l(V8)};return r;function l(i){return o;function o(a){return G8(r,i,a)}}}function n4(e){for(;!dd(e););return e}const e0=/[\0\t\n\r]/g;function r4(){let e=1,t="",n=!0,r;return l;function l(i,o,a){const s=[];let u,d,f,h,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(e0.lastIndex=f,u=e0.exec(i),h=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(h),!u){t=i.slice(f);break}if(p===10&&f===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<h&&(s.push(i.slice(f,h)),e+=h-f),p){case 0:{s.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,s.push(-2);e++<d;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const l4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i4(e){return e.replace(l4,o4)}function o4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return sd(n.slice(i?2:1),i?16:10)}return du(n)||e}const xd={}.hasOwnProperty;function a4(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),s4(n)(n4(t4(n).document().write(r4()(e,t,!0))))}function s4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ye),autolinkProtocol:W,autolinkEmail:W,atxHeading:i(rt),blockQuote:i(dt),characterEscape:W,characterReference:W,codeFenced:i(Nt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Nt,o),codeText:i(nn,o),codeTextData:W,data:W,codeFlowValue:W,definition:i(Nn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Tn),hardBreakEscape:i(j),hardBreakTrailing:i(j),htmlFlow:i(ee,o),htmlFlowData:W,htmlText:i(ee,o),htmlTextData:W,image:i(X),label:o,link:i(ye),listItem:i(T),listItemValue:h,listOrdered:i(ge,f),listUnordered:i(ge),paragraph:i(I),reference:S,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(rt),strong:i(E),thematicBreak:i(L)},exit:{atxHeading:s(),atxHeadingSequence:_,autolink:s(),autolinkEmail:ft,autolinkProtocol:Ke,blockQuote:s(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:he,characterReference:_e,codeFenced:s(H),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:A,codeIndented:s(g),codeText:s(Q),codeTextData:A,data:A,definition:s(),definitionDestinationString:N,definitionLabelString:y,definitionTitleString:x,emphasis:s(),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(le),htmlFlowData:A,htmlText:s(ne),htmlTextData:A,image:s(b),label:K,labelText:Z,lineEnding:$,link:s(re),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ke,resourceDestinationString:k,resourceTitleString:ie,resource:ce,setextHeading:s(z),setextHeadingLineSequence:R,setextHeadingText:M,strong:s(),thematicBreak:s()}};vd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let P={type:"root",children:[]};const O={stack:[P],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:d,data:n},J=[];let G=-1;for(;++G<C.length;)if(C[G][1].type==="listOrdered"||C[G][1].type==="listUnordered")if(C[G][0]==="enter")J.push(G);else{const F=J.pop();G=l(C,F,G)}for(G=-1;++G<C.length;){const F=t[C[G][0]];xd.call(F,C[G][1].type)&&F[C[G][1].type].call(Object.assign({sliceSerialize:C[G][2].sliceSerialize},O),C[G][1])}if(O.tokenStack.length>0){const F=O.tokenStack[O.tokenStack.length-1];(F[1]||t0).call(O,void 0,F[0])}for(P.position={start:on(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:on(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},G=-1;++G<t.transforms.length;)P=t.transforms[G](P)||P;return P}function l(C,P,O){let J=P-1,G=-1,F=!1,B,ae,fe,xe;for(;++J<=O;){const Ne=C[J];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?G++:G--,xe=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(B&&!xe&&!G&&!fe&&(fe=J),xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xe=void 0}if(!G&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||G===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(B){let rn=J;for(ae=void 0;rn--;){const Bt=C[rn];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;ae&&(C[ae][1].type="lineEndingBlank",F=!0),Bt[1].type="lineEnding",ae=rn}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}fe&&(!ae||fe<ae)&&(B._spread=!0),B.end=Object.assign({},ae?C[ae][1].start:Ne[1].end),C.splice(ae||J,0,["exit",B,Ne[2]]),J++,O++}if(Ne[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};B=rn,C.splice(J,0,["enter",rn,Ne[2]]),J++,O++,fe=void 0,xe=!0}}}return C[P][1]._spread=F,O}function i(C,P){return O;function O(J){a.call(this,C(J),J),P&&P.call(this,J)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(C,P,O){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,O||void 0]),C.position={start:on(P.start),end:void 0}}function s(C){return P;function P(O){C&&C.call(this,O),u.call(this,O)}}function u(C,P){const O=this.stack.pop(),J=this.tokenStack.pop();if(J)J[0].type!==C.type&&(P?P.call(this,C,J[0]):(J[1]||t0).call(this,C,J[0]));else throw new Error("Cannot close `"+C.type+"` ("+tl({start:C.start,end:C.end})+"): it’s not open");O.position.end=on(C.end)}function d(){return fu(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(C){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function p(){const C=this.resume(),P=this.stack[this.stack.length-1];P.lang=C}function v(){const C=this.resume(),P=this.stack[this.stack.length-1];P.meta=C}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function H(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/(\r?\n|\r)$/g,"")}function y(C){const P=this.resume(),O=this.stack[this.stack.length-1];O.label=P,O.identifier=_t(this.sliceSerialize(C)).toLowerCase()}function x(){const C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function N(){const C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function _(C){const P=this.stack[this.stack.length-1];if(!P.depth){const O=this.sliceSerialize(C).length;P.depth=O}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function R(C){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function W(C){const O=this.stack[this.stack.length-1].children;let J=O[O.length-1];(!J||J.type!=="text")&&(J=q(),J.position={start:on(C.start),end:void 0},O.push(J)),this.stack.push(J)}function A(C){const P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=on(C.end)}function $(C){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=P.children[P.children.length-1];O.position.end=on(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(W.call(this,C),A.call(this,C))}function U(){this.data.atHardBreak=!0}function le(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function ne(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function Q(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function re(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function b(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function Z(C){const P=this.sliceSerialize(C),O=this.stack[this.stack.length-2];O.label=i4(P),O.identifier=_t(P).toLowerCase()}function K(){const C=this.stack[this.stack.length-1],P=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const J=C.children;O.children=J}else O.alt=P}function k(){const C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function ie(){const C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function ce(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function ke(C){const P=this.resume(),O=this.stack[this.stack.length-1];O.label=P,O.identifier=_t(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function be(C){this.data.characterReferenceType=C.type}function he(C){const P=this.sliceSerialize(C),O=this.data.characterReferenceType;let J;O?(J=sd(P,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):J=du(P);const G=this.stack[this.stack.length-1];G.value+=J}function _e(C){const P=this.stack.pop();P.position.end=on(C.end)}function Ke(C){A.call(this,C);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(C)}function ft(C){A.call(this,C);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(C)}function dt(){return{type:"blockquote",children:[]}}function Nt(){return{type:"code",lang:null,meta:null,value:""}}function nn(){return{type:"inlineCode",value:""}}function Nn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function rt(){return{type:"heading",depth:0,children:[]}}function j(){return{type:"break"}}function ee(){return{type:"html",value:""}}function X(){return{type:"image",title:null,url:"",alt:null}}function ye(){return{type:"link",title:null,url:"",children:[]}}function ge(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function T(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function I(){return{type:"paragraph",children:[]}}function E(){return{type:"strong",children:[]}}function q(){return{type:"text",value:""}}function L(){return{type:"thematicBreak"}}}function on(e){return{line:e.line,column:e.column,offset:e.offset}}function vd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vd(e,r):u4(e,r)}}function u4(e,t){let n;for(n in t)if(xd.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 t0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+tl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+tl({start:t.start,end:t.end})+") is still open")}function c4(e){const t=this;t.parser=n;function n(r){return a4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function f4(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 d4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
45
|
-
`}]}function p4(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 h4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function m4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function g4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Hr(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 y4(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 x4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function kd(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 v4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kd(e,t);const l={src:Hr(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 k4(e,t){const n={src:Hr(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 w4(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 S4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kd(e,t);const l={href:Hr(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 E4(e,t){const n={href:Hr(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 C4(e,t,n){const r=e.all(t),l=n?A4(n):wd(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.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 d=r[a];(l||a!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
47
|
-
`}),d.type==="element"&&d.tagName==="p"&&!l?o.push(...d.children):o.push(d)}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 A4(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=wd(n[r])}return t}function wd(e){const t=e.spread;return t??e.children.length>1}function M4(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 b4(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function N4(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function T4(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function H4(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=au(t.children[1]),s=ed(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 L4(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 f=t.children[s],h={},p=o?o[s]:void 0;p&&(h.align=p);let v={type:"element",tagName:i,properties:h,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),u.push(v)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function P4(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const n0=9,r0=32;function j4(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(l0(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(l0(t.slice(l),l>0,!1)),i.join("")}function l0(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===n0||i===r0;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===n0||i===r0;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function I4(e,t){const n={type:"text",value:j4(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _4(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const F4={blockquote:f4,break:d4,code:p4,delete:h4,emphasis:m4,footnoteReference:g4,heading:y4,html:x4,imageReference:v4,image:k4,inlineCode:w4,linkReference:S4,link:E4,listItem:C4,list:M4,paragraph:b4,root:N4,strong:T4,table:H4,tableCell:P4,tableRow:L4,text:I4,thematicBreak:_4,toml:Xl,yaml:Xl,definition:Xl,footnoteDefinition:Xl};function Xl(){}const Sd=-1,so=0,rl=1,Vi=2,hu=3,mu=4,gu=5,yu=6,Ed=7,Cd=8,R4=typeof self=="object"?self:globalThis,i0=(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 R4[e](t)},z4=(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 so:case Sd:return n(o,l);case rl:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Vi:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case hu:return n(new Date(o),l);case mu:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case gu:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case yu:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case Ed:{const{name:a,message:s}=o;return n(i0(a,s),l)}case Cd: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(i0(i,o),l)};return r},o0=e=>z4(new Map,e)(0),Xn="",{toString:D4}={},{keys:V4}=Object,Vr=e=>{const t=typeof e;if(t!=="object"||!e)return[so,t];const n=D4.call(e).slice(8,-1);switch(n){case"Array":return[rl,Xn];case"Object":return[Vi,Xn];case"Date":return[hu,Xn];case"RegExp":return[mu,Xn];case"Map":return[gu,Xn];case"Set":return[yu,Xn];case"DataView":return[rl,n]}return n.includes("Array")?[rl,n]:n.includes("Error")?[Ed,n]:[Vi,n]},ql=([e,t])=>e===so&&(t==="function"||t==="symbol"),Z4=(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]=Vr(o);switch(a){case so:{let d=o;switch(s){case"bigint":a=Cd,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);d=null;break;case"undefined":return l([Sd],o)}return l([a,d],o)}case rl:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),l([s,[...h]],o)}const d=[],f=l([a,d],o);for(const h of o)d.push(i(h));return f}case Vi:{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 d=[],f=l([a,d],o);for(const h of V4(o))(e||!ql(Vr(o[h])))&&d.push([i(h),i(o[h])]);return f}case hu:return l([a,o.toISOString()],o);case mu:{const{source:d,flags:f}=o;return l([a,{source:d,flags:f}],o)}case gu:{const d=[],f=l([a,d],o);for(const[h,p]of o)(e||!(ql(Vr(h))||ql(Vr(p))))&&d.push([i(h),i(p)]);return f}case yu:{const d=[],f=l([a,d],o);for(const h of o)(e||!ql(Vr(h)))&&d.push(i(h));return f}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},a0=(e,{json:t,lossy:n}={})=>{const r=[];return Z4(!(t||n),!!t,new Map,r)(e),r},Zi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?o0(a0(e,t)):structuredClone(e):(e,t)=>o0(a0(e,t));function O4(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 $4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function B4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||O4,r=e.options.footnoteBackLabel||$4,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 d=e.all(u),f=String(u.identifier).toUpperCase(),h=Hr(f.toLowerCase());let p=0;const v=[],w=e.footnoteCounts.get(f);for(;w!==void 0&&++p<=w;){v.length>0&&v.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,p);typeof y=="string"&&(y={type:"text",value:y}),v.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(y)?y:[y]})}const H=d[d.length-1];if(H&&H.type==="element"&&H.tagName==="p"){const y=H.children[H.children.length-1];y&&y.type==="text"?y.value+=" ":H.children.push({type:"text",value:" "}),H.children.push(...v)}else d.push(...v);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Zi(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 uo=function(e){if(e==null)return Y4;if(typeof e=="function")return co(e);if(typeof e=="object")return Array.isArray(e)?U4(e):W4(e);if(typeof e=="string")return Q4(e);throw new Error("Expected function, string, or object as test")};function U4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=uo(e[n]);return co(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function W4(e){const t=e;return co(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function Q4(e){return co(t);function t(n){return n&&n.type===e}}function co(e){return t;function t(n,r,l){return!!(X4(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function Y4(){return!0}function X4(e){return e!==null&&typeof e=="object"&&"type"in e}const Ad=[],q4=!0,ls=!1,K4="skip";function Md(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const i=uo(l),o=r?-1:1;a(e,void 0,[])();function a(s,u,d){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Ad,v,w,H;if((!t||i(s,u,d[d.length-1]||void 0))&&(p=G4(n(s,d)),p[0]===ls))return p;if("children"in s&&s.children){const g=s;if(g.children&&p[0]!==K4)for(w=(r?g.children.length:-1)+o,H=d.concat(g);w>-1&&w<g.children.length;){const y=g.children[w];if(v=a(y,w,H)(),v[0]===ls)return v;w=typeof v[1]=="number"?v[1]:w+o}}return p}}}function G4(e){return Array.isArray(e)?e:typeof e=="number"?[q4,e]:e==null?Ad:[e]}function xu(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),Md(e,i,a,l);function a(s,u){const d=u[u.length-1],f=d?d.children.indexOf(s):void 0;return o(s,f,d)}}const is={}.hasOwnProperty,J4={};function e6(e,t){const n=t||J4,r=new Map,l=new Map,i=new Map,o={...F4,...n.handlers},a={all:u,applyData:n6,definitionById:r,footnoteById:l,footnoteCounts:i,footnoteOrder:[],handlers:o,one:s,options:n,patch:t6,wrap:l6};return xu(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:l,h=String(d.identifier).toUpperCase();f.has(h)||f.set(h,d)}}),a;function s(d,f){const h=d.type,p=a.handlers[h];if(is.call(a.handlers,h)&&p)return p(a,d,f);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in d){const{children:w,...H}=d,g=Zi(H);return g.children=a.all(d),g}return Zi(d)}return(a.options.unknownHandler||r6)(a,d,f)}function u(d){const f=[];if("children"in d){const h=d.children;let p=-1;for(;++p<h.length;){const v=a.one(h[p],d);if(v){if(p&&h[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=s0(v.value)),!Array.isArray(v)&&v.type==="element")){const w=v.children[0];w&&w.type==="text"&&(w.value=s0(w.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function t6(e,t){e.position&&(t.position=O2(e))}function n6(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,Zi(i)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function r6(e,t){const n=t.data||{},r="value"in t&&!(is.call(n,"hProperties")||is.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 l6(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 s0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function u0(e,t){const n=e6(e,t),r=n.one(e,void 0),l=B4(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 i6(e,t){return e&&"run"in e?async function(n,r){const l=u0(n,{file:r,...t});await e.run(l,r)}:function(n,r){return u0(n,{file:r,...e||t})}}function c0(e){if(e)throw e}var pi=Object.prototype.hasOwnProperty,bd=Object.prototype.toString,f0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,p0=function(t){return typeof Array.isArray=="function"?Array.isArray(t):bd.call(t)==="[object Array]"},h0=function(t){if(!t||bd.call(t)!=="[object Object]")return!1;var n=pi.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&pi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||pi.call(t,l)},m0=function(t,n){f0&&n.name==="__proto__"?f0(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},g0=function(t,n){if(n==="__proto__")if(pi.call(t,n)){if(d0)return d0(t,n).value}else return;return t[n]},o6=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,d=!1;for(typeof a=="boolean"&&(d=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=g0(a,n),l=g0(t,n),a!==l&&(d&&l&&(h0(l)||(i=p0(l)))?(i?(i=!1,o=r&&p0(r)?r:[]):o=r&&h0(r)?r:{},m0(a,{name:n,newValue:e(d,o,l)})):typeof l<"u"&&m0(a,{name:n,newValue:l}));return a};const Uo=us(o6);function os(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 a6(){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 d=e[++i];let f=-1;if(s){o(s);return}for(;++f<l.length;)(u[f]===null||u[f]===void 0)&&(u[f]=l[f]);l=u,d?s6(d,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 s6(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 d=u;if(a&&n)throw d;return l(d)}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 Dt={basename:u6,dirname:c6,extname:f6,join:d6,sep:"/"};function u6(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hl(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 c6(e){if(Hl(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 f6(e){Hl(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 d6(...e){let t=-1,n;for(;++t<e.length;)Hl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":p6(n)}function p6(e){Hl(e);const t=e.codePointAt(0)===47;let n=h6(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function h6(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 Hl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const m6={cwd:g6};function g6(){return"/"}function as(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function y6(e){if(typeof e=="string")e=new URL(e);else if(!as(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 x6(e)}function x6(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 Wo=["history","path","basename","stem","extname","dirname"];class Nd{constructor(t){let n;t?as(t)?n={path:t}:typeof t=="string"||v6(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":m6.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Wo.length;){const i=Wo[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)Wo.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Dt.basename(this.path):void 0}set basename(t){Yo(t,"basename"),Qo(t,"basename"),this.path=Dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dt.dirname(this.path):void 0}set dirname(t){y0(this.basename,"dirname"),this.path=Dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dt.extname(this.path):void 0}set extname(t){if(Qo(t,"extname"),y0(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=Dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){as(t)&&(t=y6(t)),Yo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dt.basename(this.path,this.extname):void 0}set stem(t){Yo(t,"stem"),Qo(t,"stem"),this.path=Dt.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 Qo(e,t){if(e&&e.includes(Dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dt.sep+"`")}function Yo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function y0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function v6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const k6=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},w6={}.hasOwnProperty;class vu extends k6{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=a6()}copy(){const t=new vu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Uo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ko("data",this.frozen),this.namespace[t]=n,this):w6.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ko("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=Kl(t),r=this.parser||this.Parser;return Xo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Xo("process",this.parser||this.Parser),qo("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,o){const a=Kl(t),s=r.parse(a);r.run(s,a,function(d,f,h){if(d||!f||!h)return u(d);const p=f,v=r.stringify(p,h);C6(v)?h.value=v:h.result=v,u(d,h)});function u(d,f){d||!f?o(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Xo("processSync",this.parser||this.Parser),qo("processSync",this.compiler||this.Compiler),this.process(t,l),v0("processSync","process",n),r;function l(i,o){n=!0,c0(i),r=o}}run(t,n,r){x0(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=Kl(n);l.run(t,s,u);function u(d,f,h){const p=f||t;d?a(d):o?o(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),v0("runSync","run",r),l;function i(o,a){c0(o),l=a,r=!0}}stringify(t,n){this.freeze();const r=Kl(n),l=this.compiler||this.Compiler;return qo("stringify",l),x0(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Ko("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[d,...f]=u;s(d,f)}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=Uo(!0,l.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const f=u[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,d){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...d]);else if(d.length>0){let[p,...v]=d;const w=r[h][1];os(w)&&os(p)&&(p=Uo(!0,w,p)),r[h]=[u,p,...v]}}}}const S6=new vu().freeze();function Xo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ko(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 x0(e){if(!os(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function v0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Kl(e){return E6(e)?e:new Nd(e)}function E6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function C6(e){return typeof e=="string"||A6(e)}function A6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const M6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",k0=[],w0={allowDangerousHtml:!0},b6=/^(https?|ircs?|mailto|xmpp)$/i,N6=[{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 T6(e){const t=H6(e),n=L6(e);return P6(t.runSync(t.parse(n),n),e)}function H6(e){const t=e.rehypePlugins||k0,n=e.remarkPlugins||k0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...w0}:w0;return S6().use(c4).use(n).use(i6,r).use(t)}function L6(e){const t=e.children||"",n=new Nd;return typeof t=="string"&&(n.value=t),n}function P6(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||j6;for(const d of N6)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+M6+d.id,void 0);return xu(e,u),Q2(e,{Fragment:m.Fragment,components:l,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function u(d,f,h){if(d.type==="raw"&&h&&typeof f=="number")return o?h.children.splice(f,1):h.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let p;for(p in Oo)if(Object.hasOwn(Oo,p)&&Object.hasOwn(d.properties,p)){const v=d.properties[p],w=Oo[p];(w===null||w.includes(d.tagName))&&(d.properties[p]=s(String(v||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(d,f,h)),p&&h&&typeof f=="number")return a&&d.children?h.children.splice(f,1,...d.children):h.children.splice(f,1),f}}}function j6(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||b6.test(e.slice(0,t))?e:""}function S0(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 I6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function _6(e,t,n){const l=uo((n||{}).ignore||[]),i=F6(t);let o=-1;for(;++o<i.length;)Md(e,"text",a);function a(u,d){let f=-1,h;for(;++f<d.length;){const p=d[f],v=h?h.children:void 0;if(l(p,v?v.indexOf(p):void 0,h))return;h=p}if(h)return s(u,d)}function s(u,d){const f=d[d.length-1],h=i[o][0],p=i[o][1];let v=0;const H=f.children.indexOf(u);let g=!1,y=[];h.lastIndex=0;let x=h.exec(u.value);for(;x;){const N=x.index,_={index:x.index,input:x.input,stack:[...d,u]};let M=p(...x,_);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?h.lastIndex=N+1:(v!==N&&y.push({type:"text",value:u.value.slice(v,N)}),Array.isArray(M)?y.push(...M):M&&y.push(M),v=N+x[0].length,g=!0),!h.global)break;x=h.exec(u.value)}return g?(v<u.value.length&&y.push({type:"text",value:u.value.slice(v)}),f.children.splice(H,1,...y)):y=[u],H+y.length}}function F6(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([R6(l[0]),z6(l[1])])}return t}function R6(e){return typeof e=="string"?new RegExp(I6(e),"g"):e}function z6(e){return typeof e=="function"?e:function(){return e}}const Go="phrasing",Jo=["autolink","link","image","label"];function D6(){return{transforms:[W6],enter:{literalAutolink:Z6,literalAutolinkEmail:ea,literalAutolinkHttp:ea,literalAutolinkWww:ea},exit:{literalAutolink:U6,literalAutolinkEmail:B6,literalAutolinkHttp:O6,literalAutolinkWww:$6}}}function V6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Go,notInConstruct:Jo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Go,notInConstruct:Jo},{character:":",before:"[ps]",after:"\\/",inConstruct:Go,notInConstruct:Jo}]}}function Z6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ea(e){this.config.enter.autolinkProtocol.call(this,e)}function O6(e){this.config.exit.autolinkProtocol.call(this,e)}function $6(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 B6(e){this.config.exit.autolinkEmail.call(this,e)}function U6(e){this.exit(e)}function W6(e){_6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Q6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Y6]],{ignore:["link","linkReference"]})}function Q6(e,t,n,r,l){let i="";if(!Td(l)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!X6(n)))return!1;const o=q6(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 Y6(e,t,n,r){return!Td(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function X6(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 q6(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=S0(e,"(");let i=S0(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 Td(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Bn(n)||oo(n))&&(!t||n!==47)}Hd.peek=iy;function K6(){this.buffer()}function G6(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function J6(){this.buffer()}function ey(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ty(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=_t(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ny(e){this.exit(e)}function ry(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=_t(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ly(e){this.exit(e)}function iy(){return"["}function Hd(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 oy(){return{enter:{gfmFootnoteCallString:K6,gfmFootnoteCall:G6,gfmFootnoteDefinitionLabelString:J6,gfmFootnoteDefinition:ey},exit:{gfmFootnoteCallString:ty,gfmFootnoteCall:ny,gfmFootnoteDefinitionLabelString:ry,gfmFootnoteDefinition:ly}}}function ay(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Hd},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"),d=i.enter("label");return s+=a.move(i.safe(i.associationId(r),{before:s,after:"]"})),d(),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?Ld:sy))),u(),s}}function sy(e,t,n){return t===0?e:Ld(e,t,n)}function Ld(e,t,n){return(n?"":" ")+e}const uy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Pd.peek=hy;function cy(){return{canContainEols:["delete"],enter:{strikethrough:dy},exit:{strikethrough:py}}}function fy(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:uy}],handlers:{delete:Pd}}}function dy(e){this.enter({type:"delete",children:[]},e)}function py(e){this.exit(e)}function Pd(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 hy(){return"~"}function my(e){return e.length}function gy(e,t){const n=t||{},r=(n.align||[]).concat(),l=n.stringLength||my,i=[],o=[],a=[],s=[];let u=0,d=-1;for(;++d<e.length;){const w=[],H=[];let g=-1;for(e[d].length>u&&(u=e[d].length);++g<e[d].length;){const y=yy(e[d][g]);if(n.alignDelimiters!==!1){const x=l(y);H[g]=x,(s[g]===void 0||x>s[g])&&(s[g]=x)}w.push(y)}o[d]=w,a[d]=H}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)i[f]=E0(r[f]);else{const w=E0(r);for(;++f<u;)i[f]=w}f=-1;const h=[],p=[];for(;++f<u;){const w=i[f];let H="",g="";w===99?(H=":",g=":"):w===108?H=":":w===114&&(g=":");let y=n.alignDelimiters===!1?1:Math.max(1,s[f]-H.length-g.length);const x=H+"-".repeat(y)+g;n.alignDelimiters!==!1&&(y=H.length+y+g.length,y>s[f]&&(s[f]=y),p[f]=y),h[f]=x}o.splice(1,0,h),a.splice(1,0,p),d=-1;const v=[];for(;++d<o.length;){const w=o[d],H=a[d];f=-1;const g=[];for(;++f<u;){const y=w[f]||"";let x="",N="";if(n.alignDelimiters!==!1){const _=s[f]-(H[f]||0),M=i[f];M===114?x=" ".repeat(_):M===99?_%2?(x=" ".repeat(_/2+.5),N=" ".repeat(_/2-.5)):(x=" ".repeat(_/2),N=x):N=" ".repeat(_)}n.delimiterStart!==!1&&!f&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||f)&&g.push(" "),n.alignDelimiters!==!1&&g.push(x),g.push(y),n.alignDelimiters!==!1&&g.push(N),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&g.push("|")}v.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return v.join(`
|
|
56
|
-
`)}function yy(e){return e==null?"":String(e)}function E0(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 xy(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()),vy);return l(),o}function vy(e,t,n){return">"+(n?"":" ")+e}function ky(e,t){return C0(e,t.inConstruct,!0)&&!C0(e,t.notInConstruct,!1)}function C0(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 A0(e,t,n,r){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
57
|
-
`&&ky(n.stack,n.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
58
|
-
`}function wy(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 Sy(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 Ey(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 Cy(e,t,n,r){const l=Ey(n),i=e.value||"",o=l==="`"?"GraveAccent":"Tilde";if(Sy(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(i,Ay);return f(),h}const a=n.createTracker(r),s=l.repeat(Math.max(wy(i,l)+1,3)),u=n.enter("codeFenced");let d=a.move(s);if(e.lang){const f=n.enter(`codeFencedLang${o}`);d+=a.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);d+=a.move(" "),d+=a.move(n.safe(e.meta,{before:d,after:`
|
|
59
|
-
`,encode:["`"],...a.current()})),f()}return d+=a.move(`
|
|
60
|
-
`),i&&(d+=a.move(i+`
|
|
61
|
-
`)),d+=a.move(s),u(),d}function Ay(e,t,n){return(n?"":" ")+e}function ku(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 My(e,t,n,r){const l=ku(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 by(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 Sl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Oi(e,t,n){const r=Ar(e),l=Ar(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}}jd.peek=Ny;function jd(e,t,n,r){const l=by(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),d=Oi(r.before.charCodeAt(r.before.length-1),u,l);d.inside&&(s=Sl(u)+s.slice(1));const f=s.charCodeAt(s.length-1),h=Oi(r.after.charCodeAt(0),f,l);h.inside&&(s=s.slice(0,-1)+Sl(f));const p=o.move(l);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},a+s+p}function Ny(e,t,n){return n.options.emphasis||"*"}function Ty(e,t){let n=!1;return xu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ls}),!!((!e.depth||e.depth<3)&&fu(e)&&(t.options.setext||n))}function Hy(e,t,n,r){const l=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(Ty(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...i.current(),before:`
|
|
63
|
-
`,after:`
|
|
64
|
-
`});return f(),d(),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=Sl(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}Id.peek=Ly;function Id(e){return e.value||""}function Ly(){return"<"}_d.peek=Py;function _d(e,t,n,r){const l=ku(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 Py(){return"!"}Fd.peek=jy;function Fd(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 d=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=d,i(),l==="full"||!u||u!==f?s+=a.move(f+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function jy(){return"!"}Rd.peek=Iy;function Rd(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 Iy(){return"`"}function zd(e,t){const n=fu(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))}Dd.peek=_y;function Dd(e,t,n,r){const l=ku(n),i=l==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(zd(e,n)){const d=n.stack;n.stack=[],a=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),n.stack=d,f}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 _y(e,t,n){return zd(e,n)?"<":"["}Vd.peek=Fy;function Vd(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 d=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=d,i(),l==="full"||!u||u!==f?s+=a.move(f+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Fy(){return"["}function wu(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 Ry(e){const t=wu(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 zy(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 Zd(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 Dy(e,t,n,r){const l=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?zy(n):wu(n);const a=e.ordered?o==="."?")":".":Ry(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.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),Zd(n)===o&&d){let f=-1;for(;++f<e.children.length;){const h=e.children[f];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 Vy(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 Zy(e,t,n,r){const l=Vy(n);let i=n.bulletCurrent||wu(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()),d);return s(),u;function d(f,h,p){return h?(p?"":" ".repeat(o))+f:(p?i:i+" ".repeat(o-i.length))+f}}function Oy(e,t,n,r){const l=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),l(),o}const $y=uo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function By(e,t,n,r){return(e.children.some(function(o){return $y(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Uy(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Od.peek=Wy;function Od(e,t,n,r){const l=Uy(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),d=Oi(r.before.charCodeAt(r.before.length-1),u,l);d.inside&&(s=Sl(u)+s.slice(1));const f=s.charCodeAt(s.length-1),h=Oi(r.after.charCodeAt(0),f,l);h.inside&&(s=s.slice(0,-1)+Sl(f));const p=o.move(l+l);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},a+s+p}function Wy(e,t,n){return n.options.strong||"*"}function Qy(e,t,n,r){return n.safe(e.value,r)}function Yy(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 Xy(e,t,n){const r=(Zd(n)+(n.options.ruleSpaces?" ":"")).repeat(Yy(n));return n.options.ruleSpaces?r.slice(0,-1):r}const $d={blockquote:xy,break:A0,code:Cy,definition:My,emphasis:jd,hardBreak:A0,heading:Hy,html:Id,image:_d,imageReference:Fd,inlineCode:Rd,link:Dd,linkReference:Vd,list:Dy,listItem:Zy,paragraph:Oy,root:By,strong:Od,text:Qy,thematicBreak:Xy};function qy(){return{enter:{table:Ky,tableData:M0,tableHeader:M0,tableRow:Jy},exit:{codeText:ex,table:Gy,tableData:ta,tableHeader:ta,tableRow:ta}}}function Ky(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 Gy(e){this.exit(e),this.data.inTable=void 0}function Jy(e){this.enter({type:"tableRow",children:[]},e)}function ta(e){this.exit(e)}function M0(e){this.enter({type:"tableCell",children:[]},e)}function ex(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,tx));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function tx(e,t){return t==="|"?t:e}function nx(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,v,w,H){return u(d(p,w,H),p.align)}function a(p,v,w,H){const g=f(p,w,H),y=u([g]);return y.slice(0,y.indexOf(`
|
|
69
|
-
`))}function s(p,v,w,H){const g=w.enter("tableCell"),y=w.enter("phrasing"),x=w.containerPhrasing(p,{...H,before:i,after:i});return y(),g(),x}function u(p,v){return gy(p,{align:v,alignDelimiters:r,padding:n,stringLength:l})}function d(p,v,w){const H=p.children;let g=-1;const y=[],x=v.enter("table");for(;++g<H.length;)y[g]=f(H[g],v,w);return x(),y}function f(p,v,w){const H=p.children;let g=-1;const y=[],x=v.enter("tableRow");for(;++g<H.length;)y[g]=s(H[g],p,v,w);return x(),y}function h(p,v,w){let H=$d.inlineCode(p,v,w);return w.stack.includes("tableCell")&&(H=H.replace(/\|/g,"\\$&")),H}}function rx(){return{exit:{taskListCheckValueChecked:b0,taskListCheckValueUnchecked:b0,paragraph:ix}}}function lx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ox}}}function b0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ix(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 ox(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=$d.listItem(e,t,n,{...r,...a.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(d){return d+o}}function ax(){return[D6(),oy(),cy(),qy(),rx()]}function sx(e){return{extensions:[V6(),ay(e),fy(),nx(e),lx()]}}const ux={tokenize:mx,partial:!0},Bd={tokenize:gx,partial:!0},Ud={tokenize:yx,partial:!0},Wd={tokenize:xx,partial:!0},cx={tokenize:vx,partial:!0},Qd={name:"wwwAutolink",tokenize:px,previous:Xd},Yd={name:"protocolAutolink",tokenize:hx,previous:qd},tn={name:"emailAutolink",tokenize:dx,previous:Kd},$t={};function fx(){return{text:$t}}let Hn=48;for(;Hn<123;)$t[Hn]=tn,Hn++,Hn===58?Hn=65:Hn===91&&(Hn=97);$t[43]=tn;$t[45]=tn;$t[46]=tn;$t[95]=tn;$t[72]=[tn,Yd];$t[104]=[tn,Yd];$t[87]=[tn,Qd];$t[119]=[tn,Qd];function dx(e,t,n){const r=this;let l,i;return o;function o(f){return!ss(f)||!Kd.call(r,r.previous)||Su(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return ss(f)?(e.consume(f),a):f===64?(e.consume(f),s):n(f)}function s(f){return f===46?e.check(cx,d,u)(f):f===45||f===95||Ye(f)?(i=!0,e.consume(f),s):d(f)}function u(f){return e.consume(f),l=!0,s}function d(f){return i&&l&&Je(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function px(e,t,n){const r=this;return l;function l(o){return o!==87&&o!==119||!Xd.call(r,r.previous)||Su(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ux,e.attempt(Bd,e.attempt(Ud,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function hx(e,t,n){const r=this;let l="",i=!1;return o;function o(f){return(f===72||f===104)&&qd.call(r,r.previous)&&!Su(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(Je(f)&&l.length<5)return l+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const h=l.toLowerCase();if(h==="http"||h==="https")return e.consume(f),s}return n(f)}function s(f){return f===47?(e.consume(f),i?u:(i=!0,s)):n(f)}function u(f){return f===null||Di(f)||we(f)||Bn(f)||oo(f)?n(f):e.attempt(Bd,e.attempt(Ud,d),n)(f)}function d(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function mx(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 gx(e,t,n){let r,l,i;return o;function o(u){return u===46||u===95?e.check(Wd,s,a)(u):u===null||we(u)||Bn(u)||u!==45&&oo(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 yx(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(Wd,t,i)(o):o===null||we(o)||Bn(o)?t(o):(e.consume(o),l)}function i(o){return o===41&&r++,e.consume(o),l}}function xx(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||we(a)||Bn(a)?t(a):n(a)}function l(a){return a===null||a===40||a===91||we(a)||Bn(a)?t(a):r(a)}function i(a){return Je(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):Je(a)?(e.consume(a),o):n(a)}}function vx(e,t,n){return r;function r(i){return e.consume(i),l}function l(i){return Ye(i)?n(i):t(i)}}function Xd(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function qd(e){return!Je(e)}function Kd(e){return!(e===47||ss(e))}function ss(e){return e===43||e===45||e===46||e===95||Ye(e)}function Su(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 kx={tokenize:Nx,partial:!0};function wx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ax,continuation:{tokenize:Mx},exit:bx}},text:{91:{name:"gfmFootnoteCall",tokenize:Cx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Sx,resolveTo:Ex}}}}function Sx(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=_t(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 Ex(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 Cx(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),s}function s(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!o||f===null||f===91||we(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return l.includes(_t(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return we(f)||(o=!0),i++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function Ax(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,a;return s;function s(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(v)}function d(v){if(o>999||v===93&&!a||v===null||v===91||we(v))return n(v);if(v===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return i=_t(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return we(v)||(a=!0),o++,e.consume(v),v===92?f:d}function f(v){return v===91||v===92||v===93?(e.consume(v),o++,d):d(v)}function h(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),l.includes(i)||l.push(i),de(e,p,"gfmFootnoteDefinitionWhitespace")):n(v)}function p(v){return t(v)}}function Mx(e,t,n){return e.check(Tl,t,e.attempt(kx,t,n))}function bx(e){e.exit("gfmFootnoteDefinition")}function Nx(e,t,n){const r=this;return de(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 Tx(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 d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",d,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&yt(h,h.length,0,ao(p,o.slice(u+1,s),a)),yt(h,h.length,0,[["exit",f,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",d,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,d=this.events;let f=0;return h;function h(v){return u===126&&d[d.length-1][1].type!=="characterEscape"?s(v):(o.enter("strikethroughSequenceTemporary"),p(v))}function p(v){const w=Ar(u);if(v===126)return f>1?s(v):(o.consume(v),f++,p);if(f<2&&!n)return s(v);const H=o.exit("strikethroughSequenceTemporary"),g=Ar(v);return H._open=!g||g===2&&!!w,H._close=!w||w===2&&!!g,a(v)}}}class Hx{constructor(){this.map=[]}add(t,n,r){Lx(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 Lx(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 Px(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 jx(){return{flow:{null:{name:"table",tokenize:Ix,resolveAll:_x}}}}function Ix(e,t,n){const r=this;let l=0,i=0,o;return a;function a(A){let $=r.events.length-1;for(;$>-1;){const ne=r.events[$][1].type;if(ne==="lineEnding"||ne==="linePrefix")$--;else break}const U=$>-1?r.events[$][1].type:null,le=U==="tableHead"||U==="tableRow"?M:s;return le===M&&r.parser.lazy[r.now().line]?n(A):le(A)}function s(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(o=!0,i+=1),d(A)}function d(A){return A===null?n(A):te(A)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):se(A)?de(e,d,"whitespace")(A):(i+=1,o&&(o=!1,l+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),f(A)))}function f(A){return A===null||A===124||we(A)?(e.exit("data"),d(A)):(e.consume(A),A===92?h:f)}function h(A){return A===92||A===124?(e.consume(A),f):f(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),o=!1,se(A)?de(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):v(A))}function v(A){return A===45||A===58?H(A):A===124?(o=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),w):_(A)}function w(A){return se(A)?de(e,H,"whitespace")(A):H(A)}function H(A){return A===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),g):A===45?(i+=1,g(A)):A===null||te(A)?N(A):_(A)}function g(A){return A===45?(e.enter("tableDelimiterFiller"),y(A)):_(A)}function y(A){return A===45?(e.consume(A),y):A===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(A))}function x(A){return se(A)?de(e,N,"whitespace")(A):N(A)}function N(A){return A===124?v(A):A===null||te(A)?!o||l!==i?_(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):_(A)}function _(A){return n(A)}function M(A){return e.enter("tableRow"),R(A)}function R(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),R):A===null||te(A)?(e.exit("tableRow"),t(A)):se(A)?de(e,R,"whitespace")(A):(e.enter("data"),z(A))}function z(A){return A===null||A===124||we(A)?(e.exit("data"),R(A)):(e.consume(A),A===92?W:z)}function W(A){return A===92||A===124?(e.consume(A),z):z(A)}}function _x(e,t){let n=-1,r=!0,l=0,i=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,d,f;const h=new Hx;for(;++n<e.length;){const p=e[n],v=p[1];p[0]==="enter"?v.type==="tableHead"?(a=!1,s!==0&&(N0(h,t,s,u,d),d=void 0,s=0),u={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",u,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,d={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",d,t]])),l=v.type==="tableDelimiterRow"?2:d?3:1):l&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],f=Gl(h,t,i,l,void 0,f),i=[0,0,0,0]),o[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],f=Gl(h,t,i,l,void 0,f)),i=o,o=[i[1],n,0,0])):v.type==="tableHead"?(a=!0,s=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(s=n,i[1]!==0?(o[0]=o[1],f=Gl(h,t,i,l,n,f)):o[1]!==0&&(f=Gl(h,t,o,l,n,f)),l=0):l&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&N0(h,t,s,u,d),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=Px(t.events,n))}return e}function Gl(e,t,n,r,l,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},Gn(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=Gn(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=Gn(t.events,n[2]),d=Gn(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",f,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 v=n[2]+1,w=n[3]-n[2]-1;e.add(v,w,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return l!==void 0&&(i.end=Object.assign({},Gn(t.events,l)),e.add(l,0,[["exit",i,t]]),i=void 0),i}function N0(e,t,n,r,l){const i=[],o=Gn(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 Gn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Fx={name:"tasklistCheck",tokenize:zx};function Rx(){return{text:{91:Fx}}}function zx(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 we(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 te(s)?t(s):se(s)?e.check({tokenize:Dx},t,n)(s):n(s)}}function Dx(e,t,n){return de(e,r,"whitespace");function r(l){return l===null?n(l):t(l)}}function Vx(e){return ad([fx(),wx(),Tx(e),jx(),Rx()])}const Zx={};function Ox(e){const t=this,n=e||Zx,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(Vx(n)),i.push(ax()),o.push(sx(n))}function Eu({children:e,className:t=""}){return m.jsx("div",{className:`prose prose-sm max-w-none break-words ${t}`,children:m.jsx(T6,{remarkPlugins:[Ox],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
|
-
`).flatMap((a,s)=>{const u=m.jsx("span",{"data-collider":"code-line",children:a},s);return s>0?[`
|
|
71
|
-
`,u]:[u]}):n;return m.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?m.jsx("code",{className:n,...l,children:r}):m.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})=>m.jsx("div",{className:"overflow-x-auto my-2",children:m.jsx("table",{className:"min-w-full border-collapse text-xs",style:{border:"1px solid var(--color-border)"},children:n})}),th:({children:n})=>m.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})=>m.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})=>m.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:"var(--color-accent)"},children:r}),img:({src:n,alt:r})=>m.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 $x(e){const t=[],n=/data:(image\/[a-zA-Z+.-]+);base64,([A-Za-z0-9+/=]+)/g;let r=e,l;for(;(l=n.exec(e))!==null;)t.push({mimeType:l[1],data:l[2]});if(r=r.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"}),r="[Image]"):i.startsWith("/9j/")?(t.push({data:i,mimeType:"image/jpeg"}),r="[Image]"):i.startsWith("R0lGOD")?(t.push({data:i,mimeType:"image/gif"}),r="[Image]"):i.startsWith("UklGR")&&(t.push({data:i,mimeType:"image/webp"}),r="[Image]")}return{images:t,cleanedText:r}}function Bx(e){if(e<1e3)return"0s";const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return`${n}m ${r}s`}function Ux(e){const t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return null;try{return JSON.parse(t)}catch{return null}}function Wx(e){const t=[],n=r=>{const l={},i=[];for(const[o,a]of Object.entries(r)){if(a==null)continue;const s=o.toLowerCase();if(s==="title"||s==="name"||s==="label")l.title=String(a);else if(s==="score"||s==="relevance"||s==="rank"){const u=Number(a);l.score=Number.isFinite(u)?u.toFixed(2):String(a)}else s==="url"||s==="link"||s==="href"?l.url=String(a):s==="content"||s==="snippet"||s==="summary"||s==="description"||s==="text"||s==="body"?l.content=String(a):(typeof a=="string"||typeof a=="number"||typeof a=="boolean")&&i.push({label:o,value:String(a)})}return i.length>0&&(l.metaFields=i),l};if(Array.isArray(e))for(const r of e)r&&typeof r=="object"&&!Array.isArray(r)&&t.push(n(r));else if(e&&typeof e=="object"){const r=e;for(const[,l]of Object.entries(r))if(Array.isArray(l)&&l.length>0&&l[0]&&typeof l[0]=="object"){for(const i of l)i&&typeof i=="object"&&!Array.isArray(i)&&t.push(n(i));break}t.length===0&&t.push(n(r))}return t}function Qx({item:e}){const t=e.content&&e.content.includes(`
|
|
72
|
-
`);return m.jsxs("div",{className:"mcp-rich-item","data-collider":"tool-result-line",children:[m.jsxs("div",{className:"r-head",children:[e.title&&m.jsx("span",{className:"r-title",children:e.title}),e.score!==void 0&&m.jsx("span",{className:"r-score",children:e.score})]}),e.url&&m.jsx("div",{className:"r-url",children:e.url}),e.content&&m.jsx("div",{className:"r-content",children:t?e.content.split(`
|
|
73
|
-
`).map((n,r)=>m.jsx("p",{children:n},r)):m.jsx("p",{children:e.content})}),e.metaFields&&e.metaFields.length>0&&m.jsx("div",{className:"r-meta-row",children:e.metaFields.map((n,r)=>m.jsxs("span",{children:[n.label,": ",n.value]},r))})]})}function Yx({tool:e,thinking:t}){const n=e.isError,r=e.result&&e.result.length>0,l=e.name.startsWith("mcp__"),i=!!e.mcpApp,[o,a]=c.useState(l&&!r),s=c.useRef(!1),u=typeof e.progress=="number",d=typeof e.progressTotal=="number"&&e.progressTotal>0,f=d?Math.max(0,Math.min(100,Math.round(e.progress/e.progressTotal*100))):0,h=u&&!d,p=r&&!n,v=c.useRef(Date.now()),[w,H]=c.useState(0);c.useEffect(()=>{if(!l||r)return;v.current=Date.now();const Q=setInterval(()=>{H(Date.now()-v.current)},1e3);return()=>clearInterval(Q)},[l,r]);const g=r?"":Bx(w),y=c.useRef(u);c.useEffect(()=>{u&&!y.current&&!s.current&&a(!0),y.current=u},[u]);const[x,N]=c.useState(!1);u&&!r&&x&&N(!1);const _=()=>{o?s.current=!0:s.current=!1,a(!o)},M=n?"✗":r&&!n?"✓":"◌",R=n?"err":"ok",z=u&&!r?" spinner":"",W=u&&!p,A=p&&!x,$=c.useMemo(()=>{if(e.images&&e.images.length>0)return e.images.map(re=>({data:re.data,mimeType:re.mimeType}));if(!r||i)return null;const Q=$x(e.result);return Q.images.length>0?Q.images:null},[e.images,e.result,r,i]),U=c.useMemo(()=>!l||!r||i?null:Ux(e.result),[l,r,i,e.result]),le=c.useMemo(()=>U?Wx(U):null,[U]),ne=le&&le.length>0;return m.jsxs("div",{"data-collider":"tool-card",className:`tool-card${l?" mcp":""}${o?" open":""}`,children:[m.jsxs("div",{"data-collider":"tool-header",className:"tool-card-header",onClick:_,children:[m.jsx("span",{className:`status ${R}${z}`,children:M}),m.jsx("span",{className:"name",children:e.name}),l&&m.jsx("span",{className:"mcp-badge",children:"MCP"}),e.args&&m.jsx("span",{className:"args",children:e.args}),!o&&u&&m.jsxs("span",{className:"mini-progress-bar",children:[m.jsx("span",{className:"mini-progress-bar-track",children:m.jsx("span",{className:`mini-progress-fill${h?" indeterminate":""}`,style:h?void 0:{width:`${f}%`}})}),!h&&m.jsxs("span",{className:"mini-progress-text",children:[f,"%"]})]}),m.jsx("span",{className:"arrow",children:"▾"})]}),m.jsxs("div",{className:"tool-card-body",children:[l&&!r&&m.jsxs("div",{className:"exec-card","data-collider":"exec-card",children:[m.jsxs("div",{className:"exec-card-top",children:[m.jsxs("span",{className:"exec-card-label",children:[m.jsx("span",{className:"exec-pulse-dot"}),"Live · ",u?"executing":"waiting"]}),g&&m.jsx("span",{className:"exec-elapsed",children:g})]}),u?m.jsxs("div",{className:"exec-progress-section",children:[m.jsx("div",{className:"progress-bar",children:m.jsx("div",{className:`progress-fill${h?" indeterminate":""}`,style:h?void 0:{width:`${f}%`}})}),m.jsxs("div",{className:"exec-progress-footer",children:[!h&&m.jsxs("span",{className:"progress-text",children:[f,"%"]}),e.progressMessage&&m.jsx("span",{className:"progress-message",children:e.progressMessage})]})]}):m.jsx("span",{className:"exec-waiting-text",children:"Waiting for execution to begin…"})]}),!l&&(W||A)&&m.jsxs("div",{className:`progress-container${A?" progress-fade-out":""}`,onTransitionEnd:()=>{A&&N(!0)},children:[m.jsx("div",{className:"progress-bar",children:m.jsx("div",{className:`progress-fill${h?" indeterminate":""}`,style:h?void 0:{width:`${f}%`}})}),!h&&m.jsxs("span",{className:"progress-text",children:[f,"%"]}),e.progressMessage&&m.jsx("span",{className:"progress-message",children:e.progressMessage})]}),$&&$.length>0&&m.jsx("div",{style:{padding:"8px 14px",display:"flex",flexWrap:"wrap",gap:"8px"},children:$.map((Q,re)=>m.jsx("img",{src:`data:${Q.mimeType};base64,${Q.data}`,alt:`Tool result image ${re+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:${Q.mimeType};base64,${Q.data}`,"_blank")},re))}),r&&!i&&!l&&m.jsx("div",{className:"tool-card-body-inner",children:e.result.split(`
|
|
74
|
-
`).map((Q,re)=>m.jsx("span",{"data-collider":"tool-result-line",children:Q===""?m.jsx("br",{}):m.jsx(Eu,{className:"text-xs",children:Q})},re))}),l&&ne&&m.jsx("div",{className:"mcp-rich-list",children:le.map((Q,re)=>m.jsx(Qx,{item:Q},re))}),l&&!ne&&r&&m.jsx("div",{className:"mcp-raw-block","data-collider":"tool-result-line",children:e.result})]}),i&&o&&m.jsx("div",{style:{padding:"0 14px 12px"},children:m.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 Xx=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),c.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),qx=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),Kx=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),Gx=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),Jx=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),ev=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),tv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"}))]]),nv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),rv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),lv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),iv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),ov=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),av=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),c.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),sv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),uv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),cv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,52H168a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm176,16H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm-48,40H40a12,12,0,0,0,0,24H168a12,12,0,0,0,0-24Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,64V168a16,16,0,0,1-16,16H40V64Z",opacity:"0.2"}),c.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"}))],["fill",c.createElement(c.Fragment,null,c.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,32ZM160,184H64a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-32H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16ZM56,112a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H64A8,8,0,0,1,56,112ZM192,88H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,46H168a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm176,28H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm-48,40H40a6,6,0,0,0,0,12H168a6,6,0,0,0,0-12Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,44H168a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm176,32H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm-48,40H40a4,4,0,0,0,0,8H168a4,4,0,0,0,0-8Z"}))]]),fv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),dv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V160a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,120H44V60H212Zm24,52a12,12,0,0,1-12,12H32a12,12,0,0,1,0-24H224A12,12,0,0,1,236,208ZM104,128V88a12,12,0,0,1,18.36-10.18l32,20a12,12,0,0,1,0,20.36l-32,20A12,12,0,0,1,104,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V168a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V56A8,8,0,0,0,216,48ZM112,144V80l48,32Z",opacity:"0.2"}),c.createElement("path",{d:"M164.44,105.34l-48-32A8,8,0,0,0,104,80v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,129.05V95l25.58,17ZM216,40H40A16,16,0,0,0,24,56V168a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,128H40V56H216V168Zm16,40a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16H224A8,8,0,0,1,232,208Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16H224A8,8,0,0,1,232,208Zm0-152V168a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-68,56a8,8,0,0,0-3.41-6.55l-40-28A8,8,0,0,0,108,84v56a8,8,0,0,0,12.59,6.55l40-28A8,8,0,0,0,164,112Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M163.33,107l-48-32A6,6,0,0,0,106,80v64a6,6,0,0,0,9.33,5l48-32a6,6,0,0,0,0-10ZM118,132.79V91.21L149.18,112ZM216,42H40A14,14,0,0,0,26,56V168a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42Zm2,126a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Zm12,40a6,6,0,0,1-6,6H32a6,6,0,0,1,0-12H224A6,6,0,0,1,230,208Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.44,105.34l-48-32A8,8,0,0,0,104,80v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,129.05V95l25.58,17ZM216,40H40A16,16,0,0,0,24,56V168a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,128H40V56H216V168Zm16,40a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16H224A8,8,0,0,1,232,208Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.22,108.67l-48-32A4,4,0,0,0,108,80v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,136.53V87.47L152.79,112ZM216,44H40A12,12,0,0,0,28,56V168a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44Zm4,124a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Zm8,40a4,4,0,0,1-4,4H32a4,4,0,0,1,0-8H224A4,4,0,0,1,228,208Z"}))]]),pv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),hv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),mv=new Map([["bold",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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",c.createElement(c.Fragment,null,c.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"}))]]),gv=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),je=c.forwardRef((e,t)=>{const{alt:n,color:r,size:l,weight:i,mirrored:o,children:a,weights:s,...u}=e,{color:d="currentColor",size:f,weight:h="regular",mirrored:p=!1,...v}=c.useContext(gv);return c.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??f,height:l??f,fill:r??d,viewBox:"0 0 256 256",transform:o||p?"scale(-1, 1)":void 0,...v,...u},!!n&&c.createElement("title",null,n),a,s.get(i??h))});je.displayName="IconBase";const Gd=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:Xx}));Gd.displayName="ArchiveIcon";const yv=Gd,Jd=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:qx}));Jd.displayName="ChartBarIcon";const xv=Jd,ep=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:Kx}));ep.displayName="ChatIcon";const vv=ep,tp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:Gx}));tp.displayName="FileIcon";const np=tp,rp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:Jx}));rp.displayName="FilePdfIcon";const kv=rp,lp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:ev}));lp.displayName="FolderIcon";const wv=lp,ip=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:tv}));ip.displayName="ImageIcon";const Sv=ip,op=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:nv}));op.displayName="InfoIcon";const Ev=op,ap=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:rv}));ap.displayName="ListIcon";const Cv=ap,sp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:lv}));sp.displayName="MoonIcon";const Av=sp,up=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:iv}));up.displayName="PaperPlaneTiltIcon";const Mv=up,cp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:ov}));cp.displayName="PlusIcon";const fp=cp,dp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:av}));dp.displayName="SpeakerHighIcon";const bv=dp,pp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:sv}));pp.displayName="SpinnerIcon";const Nv=pp,hp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:uv}));hp.displayName="SunIcon";const Tv=hp,mp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:cv}));mp.displayName="TextAlignLeftIcon";const Hv=mp,gp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:fv}));gp.displayName="TrashIcon";const yp=gp,xp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:dv}));xp.displayName="VideoIcon";const Lv=xp,vp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:pv}));vp.displayName="WarningIcon";const Pv=vp,kp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:hv}));kp.displayName="XIcon";const fo=kp,wp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:mv}));wp.displayName="XCircleIcon";const jv=wp;function Iv({messages:e,processing:t,hasStreaming:n,sessionActiveMs:r,permissionPrompt:l,onPermission:i,containerRef:o,scrollLocked:a=!1}){const s=c.useRef(null),u=c.useRef(null),d=c.useRef(!0),f=r;c.useLayoutEffect(()=>{d.current&&s.current&&s.current.scrollIntoView({behavior:n?"instant":"smooth"})},[e,t,l]);const h=c.useCallback(()=>{const p=u.current;if(!p)return;const v=d.current,w=p.scrollTop+p.clientHeight>=p.scrollHeight-64;d.current=w,!v&&w&&n&&requestAnimationFrame(()=>{var H;(H=s.current)==null||H.scrollIntoView({behavior:"instant"})})},[n]);return e.length===0&&!l?m.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:m.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:[m.jsx("h2",{className:"text-2xl font-bold mb-3",style:{color:"var(--color-accent)"},children:"DSCode Web"}),m.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."}),m.jsxs("div",{className:"space-y-2 text-xs",style:{color:"var(--color-text-muted)"},children:[m.jsxs("p",{children:["Type"," ",m.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"]}),m.jsxs("p",{children:["Press"," ",m.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"]})]})]})}):m.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=>m.jsx(_v,{fallback:m.jsx(Fv,{message:p}),children:p.role==="user"?m.jsx(Vv,{message:p}):m.jsx(Zv,{message:p,sessionTime:f})},p.id)),t&&!n&&!l&&m.jsx(zv,{sessionTime:f}),l&&m.jsx(Dv,{toolName:l.toolName,preview:l.preview,fuzzyPattern:l.fuzzyPattern,fuzzyArgDesc:l.fuzzyArgDesc,llmSuggestions:l.llmSuggestions,onDecision:i}),m.jsx("div",{ref:s})]})}class _v extends $0.Component{constructor(){super(...arguments);po(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 Fv({message:e}){return m.jsx("div",{className:"flex justify-start",children:m.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:[m.jsx("div",{className:"text-xs font-bold mb-1",children:"Render Error"}),m.jsxs("div",{className:"text-xs font-mono break-all",children:["role=",e.role," | content=",String(e.content).slice(0,60)]})]})})}function Rv(e){return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function zv({sessionTime:e}){return m.jsx("div",{className:"flex justify-start animate-fade-up",children:m.jsx("div",{className:"px-4 py-3",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs("div",{className:"flex gap-1",children:[m.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"0ms"}}),m.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"150ms"}}),m.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"300ms"}})]}),m.jsx("span",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Waiting..."}),m.jsxs("span",{className:"text-xs tabular-nums",style:{color:"var(--color-text-muted)"},children:["(",Rv(Math.floor(e/1e3)),")"]})]})})})}function Dv({toolName:e,preview:t,fuzzyPattern:n,fuzzyArgDesc:r,llmSuggestions:l,onDecision:i}){const[o,a]=c.useState(!1),[s,u]=c.useState(""),[d,f]=c.useState(!1),[h,p]=c.useState("save"),v=H=>{f(!1),h==="session"||h==="allow"?H===0?i("always_allow"):i("always_allow",void 0,n??void 0,H):i("always_allow_save",void 0,H===1?n??void 0:void 0,H)},w=()=>{s.trim()&&(i("deny",s.trim()),u(""),a(!1))};return m.jsx("div",{className:"flex justify-start animate-fade-up",children:m.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:[m.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[m.jsx(Pv,{size:16,weight:"bold",style:{color:"var(--color-warning-text)"}}),m.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-warning-text)"},children:"Permission Required"})]}),m.jsx("div",{className:"mb-2 text-xs font-mono",style:{color:"var(--color-accent)"},children:e}),m.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?m.jsxs("div",{className:"space-y-2",children:[m.jsx("textarea",{value:s,onChange:H=>u(H.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:H=>{H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),w()),H.key==="Escape"&&(u(""),a(!1))}}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:w,disabled:!s.trim(),className:"btn-primary text-xs",children:"Submit"}),m.jsx("button",{onClick:()=>{u(""),a(!1)},className:"btn-secondary text-xs",children:"Cancel"})]})]}):d?m.jsxs("div",{className:"flex gap-2 flex-wrap",children:[h==="session"?m.jsxs(m.Fragment,{children:[m.jsxs("button",{onClick:()=>v(0),className:"btn-secondary text-xs",children:["Exact: ",e]}),m.jsxs("button",{onClick:()=>v(1),className:"btn-secondary text-xs",children:["Fuzzy: ",n]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("button",{onClick:()=>v(0),className:"btn-secondary text-xs",children:["Exact: ",e,e.startsWith("mcp__")?"":" (this call)"]}),m.jsx("button",{onClick:()=>v(1),className:"btn-secondary text-xs",children:e.startsWith("mcp__")?n:"All calls"}),r&&m.jsx("button",{onClick:()=>v(2),className:"btn-secondary text-xs",children:r}),l&&l.map((H,g)=>m.jsxs("button",{onClick:()=>v(3+g),className:"btn-secondary text-xs",children:["[AI] ",H.label]},g))]}),m.jsx("button",{onClick:()=>f(!1),className:"btn text-xs",style:{backgroundColor:"var(--color-surface-hover)"},children:"Cancel"})]}):m.jsxs("div",{className:"flex gap-2 flex-wrap",children:[n&&n!==e?m.jsx("button",{onClick:()=>{p("allow"),f(!0)},className:"btn-primary text-xs",children:"Allow ▸"}):m.jsx("button",{onClick:()=>i("allow"),className:"btn-primary text-xs",children:"Allow"}),n&&n!==e?m.jsx("button",{onClick:()=>{p("session"),f(!0)},className:"btn-secondary text-xs",children:"Always Allow ▸"}):m.jsx("button",{onClick:()=>i("always_allow"),className:"btn-secondary text-xs",children:"Always Allow"}),m.jsx("button",{onClick:()=>{p("save"),f(!0)},className:"btn-secondary text-xs",children:"Save to Settings ▸"}),m.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"}),m.jsx("button",{onClick:()=>i("deny"),className:"btn-danger text-xs",children:"Deny"})]})]})})}function Vv({message:e}){const t=typeof e.content=="string"?e.content:"";return m.jsxs("div",{className:"user-msg",children:[m.jsx("div",{className:"meta",children:"You · 09:41"}),m.jsxs("div",{"data-collider":"message-card",className:"content",children:[e.images&&e.images.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2 mb-2 justify-end",children:e.images.map((n,r)=>{const l="data"in n?`data:${n.mimeType};base64,${n.data}`:void 0;return m.jsx("img",{src:l??"/placeholder-image.svg",alt:`Attached image ${r+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:()=>l&&window.open(l,"_blank")},r)})}),t?t.split(`
|
|
75
|
-
`).map((n,r)=>m.jsx("span",{"data-collider":"text-line",children:n?m.jsx(Eu,{className:"text-sm leading-relaxed",children:n}):m.jsx("br",{})},r)):e.isStreaming&&!e.thinking&&(!e.images||e.images.length===0)?m.jsx("span",{className:"inline-block w-2 h-4 animate-pulse rounded-sm",style:{backgroundColor:"var(--color-accent)"}}):null]})]})}function Zv({message:e,sessionTime:t}){const n=typeof e.content=="string"?e.content:"";return m.jsxs("div",{className:"assistant-msg",children:[m.jsx("div",{className:"meta",children:"dscode · 09:41"}),e.thinking&&m.jsx(Ov,{thinking:e.thinking,isStreaming:e.isStreaming,sessionTime:t}),e.images&&e.images.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2",children:e.images.map((r,l)=>{const i="data"in r?`data:${r.mimeType};base64,${r.data}`:void 0;return m.jsx("img",{src:i??"/placeholder-image.svg",alt:`Attached image ${l+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:()=>i&&window.open(i,"_blank")},l)})}),e.tools&&e.tools.length>0&&m.jsx("div",{className:"space-y-2",children:e.tools.map((r,l)=>m.jsx(Yx,{tool:r,thinking:e.thinking},`${r.name}-${l}`))}),m.jsx("div",{className:"text-response",children:n?n.split(`
|
|
76
|
-
`).map((r,l)=>m.jsx("span",{"data-collider":"text-line",children:r?m.jsx(Eu,{className:"text-sm leading-relaxed",children:r}):m.jsx("br",{})},l)):e.isStreaming&&!e.thinking&&(!e.images||e.images.length===0)?m.jsx("span",{className:"inline-block w-2 h-4 animate-pulse rounded-sm",style:{backgroundColor:"var(--color-accent)"}}):null})]})}function Ov({thinking:e,isStreaming:t,sessionTime:n}){const[r,l]=c.useState(!t);return c.useEffect(()=>{t&&l(!1)},[t]),m.jsxs("div",{className:`thinking${r?" collapsed":""}`,"data-collider":"thinking-block",children:[m.jsxs("div",{className:"label",onClick:()=>l(!r),children:[m.jsx("span",{className:"dot"}),"Thinking"]}),m.jsx("div",{className:"thinking-body",children:e})]})}class $v{constructor(){po(this,"entries",new Map)}add(t,n){if(this.entries.has(t))return this.entries.get(t);const r=Uv(t);return this.entries.set(t,r),r}remove(t){this.entries.delete(t)}getAll(){return[...this.entries.keys()]}getDisplayPaths(){return[...this.entries.values()]}clear(){this.entries.clear()}drain(){const t=this.getAll();return this.entries.clear(),t}get count(){return this.entries.size}}function Bv(e){let t=e.replace(/\/+/g,"/").replace(/\\+/g,"/");return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Uv(e){const n=Bv(e).split("/");return n[n.length-1]||e}function Wv(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 Qv(e){return e.type.startsWith("image/")}function T0(e){return!!(e.includes("/")||e.includes("\\")||/\.[a-zA-Z0-9]{1,6}$/.test(e)||/[a-zA-Z0-9\-_]/.test(e))}function Yv(e){const t=e.slice(e.lastIndexOf(".")).toLowerCase();return[".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg"].includes(t)?Sv:[".txt",".md",".mdx",".log",".csv"].includes(t)?Hv:[".mp4",".avi",".mov",".webm"].includes(t)?Lv:[".mp3",".wav",".ogg"].includes(t)?bv:t===".pdf"?kv:[".zip",".tar",".gz",".7z",".rar"].includes(t)?yv:np}function Xv({onSend:e,onAbort:t,onSlashCommand:n,onCommand:r,processing:l,slashCommands:i,fileListItems:o,fileListPrefix:a,viewMode:s,projectPath:u}){const[d,f]=c.useState(""),[h,p]=c.useState([]),[v,w]=c.useState([]),[H,g]=c.useState(!1),[y,x]=c.useState(!1),[N,_]=c.useState(""),[M,R]=c.useState(0),[z,W]=c.useState(!1),[A,$]=c.useState(""),[U,le]=c.useState(0),ne=c.useRef(null),Q=c.useRef([]),re=c.useRef(-1),b=c.useRef(""),Z=c.useRef(!1),K=c.useRef(new $v),k=100,ie=i.filter(j=>!N||j.name.startsWith(N.slice(1))),ce=c.useRef();c.useEffect(()=>(z&&A!==void 0&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{r({type:"file_list",prefix:A})},150)),()=>clearTimeout(ce.current)),[A,z,r]),c.useEffect(()=>{le(0)},[o]);const S=c.useCallback(()=>{const j=d.trim(),ee=K.current.drain();!j&&h.length===0&&ee.length===0||(j&&Q.current[0]!==j&&(Q.current.unshift(j),Q.current.length>k&&Q.current.pop()),re.current=-1,e(j,h.length>0?h:void 0,ee.length>0?ee:void 0),f(""),p([]),w([]),x(!1),W(!1))},[d,h,e]),ke=j=>{const ee=ne.current;if(!ee)return;const X=ee.selectionStart??d.length,ye=d.slice(0,X),ge=ye.match(new RegExp('(?:^|(?<![a-zA-Z0-9]))@("([^"]*)"?|([^\\s]*))$'));if(!ge||!T0(ge[2]??ge[3]??""))return;const T=ye.lastIndexOf("@");if(T===-1)return;const I=d.slice(0,T),E=d.slice(X),q=`@${j}/`,L=`${I}${q}${E}`;f(L),$(j+"/"),W(!0),r({type:"file_list",prefix:j+"/"}),requestAnimationFrame(()=>{const C=T+q.length;ee.focus(),ee.setSelectionRange(C,C)})},be=(j,ee)=>{const X=ne.current;if(!X)return;const ye=X.selectionStart??d.length,T=d.slice(0,ye).lastIndexOf("@");if(T===-1)return;const I=d.slice(0,T),E=d.slice(ye);if(ee){const q=`${I}@${j} @${E}`;f(q),$(""),r({type:"file_list",prefix:""}),requestAnimationFrame(()=>{const L=T+j.length+3;X.focus(),X.setSelectionRange(L,L)})}else{const q=`${I}@${j} ${E}`;f(q),W(!1),requestAnimationFrame(()=>{const L=T+j.length+2;X.focus(),X.setSelectionRange(L,L)})}},he=j=>{var ee;if(z){if(j.key==="ArrowDown"){j.preventDefault(),le(X=>Math.min(X+1,o.length-1));return}if(j.key==="ArrowUp"){j.preventDefault(),le(X=>Math.max(X-1,0));return}if(j.key==="Enter"){j.preventDefault();const X=o[U];X&&(X.isDir?ke(X.path):be(X.path,!1));return}if(j.key==="Tab"){j.preventDefault();const X=o[U];X&&(X.isDir?ke(X.path):be(X.path,!0));return}if(j.key==="Escape"){W(!1);return}return}if(y){if(j.key==="ArrowDown")j.preventDefault(),R(X=>Math.min(X+1,ie.length-1));else if(j.key==="ArrowUp")j.preventDefault(),R(X=>Math.max(X-1,0));else if(j.key==="Enter"||j.key==="Tab"){j.preventDefault();const X=ie[M];X&&(f(`/${X.name} `),x(!1),(ee=ne.current)==null||ee.focus())}else j.key==="Escape"&&x(!1);return}if(!l&&Q.current.length>0){if(j.key==="ArrowUp"){j.preventDefault(),re.current===-1?(b.current=d,re.current=0):re.current=Math.min(re.current+1,Q.current.length-1),f(Q.current[re.current]),requestAnimationFrame(()=>{const X=ne.current;X&&(X.focus(),X.setSelectionRange(X.value.length,X.value.length))});return}if(j.key==="ArrowDown"&&re.current>=0){j.preventDefault(),re.current--,re.current===-1?f(b.current):f(Q.current[re.current]),requestAnimationFrame(()=>{const X=ne.current;X&&(X.focus(),X.setSelectionRange(X.value.length,X.value.length))});return}}if(j.key==="Escape"&&l){j.preventDefault(),t();return}j.key==="Enter"&&!j.shiftKey&&!Z.current&&(j.preventDefault(),l||S()),j.key==="Backspace"&&!d&&h.length>0&&(j.preventDefault(),p(X=>X.slice(0,-1)))},_e=j=>{const ee=j.target.value;f(ee),re.current=-1,b.current="",ee==="/"?(x(!0),_(""),R(0),W(!1)):ee.startsWith("/")&&!ee.includes(" ")?(x(!0),_(ee),R(0),W(!1)):x(!1);const X=j.target.selectionStart??ee.length,ge=ee.slice(0,X).match(new RegExp('(?:^|(?<![a-zA-Z0-9]))@("([^"]*)"?|([^\\s]*))$'));ge&&T0(ge[2]??ge[3]??"")?(W(!0),$(ge[2]??ge[3]??"")):W(!1)},Ke=c.useCallback(async j=>{const ee=j.clipboardData.items,X=[];for(let ye=0;ye<ee.length;ye++)Qv(ee[ye])&&X.push(ee[ye]);if(X.length>0){j.preventDefault();const ye=[];for(const ge of X){const T=ge.getAsFile();if(T)try{const I=await Wv(T);ye.push(I)}catch{}}p(ge=>[...ge,...ye])}},[]),ft=c.useCallback(j=>{p(ee=>ee.filter((X,ye)=>ye!==j))},[]),dt=c.useCallback(j=>{K.current.remove(j),w(ee=>ee.filter(X=>X.absPath!==j))},[]),Nt=c.useCallback(j=>{l||(j.preventDefault(),j.dataTransfer.dropEffect="copy",g(!0))},[l]),nn=c.useCallback(j=>{g(!1)},[]),Nn=c.useCallback(j=>{if(l)return;j.preventDefault(),g(!1);const ee=j.dataTransfer.files;if(ee.length===0)return;const X=K.current,ye=[];for(let ge=0;ge<ee.length;ge++){const T=ee[ge],I=T.path??T.name,E=X.add(I,u);ye.push({absPath:I,displayPath:E})}w(ge=>[...ge,...ye]),requestAnimationFrame(()=>{var ge;(ge=ne.current)==null||ge.focus()})},[l,u]),Tn=()=>{const j=ne.current;j&&(j.style.height="auto",j.style.height=Math.min(j.scrollHeight,200)+"px")},rt={borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)",color:"var(--color-text)"};return m.jsxs("div",{className:"px-4 py-3 relative",onDragOver:Nt,onDragLeave:nn,onDrop:Nn,style:{borderTop:"1px solid var(--color-border)",backgroundColor:H?"var(--color-surface-hover)":"var(--color-surface)",transition:"background-color 0.2s ease"},children:[y&&ie.length>0&&s!=="dashboard"&&m.jsxs("div",{className:"absolute bottom-full left-4 mb-1 w-72 overflow-hidden z-50",style:rt,children:[m.jsx("div",{className:"px-3 py-2 text-xs border-b",style:{color:"var(--color-text-muted)",borderColor:"var(--color-border)"},children:"Commands"}),m.jsx("div",{className:"max-h-48 overflow-y-auto",children:ie.map((j,ee)=>m.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2",style:{backgroundColor:ee===M?"var(--color-surface-hover)":"transparent",color:"var(--color-text)"},onMouseEnter:()=>R(ee),onClick:()=>{var X;f(`/${j.name} `),x(!1),(X=ne.current)==null||X.focus()},children:[m.jsxs("span",{className:"font-mono text-xs",style:{color:"var(--color-accent)"},children:["/",j.name]}),m.jsx("span",{className:"text-xs truncate",style:{color:"var(--color-text-muted)"},children:j.description})]},j.name))})]}),z&&m.jsxs("div",{className:"absolute bottom-full left-4 mb-1 w-80 overflow-hidden z-50",style:rt,children:[m.jsxs("div",{className:"px-3 py-2 text-xs border-b",style:{color:"var(--color-text-muted)",borderColor:"var(--color-border)"},children:["Files ",A?`@${A}`:""]}),m.jsx("div",{className:"max-h-48 overflow-y-auto",children:o.length>0?o.map((j,ee)=>m.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2",style:{paddingLeft:`${12+(j.depth??0)*14}px`,backgroundColor:ee===U?"var(--color-surface-hover)":"transparent",color:"var(--color-text)"},onMouseEnter:()=>le(ee),onClick:()=>{j.isDir?ke(j.path):be(j.path,!1)},children:[j.isDir?m.jsx(wv,{size:14,weight:"bold",style:{color:"var(--color-text-muted)"}}):m.jsx(np,{size:14,weight:"bold",style:{color:"var(--color-text-muted)"}}),m.jsx("span",{className:"font-mono text-xs truncate",style:{color:"var(--color-accent)"},children:j.name})]},j.path)):m.jsx("div",{className:"px-3 py-2 text-sm",style:{color:"var(--color-text-muted)"},children:A?"No matching files":"Type to search files..."})})]}),v.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2 mb-2 max-w-4xl mx-auto",children:v.map(j=>{const ee=Yv(j.displayPath);return m.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 text-sm max-w-[200px]",style:{border:"1px solid var(--color-border)",borderRadius:"8px",backgroundColor:"var(--color-bg)"},children:[m.jsx(ee,{size:14,weight:"bold",style:{color:"var(--color-text-muted)",flexShrink:0}}),m.jsx("span",{className:"truncate text-xs",style:{color:"var(--color-text)"},title:j.displayPath,children:j.displayPath}),m.jsx("button",{onClick:()=>dt(j.absPath),className:"flex-shrink-0 w-4 h-4 rounded text-xs flex items-center justify-center ml-0.5",style:{color:"var(--color-text-muted)"},title:"Remove file",children:m.jsx(fo,{size:12,weight:"bold"})})]},j.absPath)})}),h.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2 mb-2 max-w-4xl mx-auto",children:h.map((j,ee)=>m.jsxs("div",{className:"relative group",children:[m.jsx("img",{src:`data:${j.mimeType};base64,${j.data}`,alt:`Pasted image ${ee+1}`,className:"h-16 w-16 object-cover rounded",style:{border:"1px solid var(--color-border)"}}),m.jsx("button",{onClick:()=>ft(ee),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:"×"})]},ee))}),m.jsxs("div",{className:"flex items-end gap-2 max-w-4xl mx-auto",children:[m.jsx("textarea",{ref:ne,value:d,onChange:j=>{_e(j),Tn()},onKeyDown:he,onPaste:Ke,onCompositionStart:()=>{Z.current=!0},onCompositionEnd:()=>{Z.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?m.jsx("button",{onClick:t,className:"btn-danger shrink-0",title:"Stop agent (Esc)",children:"Stop"}):m.jsx("button",{onClick:S,disabled:!d.trim()&&h.length===0&&v.length===0,className:"btn-primary shrink-0",children:m.jsx(Mv,{size:16,weight:"bold"})})]}),m.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 qv(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 Kv({minWidth:e=200,maxWidth:t=500,defaultWidth:n=320,storageKey:r,enabled:l=!0}){const[i,o]=c.useState(()=>qv(r,n)),a=c.useRef(null),s=c.useRef(null),u=c.useRef(""),d=c.useRef(""),f=c.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,d.current=document.body.style.userSelect,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const p=w=>{if(!s.current)return;const H=w.clientX-s.current.startX,g=Math.min(t,Math.max(e,s.current.startWidth+H));o(g)},v=()=>{s.current=null,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",v),document.body.style.cursor=u.current,document.body.style.userSelect=d.current;try{localStorage.setItem(r,String(i))}catch{}};document.addEventListener("pointermove",p),document.addEventListener("pointerup",v)},[l,i,e,t,r]);return{width:i,panelRef:a,handleProps:{onPointerDown:f,role:"separator","aria-orientation":"vertical"}}}function Gv({open:e,onClose:t,activeTab:n,onTabChange:r,sessions:l,currentSessionId:i,mcpServers:o,config:a,onSessionAction:s,onMcpAction:u,onConfigChange:d,onNewSession:f,onMcpServerAction:h,isProcessing:p}){const{width:v,panelRef:w,handleProps:H}=Kv({storageKey:"dscode-sidebar-width"}),g=c.useRef(null),y=c.useRef(0),x=c.useRef(n),N=c.useCallback(()=>{g.current&&(y.current=g.current.scrollTop)},[]);return c.useLayoutEffect(()=>{x.current!==n&&(y.current=0,x.current=n)},[n]),c.useLayoutEffect(()=>{n==="sessions"&&g.current&&y.current>0&&(g.current.scrollTop=y.current)},[l,n]),m.jsxs(m.Fragment,{children:[e&&m.jsx("div",{className:"fixed inset-0 bg-black/30 z-40 md:hidden",onClick:t}),m.jsxs("aside",{ref:w,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:`${v}px`,minWidth:`${v}px`,backgroundColor:"var(--color-surface)",borderRight:"1px solid var(--color-border)"},children:[m.jsxs("div",{className:"flex items-center justify-between p-3 md:hidden",style:{borderBottom:"1px solid var(--color-border)"},children:[m.jsx("span",{className:"font-semibold text-sm",style:{color:"var(--color-accent)"},children:"DSCode"}),m.jsx("button",{onClick:t,className:"p-1 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},children:m.jsx(fo,{size:18,weight:"bold",style:{color:"var(--color-text)"}})})]}),m.jsx("div",{className:"flex",style:{borderBottom:"1px solid var(--color-border)"},children:["sessions","mcp","settings"].map(_=>m.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"},_))}),m.jsxs("div",{ref:g,onScroll:N,className:"flex-1 overflow-y-auto p-3",children:[n==="sessions"&&m.jsx(ek,{sessions:l,currentSessionId:i,onAction:s,isProcessing:p,onNewSession:f}),n==="mcp"&&m.jsx(tk,{servers:o,onAction:u,onServerAction:h}),n==="settings"&&m.jsx(nk,{config:a,onChange:d})]}),m.jsx("div",{className:"resize-handle hidden md:block",...H})]})]})}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 ek({sessions:e,currentSessionId:t,onAction:n,onNewSession:r,isProcessing:l}){return m.jsxs("div",{className:"space-y-3",children:[m.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:[m.jsx(fp,{size:14,weight:"bold",style:{color:"var(--color-accent)"}}),m.jsx("span",{style:{color:"var(--color-accent)"},children:"New Session"})]}),e.length===0?m.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"No saved sessions"}):m.jsx("div",{className:"space-y-1",children:e.map(i=>{const o=i.id===t,a=l&&!o;return m.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:[m.jsxs("button",{onClick:()=>{o&&l||a||n("load",i.id)},className:"flex-1 text-left min-w-0",children:[m.jsx("div",{className:"text-sm truncate flex items-center gap-1.5",style:{color:"var(--color-text)"},children:i.title}),m.jsxs("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[Jv(i.totalActiveMs)," · ",i.messageCount," msgs"]})]}),o&&l&&m.jsx(Nv,{size:14,weight:"bold",style:{color:"var(--color-accent)",opacity:.6,animation:"spin 1s linear infinite"}}),m.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:m.jsx(yp,{size:14,weight:"bold"})})]},i.id)})})]})}function tk({servers:e,onServerAction:t,onAction:n}){const[r,l]=c.useState(null);return m.jsxs("div",{className:"space-y-3",children:[m.jsx("button",{onClick:()=>n("refresh"),className:"btn-secondary w-full text-xs",children:"Refresh"}),e.length===0?m.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"No MCP servers configured"}):m.jsx("div",{className:"space-y-1",children:e.map(i=>m.jsxs("div",{children:[m.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:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-sm truncate",style:{color:"var(--color-text)"},children:i.name}),m.jsxs("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[i.toolCount," tools"]})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:m.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:m.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&&m.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=>m.jsxs("div",{className:"text-xs py-1",children:[m.jsx("span",{className:"font-mono",style:{color:"var(--color-accent)"},children:o.name}),o.description&&m.jsx("span",{className:"ml-1",style:{color:"var(--color-text-muted)"},children:o.description})]},o.name))})]},i.name))})]})}function nk({config:e,onChange:t}){var H,g,y;const[n,r]=c.useState(""),[l,i]=c.useState((e==null?void 0:e.modelId)??""),[o,a]=c.useState((e==null?void 0:e.thinkingLevel)??"off"),[s,u]=c.useState((e==null?void 0:e.provider)??""),[d,f]=c.useState((e==null?void 0:e.projectPath)??""),[h,p]=c.useState(!1),v=c.useRef(e);if(c.useEffect(()=>{e&&e!==v.current&&(u(e.provider),i(e.modelId),a(e.thinkingLevel),v.current=e)},[e]),!e)return m.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"Loading..."});const w={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 m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Provider"}),m.jsx("select",{value:s,onChange:x=>{u(x.target.value),t("set_provider",x.target.value)},style:w,children:e.providers.map(x=>m.jsx("option",{value:x,children:x},x))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Model"}),m.jsx("select",{value:l,onChange:x=>{i(x.target.value),t("set_model",x.target.value)},style:w,children:e.models.map(x=>m.jsx("option",{value:x.id,children:x.name},x.id))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Thinking Level"}),m.jsx("select",{value:o,onChange:x=>{a(x.target.value),t("set_thinking",x.target.value)},style:w,children:["off","minimal","low","medium","high","xhigh"].map(x=>m.jsx("option",{value:x,children:x},x))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"API Key"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"password",value:n,onChange:x=>r(x.target.value),className:"input text-xs flex-1",placeholder:e.apiKey||"sk-..."}),m.jsx("button",{onClick:()=>{n&&t("set_key",n),r("")},className:"btn-primary text-xs px-3",children:"Set"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Project Path"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"text",value:d,onChange:x=>f(x.target.value),className:"input text-xs flex-1",placeholder:e.projectPath}),m.jsx("button",{onClick:()=>{d&&t("set_project_path",d.trim())},className:"btn-primary text-xs px-3",children:"Set"})]})]}),e.vision!=null||h?m.jsxs("div",{className:"pt-2 space-y-3",style:{borderTop:"1px solid var(--color-border)"},children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("p",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:"Vision Model"}),!h&&m.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:[m.jsx(yp,{size:12,weight:"bold"}),"Delete"]})]}),h||e.vision?m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Provider"}),m.jsxs("select",{value:((H=e.vision)==null?void 0:H.provider)??"",onChange:x=>t("set_vision_provider",x.target.value),style:w,children:[m.jsx("option",{value:"",children:"Select..."}),e.visionProviders.map(x=>m.jsx("option",{value:x,children:x},x))]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Model"}),m.jsxs("select",{value:((g=e.vision)==null?void 0:g.model)??"",onChange:x=>t("set_vision_model",x.target.value),style:w,children:[m.jsx("option",{value:"",children:"Select..."}),e.visionModels.map(x=>m.jsx("option",{value:x.id,children:x.name},x.id))]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"API Key"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"password",value:n,onChange:x=>r(x.target.value),className:"input text-xs flex-1",placeholder:(y=e.vision)!=null&&y.key?"••••••••":"Enter vision API key"}),m.jsx("button",{onClick:()=>{n&&t("set_vision_key",n),r("")},className:"btn-primary text-xs px-3",children:"Set"})]})]})]}):null,!e.vision&&h&&m.jsx("button",{onClick:()=>p(!1),className:"text-xs",style:{color:"var(--color-text-muted)"},children:"Cancel"})]}):m.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:[m.jsx(fp,{size:14,weight:"bold",style:{color:"var(--color-accent)"}}),m.jsx("span",{style:{color:"var(--color-accent)"},children:"Add Vision Model"})]}),m.jsx("div",{className:"pt-2",style:{borderTop:"1px solid var(--color-border)"},children:m.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:["Max Tokens: ",e.maxTokens.toLocaleString()]})})]})}function rk({toasts:e,onRemove:t}){return m.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 max-w-sm",children:e.map(n=>m.jsx(lk,{toast:n,onRemove:t},n.id))})}function lk({toast:e,onRemove:t}){const n=e.type==="warning",r=e.type==="error";return c.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]),m.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:[m.jsx("span",{className:"shrink-0 mt-0.5",children:r?m.jsx(jv,{size:16,weight:"bold",style:{color:"var(--color-error-text)"}}):m.jsx(Ev,{size:16,weight:"bold",style:{color:"var(--color-accent)"}})}),m.jsx("span",{className:"flex-1 break-words",children:e.text}),m.jsx("button",{onClick:()=>t(e.id),className:"shrink-0 hover:opacity-70 ml-2",style:{color:"var(--color-text-muted)"},children:m.jsx(fo,{size:14,weight:"bold"})})]})}function ik(){const[e,t]=c.useState([]),n=c.useCallback(l=>{const i=`toast-${Date.now()}-${Math.random().toString(36).slice(2,7)}`;t(o=>[...o,{...l,id:i}])},[]),r=c.useCallback(l=>{t(i=>i.filter(o=>o.id!==l))},[]);return{toasts:e,addToast:n,removeToast:r}}function ok({text:e,onClose:t}){c.useEffect(()=>{const l=i=>{i.key==="Escape"&&t()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]);const n=e.split(`
|
|
77
|
-
`),r=n[0].replace(/:$/,"");return m.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-end p-4 pt-16",onClick:t,children:m.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:[m.jsxs("div",{className:"flex items-center justify-between px-4 py-3",style:{borderBottom:"1px solid var(--color-border)"},children:[m.jsx("span",{className:"text-sm font-semibold",style:{color:"var(--color-accent)"},children:r}),m.jsx("button",{onClick:t,className:"p-1 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},children:m.jsx(fo,{size:16,weight:"bold",style:{color:"var(--color-text-muted)"}})})]}),m.jsx("div",{className:"p-4",children:m.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(`
|
|
78
|
-
`)})}),m.jsxs("div",{className:"px-4 py-2 text-xs",style:{borderTop:"1px solid var(--color-border)",color:"var(--color-text-muted)"},children:["Press ",m.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 ak=["system","rules","user","thinking","readwrite","edit","shell","skill","mcp","other"],sk={system:"System",rules:"Rules",user:"User",thinking:"Thinking",readwrite:"Read/Write",edit:"Edit",shell:"Shell",skill:"Skill",mcp:"MCP",other:"Other"},uk={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 qn(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function ck({data:e}){const[t,n]=c.useState(!1),r=c.useRef(null),l=c.useCallback(()=>n(!0),[]),i=c.useCallback(()=>n(!1),[]);if(!e)return null;const{total:o,used:a,free:s,categories:u}=e,d=2,f=ak.map(y=>({key:y,label:sk[y],tokens:u[y],color:uk[y]})).filter(y=>y.tokens>0),h=o>0?a/o*100:0,v=d/260*100;let w=f.map((y,x)=>{const N=o>0?f[x].tokens/o*100:0;return N>0&&N<v?v:N});const H=w.reduce((y,x)=>y+x,0);if(H>h&&H>0){const y=h/H;w=w.map(x=>x*y)}const g=o>0?Math.max(0,100-h):100;return m.jsxs("div",{className:"relative flex items-center gap-2",onMouseEnter:l,onMouseLeave:i,children:[m.jsxs("span",{className:"text-xs shrink-0 select-none tabular-nums",style:{color:"var(--color-text-muted)"},children:[qn(a)," / ",qn(o)]}),m.jsxs("div",{className:"flex flex-col items-center gap-0.5 shrink-0",children:[m.jsx("span",{className:"text-[10px] leading-none select-none",style:{color:"var(--color-text-muted)"},children:"Context Window"}),m.jsxs("div",{ref:r,className:"flex shrink-0 overflow-hidden",style:{width:"260px",height:"22px",backgroundColor:"var(--color-border)",gap:"1px"},children:[f.map((y,x)=>m.jsx("div",{className:"",style:{width:`${w[x]}%`,backgroundColor:y.color,minWidth:y.tokens>0?`${d}px`:0,transition:"width 0.3s ease, background-color 0.3s ease"},title:`${y.label}: ${qn(y.tokens)}`},y.key)),g>0&&m.jsx("div",{className:"",style:{flex:1,backgroundColor:"transparent",transition:"width 0.3s ease"}})]})]}),t&&m.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:[m.jsx("div",{className:"text-xs mb-2",style:{color:"var(--color-text-muted)"},children:"Context window (estimated)"}),m.jsxs("div",{className:"flex flex-col gap-1.5",children:[f.map(y=>m.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--color-text)"},children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-sm shrink-0",style:{backgroundColor:y.color}}),m.jsx("span",{className:"flex-1",children:y.label}),m.jsx("span",{className:"tabular-nums",style:{color:"var(--color-text-muted)"},children:qn(y.tokens)})]},y.key)),s>0&&m.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--color-text)"},children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-sm shrink-0",style:{border:"1px dashed var(--color-border)",backgroundColor:"transparent"}}),m.jsx("span",{className:"flex-1",children:"Free"}),m.jsx("span",{className:"tabular-nums",style:{color:"var(--color-text-muted)"},children:qn(s)})]})]}),m.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:[m.jsx("span",{children:a>0?`${(a/o*100).toFixed(0)}% used`:""}),m.jsxs("span",{children:["Total: ",qn(o)]})]})]})]})}function fk({viewMode:e,onChange:t,disabled:n}){const r=e==="chat"?vv:xv;return m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx(r,{size:18,weight:"bold",style:{color:"var(--color-text)"}}),m.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:[m.jsx("option",{value:"chat",children:"Chat"}),m.jsx("option",{value:"dashboard",disabled:n,children:"Dashboard"})]})]})}function dk(e){let t=e.trim();return t=t.replace(/^```(?:html|HTML)?\s*\n?/,""),t=t.replace(/\n?```\s*$/,""),t}function pk({html:e,loading:t}){const n=c.useRef(null),r=c.useMemo(()=>t||!e?"":dk(e),[e,t]);return c.useEffect(()=>{n.current&&r&&(n.current.srcdoc=r)},[r]),t||!r?m.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:m.jsxs("div",{className:"flex flex-col items-center gap-4",children:[m.jsxs("div",{className:"flex gap-1.5",children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"0ms"}}),m.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"150ms"}}),m.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"300ms"}})]}),m.jsx("span",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Generating dashboard..."})]})}):m.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",style:{backgroundColor:"var(--color-bg)"},children:[m.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"}),m.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 H0=2500,hk=2,na=80,L0=60,mk=300,P0=22,Jl=70,gk=4,Zr=[{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 me(e,t){return e+Math.random()*(t-e)}function an(e,t){return Math.floor(me(e,t+1))}function yk(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 ra(e,t,n){return Math.max(t,Math.min(n,e))}function Kn(e,t,n){return e+(t-e)*n}function xk(e){return 1-(1-e)*(1-e)}function vk({artifactReady:e,onComplete:t,scrollContainerRef:n}){const r=c.useRef(null),l=c.useRef(null),i=c.useRef(t);i.current=t;const o=c.useRef(e);o.current=e;const a=c.useRef(!1);return c.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){i.current();return}const s=r.current;if(!s)return;const u=s.getContext("2d"),d=document.body.style.cursor;document.body.style.cursor="none";const f=getComputedStyle(document.documentElement),p={accent:f.getPropertyValue("--color-accent").trim()||"#ca8a04",text:f.getPropertyValue("--color-text").trim()||"#2d2a26",textMuted:f.getPropertyValue("--color-text-muted").trim()||"#8a8580"},w=`hsl(${((()=>{const[T,I,E]=yk(p.accent),q=Math.max(T,I,E),L=Math.min(T,I,E),C=q-L;return C===0?38:q===T?((I-E)/C+(I<E?6:0))*60:q===I?((E-T)/C+2)*60:((T-I)/C+4)*60})()+20)%360}, 45%, 52%)`,H={d:p.accent,s:w,c:w,o:p.textMuted,e:p.text};let g=0,y=0;const x=s.parentElement,N=Math.min(window.devicePixelRatio||1,hk),M=(n==null?void 0:n.current)??(()=>{let T=x.parentElement;for(;T;){const I=getComputedStyle(T).overflowY;if(I==="auto"||I==="scroll")return T;T=T.parentElement}return null})();let R=0,z="";M&&(R=M.scrollTop,z=M.style.overflow,M.style.overflow="hidden");const W=document.createElement("canvas"),A=W.getContext("2d"),U=document.createElement("canvas").getContext("2d");function le(T){let I=T.parentElement;for(;I&&I!==document.body;){const E=getComputedStyle(I).overflowY;if(E==="auto"||E==="scroll")return I;I=I.parentElement}return null}function ne(){const T=Math.min(320,g*.18,y*.5);W.width=g*N,W.height=y*N,A.setTransform(N,0,0,N,0,0),A.clearRect(0,0,g,y),A.font=`700 ${T}px "Geist", sans-serif`,A.textAlign="center",A.textBaseline="middle",A.fillStyle="#ffffff",A.fillText("DSCode",g/2,y/2);const I="DSCode",E=A.measureText(I).width,q=g/2-E/2,L=[];let C=q;for(let G=0;G<I.length;G++){const F=A.measureText(I[G]).width;L.push({letter:I[G],left:C,right:C+F}),C+=F}const P=A.getImageData(0,0,Math.floor(g*N),Math.floor(y*N)),O=[],J=6;for(let G=0;G<y;G+=J)for(let F=0;F<g;F+=J){const B=(Math.floor(G*N)*Math.floor(g*N)+Math.floor(F*N))*4;if(B+3<P.data.length&&P.data[B+3]>128){const ae=L.find(xe=>F>=xe.left&&F<xe.right),fe=ae?ae.letter:I[Math.min(Math.floor((F-q)/(E/I.length)),I.length-1)];O.push({x:F,y:G,letter:fe})}}for(let G=O.length-1;G>0;G--){const F=Math.floor(Math.random()*(G+1));[O[G],O[F]]=[O[F],O[G]]}return O.slice(0,H0)}function Q(){const T=x.querySelectorAll("[data-collider]"),I=s.getBoundingClientRect(),E=[],q=Math.abs(Zr[0].ox);T.forEach(L=>{var fe;if(L.querySelector("[data-collider]")||!((fe=L.textContent)!=null&&fe.trim()))return;const C=L.getBoundingClientRect(),P=C.top-I.top,O=P+C.height;if(P>=y||O<=0)return;const J=le(L);if(J){const xe=J.getBoundingClientRect();if(C.bottom<=xe.top||C.top>=xe.bottom)return}const G=L.getAttribute("data-collider");let F=C.width;if(G==="text-line"||G==="code-line"||G==="tool-result-line"){const xe=L.textContent||"",Ne=getComputedStyle(L);U.font=`${Ne.fontWeight||"400"} ${Ne.fontSize} "${Ne.fontFamily.split(",")[0].replace(/"/g,"")}", sans-serif`;const rn=U.measureText(xe).width+4;F=Math.min(C.width,rn)}const B=C.left-I.left;let ae;if(F>=Jl){const xe=B+q,Ne=B+F-q;ae=xe+me(0,Ne-xe)}else ae=B+F/2;E.push({el:L,top:P,left:B,width:F,height:C.height,landingX:ae,struck:!1})}),E.sort((L,C)=>L.top-C.top);for(let L=1;L<E.length;L++){let C=0;for(;Math.abs(E[L].landingX-E[L-1].landingX)<Jl*.3&&C<5;)E[L].landingX=E[L].width>=Jl?E[L].left+q+me(0,E[L].width-Jl):E[L].left+E[L].width/2,C++}return E}function re(){const T=x.querySelectorAll(".meta"),I=s.getBoundingClientRect(),E=[];return T.forEach(q=>{var O;if(q.closest("[data-collider]")||!((O=q.textContent)!=null&&O.trim()))return;const L=q.getBoundingClientRect(),C=L.top-I.top,P=C+L.height;C>=y||P<=0||E.push({el:q,top:C,left:L.left-I.left,width:L.width,height:L.height,dissolved:!1})}),E}const b={phase:"cascade",phaseTime:0,colors:p,particles:[],impactRings:[],shards:[],shake:0,formedTime:0,targetPoints:[],particlesAssigned:0,gatherStarted:!1,W:g,H:y,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:H,timestamps:[],dissolvedTimestampEls:new Set};l.current=b;function Z(T){T.key==="Escape"&&b.phase==="cascade"&&!b.gatherStarted&&ie()}document.addEventListener("keydown",Z);function K(T){const I=T.getBoundingClientRect(),E=s.getBoundingClientRect(),q=I.left-E.left,L=I.top-E.top,C=I.width,P=I.height,J=T.getAttribute("data-collider")==="tool-card"||T.getAttribute("data-collider")==="message-card"?an(30,50):an(20,40);for(let G=0;G<J;G++){const F=q+me(0,C),B=L+me(0,P),ae=Math.atan2(B-(L+P/2),F-(q+C/2)),fe=me(2,8),xe=[p.accent,w,p.text],Ne=xe[an(0,xe.length-1)];b.particles.push({x:F,y:B,vx:Math.cos(ae)*fe+me(-3,3),vy:Math.sin(ae)*fe-me(1,5),size:me(1.5,4),color:Ne,phase:"fall",life:an(1500,3e3)})}}function k(T,I,E){const q=an(6,12);for(let L=0;L<q;L++){const C=me(0,Math.PI*2),P=me(2,6);b.particles.push({x:T,y:I,vx:Math.cos(C)*P,vy:Math.sin(C)*P-me(1,3),size:me(1,3),color:E,phase:"fall",life:an(800,1800)})}}function ie(){if(b.gatherStarted)return;b.gatherStarted=!0,b.phase="gather",b.phaseTime=0,b.targetPoints=ne(),b.particlesAssigned=0;const T=Math.min(b.particles.length,b.targetPoints.length);for(let I=0;I<T;I++)b.particles[I].tx=b.targetPoints[I].x,b.particles[I].ty=b.targetPoints[I].y,b.particles[I].gatherDelay=me(20,80),b.particlesAssigned++}function ce(){const T=b.cluster,I=s.getBoundingClientRect(),E=b.rows[T.rowIndex],q=E.top;let L=T.rowIndex+1,C=null,P=0;for(;L<b.rows.length;){const J=b.rows[L];if(J.struck){L++;continue}const G=J.el.getBoundingClientRect(),F=G.top-I.top;if(F<q||G.bottom-I.top<=0){L++;continue}C=J,T.nextRowIndex=L,P=F;break}if(!C){ie();return}C.top=P,T.hopStartX=E.landingX,T.hopStartY=q,T.hopEndX=C.landingX,T.hopEndY=P;const O=Math.abs(T.hopEndY-T.hopStartY);T.hopDuration=Math.max(350,Math.min(800,Math.sqrt(O)*25)),T.hopState="hopping"}function S(T){let I=T.parentElement;for(;I;){const E=I.getAttribute("data-collider");if(E!=="tool-card"&&E!=="message-card"){I=I.parentElement;continue}if(![...I.querySelectorAll("[data-collider]")].every(C=>{const P=b.rows.find(O=>O.el===C);return!(P&&!P.struck)}))break;K(I),I.style.transition="opacity 200ms ease-out",I.style.opacity="0",I=I.parentElement}}const ke=60;function be(T){if(T.dissolved)return;T.dissolved=!0,b.dissolvedTimestampEls.add(T.el);const I=s.getBoundingClientRect(),E=T.el.getBoundingClientRect(),q=E.left-I.left,L=E.top-I.top,P=[...T.el.textContent||""],O=P.indexOf("·"),J=T.width/Math.max(P.length,1);P.forEach((G,F)=>{if(G===" ")return;const B=q+F*J+J/2,ae=L+T.height/2,fe=an(2,3);for(let xe=0;xe<fe;xe++)b.particles.push({x:B+me(-J*.3,J*.3),y:ae+me(-T.height*.3,T.height*.3),vx:me(-2,2),vy:me(-4,-1),size:me(1,3),color:O>=0&&F>=O?p.textMuted:p.accent,phase:"fall",life:an(400,600)})}),T.el.style.transition="opacity 300ms ease-out",T.el.style.opacity="0"}function he(){const I=b.cluster.y;for(const E of b.timestamps){if(E.dissolved)continue;const q=E.top+E.height/2;Math.abs(I-q)<ke&&be(E)}}function _e(){const T=b.cluster;if(T.rowIndex<0||T.rowIndex>=b.rows.length)return;const I=b.rows[T.rowIndex];if(I.struck)return;I.struck=!0,I.landingX,I.top+I.height*.35,I.el.style.transition="none",S(I.el),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 E=me(-8,8),q=me(-4,2);I.el.style.transform=`translate(${E}px, ${q}px)`,I.el.style.transition+=", transform 120ms ease-out";for(const L of Zr){const C=T.x+L.ox,P=T.y+L.oy+P0/2,O=b.letterColorMap[L.char]??p.accent;k(C,P,O)}{const L=s.getBoundingClientRect();for(let C=0;C<b.rows.length;C++){const P=b.rows[C],O=P.el.getBoundingClientRect();P.top=O.top-L.top,P.left=O.left-L.left,P.width=O.width,P.height=O.height}if(b.rows.sort((C,P)=>C.top-P.top),T.rowIndex=b.rows.findIndex(C=>C===I),T.hopState==="hopping"){const C=T.rowIndex+1;C<b.rows.length&&(T.hopEndY=b.rows[C].top,T.hopEndX=b.rows[C].landingX)}}}function Ke(T,I){b.phaseTime+=T;const E=b.cluster;if(b.rows.length===0&&b.phaseTime>2e3&&!b.gatherStarted){ie();return}switch(E.hopState){case"drop":{b.rows.length>0&&E.rowIndex===-1&&(E.rowIndex=0,E.x=b.rows[0].landingX);const L=b.rows.length>0?b.rows[0].top:y/2;E.y+=gk*I,E.y>=L&&(E.y=L,E.hopState="squash",E.hopTimer=na,_e());break}case"squash":{E.hopTimer-=T;const L=ra(1-E.hopTimer/na,0,1);b.scaleY=Kn(1,.6,L),b.scaleX=Kn(1,1.3,L),E.hopTimer<=0&&(E.hopState="stretch",E.hopTimer=L0);break}case"stretch":{E.hopTimer-=T;const L=ra(1-E.hopTimer/L0,0,1);b.scaleY=Kn(.6,1.2,L),b.scaleX=Kn(1.3,.85,L),E.hopTimer<=0&&(b.scaleY=1,b.scaleX=1,E.hopState="dwell",E.hopTimer=mk);break}case"dwell":{E.hopTimer-=T,b.breathPhase+=T*(Math.PI*2/600);const L=1+Math.sin(b.breathPhase)*.02;b.scaleX=L,b.scaleY=L,E.hopTimer<=0&&(b.scaleX=1,b.scaleY=1,ce());break}case"hopping":{E.hopProgress+=T/E.hopDuration;const L=ra(E.hopProgress,0,1),C=xk(L),P=Math.abs(E.hopEndY-E.hopStartY),O=Math.max(40,P*.55),J=(E.hopStartY+E.hopEndY)/2,G=Math.min(O,Math.max(0,J));if(E.y=Kn(E.hopStartY,E.hopEndY,L)-G*Math.sin(L*Math.PI),E.x=Kn(E.hopStartX,E.hopEndX,C),L>=1){E.y=E.hopEndY,E.x=E.hopEndX,E.hopProgress=0;const F=E.nextRowIndex;if(E.nextRowIndex=-1,F<0||F>=b.rows.length){ie();return}E.rowIndex=F,E.hopState="squash",E.hopTimer=na,_e()}break}}(E.hopState==="hopping"||E.hopState==="dwell")&&he();const q=[];for(const L of b.particles)L.phase==="fall"&&(L.vy+=.28*I,L.x+=L.vx,L.y+=L.vy,L.vx*=.995,L.life!==void 0&&(L.life-=T),(L.y>y+10||L.life!==void 0&&L.life<=0)&&q.push(L));q.length>0&&(b.particles=b.particles.filter(L=>!q.includes(L)));for(const L of b.shards)L.x+=L.vx,L.y+=L.vy,L.vy+=.15*I,L.rotation+=L.rotationSpeed,L.life-=T;b.shards=b.shards.filter(L=>L.life>0)}function ft(T,I){if(b.phaseTime+=T,b.particles.length<b.targetPoints.length&&b.particles.length<H0){const E=Math.min(b.targetPoints.length-b.particles.length,50);for(let q=0;q<E&&b.particlesAssigned<b.targetPoints.length;q++){const L=b.targetPoints[b.particlesAssigned++];b.particles.push({x:me(0,g),y:y+me(20,80),vx:me(-2,2),vy:me(-8,-3),size:me(2,4),color:b.letterColorMap[L.letter]??p.text,phase:"fall",tx:L.x,ty:L.y,gatherDelay:me(20,80)})}}for(const E of b.particles)if(E.phase==="fall")E.vy+=.28*I,E.x+=E.vx,E.y+=E.vy,E.vx*=.995,E.y>y-4&&(E.y=y-4,E.vy*=-.3,E.vx*=.75),E.tx!==void 0&&E.gatherDelay!==void 0&&(E.gatherDelay-=T,E.gatherDelay<=0&&(E.phase="gather"));else if(E.phase==="gather"){if(E.tx===void 0||E.ty===void 0)continue;const q=E.tx-E.x,L=E.ty-E.y,C=Math.sqrt(q*q+L*L);C<4?(E.x=E.tx,E.y=E.ty,E.phase="formed",E.flash=1,b.impactRings.push({x:E.x,y:E.y,r:2,life:1}),b.shake=Math.min(b.shake+2.5,8)):(E.vx+=q/C*.55,E.vy+=L/C*.55,E.vx*=.88,E.vy*=.88,E.x+=E.vx,E.y+=E.vy)}else E.phase==="formed"&&E.flash!==void 0&&(E.flash*=.92);for(const E of b.shards)E.x+=E.vx,E.y+=E.vy,E.vy+=.12*I,E.rotation+=E.rotationSpeed,E.life-=T;b.shards=b.shards.filter(E=>E.life>0);for(const E of b.impactRings)E.r+=2.2,E.life-=.045;b.impactRings=b.impactRings.filter(E=>E.life>0),b.particles.length>0&&b.particles.every(E=>E.phase==="formed")&&b.phaseTime>800&&(b.phase="formed",b.phaseTime=0,b.formedTime=0),b.phaseTime>5e3&&(b.phase="formed",b.phaseTime=0,b.formedTime=0)}function dt(T,I){b.phaseTime+=T,b.formedTime+=T;for(const E of b.impactRings)E.r+=1.5,E.life-=.03;b.impactRings=b.impactRings.filter(E=>E.life>0);for(const E of b.particles)E.flash!==void 0&&(E.flash*=.92);for(const E of b.shards)E.x+=E.vx,E.y+=E.vy,E.vy+=.1*I,E.rotation+=E.rotationSpeed,E.life-=T;b.shards=b.shards.filter(E=>E.life>0),b.formedTime>600&&o.current&&!a.current&&(a.current=!0,i.current()),b.formedTime>5e3&&!a.current&&(a.current=!0,i.current())}function Nt(){if(b.phase!=="cascade"||b.cluster.hopState==="drop"&&b.rows.length===0)return;const T=b.cluster,I=b.scaleX,E=b.scaleY;let q=T.x;if(T.rowIndex>=0&&T.rowIndex<b.rows.length){const L=b.rows[T.rowIndex],C=T.x+Zr[0].ox,P=T.x+Zr[5].ox,O=C>=L.left&&C<=L.left+L.width,J=P>=L.left&&P<=L.left+L.width;O&&J?q=(C+P)/2:q=C}u.save(),u.translate(q,T.y),u.scale(I,E),u.translate(-q,-T.y);for(const L of Zr){const C=L.char,P=me(-2,2),O=me(-2,2),J=T.x+L.ox+P,G=T.y+L.oy+O;u.font=`700 ${P0}px "Geist", sans-serif`,u.textAlign="center",u.textBaseline="middle",u.fillStyle=H[C]??p.text,u.fillText(C,J,G)}u.restore()}function nn(){for(const T of b.particles){const I=T.phase==="formed"?T.size*(1+(T.flash??0)*3):T.size;T.phase==="formed"&&(T.flash??0)>.3&&(u.globalCompositeOperation="lighter");let E=T.x,q=T.y;if(T.phase==="formed"&&!o.current){const L=b.formedTime;E+=Math.sin(T.y*.04+L*.002)*Math.cos(T.x*.03+L*.0015)*2.5,q+=Math.cos(T.x*.04+L*.002)*Math.sin(T.y*.03+L*.0015)*2.5}u.beginPath(),u.arc(E,q,I,0,Math.PI*2),u.fillStyle=T.color,u.fill(),u.globalCompositeOperation="source-over"}}function Nn(){for(const T of b.impactRings)u.beginPath(),u.arc(T.x,T.y,T.r,0,Math.PI*2),u.strokeStyle=`rgba(255, 255, 255, ${T.life.toFixed(3)})`,u.lineWidth=2,u.stroke()}function Tn(){for(const T of b.shards){if(u.save(),u.translate(T.x,T.y),u.rotate(T.rotation),u.globalAlpha=Math.max(0,T.life/500),u.beginPath(),T.points.length>0){u.moveTo(T.points[0].x,T.points[0].y);for(let I=1;I<T.points.length;I++)u.lineTo(T.points[I].x,T.points[I].y);u.closePath()}else u.arc(0,0,T.size*3,0,Math.PI*2);u.fillStyle=T.color,u.fill(),u.strokeStyle=T.color,u.lineWidth=.5,u.stroke(),u.restore()}}function rt(T){if(b.phase!=="formed")return;const I=g/2,E=y/2,q=Math.sin(T*.002)*.5+.5,L=Math.floor((.05+q*.08)*255).toString(16).padStart(2,"0");u.globalCompositeOperation="lighter";const C=u.createRadialGradient(I,E,0,I,E,Math.min(g,y)*.4);C.addColorStop(0,p.accent+L),C.addColorStop(1,"transparent"),u.fillStyle=C,u.fillRect(0,0,g,y),u.globalCompositeOperation="source-over"}function j(){const T={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(T[b.phase],g-20,y-16),u.restore()}let ee=performance.now();function X(T){if(g=x.clientWidth,y=x.clientHeight,g===0||y===0){ye=requestAnimationFrame(X);return}s.width=g*N,s.height=y*N,s.style.width=g+"px",s.style.height=y+"px",u.setTransform(N,0,0,N,0,0),b.W=g,b.H=y,b.rows=Q(),b.timestamps=re(),console.log("[dscode] timestamps:",b.timestamps.length),b.cluster.x=g/2,b.cluster.y=-me(60,140),b.cluster.hopState="drop",b.cluster.rowIndex=-1,console.log("[dscode] rows:",b.rows.length,"H:",y,"W:",g),ee=performance.now(),ye=requestAnimationFrame(ge)}let ye=0;function ge(T){const I=Math.min(T-ee,33);ee=T;const E=I/16.667;switch(u.clearRect(0,0,g,y),u.save(),b.shake>.1&&(u.translate(me(-b.shake,b.shake),me(-b.shake,b.shake)),b.shake*=.88),rt(T),Nt(),nn(),Nn(),Tn(),u.restore(),b.phase){case"cascade":Ke(I,E);break;case"gather":ft(I,E);break;case"formed":dt(I,E);break}j(),ye=requestAnimationFrame(ge)}return ye=requestAnimationFrame(X),()=>{cancelAnimationFrame(ye),document.removeEventListener("keydown",Z),document.body.style.cursor=d,M&&(M.style.overflow=z,M.scrollTop=R)}},[]),m.jsx("canvas",{ref:r,style:{position:"absolute",zIndex:50,inset:0,background:"transparent",pointerEvents:"none"}})}const kk=[{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 wk(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 Sk(){const e=localStorage.getItem("dscode-theme");return e==="dark"||e==="light"?e:"light"}function Ek(){try{const e=localStorage.getItem("dscode-dash-cache");if(e)return JSON.parse(e)}catch{}return{}}function Ck(e){try{localStorage.setItem("dscode-dash-cache",JSON.stringify(e))}catch{}}const Ak=20;function Mk(){var G;const[e,t]=c.useState([]),[n,r]=c.useState(!1),[l,i]=c.useState(null),[o,a]=c.useState(""),[s,u]=c.useState(null),[d,f]=c.useState(!1),[h,p]=c.useState("sessions"),[v,w]=c.useState([]),[H,g]=c.useState(null),[y,x]=c.useState([]),[N,_]=c.useState([]),[M,R]=c.useState(""),[z,W]=c.useState(Sk),[A,$]=c.useState(null),[U,le]=c.useState(null),[ne,Q]=c.useState("chat"),[re,b]=c.useState(""),[Z,K]=c.useState(!1),[k,ie]=c.useState("idle"),{toasts:ce,addToast:S,removeToast:ke}=ik(),be=c.useRef(0),he=c.useRef(s);he.current=s;const _e=c.useRef(H);_e.current=H;const Ke=c.useRef(null),ft=c.useRef(Ek()),dt=c.useRef(re);dt.current=re;const Nt=c.useRef(Z);Nt.current=Z;const nn=c.useRef(null);c.useEffect(()=>{const F=document.documentElement;z==="dark"?F.classList.add("dark"):F.classList.remove("dark"),localStorage.setItem("dscode-theme",z)},[z]),c.useEffect(()=>{const F=Ke.current;Ke.current=H,F!==null&&F!==H&&ne==="dashboard"&&Q("chat")},[H,ne]),c.useEffect(()=>{e.length===0&&ne==="dashboard"&&Q("chat")},[e,ne]);const Nn=c.useCallback(()=>W(F=>F==="light"?"dark":"light"),[]),Tn=c.useCallback(F=>{switch(F.type){case"ready":{a(F.model),i(F.config),t(B=>Yl(B,F));break}case"user_message":case"thinking_delta":case"text_delta":case"tool_progress":case"tool_start":case"tool_end":case"mcp_app":t(B=>Yl(B,F));break;case"assistant_end":t(B=>Yl(B,F));break;case"clear_conversation":t(B=>Yl(B,F)),u(null);break;case"assistant_start":break;case"info":{const B=F.text;B.includes(`
|
|
79
|
-
`)||B.startsWith("Available")||B.startsWith("Drivers")||B.startsWith("Skills")||B.startsWith("Configuration")||B.startsWith("Memories")||B.startsWith("Session grants")?le(B):S({type:"info",text:B});break}case"warning":S({type:"warning",text:F.text});break;case"error":S({type:"error",text:F.text}),r(!1),be.current=0;break;case"permission_prompt":u({toolName:F.toolName,preview:F.preview,fuzzyPattern:F.fuzzyPattern??null,fuzzyArgDesc:F.fuzzyArgDesc??null,llmSuggestions:F.llmSuggestions??void 0});break;case"loader":r(F.state==="show"),F.state==="show"?be.current||(be.current=Date.now()):be.current=0;break;case"sessions":{if(w(B=>wk(B,F.data)?B:F.data),g(F.currentSessionId??null),F.currentSessionId){const B=F.data.find(ae=>ae.id===F.currentSessionId);B!=null&&B.pendingPermission&&!he.current&&u({toolName:B.pendingPermission.toolName,preview:B.pendingPermission.preview,fuzzyPattern:B.pendingPermission.fuzzyPattern??null})}break}case"session_time":{const B=_e.current;B&&w(ae=>ae.map(fe=>fe.id===B?{...fe,totalActiveMs:F.totalActiveMs}:fe));break}case"mcp_state":x(F.servers);break;case"mcp_open_browser":f(!0),p("mcp");break;case"model":a(F.name);break;case"context_window":$(F);break;case"config":i(F.data);break;case"file_list_result":_(F.items),R(F.prefix);break;case"artifact_start":b(""),K(!0);break;case"artifact_delta":b(B=>B+F.delta);break;case"artifact_end":{K(!1);const B=_e.current;if(B){const ae=v.find(fe=>fe.id===B);if(ae){const fe=ft.current,xe=Object.keys(fe);xe.length>=Ak&&!fe[B]&&delete fe[xe[0]],fe[B]={contentHash:ae.contentHash,html:dt.current},Ck(fe)}}break}}},[S,v]),{connected:rt,send:j}=qm(Tn),ee=c.useCallback((F,B,ae)=>{!F.trim()&&(!B||B.length===0)||(be.current=Date.now(),r(!0),j(ne==="dashboard"?{type:"artifact",action:"update",instruction:F}:{type:"chat",text:F,images:B!=null&&B.length?B:void 0,fileRefs:ae!=null&&ae.length?ae:void 0}))},[j,ne]),X=c.useCallback((F,B,ae,fe)=>{j({type:B?"permission_response":"permission",decision:F,persistRule:F==="always_allow_save",denyReason:B,toolNamePattern:ae,fuzzyMode:fe,sessionGrantPattern:F==="always_allow"||F==="allow"&&fe===1?ae:void 0}),u(null)},[j]),ye=c.useCallback(()=>j({type:"abort"}),[j]),ge=c.useCallback(F=>j({type:"slash",command:F}),[j]),T=c.useCallback(F=>j(F),[j]),I=c.useCallback((F,B)=>j({type:"config",action:F,value:B}),[j]),E=c.useCallback((F,B)=>j({type:"session",action:F,id:B}),[j]),q=c.useCallback((F,B)=>j({type:"mcp",action:F,serverName:B}),[j]),L=c.useCallback(()=>j({type:"slash",command:"/reset"}),[j]),C=c.useCallback(F=>{var ae;if(F==="chat"){Q("chat");return}if(e.length===0)return;const B=_e.current;if(B){const fe=ft.current[B],xe=(ae=v.find(Ne=>Ne.id===B))==null?void 0:ae.contentHash;if(fe&&xe!==void 0&&xe!==""&&fe.contentHash===xe){b(fe.html),K(!1),Q("dashboard");return}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){Q("dashboard"),b(""),K(!0),j({type:"artifact",action:"generate",context:"session_dashboard"});return}b(""),K(!0),j({type:"artifact",action:"generate",context:"session_dashboard"}),ie("animating")},[j,v,e]),P=c.useCallback(()=>{const F=()=>{Nt.current?requestAnimationFrame(F):(ie("idle"),Q("dashboard"))};requestAnimationFrame(F)},[]);c.useEffect(()=>{rt&&(E("list"),q("list"))},[rt,E,q]);const O=e.some(F=>F.isStreaming),J=((G=v.find(F=>F.id===H))==null?void 0:G.totalActiveMs)??0;return m.jsxs("div",{className:"h-screen flex flex-col",style:{backgroundColor:"var(--color-bg)"},children:[m.jsxs("header",{className:"flex items-center px-4 py-2 shrink-0",style:{backgroundColor:"var(--color-surface)",borderBottom:"1px solid var(--color-border)"},children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:()=>f(!d),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:m.jsx(Cv,{size:20,weight:"bold",style:{color:"var(--color-text)"}})}),m.jsx("h1",{className:"font-bold text-lg",style:{color:"var(--color-accent)"},children:"DSCode"}),o&&m.jsx("span",{className:"text-sm hidden sm:inline",style:{color:"var(--color-text-muted)"},children:o})]}),m.jsx("div",{className:"flex-1 flex justify-center hidden md:flex",children:m.jsx(ck,{data:A})}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(fk,{viewMode:ne,onChange:C,disabled:e.length===0}),m.jsx("button",{onClick:Nn,className:"p-2 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},"aria-label":"Toggle theme",children:z==="light"?m.jsx(Av,{size:18,weight:"bold",style:{color:"var(--color-text)"}}):m.jsx(Tv,{size:18,weight:"bold",style:{color:"var(--color-text)"}})}),m.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1",style:{borderRadius:"8px",backgroundColor:rt?"var(--color-success)":"var(--color-error)",color:rt?"var(--color-success-text)":"var(--color-error-text)"},children:[m.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:rt?"var(--color-success-text)":"var(--color-error-text)"}}),rt?"Connected":"Reconnecting..."]})]})]}),m.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[m.jsx(Gv,{open:d,onClose:()=>f(!1),activeTab:h,onTabChange:p,sessions:v,currentSessionId:H,mcpServers:y,config:l,onSessionAction:E,onMcpAction:q,onMcpServerAction:q,onConfigChange:I,isProcessing:n,onNewSession:L}),m.jsx("main",{className:"flex-1 flex flex-col min-w-0",children:m.jsxs("div",{className:"flex-1 flex flex-col min-h-0",style:{position:"relative"},children:[k==="animating"&&m.jsx(vk,{artifactReady:!Z&&re!=="",onComplete:P,scrollContainerRef:nn}),ne==="dashboard"&&k==="idle"?m.jsx(pk,{html:re,loading:Z}):m.jsx(Iv,{messages:e,processing:n,hasStreaming:O,sessionActiveMs:J,permissionPrompt:s,onPermission:X,containerRef:nn,scrollLocked:k==="animating"}),m.jsx(Xv,{onSend:ee,onAbort:ye,onSlashCommand:ge,onCommand:T,processing:n,slashCommands:kk,fileListItems:N,fileListPrefix:M,viewMode:ne,projectPath:(l==null?void 0:l.projectPath)??""})]})})]}),m.jsx(rk,{toasts:ce,onRemove:ke}),U&&m.jsx(ok,{text:U,onClose:()=>le(null)})]})}la.createRoot(document.getElementById("root")).render(m.jsx($0.StrictMode,{children:m.jsx(Mk,{})}));
|