@venturewild/workspace 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,89 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function as(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Of={exports:{}},Bl={},zf={exports:{}},ee={};/**
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 fi=Symbol.for("react.element"),am=Symbol.for("react.portal"),sm=Symbol.for("react.fragment"),um=Symbol.for("react.strict_mode"),cm=Symbol.for("react.profiler"),fm=Symbol.for("react.provider"),dm=Symbol.for("react.context"),pm=Symbol.for("react.forward_ref"),hm=Symbol.for("react.suspense"),mm=Symbol.for("react.memo"),gm=Symbol.for("react.lazy"),bu=Symbol.iterator;function ym(e){return e===null||typeof e!="object"?null:(e=bu&&e[bu]||e["@@iterator"],typeof e=="function"?e:null)}var Mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bf=Object.assign,$f={};function mr(e,t,n){this.props=e,this.context=t,this.refs=$f,this.updater=n||Mf}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 Uf(){}Uf.prototype=mr.prototype;function ss(e,t,n){this.props=e,this.context=t,this.refs=$f,this.updater=n||Mf}var us=ss.prototype=new Uf;us.constructor=ss;Bf(us,mr.prototype);us.isPureReactComponent=!0;var Su=Array.isArray,Hf=Object.prototype.hasOwnProperty,cs={current:null},Vf={key:!0,ref:!0,__self:!0,__source:!0};function Wf(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Hf.call(t,r)&&!Vf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:fi,type:e,key:l,ref:o,props:i,_owner:cs.current}}function vm(e,t){return{$$typeof:fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fs(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi}function xm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Eu=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xm(""+e.key):t.toString(36)}function Yi(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case fi:case am:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,Su(i)?(n="",e!=null&&(n=e.replace(Eu,"$&/")+"/"),Yi(i,t,n,"",function(u){return u})):i!=null&&(fs(i)&&(i=vm(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Eu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Su(e))for(var a=0;a<e.length;a++){l=e[a];var s=r+ho(l,a);o+=Yi(l,t,n,s,i)}else if(s=ym(e),typeof s=="function")for(e=s.call(e),a=0;!(l=e.next()).done;)l=l.value,s=r+ho(l,a++),o+=Yi(l,t,n,s,i);else if(l==="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 Ti(e,t,n){if(e==null)return e;var r=[],i=0;return Yi(e,r,"","",function(l){return t.call(n,l,i++)}),r}function km(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 Ve={current:null},Ki={transition:null},wm={ReactCurrentDispatcher:Ve,ReactCurrentBatchConfig:Ki,ReactCurrentOwner:cs};function Gf(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Ti,forEach:function(e,t,n){Ti(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ti(e,function(){t++}),t},toArray:function(e){return Ti(e,function(t){return t})||[]},only:function(e){if(!fs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=mr;ee.Fragment=sm;ee.Profiler=cm;ee.PureComponent=ss;ee.StrictMode=um;ee.Suspense=hm;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wm;ee.act=Gf;ee.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=Bf({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=cs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Hf.call(t,s)&&!Vf.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:fi,type:e.type,key:i,ref:l,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:dm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fm,_context:e},e.Consumer=e};ee.createElement=Wf;ee.createFactory=function(e){var t=Wf.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:pm,render:e}};ee.isValidElement=fs;ee.lazy=function(e){return{$$typeof:gm,_payload:{_status:-1,_result:e},_init:km}};ee.memo=function(e,t){return{$$typeof:mm,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=Ki.transition;Ki.transition={};try{e()}finally{Ki.transition=t}};ee.unstable_act=Gf;ee.useCallback=function(e,t){return Ve.current.useCallback(e,t)};ee.useContext=function(e){return Ve.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Ve.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Ve.current.useEffect(e,t)};ee.useId=function(){return Ve.current.useId()};ee.useImperativeHandle=function(e,t,n){return Ve.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Ve.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Ve.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Ve.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Ve.current.useReducer(e,t,n)};ee.useRef=function(e){return Ve.current.useRef(e)};ee.useState=function(e){return Ve.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Ve.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Ve.current.useTransition()};ee.version="18.3.1";zf.exports=ee;var P=zf.exports;const bm=as(P);/**
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 Sm=P,Em=Symbol.for("react.element"),Cm=Symbol.for("react.fragment"),Nm=Object.prototype.hasOwnProperty,Tm=Sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_m={key:!0,ref:!0,__self:!0,__source:!0};function Qf(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Nm.call(t,r)&&!_m.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Em,type:e,key:l,ref:o,props:i,_owner:Tm.current}}Bl.Fragment=Cm;Bl.jsx=Qf;Bl.jsxs=Qf;Of.exports=Bl;var p=Of.exports,na={},qf={exports:{}},st={},Yf={exports:{}},Kf={};/**
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(D,W){var k=D.length;D.push(W);e:for(;0<k;){var K=k-1>>>1,Y=D[K];if(0<i(Y,W))D[K]=W,D[k]=Y,k=K;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var W=D[0],k=D.pop();if(k!==W){D[0]=k;e:for(var K=0,Y=D.length,E=Y>>>1;K<E;){var ue=2*(K+1)-1,Ee=D[ue],ne=ue+1,Pe=D[ne];if(0>i(Ee,k))ne<Y&&0>i(Pe,Ee)?(D[K]=Pe,D[ne]=k,K=ne):(D[K]=Ee,D[ue]=k,K=ue);else if(ne<Y&&0>i(Pe,k))D[K]=Pe,D[ne]=k,K=ne;else break e}}return W}function i(D,W){var k=D.sortIndex-W.sortIndex;return k!==0?k:D.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],f=1,c=null,d=3,h=!1,m=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,v=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 g(D){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=D)r(u),W.sortIndex=W.expirationTime,t(s,W);else break;W=n(u)}}function b(D){if(x=!1,g(D),!m)if(n(s)!==null)m=!0,G(N);else{var W=n(u);W!==null&&Z(b,W.startTime-D)}}function N(D,W){m=!1,x&&(x=!1,v(j),j=-1),h=!0;var k=d;try{for(g(W),c=n(s);c!==null&&(!(c.expirationTime>W)||D&&!R());){var K=c.callback;if(typeof K=="function"){c.callback=null,d=c.priorityLevel;var Y=K(c.expirationTime<=W);W=e.unstable_now(),typeof Y=="function"?c.callback=Y:c===n(s)&&r(s),g(W)}else r(s);c=n(s)}if(c!==null)var E=!0;else{var ue=n(u);ue!==null&&Z(b,ue.startTime-W),E=!1}return E}finally{c=null,d=k,h=!1}}var S=!1,T=null,j=-1,L=5,C=-1;function R(){return!(e.unstable_now()-C<L)}function M(){if(T!==null){var D=e.unstable_now();C=D;var W=!0;try{W=T(!0,D)}finally{W?U():(S=!1,T=null)}}else S=!1}var U;if(typeof y=="function")U=function(){y(M)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,F=$.port2;$.port1.onmessage=M,U=function(){F.postMessage(null)}}else U=function(){w(M,0)};function G(D){T=D,S||(S=!0,U())}function Z(D,W){j=w(function(){D(e.unstable_now())},W)}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(D){D.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,G(N))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(D){switch(d){case 1:case 2:case 3:var W=3;break;default:W=d}var k=d;d=W;try{return D()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var k=d;d=D;try{return W()}finally{d=k}},e.unstable_scheduleCallback=function(D,W,k){var K=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?K+k:K):k=K,D){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=k+Y,D={id:f++,callback:W,priorityLevel:D,startTime:k,expirationTime:Y,sortIndex:-1},k>K?(D.sortIndex=k,t(u,D),n(s)===null&&D===n(u)&&(x?(v(j),j=-1):x=!0,Z(b,k-K))):(D.sortIndex=Y,t(s,D),m||h||(m=!0,G(N))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var W=d;return function(){var k=d;d=W;try{return D.apply(this,arguments)}finally{d=k}}}})(Kf);Yf.exports=Kf;var jm=Yf.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 Im=P,at=jm;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xf=new Set,Gr={};function Ln(e,t){ar(e,t),ar(e+"Capture",t)}function ar(e,t){for(Gr[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ra=Object.prototype.hasOwnProperty,Am=/^[: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]*$/,Cu={},Nu={};function Pm(e){return ra.call(Nu,e)?!0:ra.call(Cu,e)?!1:Am.test(e)?Nu[e]=!0:(Cu[e]=!0,!1)}function Lm(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 Fm(e,t,n,r){if(t===null||typeof t>"u"||Lm(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 We(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new We(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){Ae[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var ds=/[\-:]([a-z])/g;function ps(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(ds,ps);Ae[t]=new We(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(ds,ps);Ae[t]=new We(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(ds,ps);Ae[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function hs(e,t,n,r){var i=Ae.hasOwnProperty(t)?Ae[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Fm(t,n,i,r)&&(n=null),r||i===null?Pm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Vt=Im.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_i=Symbol.for("react.element"),Un=Symbol.for("react.portal"),Hn=Symbol.for("react.fragment"),ms=Symbol.for("react.strict_mode"),ia=Symbol.for("react.profiler"),Zf=Symbol.for("react.provider"),Jf=Symbol.for("react.context"),gs=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),oa=Symbol.for("react.suspense_list"),ys=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),ed=Symbol.for("react.offscreen"),Tu=Symbol.iterator;function kr(e){return e===null||typeof e!="object"?null:(e=Tu&&e[Tu]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,mo;function Ir(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 i=u.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),o=i.length-1,a=l.length-1;1<=o&&0<=a&&i[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==l[a]){var s=`
37
+ `+i[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:"")?Ir(e):""}function Rm(e){switch(e.tag){case 5:return Ir(e.type);case 16:return Ir("Lazy");case 13:return Ir("Suspense");case 19:return Ir("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 aa(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 Hn:return"Fragment";case Un:return"Portal";case ia:return"Profiler";case ms:return"StrictMode";case la:return"Suspense";case oa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jf:return(e.displayName||"Context")+".Consumer";case Zf:return(e._context.displayName||"Context")+".Provider";case gs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ys:return t=e.displayName||null,t!==null?t:aa(e.type)||"Memo";case Yt:t=e._payload,e=e._init;try{return aa(e(t))}catch{}}return null}function Dm(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 aa(t);case 8:return t===ms?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Om(e){var t=td(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.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 ji(e){e._valueTracker||(e._valueTracker=Om(e))}function nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=td(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(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 sa(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _u(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rd(e,t){t=t.checked,t!=null&&hs(e,"checked",t,!1)}function ua(e,t){rd(e,t);var n=cn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ca(e,t.type,n):t.hasOwnProperty("defaultValue")&&ca(e,t.type,cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ju(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 ca(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function fa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Iu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Ar(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cn(n)}}function id(e,t){var n=cn(t.value),r=cn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Au(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ld(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 da(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ld(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ii,od=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ii=Ii||document.createElement("div"),Ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fr={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},zm=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){zm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function ad(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function sd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ad(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Mm=ye({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 pa(e,t){if(t){if(Mm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function ha(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 ma=null;function vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ga=null,tr=null,nr=null;function Pu(e){if(e=hi(e)){if(typeof ga!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Wl(t),ga(e.stateNode,e.type,t))}}function ud(e){tr?nr?nr.push(e):nr=[e]:tr=e}function cd(){if(tr){var e=tr,t=nr;if(nr=tr=null,Pu(e),t)for(e=0;e<t.length;e++)Pu(t[e])}}function fd(e,t){return e(t)}function dd(){}var vo=!1;function pd(e,t,n){if(vo)return e(t,n);vo=!0;try{return fd(e,t,n)}finally{vo=!1,(tr!==null||nr!==null)&&(dd(),cd())}}function qr(e,t){var n=e.stateNode;if(n===null)return null;var r=Wl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var ya=!1;if(Bt)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){ya=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{ya=!1}function Bm(e,t,n,r,i,l,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Rr=!1,dl=null,pl=!1,va=null,$m={onError:function(e){Rr=!0,dl=e}};function Um(e,t,n,r,i,l,o,a,s){Rr=!1,dl=null,Bm.apply($m,arguments)}function Hm(e,t,n,r,i,l,o,a,s){if(Um.apply(this,arguments),Rr){if(Rr){var u=dl;Rr=!1,dl=null}else throw Error(O(198));pl||(pl=!0,va=u)}}function Fn(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 hd(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 Lu(e){if(Fn(e)!==e)throw Error(O(188))}function Vm(e){var t=e.alternate;if(!t){if(t=Fn(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Lu(i),e;if(l===r)return Lu(i),t;l=l.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,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){for(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)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function md(e){return e=Vm(e),e!==null?gd(e):null}function gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gd(e);if(t!==null)return t;e=e.sibling}return null}var yd=at.unstable_scheduleCallback,Fu=at.unstable_cancelCallback,Wm=at.unstable_shouldYield,Gm=at.unstable_requestPaint,we=at.unstable_now,Qm=at.unstable_getCurrentPriorityLevel,xs=at.unstable_ImmediatePriority,vd=at.unstable_UserBlockingPriority,hl=at.unstable_NormalPriority,qm=at.unstable_LowPriority,xd=at.unstable_IdlePriority,$l=null,It=null;function Ym(e){if(It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot($l,e,void 0,(e.current.flags&128)===128)}catch{}}var bt=Math.clz32?Math.clz32:Zm,Km=Math.log,Xm=Math.LN2;function Zm(e){return e>>>=0,e===0?32:31-(Km(e)/Xm|0)|0}var Ai=64,Pi=4194304;function Pr(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 ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Pr(a):(l&=o,l!==0&&(r=Pr(l)))}else o=n&~i,o!==0?r=Pr(o):l!==0&&(r=Pr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&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-bt(t),i=1<<n,r|=e[n],t&=~i;return r}function Jm(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 eg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-bt(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=Jm(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function xa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kd(){var e=Ai;return Ai<<=1,!(Ai&4194240)&&(Ai=64),e}function xo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bt(t),e[t]=n}function tg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-bt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function ks(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ie=0;function wd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bd,ws,Sd,Ed,Cd,ka=!1,Li=[],tn=null,nn=null,rn=null,Yr=new Map,Kr=new Map,Xt=[],ng="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":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":Yr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function br(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=hi(t),t!==null&&ws(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function rg(e,t,n,r,i){switch(t){case"focusin":return tn=br(tn,e,t,n,r,i),!0;case"dragenter":return nn=br(nn,e,t,n,r,i),!0;case"mouseover":return rn=br(rn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Yr.set(l,br(Yr.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Kr.set(l,br(Kr.get(l)||null,e,t,n,r,i)),!0}return!1}function Nd(e){var t=bn(e.target);if(t!==null){var n=Fn(t);if(n!==null){if(t=n.tag,t===13){if(t=hd(n),t!==null){e.blockedOn=t,Cd(e.priority,function(){Sd(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 Xi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ma=r,n.target.dispatchEvent(r),ma=null}else return t=hi(n),t!==null&&ws(t),e.blockedOn=n,!1;t.shift()}return!0}function Du(e,t,n){Xi(e)&&n.delete(t)}function ig(){ka=!1,tn!==null&&Xi(tn)&&(tn=null),nn!==null&&Xi(nn)&&(nn=null),rn!==null&&Xi(rn)&&(rn=null),Yr.forEach(Du),Kr.forEach(Du)}function Sr(e,t){e.blockedOn===t&&(e.blockedOn=null,ka||(ka=!0,at.unstable_scheduleCallback(at.unstable_NormalPriority,ig)))}function Xr(e){function t(i){return Sr(i,e)}if(0<Li.length){Sr(Li[0],e);for(var n=1;n<Li.length;n++){var r=Li[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&Sr(tn,e),nn!==null&&Sr(nn,e),rn!==null&&Sr(rn,e),Yr.forEach(t),Kr.forEach(t),n=0;n<Xt.length;n++)r=Xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)Nd(n),n.blockedOn===null&&Xt.shift()}var rr=Vt.ReactCurrentBatchConfig,gl=!0;function lg(e,t,n,r){var i=ie,l=rr.transition;rr.transition=null;try{ie=1,bs(e,t,n,r)}finally{ie=i,rr.transition=l}}function og(e,t,n,r){var i=ie,l=rr.transition;rr.transition=null;try{ie=4,bs(e,t,n,r)}finally{ie=i,rr.transition=l}}function bs(e,t,n,r){if(gl){var i=wa(e,t,n,r);if(i===null)jo(e,t,r,yl,n),Ru(e,r);else if(rg(i,e,t,n,r))r.stopPropagation();else if(Ru(e,r),t&4&&-1<ng.indexOf(e)){for(;i!==null;){var l=hi(i);if(l!==null&&bd(l),l=wa(e,t,n,r),l===null&&jo(e,t,r,yl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else jo(e,t,r,null,n)}}var yl=null;function wa(e,t,n,r){if(yl=null,e=vs(r),e=bn(e),e!==null)if(t=Fn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hd(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 yl=e,null}function Td(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(Qm()){case xs:return 1;case vd:return 4;case hl:case qm:return 16;case xd:return 536870912;default:return 16}default:return 16}}var Jt=null,Ss=null,Zi=null;function _d(){if(Zi)return Zi;var e,t=Ss,n=t.length,r,i="value"in Jt?Jt.value:Jt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return Zi=i.slice(e,1<r?1-r:void 0)}function Ji(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 Fi(){return!0}function Ou(){return!1}function ut(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Fi:Ou,this.isPropagationStopped=Ou,this}return ye(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=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=ut(gr),pi=ye({},gr,{view:0,detail:0}),ag=ut(pi),ko,wo,Er,Ul=ye({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cs,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!==Er&&(Er&&e.type==="mousemove"?(ko=e.screenX-Er.screenX,wo=e.screenY-Er.screenY):wo=ko=0,Er=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),zu=ut(Ul),sg=ye({},Ul,{dataTransfer:0}),ug=ut(sg),cg=ye({},pi,{relatedTarget:0}),bo=ut(cg),fg=ye({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),dg=ut(fg),pg=ye({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hg=ut(pg),mg=ye({},gr,{data:0}),Mu=ut(mg),gg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yg={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"},vg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vg[e])?!!t[e]:!1}function Cs(){return xg}var kg=ye({},pi,{key:function(e){if(e.key){var t=gg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cs,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wg=ut(kg),bg=ye({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bu=ut(bg),Sg=ye({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cs}),Eg=ut(Sg),Cg=ye({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ng=ut(Cg),Tg=ye({},Ul,{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}),_g=ut(Tg),jg=[9,13,27,32],Ns=Bt&&"CompositionEvent"in window,Dr=null;Bt&&"documentMode"in document&&(Dr=document.documentMode);var Ig=Bt&&"TextEvent"in window&&!Dr,jd=Bt&&(!Ns||Dr&&8<Dr&&11>=Dr),$u=" ",Uu=!1;function Id(e,t){switch(e){case"keyup":return jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Ag(e,t){switch(e){case"compositionend":return Ad(t);case"keypress":return t.which!==32?null:(Uu=!0,$u);case"textInput":return e=t.data,e===$u&&Uu?null:e;default:return null}}function Pg(e,t){if(Vn)return e==="compositionend"||!Ns&&Id(e,t)?(e=_d(),Zi=Ss=Jt=null,Vn=!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 jd&&t.locale!=="ko"?null:t.data;default:return null}}var Lg={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 Hu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lg[e.type]:t==="textarea"}function Pd(e,t,n,r){ud(r),t=vl(t,"onChange"),0<t.length&&(n=new Es("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Or=null,Zr=null;function Fg(e){Hd(e,0)}function Hl(e){var t=Qn(e);if(nd(t))return e}function Rg(e,t){if(e==="change")return t}var Ld=!1;if(Bt){var So;if(Bt){var Eo="oninput"in document;if(!Eo){var Vu=document.createElement("div");Vu.setAttribute("oninput","return;"),Eo=typeof Vu.oninput=="function"}So=Eo}else So=!1;Ld=So&&(!document.documentMode||9<document.documentMode)}function Wu(){Or&&(Or.detachEvent("onpropertychange",Fd),Zr=Or=null)}function Fd(e){if(e.propertyName==="value"&&Hl(Zr)){var t=[];Pd(t,Zr,e,vs(e)),pd(Fg,t)}}function Dg(e,t,n){e==="focusin"?(Wu(),Or=t,Zr=n,Or.attachEvent("onpropertychange",Fd)):e==="focusout"&&Wu()}function Og(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(Zr)}function zg(e,t){if(e==="click")return Hl(t)}function Mg(e,t){if(e==="input"||e==="change")return Hl(t)}function Bg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Bg;function Jr(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ra.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function Gu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qu(e,t){var n=Gu(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=Gu(n)}}function Rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dd(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(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 $g(e){var t=Dd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rd(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 i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Qu(n,l);var o=Qu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>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 Ug=Bt&&"documentMode"in document&&11>=document.documentMode,Wn=null,ba=null,zr=null,Sa=!1;function qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sa||Wn==null||Wn!==fl(r)||(r=Wn,"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}),zr&&Jr(zr,r)||(zr=r,r=vl(ba,"onSelect"),0<r.length&&(t=new Es("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wn)))}function Ri(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gn={animationend:Ri("Animation","AnimationEnd"),animationiteration:Ri("Animation","AnimationIteration"),animationstart:Ri("Animation","AnimationStart"),transitionend:Ri("Transition","TransitionEnd")},Co={},Od={};Bt&&(Od=document.createElement("div").style,"AnimationEvent"in window||(delete Gn.animationend.animation,delete Gn.animationiteration.animation,delete Gn.animationstart.animation),"TransitionEvent"in window||delete Gn.transitionend.transition);function Vl(e){if(Co[e])return Co[e];if(!Gn[e])return e;var t=Gn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Od)return Co[e]=t[n];return e}var zd=Vl("animationend"),Md=Vl("animationiteration"),Bd=Vl("animationstart"),$d=Vl("transitionend"),Ud=new Map,Yu="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 dn(e,t){Ud.set(e,t),Ln(t,[e])}for(var No=0;No<Yu.length;No++){var To=Yu[No],Hg=To.toLowerCase(),Vg=To[0].toUpperCase()+To.slice(1);dn(Hg,"on"+Vg)}dn(zd,"onAnimationEnd");dn(Md,"onAnimationIteration");dn(Bd,"onAnimationStart");dn("dblclick","onDoubleClick");dn("focusin","onFocus");dn("focusout","onBlur");dn($d,"onTransitionEnd");ar("onMouseEnter",["mouseout","mouseover"]);ar("onMouseLeave",["mouseout","mouseover"]);ar("onPointerEnter",["pointerout","pointerover"]);ar("onPointerLeave",["pointerout","pointerover"]);Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="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(" "),Wg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Ku(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Hm(r,t,void 0,e),e.currentTarget=null}function Hd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=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!==l&&i.isPropagationStopped())break e;Ku(i,a,u),l=s}else for(o=0;o<r.length;o++){if(a=r[o],s=a.instance,u=a.currentTarget,a=a.listener,s!==l&&i.isPropagationStopped())break e;Ku(i,a,u),l=s}}}if(pl)throw e=va,pl=!1,va=null,e}function ce(e,t){var n=t[_a];n===void 0&&(n=t[_a]=new Set);var r=e+"__bubble";n.has(r)||(Vd(t,e,2,!1),n.add(r))}function _o(e,t,n){var r=0;t&&(r|=4),Vd(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Di]){e[Di]=!0,Xf.forEach(function(n){n!=="selectionchange"&&(Wg.has(n)||_o(n,!1,e),_o(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,_o("selectionchange",!1,t))}}function Vd(e,t,n,r){switch(Td(t)){case 1:var i=lg;break;case 4:i=og;break;default:i=bs}n=i.bind(null,t,n,e),i=void 0,!ya||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jo(e,t,n,r,i){var l=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===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;a!==null;){if(o=bn(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}pd(function(){var u=l,f=vs(n),c=[];e:{var d=Ud.get(e);if(d!==void 0){var h=Es,m=e;switch(e){case"keypress":if(Ji(n)===0)break e;case"keydown":case"keyup":h=wg;break;case"focusin":m="focus",h=bo;break;case"focusout":m="blur",h=bo;break;case"beforeblur":case"afterblur":h=bo;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":h=zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ug;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Eg;break;case zd:case Md:case Bd:h=dg;break;case $d:h=Ng;break;case"scroll":h=ag;break;case"wheel":h=_g;break;case"copy":case"cut":case"paste":h=hg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Bu}var x=(t&4)!==0,w=!x&&e==="scroll",v=x?d!==null?d+"Capture":null:d;x=[];for(var y=u,g;y!==null;){g=y;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,v!==null&&(b=qr(y,v),b!=null&&x.push(ti(y,b,g)))),w)break;y=y.return}0<x.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==ma&&(m=n.relatedTarget||n.fromElement)&&(bn(m)||m[$t]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?bn(m):null,m!==null&&(w=Fn(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(x=zu,b="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=Bu,b="onPointerLeave",v="onPointerEnter",y="pointer"),w=h==null?d:Qn(h),g=m==null?d:Qn(m),d=new x(b,y+"leave",h,n,f),d.target=w,d.relatedTarget=g,b=null,bn(f)===u&&(x=new x(v,y+"enter",m,n,f),x.target=g,x.relatedTarget=w,b=x),w=b,h&&m)t:{for(x=h,v=m,y=0,g=x;g;g=zn(g))y++;for(g=0,b=v;b;b=zn(b))g++;for(;0<y-g;)x=zn(x),y--;for(;0<g-y;)v=zn(v),g--;for(;y--;){if(x===v||v!==null&&x===v.alternate)break t;x=zn(x),v=zn(v)}x=null}else x=null;h!==null&&Xu(c,d,h,x,!1),m!==null&&w!==null&&Xu(c,w,m,x,!0)}}e:{if(d=u?Qn(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var N=Rg;else if(Hu(d))if(Ld)N=Mg;else{N=Og;var S=Dg}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(N=zg);if(N&&(N=N(e,u))){Pd(c,N,n,f);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&ca(d,"number",d.value)}switch(S=u?Qn(u):window,e){case"focusin":(Hu(S)||S.contentEditable==="true")&&(Wn=S,ba=u,zr=null);break;case"focusout":zr=ba=Wn=null;break;case"mousedown":Sa=!0;break;case"contextmenu":case"mouseup":case"dragend":Sa=!1,qu(c,n,f);break;case"selectionchange":if(Ug)break;case"keydown":case"keyup":qu(c,n,f)}var T;if(Ns)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Vn?Id(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(jd&&n.locale!=="ko"&&(Vn||j!=="onCompositionStart"?j==="onCompositionEnd"&&Vn&&(T=_d()):(Jt=f,Ss="value"in Jt?Jt.value:Jt.textContent,Vn=!0)),S=vl(u,j),0<S.length&&(j=new Mu(j,e,null,n,f),c.push({event:j,listeners:S}),T?j.data=T:(T=Ad(n),T!==null&&(j.data=T)))),(T=Ig?Ag(e,n):Pg(e,n))&&(u=vl(u,"onBeforeInput"),0<u.length&&(f=new Mu("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=T))}Hd(c,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=qr(e,n),l!=null&&r.unshift(ti(e,l,i)),l=qr(e,t),l!=null&&r.push(ti(e,l,i))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xu(e,t,n,r,i){for(var l=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,i?(s=qr(n,l),s!=null&&o.unshift(ti(n,s,a))):i||(s=qr(n,l),s!=null&&o.push(ti(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Gg=/\r\n?/g,Qg=/\u0000|\uFFFD/g;function Zu(e){return(typeof e=="string"?e:""+e).replace(Gg,`
38
+ `).replace(Qg,"")}function Oi(e,t,n){if(t=Zu(t),Zu(e)!==t&&n)throw Error(O(425))}function xl(){}var Ea=null,Ca=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,qg=typeof clearTimeout=="function"?clearTimeout:void 0,Ju=typeof Promise=="function"?Promise:void 0,Yg=typeof queueMicrotask=="function"?queueMicrotask:typeof Ju<"u"?function(e){return Ju.resolve(null).then(e).catch(Kg)}:Ta;function Kg(e){setTimeout(function(){throw e})}function Io(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Xr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Xr(t)}function ln(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 ec(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 yr=Math.random().toString(36).slice(2),jt="__reactFiber$"+yr,ni="__reactProps$"+yr,$t="__reactContainer$"+yr,_a="__reactEvents$"+yr,Xg="__reactListeners$"+yr,Zg="__reactHandles$"+yr;function bn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ec(e);e!==null;){if(n=e[jt])return n;e=ec(e)}return t}e=n,n=e.parentNode}return null}function hi(e){return e=e[jt]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Wl(e){return e[ni]||null}var ja=[],qn=-1;function pn(e){return{current:e}}function fe(e){0>qn||(e.current=ja[qn],ja[qn]=null,qn--)}function se(e,t){qn++,ja[qn]=e.current,e.current=t}var fn={},Oe=pn(fn),Ke=pn(!1),Tn=fn;function sr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xe(e){return e=e.childContextTypes,e!=null}function kl(){fe(Ke),fe(Oe)}function tc(e,t,n){if(Oe.current!==fn)throw Error(O(168));se(Oe,t),se(Ke,n)}function Wd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,Dm(e)||"Unknown",i));return ye({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Tn=Oe.current,se(Oe,e),se(Ke,Ke.current),!0}function nc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Wd(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,fe(Ke),fe(Oe),se(Oe,e)):fe(Ke),se(Ke,n)}var Dt=null,Gl=!1,Ao=!1;function Gd(e){Dt===null?Dt=[e]:Dt.push(e)}function Jg(e){Gl=!0,Gd(e)}function hn(){if(!Ao&&Dt!==null){Ao=!0;var e=0,t=ie;try{var n=Dt;for(ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,Gl=!1}catch(i){throw Dt!==null&&(Dt=Dt.slice(e+1)),yd(xs,hn),i}finally{ie=t,Ao=!1}}return null}var Yn=[],Kn=0,bl=null,Sl=0,ct=[],ft=0,_n=null,Ot=1,zt="";function xn(e,t){Yn[Kn++]=Sl,Yn[Kn++]=bl,bl=e,Sl=t}function Qd(e,t,n){ct[ft++]=Ot,ct[ft++]=zt,ct[ft++]=_n,_n=e;var r=Ot;e=zt;var i=32-bt(r)-1;r&=~(1<<i),n+=1;var l=32-bt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ot=1<<32-bt(t)+i|n<<i|r,zt=l+e}else Ot=1<<l|n<<i|r,zt=e}function _s(e){e.return!==null&&(xn(e,1),Qd(e,1,0))}function js(e){for(;e===bl;)bl=Yn[--Kn],Yn[Kn]=null,Sl=Yn[--Kn],Yn[Kn]=null;for(;e===_n;)_n=ct[--ft],ct[ft]=null,zt=ct[--ft],ct[ft]=null,Ot=ct[--ft],ct[ft]=null}var lt=null,it=null,pe=!1,wt=null;function qd(e,t){var n=pt(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 rc(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,lt=e,it=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,it=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_n!==null?{id:Ot,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lt=e,it=null,!0):!1;default:return!1}}function Ia(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Aa(e){if(pe){var t=it;if(t){var n=t;if(!rc(e,t)){if(Ia(e))throw Error(O(418));t=ln(n.nextSibling);var r=lt;t&&rc(e,t)?qd(r,n):(e.flags=e.flags&-4097|2,pe=!1,lt=e)}}else{if(Ia(e))throw Error(O(418));e.flags=e.flags&-4097|2,pe=!1,lt=e}}}function ic(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function zi(e){if(e!==lt)return!1;if(!pe)return ic(e),pe=!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=it)){if(Ia(e))throw Yd(),Error(O(418));for(;t;)qd(e,t),t=ln(t.nextSibling)}if(ic(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){it=ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}it=null}}else it=lt?ln(e.stateNode.nextSibling):null;return!0}function Yd(){for(var e=it;e;)e=ln(e.nextSibling)}function ur(){it=lt=null,pe=!1}function Is(e){wt===null?wt=[e]:wt.push(e)}var ey=Vt.ReactCurrentBatchConfig;function Cr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=i.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Mi(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lc(e){var t=e._init;return t(e._payload)}function Kd(e){function t(v,y){if(e){var g=v.deletions;g===null?(v.deletions=[y],v.flags|=16):g.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function r(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function i(v,y){return v=un(v,y),v.index=0,v.sibling=null,v}function l(v,y,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<y?(v.flags|=2,y):g):(v.flags|=2,y)):(v.flags|=1048576,y)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,y,g,b){return y===null||y.tag!==6?(y=zo(g,v.mode,b),y.return=v,y):(y=i(y,g),y.return=v,y)}function s(v,y,g,b){var N=g.type;return N===Hn?f(v,y,g.props.children,b,g.key):y!==null&&(y.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Yt&&lc(N)===y.type)?(b=i(y,g.props),b.ref=Cr(v,y,g),b.return=v,b):(b=ol(g.type,g.key,g.props,null,v.mode,b),b.ref=Cr(v,y,g),b.return=v,b)}function u(v,y,g,b){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=Mo(g,v.mode,b),y.return=v,y):(y=i(y,g.children||[]),y.return=v,y)}function f(v,y,g,b,N){return y===null||y.tag!==7?(y=Nn(g,v.mode,b,N),y.return=v,y):(y=i(y,g),y.return=v,y)}function c(v,y,g){if(typeof y=="string"&&y!==""||typeof y=="number")return y=zo(""+y,v.mode,g),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _i:return g=ol(y.type,y.key,y.props,null,v.mode,g),g.ref=Cr(v,null,y),g.return=v,g;case Un:return y=Mo(y,v.mode,g),y.return=v,y;case Yt:var b=y._init;return c(v,b(y._payload),g)}if(Ar(y)||kr(y))return y=Nn(y,v.mode,g,null),y.return=v,y;Mi(v,y)}return null}function d(v,y,g,b){var N=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return N!==null?null:a(v,y,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _i:return g.key===N?s(v,y,g,b):null;case Un:return g.key===N?u(v,y,g,b):null;case Yt:return N=g._init,d(v,y,N(g._payload),b)}if(Ar(g)||kr(g))return N!==null?null:f(v,y,g,b,null);Mi(v,g)}return null}function h(v,y,g,b,N){if(typeof b=="string"&&b!==""||typeof b=="number")return v=v.get(g)||null,a(y,v,""+b,N);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _i:return v=v.get(b.key===null?g:b.key)||null,s(y,v,b,N);case Un:return v=v.get(b.key===null?g:b.key)||null,u(y,v,b,N);case Yt:var S=b._init;return h(v,y,g,S(b._payload),N)}if(Ar(b)||kr(b))return v=v.get(g)||null,f(y,v,b,N,null);Mi(y,b)}return null}function m(v,y,g,b){for(var N=null,S=null,T=y,j=y=0,L=null;T!==null&&j<g.length;j++){T.index>j?(L=T,T=null):L=T.sibling;var C=d(v,T,g[j],b);if(C===null){T===null&&(T=L);break}e&&T&&C.alternate===null&&t(v,T),y=l(C,y,j),S===null?N=C:S.sibling=C,S=C,T=L}if(j===g.length)return n(v,T),pe&&xn(v,j),N;if(T===null){for(;j<g.length;j++)T=c(v,g[j],b),T!==null&&(y=l(T,y,j),S===null?N=T:S.sibling=T,S=T);return pe&&xn(v,j),N}for(T=r(v,T);j<g.length;j++)L=h(T,v,j,g[j],b),L!==null&&(e&&L.alternate!==null&&T.delete(L.key===null?j:L.key),y=l(L,y,j),S===null?N=L:S.sibling=L,S=L);return e&&T.forEach(function(R){return t(v,R)}),pe&&xn(v,j),N}function x(v,y,g,b){var N=kr(g);if(typeof N!="function")throw Error(O(150));if(g=N.call(g),g==null)throw Error(O(151));for(var S=N=null,T=y,j=y=0,L=null,C=g.next();T!==null&&!C.done;j++,C=g.next()){T.index>j?(L=T,T=null):L=T.sibling;var R=d(v,T,C.value,b);if(R===null){T===null&&(T=L);break}e&&T&&R.alternate===null&&t(v,T),y=l(R,y,j),S===null?N=R:S.sibling=R,S=R,T=L}if(C.done)return n(v,T),pe&&xn(v,j),N;if(T===null){for(;!C.done;j++,C=g.next())C=c(v,C.value,b),C!==null&&(y=l(C,y,j),S===null?N=C:S.sibling=C,S=C);return pe&&xn(v,j),N}for(T=r(v,T);!C.done;j++,C=g.next())C=h(T,v,j,C.value,b),C!==null&&(e&&C.alternate!==null&&T.delete(C.key===null?j:C.key),y=l(C,y,j),S===null?N=C:S.sibling=C,S=C);return e&&T.forEach(function(M){return t(v,M)}),pe&&xn(v,j),N}function w(v,y,g,b){if(typeof g=="object"&&g!==null&&g.type===Hn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case _i:e:{for(var N=g.key,S=y;S!==null;){if(S.key===N){if(N=g.type,N===Hn){if(S.tag===7){n(v,S.sibling),y=i(S,g.props.children),y.return=v,v=y;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Yt&&lc(N)===S.type){n(v,S.sibling),y=i(S,g.props),y.ref=Cr(v,S,g),y.return=v,v=y;break e}n(v,S);break}else t(v,S);S=S.sibling}g.type===Hn?(y=Nn(g.props.children,v.mode,b,g.key),y.return=v,v=y):(b=ol(g.type,g.key,g.props,null,v.mode,b),b.ref=Cr(v,y,g),b.return=v,v=b)}return o(v);case Un:e:{for(S=g.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(v,y.sibling),y=i(y,g.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=Mo(g,v.mode,b),y.return=v,v=y}return o(v);case Yt:return S=g._init,w(v,y,S(g._payload),b)}if(Ar(g))return m(v,y,g,b);if(kr(g))return x(v,y,g,b);Mi(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,g),y.return=v,v=y):(n(v,y),y=zo(g,v.mode,b),y.return=v,v=y),o(v)):n(v,y)}return w}var cr=Kd(!0),Xd=Kd(!1),El=pn(null),Cl=null,Xn=null,As=null;function Ps(){As=Xn=Cl=null}function Ls(e){var t=El.current;fe(El),e._currentValue=t}function Pa(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 ir(e,t){Cl=e,As=Xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(As!==e)if(e={context:e,memoizedValue:t,next:null},Xn===null){if(Cl===null)throw Error(O(308));Xn=e,Cl.dependencies={lanes:0,firstContext:e}}else Xn=Xn.next=e;return t}var Sn=null;function Fs(e){Sn===null?Sn=[e]:Sn.push(e)}function Zd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Fs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ut(e,r)}function Ut(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 Kt=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jd(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 Mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ut(e,n)}return i=r.interleaved,i===null?(t.next=t,Fs(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ut(e,n)}function el(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,ks(e,n)}}function oc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=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};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,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 Nl(e,t,n,r){var i=e.updateQueue;Kt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,o===null?l=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=s))}if(l!==null){var c=i.baseState;o=0,f=u=s=null,a=l;do{var d=a.lane,h=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,x=a;switch(d=t,h=n,x.tag){case 1:if(m=x.payload,typeof m=="function"){c=m.call(h,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,d=typeof m=="function"?m.call(h,c,d):m,d==null)break e;c=ye({},c,d);break e;case 2:Kt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);In|=o,e.lanes=o,e.memoizedState=c}}function ac(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var mi={},At=pn(mi),ri=pn(mi),ii=pn(mi);function En(e){if(e===mi)throw Error(O(174));return e}function Ds(e,t){switch(se(ii,t),se(ri,e),se(At,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:da(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=da(t,e)}fe(At),se(At,t)}function fr(){fe(At),fe(ri),fe(ii)}function ep(e){En(ii.current);var t=En(At.current),n=da(t,e.type);t!==n&&(se(ri,e),se(At,n))}function Os(e){ri.current===e&&(fe(At),fe(ri))}var me=pn(0);function Tl(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 zs(){for(var e=0;e<Po.length;e++)Po[e]._workInProgressVersionPrimary=null;Po.length=0}var tl=Vt.ReactCurrentDispatcher,Lo=Vt.ReactCurrentBatchConfig,jn=0,ge=null,Ce=null,Te=null,_l=!1,Mr=!1,li=0,ty=0;function Le(){throw Error(O(321))}function Ms(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function Bs(e,t,n,r,i,l){if(jn=l,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?ly:oy,e=n(r,i),Mr){l=0;do{if(Mr=!1,li=0,25<=l)throw Error(O(301));l+=1,Te=Ce=null,t.updateQueue=null,tl.current=ay,e=n(r,i)}while(Mr)}if(tl.current=jl,t=Ce!==null&&Ce.next!==null,jn=0,Te=Ce=ge=null,_l=!1,t)throw Error(O(300));return e}function $s(){var e=li!==0;return li=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ge.memoizedState=Te=e:Te=Te.next=e,Te}function gt(){if(Ce===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Te===null?ge.memoizedState:Te.next;if(t!==null)Te=t,Ce=e;else{if(e===null)throw Error(O(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Te===null?ge.memoizedState=Te=e:Te=Te.next=e}return Te}function oi(e,t){return typeof t=="function"?t(e):t}function Fo(e){var t=gt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Ce,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var a=o=null,s=null,u=l;do{var f=u.lane;if((jn&f)===f)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=r):s=s.next=c,ge.lanes|=f,In|=f}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,Ct(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,ge.lanes|=l,In|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ro(e){var t=gt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Ct(l,t.memoizedState)||(Ye=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function tp(){}function np(e,t){var n=ge,r=gt(),i=t(),l=!Ct(r.memoizedState,i);if(l&&(r.memoizedState=i,Ye=!0),r=r.queue,Us(lp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,ai(9,ip.bind(null,n,r,i,t),void 0,null),_e===null)throw Error(O(349));jn&30||rp(n,t,i)}return i}function rp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ip(e,t,n,r){t.value=n,t.getSnapshot=r,op(t)&&ap(e)}function lp(e,t,n){return n(function(){op(t)&&ap(e)})}function op(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function ap(e){var t=Ut(e,1);t!==null&&St(t,e,1,-1)}function sc(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=iy.bind(null,ge,e),[t.memoizedState,e]}function ai(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.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 sp(){return gt().memoizedState}function nl(e,t,n,r){var i=Tt();ge.flags|=e,i.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Ql(e,t,n,r){var i=gt();r=r===void 0?null:r;var l=void 0;if(Ce!==null){var o=Ce.memoizedState;if(l=o.destroy,r!==null&&Ms(r,o.deps)){i.memoizedState=ai(t,n,l,r);return}}ge.flags|=e,i.memoizedState=ai(1|t,n,l,r)}function uc(e,t){return nl(8390656,8,e,t)}function Us(e,t){return Ql(2048,8,e,t)}function up(e,t){return Ql(4,2,e,t)}function cp(e,t){return Ql(4,4,e,t)}function fp(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 dp(e,t,n){return n=n!=null?n.concat([e]):null,Ql(4,4,fp.bind(null,t,e),n)}function Hs(){}function pp(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hp(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mp(e,t,n){return jn&21?(Ct(n,t)||(n=kd(),ge.lanes|=n,In|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n)}function ny(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{ie=n,Lo.transition=r}}function gp(){return gt().memoizedState}function ry(e,t,n){var r=sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yp(e))vp(t,n);else if(n=Zd(e,t,n,r),n!==null){var i=He();St(n,e,r,i),xp(n,t,r)}}function iy(e,t,n){var r=sn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yp(e))vp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ct(a,o)){var s=t.interleaved;s===null?(i.next=i,Fs(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Zd(e,t,i,r),n!==null&&(i=He(),St(n,e,r,i),xp(n,t,r))}}function yp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function vp(e,t){Mr=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ks(e,n)}}var jl={readContext:mt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},ly={readContext:mt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,fp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=ry.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:sc,useDebugValue:Hs,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=sc(!1),t=e[0];return e=ny.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Tt();if(pe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),_e===null)throw Error(O(349));jn&30||rp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,uc(lp.bind(null,r,l,e),[e]),r.flags|=2048,ai(9,ip.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Tt(),t=_e.identifierPrefix;if(pe){var n=zt,r=Ot;n=(r&~(1<<32-bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=li++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ty++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oy={readContext:mt,useCallback:pp,useContext:mt,useEffect:Us,useImperativeHandle:dp,useInsertionEffect:up,useLayoutEffect:cp,useMemo:hp,useReducer:Fo,useRef:sp,useState:function(){return Fo(oi)},useDebugValue:Hs,useDeferredValue:function(e){var t=gt();return mp(t,Ce.memoizedState,e)},useTransition:function(){var e=Fo(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:tp,useSyncExternalStore:np,useId:gp,unstable_isNewReconciler:!1},ay={readContext:mt,useCallback:pp,useContext:mt,useEffect:Us,useImperativeHandle:dp,useInsertionEffect:up,useLayoutEffect:cp,useMemo:hp,useReducer:Ro,useRef:sp,useState:function(){return Ro(oi)},useDebugValue:Hs,useDeferredValue:function(e){var t=gt();return Ce===null?t.memoizedState=e:mp(t,Ce.memoizedState,e)},useTransition:function(){var e=Ro(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:tp,useSyncExternalStore:np,useId:gp,unstable_isNewReconciler:!1};function xt(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function La(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ql={isMounted:function(e){return(e=e._reactInternals)?Fn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),i=sn(e),l=Mt(r,i);l.payload=t,n!=null&&(l.callback=n),t=on(e,l,i),t!==null&&(St(t,e,i,r),el(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),i=sn(e),l=Mt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=on(e,l,i),t!==null&&(St(t,e,i,r),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=sn(e),i=Mt(n,r);i.tag=2,t!=null&&(i.callback=t),t=on(e,i,r),t!==null&&(St(t,e,r,n),el(t,e,r))}};function cc(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Jr(n,r)||!Jr(i,l):!0}function kp(e,t,n){var r=!1,i=fn,l=t.contextType;return typeof l=="object"&&l!==null?l=mt(l):(i=Xe(t)?Tn:Oe.current,r=t.contextTypes,l=(r=r!=null)?sr(e,i):fn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ql,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function fc(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&&ql.enqueueReplaceState(t,t.state,null)}function Fa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Rs(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=mt(l):(l=Xe(t)?Tn:Oe.current,i.context=sr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(La(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ql.enqueueReplaceState(i,i.state,null),Nl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function dr(e,t){try{var n="",r=t;do n+=Rm(r),r=r.return;while(r);var i=n}catch(l){i=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function Do(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 sy=typeof WeakMap=="function"?WeakMap:Map;function wp(e,t,n){n=Mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,Wa=r),Ra(e,t)},n}function bp(e,t,n){n=Mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ra(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ra(e,t),typeof r!="function"&&(an===null?an=new Set([this]):an.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function dc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=by.bind(null,e,t,n),t.then(e,e))}function pc(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 hc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Mt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var uy=Vt.ReactCurrentOwner,Ye=!1;function $e(e,t,n,r){t.child=e===null?Xd(t,null,n,r):cr(t,e.child,n,r)}function mc(e,t,n,r,i){n=n.render;var l=t.ref;return ir(t,i),r=Bs(e,t,n,r,l,i),n=$s(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(pe&&n&&_s(t),t.flags|=1,$e(e,t,r,i),t.child)}function gc(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Xs(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Sp(e,t,l,r,i)):(e=ol(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Jr,n(o,r)&&e.ref===t.ref)return Ht(e,t,i)}return t.flags|=1,e=un(l,r),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Jr(l,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ye=!0);else return t.lanes=e.lanes,Ht(e,t,i)}return Da(e,t,n,r,i)}function Ep(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},se(Jn,rt),rt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,se(Jn,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,se(Jn,rt),rt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,se(Jn,rt),rt|=r;return $e(e,t,i,n),t.child}function Cp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Da(e,t,n,r,i){var l=Xe(n)?Tn:Oe.current;return l=sr(t,l),ir(t,i),n=Bs(e,t,n,r,l,i),r=$s(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(pe&&r&&_s(t),t.flags|=1,$e(e,t,n,i),t.child)}function yc(e,t,n,r,i){if(Xe(n)){var l=!0;wl(t)}else l=!1;if(ir(t,i),t.stateNode===null)rl(e,t),kp(t,n,r),Fa(t,n,r,i),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=Xe(n)?Tn:Oe.current,u=sr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&fc(t,o,r,u),Kt=!1;var d=t.memoizedState;o.state=d,Nl(t,r,o,i),s=t.memoizedState,a!==r||d!==s||Ke.current||Kt?(typeof f=="function"&&(La(t,n,f,r),s=t.memoizedState),(a=Kt||cc(t,n,a,r,d,s,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Jd(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:xt(t.type,a),o.props=u,c=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=mt(s):(s=Xe(n)?Tn:Oe.current,s=sr(t,s));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||d!==s)&&fc(t,o,r,s),Kt=!1,d=t.memoizedState,o.state=d,Nl(t,r,o,i);var m=t.memoizedState;a!==c||d!==m||Ke.current||Kt?(typeof h=="function"&&(La(t,n,h,r),m=t.memoizedState),(u=Kt||cc(t,n,u,r,d,m,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Oa(e,t,n,r,l,i)}function Oa(e,t,n,r,i,l){Cp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&nc(t,n,!1),Ht(e,t,l);r=t.stateNode,uy.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=cr(t,e.child,null,l),t.child=cr(t,null,a,l)):$e(e,t,a,l),t.memoizedState=r.state,i&&nc(t,n,!0),t.child}function Np(e){var t=e.stateNode;t.pendingContext?tc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tc(e,t.context,!1),Ds(e,t.containerInfo)}function vc(e,t,n,r,i){return ur(),Is(i),t.flags|=256,$e(e,t,n,r),t.child}var za={dehydrated:null,treeContext:null,retryLane:0};function Ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tp(e,t,n){var r=t.pendingProps,i=me.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),se(me,i&1),e===null)return Aa(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,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Xl(o,r,0,null),e=Nn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ma(n),t.memoizedState=za,e):Vs(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return cy(e,t,o,r,a,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=un(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=un(a,l):(l=Nn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Ma(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=za,r}return l=e.child,e=l.sibling,r=un(l,{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 Vs(e,t){return t=Xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bi(e,t,n,r){return r!==null&&Is(r),cr(t,e.child,null,n),e=Vs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cy(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Do(Error(O(422))),Bi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Xl({mode:"visible",children:r.children},i,0,null),l=Nn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&cr(t,e.child,null,o),t.child.memoizedState=Ma(o),t.memoizedState=za,l);if(!(t.mode&1))return Bi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(O(419)),r=Do(l,r,void 0),Bi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ye||a){if(r=_e,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Ut(e,i),St(r,e,i,-1))}return Ks(),r=Do(Error(O(421))),Bi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Sy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,it=ln(i.nextSibling),lt=t,pe=!0,wt=null,e!==null&&(ct[ft++]=Ot,ct[ft++]=zt,ct[ft++]=_n,Ot=e.id,zt=e.overflow,_n=t),t=Vs(t,r.children),t.flags|=4096,t)}function xc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pa(e.return,t,n)}function Oo(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function _p(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if($e(e,t,r.children,n),r=me.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&&xc(e,n,t);else if(e.tag===19)xc(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(se(me,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Tl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Tl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,l);break;case"together":Oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fy(e,t,n){switch(t.tag){case 3:Np(t),ur();break;case 5:ep(t);break;case 1:Xe(t.type)&&wl(t);break;case 4:Ds(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;se(El,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?Tp(e,t,n):(se(me,me.current&1),e=Ht(e,t,n),e!==null?e.sibling:null);se(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _p(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),se(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,Ep(e,t,n)}return Ht(e,t,n)}var jp,Ba,Ip,Ap;jp=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}};Ba=function(){};Ip=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,En(At.current);var l=null;switch(n){case"input":i=sa(e,i),r=sa(e,r),l=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),l=[];break;case"textarea":i=fa(e,i),r=fa(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xl)}pa(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Gr.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[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||(l||(l=[]),l.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(l=l||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Gr.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&ce("scroll",e),l||a===s||(l=[])):(l=l||[]).push(u,s))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Ap=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nr(e,t){if(!pe)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 Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dy(e,t,n){var r=t.pendingProps;switch(js(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Xe(t.type)&&kl(),Fe(t),null;case 3:return r=t.stateNode,fr(),fe(Ke),fe(Oe),zs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(qa(wt),wt=null))),Ba(e,t),Fe(t),null;case 5:Os(t);var i=En(ii.current);if(n=t.type,e!==null&&t.stateNode!=null)Ip(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Fe(t),null}if(e=En(At.current),zi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[jt]=t,r[ni]=l,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(i=0;i<Lr.length;i++)ce(Lr[i],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":_u(r,l),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ce("invalid",r);break;case"textarea":Iu(r,l),ce("invalid",r)}pa(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&Oi(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Oi(r.textContent,a,e),i=["children",""+a]):Gr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ce("scroll",r)}switch(n){case"input":ji(r),ju(r,l,!0);break;case"textarea":ji(r),Au(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=xl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ld(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[jt]=t,e[ni]=r,jp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ha(n,r),n){case"dialog":ce("cancel",e),ce("close",e),i=r;break;case"iframe":case"object":case"embed":ce("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lr.length;i++)ce(Lr[i],e);i=r;break;case"source":ce("error",e),i=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),i=r;break;case"details":ce("toggle",e),i=r;break;case"input":_u(e,r),i=sa(e,r),ce("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ye({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Iu(e,r),i=fa(e,r),ce("invalid",e);break;default:i=r}pa(n,i),a=i;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];l==="style"?sd(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&od(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Qr(e,s):typeof s=="number"&&Qr(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gr.hasOwnProperty(l)?s!=null&&l==="onScroll"&&ce("scroll",e):s!=null&&hs(e,l,s,o))}switch(n){case"input":ji(e),ju(e,r,!1);break;case"textarea":ji(e),Au(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?er(e,!!r.multiple,l,!1):r.defaultValue!=null&&er(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xl)}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 Fe(t),null;case 6:if(e&&t.stateNode!=null)Ap(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=En(ii.current),En(At.current),zi(t)){if(r=t.stateNode,n=t.memoizedProps,r[jt]=t,(l=r.nodeValue!==n)&&(e=lt,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jt]=t,t.stateNode=r}return Fe(t),null;case 13:if(fe(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&it!==null&&t.mode&1&&!(t.flags&128))Yd(),ur(),t.flags|=98560,l=!1;else if(l=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(O(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(O(317));l[jt]=t}else ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),l=!1}else wt!==null&&(qa(wt),wt=null),l=!0;if(!l)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||me.current&1?Ne===0&&(Ne=3):Ks())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return fr(),Ba(e,t),e===null&&ei(t.stateNode.containerInfo),Fe(t),null;case 10:return Ls(t.type._context),Fe(t),null;case 17:return Xe(t.type)&&kl(),Fe(t),null;case 19:if(fe(me),l=t.memoizedState,l===null)return Fe(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Nr(l,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Tl(e),o!==null){for(t.flags|=128,Nr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return se(me,me.current&1|2),t.child}e=e.sibling}l.tail!==null&&we()>pr&&(t.flags|=128,r=!0,Nr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!pe)return Fe(t),null}else 2*we()-l.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,Nr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=we(),t.sibling=null,n=me.current,se(me,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Ys(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function py(e,t){switch(js(t),t.tag){case 1:return Xe(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),fe(Ke),fe(Oe),zs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Os(t),null;case 13:if(fe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(me),null;case 4:return fr(),null;case 10:return Ls(t.type._context),null;case 22:case 23:return Ys(),null;case 24:return null;default:return null}}var $i=!1,Re=!1,hy=typeof WeakSet=="function"?WeakSet:Set,V=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function $a(e,t,n){try{n()}catch(r){xe(e,t,r)}}var kc=!1;function my(e,t){if(Ea=gl,e=Dd(),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 i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(a=o+i),c!==l||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===i&&(a=o),d===l&&++f===r&&(s=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ca={focusedElem:e,selectionRange:n},gl=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,w=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:xt(t.type,x),w);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(b){xe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return m=kc,kc=!1,m}function Br(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&$a(t,n,l)}i=i.next}while(i!==r)}}function Yl(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 Ua(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 Pp(e){var t=e.alternate;t!==null&&(e.alternate=null,Pp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[ni],delete t[_a],delete t[Xg],delete t[Zg])),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 Lp(e){return e.tag===5||e.tag===3||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lp(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 Ha(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=xl));else if(r!==4&&(e=e.child,e!==null))for(Ha(e,t,n),e=e.sibling;e!==null;)Ha(e,t,n),e=e.sibling}function Va(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(Va(e,t,n),e=e.sibling;e!==null;)Va(e,t,n),e=e.sibling}var je=null,kt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Fp(e,t,n),n=n.sibling}function Fp(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:Re||Zn(n,t);case 6:var r=je,i=kt;je=null,Qt(e,t,n),je=r,kt=i,je!==null&&(kt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(kt?(e=je,n=n.stateNode,e.nodeType===8?Io(e.parentNode,n):e.nodeType===1&&Io(e,n),Xr(e)):Io(je,n.stateNode));break;case 4:r=je,i=kt,je=n.stateNode.containerInfo,kt=!0,Qt(e,t,n),je=r,kt=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&$a(n,t,o),i=i.next}while(i!==r)}Qt(e,t,n);break;case 1:if(!Re&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Qt(e,t,n),Re=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function bc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hy),t.forEach(function(r){var i=Ey.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:je=a.stateNode,kt=!1;break e;case 3:je=a.stateNode.containerInfo,kt=!0;break e;case 4:je=a.stateNode.containerInfo,kt=!0;break e}a=a.return}if(je===null)throw Error(O(160));Fp(l,o,i),je=null,kt=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){xe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rp(t,e),t=t.sibling}function Rp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vt(t,e),Nt(e),r&4){try{Br(3,e,e.return),Yl(3,e)}catch(x){xe(e,e.return,x)}try{Br(5,e,e.return)}catch(x){xe(e,e.return,x)}}break;case 1:vt(t,e),Nt(e),r&512&&n!==null&&Zn(n,n.return);break;case 5:if(vt(t,e),Nt(e),r&512&&n!==null&&Zn(n,n.return),e.flags&32){var i=e.stateNode;try{Qr(i,"")}catch(x){xe(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&rd(i,l),ha(a,o);var u=ha(a,l);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?sd(i,c):f==="dangerouslySetInnerHTML"?od(i,c):f==="children"?Qr(i,c):hs(i,f,c,u)}switch(a){case"input":ua(i,l);break;case"textarea":id(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?er(i,!!l.multiple,h,!1):d!==!!l.multiple&&(l.defaultValue!=null?er(i,!!l.multiple,l.defaultValue,!0):er(i,!!l.multiple,l.multiple?[]:"",!1))}i[ni]=l}catch(x){xe(e,e.return,x)}}break;case 6:if(vt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){xe(e,e.return,x)}}break;case 3:if(vt(t,e),Nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xr(t.containerInfo)}catch(x){xe(e,e.return,x)}break;case 4:vt(t,e),Nt(e);break;case 13:vt(t,e),Nt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Qs=we())),r&4&&bc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||f,vt(t,e),Re=u):vt(t,e),Nt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(V=e,f=e.child;f!==null;){for(c=V=f;V!==null;){switch(d=V,h=d.child,d.tag){case 0:case 11:case 14:case 15:Br(4,d,d.return);break;case 1:Zn(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(x){xe(r,n,x)}}break;case 5:Zn(d,d.return);break;case 22:if(d.memoizedState!==null){Ec(c);continue}}h!==null?(h.return=d,V=h):Ec(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=c.stateNode,s=c.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=ad("display",o))}catch(x){xe(e,e.return,x)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(x){xe(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:vt(t,e),Nt(e),r&4&&bc(e);break;case 21:break;default:vt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lp(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Qr(i,""),r.flags&=-33);var l=wc(e);Va(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=wc(e);Ha(e,a,o);break;default:throw Error(O(161))}}catch(s){xe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gy(e,t,n){V=e,Dp(e)}function Dp(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var i=V,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||$i;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Re;a=$i;var u=Re;if($i=o,(Re=s)&&!u)for(V=i;V!==null;)o=V,s=o.child,o.tag===22&&o.memoizedState!==null?Cc(i):s!==null?(s.return=o,V=s):Cc(i);for(;l!==null;)V=l,Dp(l),l=l.sibling;V=i,$i=a,Re=u}Sc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,V=l):Sc(e)}}function Sc(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||Yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:xt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&ac(t,l,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}ac(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Xr(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Re||t.flags&512&&Ua(t)}catch(d){xe(t,t.return,d)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function Ec(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function Cc(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yl(4,t)}catch(s){xe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){xe(t,i,s)}}var l=t.return;try{Ua(t)}catch(s){xe(t,l,s)}break;case 5:var o=t.return;try{Ua(t)}catch(s){xe(t,o,s)}}}catch(s){xe(t,t.return,s)}if(t===e){V=null;break}var a=t.sibling;if(a!==null){a.return=t.return,V=a;break}V=t.return}}var yy=Math.ceil,Il=Vt.ReactCurrentDispatcher,Ws=Vt.ReactCurrentOwner,ht=Vt.ReactCurrentBatchConfig,re=0,_e=null,Se=null,Ie=0,rt=0,Jn=pn(0),Ne=0,si=null,In=0,Kl=0,Gs=0,$r=null,qe=null,Qs=0,pr=1/0,Rt=null,Al=!1,Wa=null,an=null,Ui=!1,en=null,Pl=0,Ur=0,Ga=null,il=-1,ll=0;function He(){return re&6?we():il!==-1?il:il=we()}function sn(e){return e.mode&1?re&2&&Ie!==0?Ie&-Ie:ey.transition!==null?(ll===0&&(ll=kd()),ll):(e=ie,e!==0||(e=window.event,e=e===void 0?16:Td(e.type)),e):1}function St(e,t,n,r){if(50<Ur)throw Ur=0,Ga=null,Error(O(185));di(e,n,r),(!(re&2)||e!==_e)&&(e===_e&&(!(re&2)&&(Kl|=n),Ne===4&&Zt(e,Ie)),Ze(e,r),n===1&&re===0&&!(t.mode&1)&&(pr=we()+500,Gl&&hn()))}function Ze(e,t){var n=e.callbackNode;eg(e,t);var r=ml(e,e===_e?Ie: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?Jg(Nc.bind(null,e)):Gd(Nc.bind(null,e)),Yg(function(){!(re&6)&&hn()}),n=null;else{switch(wd(r)){case 1:n=xs;break;case 4:n=vd;break;case 16:n=hl;break;case 536870912:n=xd;break;default:n=hl}n=Vp(n,Op.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Op(e,t){if(il=-1,ll=0,re&6)throw Error(O(327));var n=e.callbackNode;if(lr()&&e.callbackNode!==n)return null;var r=ml(e,e===_e?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ll(e,r);else{t=r;var i=re;re|=2;var l=Mp();(_e!==e||Ie!==t)&&(Rt=null,pr=we()+500,Cn(e,t));do try{ky();break}catch(a){zp(e,a)}while(!0);Ps(),Il.current=l,re=i,Se!==null?t=0:(_e=null,Ie=0,t=Ne)}if(t!==0){if(t===2&&(i=xa(e),i!==0&&(r=i,t=Qa(e,i))),t===1)throw n=si,Cn(e,0),Zt(e,r),Ze(e,we()),n;if(t===6)Zt(e,r);else{if(i=e.current.alternate,!(r&30)&&!vy(i)&&(t=Ll(e,r),t===2&&(l=xa(e),l!==0&&(r=l,t=Qa(e,l))),t===1))throw n=si,Cn(e,0),Zt(e,r),Ze(e,we()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:kn(e,qe,Rt);break;case 3:if(Zt(e,r),(r&130023424)===r&&(t=Qs+500-we(),10<t)){if(ml(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ta(kn.bind(null,e,qe,Rt),t);break}kn(e,qe,Rt);break;case 4:if(Zt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-bt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yy(r/1960))-r,10<r){e.timeoutHandle=Ta(kn.bind(null,e,qe,Rt),r);break}kn(e,qe,Rt);break;case 5:kn(e,qe,Rt);break;default:throw Error(O(329))}}}return Ze(e,we()),e.callbackNode===n?Op.bind(null,e):null}function Qa(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(Cn(e,t).flags|=256),e=Ll(e,t),e!==2&&(t=qe,qe=n,t!==null&&qa(t)),e}function qa(e){qe===null?qe=e:qe.push.apply(qe,e)}function vy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Ct(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zt(e,t){for(t&=~Gs,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bt(t),r=1<<n;e[n]=-1,t&=~r}}function Nc(e){if(re&6)throw Error(O(327));lr();var t=ml(e,0);if(!(t&1))return Ze(e,we()),null;var n=Ll(e,t);if(e.tag!==0&&n===2){var r=xa(e);r!==0&&(t=r,n=Qa(e,r))}if(n===1)throw n=si,Cn(e,0),Zt(e,t),Ze(e,we()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kn(e,qe,Rt),Ze(e,we()),null}function qs(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(pr=we()+500,Gl&&hn())}}function An(e){en!==null&&en.tag===0&&!(re&6)&&lr();var t=re;re|=1;var n=ht.transition,r=ie;try{if(ht.transition=null,ie=1,e)return e()}finally{ie=r,ht.transition=n,re=t,!(re&6)&&hn()}}function Ys(){rt=Jn.current,fe(Jn)}function Cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qg(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(js(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kl();break;case 3:fr(),fe(Ke),fe(Oe),zs();break;case 5:Os(r);break;case 4:fr();break;case 13:fe(me);break;case 19:fe(me);break;case 10:Ls(r.type._context);break;case 22:case 23:Ys()}n=n.return}if(_e=e,Se=e=un(e.current,null),Ie=rt=t,Ne=0,si=null,Gs=Kl=In=0,qe=$r=null,Sn!==null){for(t=0;t<Sn.length;t++)if(n=Sn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}Sn=null}return e}function zp(e,t){do{var n=Se;try{if(Ps(),tl.current=jl,_l){for(var r=ge.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}_l=!1}if(jn=0,Te=Ce=ge=null,Mr=!1,li=0,Ws.current=null,n===null||n.return===null){Ne=1,si=t,Se=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=Ie,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,f=a,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=pc(o);if(h!==null){h.flags&=-257,hc(h,o,a,l,t),h.mode&1&&dc(l,u,t),t=h,s=u;var m=t.updateQueue;if(m===null){var x=new Set;x.add(s),t.updateQueue=x}else m.add(s);break e}else{if(!(t&1)){dc(l,u,t),Ks();break e}s=Error(O(426))}}else if(pe&&a.mode&1){var w=pc(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),hc(w,o,a,l,t),Is(dr(s,a));break e}}l=s=dr(s,a),Ne!==4&&(Ne=2),$r===null?$r=[l]:$r.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var v=wp(l,s,t);oc(l,v);break e;case 1:a=s;var y=l.type,g=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(an===null||!an.has(g)))){l.flags|=65536,t&=-t,l.lanes|=t;var b=bp(l,a,t);oc(l,b);break e}}l=l.return}while(l!==null)}$p(n)}catch(N){t=N,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function Mp(){var e=Il.current;return Il.current=jl,e===null?jl:e}function Ks(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),_e===null||!(In&268435455)&&!(Kl&268435455)||Zt(_e,Ie)}function Ll(e,t){var n=re;re|=2;var r=Mp();(_e!==e||Ie!==t)&&(Rt=null,Cn(e,t));do try{xy();break}catch(i){zp(e,i)}while(!0);if(Ps(),re=n,Il.current=r,Se!==null)throw Error(O(261));return _e=null,Ie=0,Ne}function xy(){for(;Se!==null;)Bp(Se)}function ky(){for(;Se!==null&&!Wm();)Bp(Se)}function Bp(e){var t=Hp(e.alternate,e,rt);e.memoizedProps=e.pendingProps,t===null?$p(e):Se=t,Ws.current=null}function $p(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=py(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Se=null;return}}else if(n=dy(n,t,rt),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ne===0&&(Ne=5)}function kn(e,t,n){var r=ie,i=ht.transition;try{ht.transition=null,ie=1,wy(e,t,n,r)}finally{ht.transition=i,ie=r}return null}function wy(e,t,n,r){do lr();while(en!==null);if(re&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(tg(e,l),e===_e&&(Se=_e=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ui||(Ui=!0,Vp(hl,function(){return lr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ht.transition,ht.transition=null;var o=ie;ie=1;var a=re;re|=4,Ws.current=null,my(e,n),Rp(n,e),$g(Ca),gl=!!Ea,Ca=Ea=null,e.current=n,gy(n),Gm(),re=a,ie=o,ht.transition=l}else e.current=n;if(Ui&&(Ui=!1,en=e,Pl=i),l=e.pendingLanes,l===0&&(an=null),Ym(n.stateNode),Ze(e,we()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Al)throw Al=!1,e=Wa,Wa=null,e;return Pl&1&&e.tag!==0&&lr(),l=e.pendingLanes,l&1?e===Ga?Ur++:(Ur=0,Ga=e):Ur=0,hn(),null}function lr(){if(en!==null){var e=wd(Pl),t=ht.transition,n=ie;try{if(ht.transition=null,ie=16>e?16:e,en===null)var r=!1;else{if(e=en,en=null,Pl=0,re&6)throw Error(O(331));var i=re;for(re|=4,V=e.current;V!==null;){var l=V,o=l.child;if(V.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(V=u;V!==null;){var f=V;switch(f.tag){case 0:case 11:case 15:Br(8,f,l)}var c=f.child;if(c!==null)c.return=f,V=c;else for(;V!==null;){f=V;var d=f.sibling,h=f.return;if(Pp(f),f===u){V=null;break}if(d!==null){d.return=h,V=d;break}V=h}}}var m=l.alternate;if(m!==null){var x=m.child;if(x!==null){m.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}V=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,V=o;else e:for(;V!==null;){if(l=V,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Br(9,l,l.return)}var v=l.sibling;if(v!==null){v.return=l.return,V=v;break e}V=l.return}}var y=e.current;for(V=y;V!==null;){o=V;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,V=g;else e:for(o=y;V!==null;){if(a=V,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Yl(9,a)}}catch(N){xe(a,a.return,N)}if(a===o){V=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,V=b;break e}V=a.return}}if(re=i,hn(),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot($l,e)}catch{}r=!0}return r}finally{ie=n,ht.transition=t}}return!1}function Tc(e,t,n){t=dr(n,t),t=wp(e,t,1),e=on(e,t,1),t=He(),e!==null&&(di(e,1,t),Ze(e,t))}function xe(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"&&(an===null||!an.has(r))){e=dr(n,e),e=bp(t,e,1),t=on(t,e,1),e=He(),t!==null&&(di(t,1,e),Ze(t,e));break}}t=t.return}}function by(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,_e===e&&(Ie&n)===n&&(Ne===4||Ne===3&&(Ie&130023424)===Ie&&500>we()-Qs?Cn(e,0):Gs|=n),Ze(e,t)}function Up(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=He();e=Ut(e,t),e!==null&&(di(e,t,n),Ze(e,n))}function Sy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Up(e,n)}function Ey(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Up(e,n)}var Hp;Hp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,fy(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,pe&&t.flags&1048576&&Qd(t,Sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var i=sr(t,Oe.current);ir(t,n),i=Bs(null,t,r,e,i,n);var l=$s();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(l=!0,wl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Rs(t),i.updater=ql,t.stateNode=i,i._reactInternals=t,Fa(t,r,e,n),t=Oa(null,t,r,!0,l,n)):(t.tag=0,pe&&l&&_s(t),$e(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ny(r),e=xt(r,e),i){case 0:t=Da(null,t,r,e,n);break e;case 1:t=yc(null,t,r,e,n);break e;case 11:t=mc(null,t,r,e,n);break e;case 14:t=gc(null,t,r,xt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),Da(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),yc(e,t,r,i,n);case 3:e:{if(Np(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Jd(e,t),Nl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=dr(Error(O(423)),t),t=vc(e,t,r,n,i);break e}else if(r!==i){i=dr(Error(O(424)),t),t=vc(e,t,r,n,i);break e}else for(it=ln(t.stateNode.containerInfo.firstChild),lt=t,pe=!0,wt=null,n=Xd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ur(),r===i){t=Ht(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return ep(t),e===null&&Aa(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Na(r,i)?o=null:l!==null&&Na(r,l)&&(t.flags|=32),Cp(e,t),$e(e,t,o,n),t.child;case 6:return e===null&&Aa(t),null;case 13:return Tp(e,t,n);case 4:return Ds(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),mc(e,t,r,i,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,se(El,r._currentValue),r._currentValue=o,l!==null)if(Ct(l.value,o)){if(l.children===i.children&&!Ke.current){t=Ht(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Mt(-1,n&-n),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Pa(l.return,n,t),a.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Pa(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}$e(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ir(t,n),i=mt(i),r=r(i),t.flags|=1,$e(e,t,r,n),t.child;case 14:return r=t.type,i=xt(r,t.pendingProps),i=xt(r.type,i),gc(e,t,r,i,n);case 15:return Sp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xt(r,i),rl(e,t),t.tag=1,Xe(r)?(e=!0,wl(t)):e=!1,ir(t,n),kp(t,r,i),Fa(t,r,i,n),Oa(null,t,r,!0,e,n);case 19:return _p(e,t,n);case 22:return Ep(e,t,n)}throw Error(O(156,t.tag))};function Vp(e,t){return yd(e,t)}function Cy(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 pt(e,t,n,r){return new Cy(e,t,n,r)}function Xs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ny(e){if(typeof e=="function")return Xs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gs)return 11;if(e===ys)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=pt(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 ol(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Xs(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hn:return Nn(n.children,i,l,t);case ms:o=8,i|=8;break;case ia:return e=pt(12,n,t,i|2),e.elementType=ia,e.lanes=l,e;case la:return e=pt(13,n,t,i),e.elementType=la,e.lanes=l,e;case oa:return e=pt(19,n,t,i),e.elementType=oa,e.lanes=l,e;case ed:return Xl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zf:o=10;break e;case Jf:o=9;break e;case gs:o=11;break e;case ys:o=14;break e;case Yt:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=pt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Nn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ed,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Mo(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ty(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xo(0),this.expirationTimes=xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zs(e,t,n,r,i,l,o,a,s){return e=new Ty(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=pt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rs(l),e}function _y(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Un,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Wp(e){if(!e)return fn;e=e._reactInternals;e:{if(Fn(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(Xe(n))return Wd(e,n,t)}return t}function Gp(e,t,n,r,i,l,o,a,s){return e=Zs(n,r,!0,e,i,l,o,a,s),e.context=Wp(null),n=e.current,r=He(),i=sn(n),l=Mt(r,i),l.callback=t??null,on(n,l,i),e.current.lanes=i,di(e,i,r),Ze(e,r),e}function Zl(e,t,n,r){var i=t.current,l=He(),o=sn(i);return n=Wp(n),t.context===null?t.context=n:t.pendingContext=n,t=Mt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=on(i,t,o),e!==null&&(St(e,i,o,l),el(e,i,o)),o}function Fl(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 _c(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Js(e,t){_c(e,t),(e=e.alternate)&&_c(e,t)}function jy(){return null}var Qp=typeof reportError=="function"?reportError:function(e){console.error(e)};function eu(e){this._internalRoot=e}Jl.prototype.render=eu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Zl(e,t,null,null)};Jl.prototype.unmount=eu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;An(function(){Zl(null,e,null,null)}),t[$t]=null}};function Jl(e){this._internalRoot=e}Jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ed();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&Nd(e)}};function tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jc(){}function Iy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Fl(o);l.call(u)}}var o=Gp(t,r,e,0,null,!1,!1,"",jc);return e._reactRootContainer=o,e[$t]=o.current,ei(e.nodeType===8?e.parentNode:e),An(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Fl(s);a.call(u)}}var s=Zs(e,0,!1,null,null,!1,!1,"",jc);return e._reactRootContainer=s,e[$t]=s.current,ei(e.nodeType===8?e.parentNode:e),An(function(){Zl(t,s,n,r)}),s}function to(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var a=i;i=function(){var s=Fl(o);a.call(s)}}Zl(t,o,e,i)}else o=Iy(n,t,e,i,r);return Fl(o)}bd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pr(t.pendingLanes);n!==0&&(ks(t,n|1),Ze(t,we()),!(re&6)&&(pr=we()+500,hn()))}break;case 13:An(function(){var r=Ut(e,1);if(r!==null){var i=He();St(r,e,1,i)}}),Js(e,1)}};ws=function(e){if(e.tag===13){var t=Ut(e,134217728);if(t!==null){var n=He();St(t,e,134217728,n)}Js(e,134217728)}};Sd=function(e){if(e.tag===13){var t=sn(e),n=Ut(e,t);if(n!==null){var r=He();St(n,e,t,r)}Js(e,t)}};Ed=function(){return ie};Cd=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};ga=function(e,t,n){switch(t){case"input":if(ua(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Wl(r);if(!i)throw Error(O(90));nd(r),ua(r,i)}}}break;case"textarea":id(e,n);break;case"select":t=n.value,t!=null&&er(e,!!n.multiple,t,!1)}};fd=qs;dd=An;var Ay={usingClientEntryPoint:!1,Events:[hi,Qn,Wl,ud,cd,qs]},Tr={findFiberByHostInstance:bn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Py={bundleType:Tr.bundleType,version:Tr.version,rendererPackageName:Tr.rendererPackageName,rendererConfig:Tr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=md(e),e===null?null:e.stateNode},findFiberByHostInstance:Tr.findFiberByHostInstance||jy,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 Hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hi.isDisabled&&Hi.supportsFiber)try{$l=Hi.inject(Py),It=Hi}catch{}}st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ay;st.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!tu(t))throw Error(O(200));return _y(e,t,null,n)};st.createRoot=function(e,t){if(!tu(e))throw Error(O(299));var n=!1,r="",i=Qp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Zs(e,1,!1,null,null,n,!1,r,i),e[$t]=t.current,ei(e.nodeType===8?e.parentNode:e),new eu(t)};st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=md(t),e=e===null?null:e.stateNode,e};st.flushSync=function(e){return An(e)};st.hydrate=function(e,t,n){if(!eo(t))throw Error(O(200));return to(null,e,t,!0,n)};st.hydrateRoot=function(e,t,n){if(!tu(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=Qp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Gp(t,null,e,1,n??null,i,!1,l,o),e[$t]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Jl(t)};st.render=function(e,t,n){if(!eo(t))throw Error(O(200));return to(null,e,t,!1,n)};st.unmountComponentAtNode=function(e){if(!eo(e))throw Error(O(40));return e._reactRootContainer?(An(function(){to(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1};st.unstable_batchedUpdates=qs;st.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eo(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return to(e,t,n,!1,r)};st.version="18.3.1-next-f1338f8080-20240426";function qp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qp)}catch(e){console.error(e)}}qp(),qf.exports=st;var Ly=qf.exports,Ic=Ly;na.createRoot=Ic.createRoot,na.hydrateRoot=Ic.hydrateRoot;function Fy(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ry=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Oy={};function Ac(e,t){return(Oy.jsx?Dy:Ry).test(e)}const zy=/[ \t\n\f\r]/g;function My(e){return typeof e=="object"?e.type==="text"?Pc(e.value):!1:Pc(e)}function Pc(e){return e.replace(zy,"")===""}class gi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}gi.prototype.normal={};gi.prototype.property={};gi.prototype.space=void 0;function Yp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new gi(n,r,t)}function Ya(e){return e.toLowerCase()}class Je{constructor(t,n){this.attribute=n,this.property=t}}Je.prototype.attribute="";Je.prototype.booleanish=!1;Je.prototype.boolean=!1;Je.prototype.commaOrSpaceSeparated=!1;Je.prototype.commaSeparated=!1;Je.prototype.defined=!1;Je.prototype.mustUseProperty=!1;Je.prototype.number=!1;Je.prototype.overloadedBoolean=!1;Je.prototype.property="";Je.prototype.spaceSeparated=!1;Je.prototype.space=void 0;let By=0;const X=Rn(),be=Rn(),Ka=Rn(),z=Rn(),ae=Rn(),or=Rn(),nt=Rn();function Rn(){return 2**++By}const Xa=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:be,commaOrSpaceSeparated:nt,commaSeparated:or,number:z,overloadedBoolean:Ka,spaceSeparated:ae},Symbol.toStringTag,{value:"Module"})),Bo=Object.keys(Xa);class nu extends Je{constructor(t,n,r,i){let l=-1;if(super(t,n),Lc(this,"space",i),typeof r=="number")for(;++l<Bo.length;){const o=Bo[l];Lc(this,Bo[l],(r&Xa[o])===Xa[o])}}}nu.prototype.defined=!0;function Lc(e,t,n){n&&(e[t]=n)}function vr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new nu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Ya(r)]=r,n[Ya(l.attribute)]=r}return new gi(t,n,e.space)}const Kp=vr({properties:{ariaActiveDescendant:null,ariaAtomic:be,ariaAutoComplete:null,ariaBusy:be,ariaChecked:be,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:ae,ariaCurrent:null,ariaDescribedBy:ae,ariaDetails:null,ariaDisabled:be,ariaDropEffect:ae,ariaErrorMessage:null,ariaExpanded:be,ariaFlowTo:ae,ariaGrabbed:be,ariaHasPopup:null,ariaHidden:be,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ae,ariaLevel:z,ariaLive:null,ariaModal:be,ariaMultiLine:be,ariaMultiSelectable:be,ariaOrientation:null,ariaOwns:ae,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:be,ariaReadOnly:be,ariaRelevant:null,ariaRequired:be,ariaRoleDescription:ae,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:be,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xp(e,t){return t in e?e[t]:t}function Zp(e,t){return Xp(e,t.toLowerCase())}const $y=vr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:or,acceptCharset:ae,accessKey:ae,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:ae,autoFocus:X,autoPlay:X,blocking:ae,capture:null,charSet:null,checked:X,cite:null,className:ae,cols:z,colSpan:null,content:null,contentEditable:be,controls:X,controlsList:ae,coords:z|or,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:Ka,draggable:be,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:ae,height:z,hidden:Ka,high:z,href:null,hrefLang:null,htmlFor:ae,httpEquiv:ae,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:ae,itemRef:ae,itemScope:X,itemType:ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:z,pattern:null,ping:ae,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:ae,required:X,reversed:X,rows:z,rowSpan:z,sandbox:ae,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:be,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:be,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ae,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:be,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:Zp}),Uy=vr({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:nt,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:ae,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:or,g2:or,glyphName:or,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nt,rev:nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nt,requiredFeatures:nt,requiredFonts:nt,requiredFormats:nt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nt,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xp}),Jp=vr({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()}}),eh=vr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zp}),th=vr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Hy={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Vy=/[A-Z]/g,Fc=/-[a-z]/g,Wy=/^data[-\w.:]+$/i;function Gy(e,t){const n=Ya(t);let r=t,i=Je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Wy.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Fc,qy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Fc.test(l)){let o=l.replace(Vy,Qy);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nu}return new i(r,t)}function Qy(e){return"-"+e.toLowerCase()}function qy(e){return e.charAt(1).toUpperCase()}const Yy=Yp([Kp,$y,Jp,eh,th],"html"),ru=Yp([Kp,Uy,Jp,eh,th],"svg");function Ky(e){return e.join(" ").trim()}var iu={},Rc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xy=/\n/g,Zy=/^\s*/,Jy=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ev=/^:\s*/,tv=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,nv=/^[;\s]*/,rv=/^\s+|\s+$/g,iv=`
41
+ `,Dc="/",Oc="*",wn="",lv="comment",ov="declaration";function av(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var x=m.match(Xy);x&&(n+=x.length);var w=m.lastIndexOf(iv);r=~w?m.length-w:r+m.length}function l(){var m={line:n,column:r};return function(x){return x.position=new o(m),u(),x}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var x=new Error(t.source+":"+n+":"+r+": "+m);if(x.reason=m,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function s(m){var x=m.exec(e);if(x){var w=x[0];return i(w),e=e.slice(w.length),x}}function u(){s(Zy)}function f(m){var x;for(m=m||[];x=c();)x!==!1&&m.push(x);return m}function c(){var m=l();if(!(Dc!=e.charAt(0)||Oc!=e.charAt(1))){for(var x=2;wn!=e.charAt(x)&&(Oc!=e.charAt(x)||Dc!=e.charAt(x+1));)++x;if(x+=2,wn===e.charAt(x-1))return a("End of comment missing");var w=e.slice(2,x-2);return r+=2,i(w),e=e.slice(x),r+=2,m({type:lv,comment:w})}}function d(){var m=l(),x=s(Jy);if(x){if(c(),!s(ev))return a("property missing ':'");var w=s(tv),v=m({type:ov,property:zc(x[0].replace(Rc,wn)),value:w?zc(w[0].replace(Rc,wn)):wn});return s(nv),v}}function h(){var m=[];f(m);for(var x;x=d();)x!==!1&&(m.push(x),f(m));return m}return u(),h()}function zc(e){return e?e.replace(rv,wn):wn}var sv=av,uv=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(iu,"__esModule",{value:!0});iu.default=fv;const cv=uv(sv);function fv(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,cv.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?t(o,a,l):a&&(n=n||{},n[o]=a)}),n}var no={};Object.defineProperty(no,"__esModule",{value:!0});no.camelCase=void 0;var dv=/^--[a-zA-Z0-9_-]+$/,pv=/-([a-z])/g,hv=/^[^-]+$/,mv=/^-(webkit|moz|ms|o|khtml)-/,gv=/^-(ms)-/,yv=function(e){return!e||hv.test(e)||dv.test(e)},vv=function(e,t){return t.toUpperCase()},Mc=function(e,t){return"".concat(t,"-")},xv=function(e,t){return t===void 0&&(t={}),yv(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(gv,Mc):e=e.replace(mv,Mc),e.replace(pv,vv))};no.camelCase=xv;var kv=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},wv=kv(iu),bv=no;function Za(e,t){var n={};return!e||typeof e!="string"||(0,wv.default)(e,function(r,i){r&&i&&(n[(0,bv.camelCase)(r,t)]=i)}),n}Za.default=Za;var Sv=Za;const Ev=as(Sv),nh=rh("end"),lu=rh("start");function rh(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 Cv(e){const t=lu(e),n=nh(e);if(t&&n)return{start:t,end:n}}function Hr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bc(e.position):"start"in e||"end"in e?Bc(e):"line"in e||"column"in e?Ja(e):""}function Ja(e){return $c(e&&e.line)+":"+$c(e&&e.column)}function Bc(e){return Ja(e&&e.start)+"-"+Ja(e&&e.end)}function $c(e){return e&&typeof e=="number"?e:1}class ze extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Hr(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ze.prototype.file="";ze.prototype.name="";ze.prototype.reason="";ze.prototype.message="";ze.prototype.stack="";ze.prototype.column=void 0;ze.prototype.line=void 0;ze.prototype.ancestors=void 0;ze.prototype.cause=void 0;ze.prototype.fatal=void 0;ze.prototype.place=void 0;ze.prototype.ruleId=void 0;ze.prototype.source=void 0;const ou={}.hasOwnProperty,Nv=new Map,Tv=/[A-Z]/g,_v=new Set(["table","tbody","thead","tfoot","tr"]),jv=new Set(["td","th"]),ih="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Iv(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=zv(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=Ov(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ru:Yy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=lh(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function lh(e,t,n){if(t.type==="element")return Av(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Pv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Fv(e,t,n);if(t.type==="mdxjsEsm")return Lv(e,t);if(t.type==="root")return Rv(e,t,n);if(t.type==="text")return Dv(e,t)}function Av(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ru,e.schema=i),e.ancestors.push(t);const l=ah(e,t.tagName,!1),o=Mv(e,t);let a=su(e,t);return _v.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!My(s):!0})),oh(e,o,l,t),au(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Pv(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)}ui(e,t.position)}function Lv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ui(e,t.position)}function Fv(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ru,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:ah(e,t.name,!0),o=Bv(e,t),a=su(e,t);return oh(e,o,l,t),au(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Rv(e,t,n){const r={};return au(r,su(e,t)),e.create(t,e.Fragment,r,n)}function Dv(e,t){return t.value}function oh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function au(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ov(e,t,n){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?n:t;return a?u(l,o,a):u(l,o)}}function zv(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=lu(r);return t(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Mv(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ou.call(t.properties,i)){const l=$v(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&jv.has(t.tagName)?r=a:n[o]=a}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Bv(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ui(e,t.position);else{const i=r.name;let l;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,l=e.evaluater.evaluateExpression(a.expression)}else ui(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function su(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Nv;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=lh(e,l,o);a!==void 0&&n.push(a)}return n}function $v(e,t,n){const r=Gy(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Fy(n):Ky(n)),r.property==="style"){let i=typeof n=="object"?n:Uv(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Hv(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Hy[r.property]||r.property:r.attribute,n]}}function Uv(e,t){try{return Ev(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ze("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ih+"#cannot-parse-style-attribute",i}}function ah(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const a=Ac(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Ac(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ou.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ui(e)}function ui(e,t){const n=new ze("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=ih+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Hv(e){const t={};let n;for(n in e)ou.call(e,n)&&(t[Vv(n)]=e[n]);return t}function Vv(e){let t=e.replace(Tv,Wv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Wv(e){return"-"+e.toLowerCase()}const $o={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"]},Gv={};function uu(e,t){const n=Gv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return sh(e,r,i)}function sh(e,t,n){if(Qv(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 i=-1;for(;++i<e.length;)r[i]=sh(e[i],t,n);return r.join("")}function Qv(e){return!!(e&&typeof e=="object")}const Hc=document.createElement("i");function cu(e){const t="&"+e+";";Hc.innerHTML=t;const n=Hc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ot(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i: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);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function dt(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const Vc={}.hasOwnProperty;function uh(e){const t={};let n=-1;for(;++n<e.length;)qv(t,e[n]);return t}function qv(e,t){let n;for(n in t){const i=(Vc.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Vc.call(i,o)||(i[o]=[]);const a=l[o];Yv(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Yv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ot(e,0,0,r)}function ch(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 Et(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ue=mn(/[A-Za-z]/),De=mn(/[\dA-Za-z]/),Kv=mn(/[#-'*+\--9=?A-Z^-~]/);function Rl(e){return e!==null&&(e<32||e===127)}const es=mn(/\d/),Xv=mn(/[\dA-Fa-f]/),Zv=mn(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function le(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const ro=mn(new RegExp("\\p{P}|\\p{S}","u")),Pn=mn(/\s/);function mn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function xr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&De(e.charCodeAt(n+1))&&De(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function te(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return J(s)?(e.enter(n),a(s)):t(s)}function a(s){return J(s)&&l++<i?(e.consume(s),a):(e.exit(n),t(s))}}const Jv={tokenize:ex};function ex(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),te(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(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 q(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const tx={tokenize:nx},Wc={tokenize:rx};function nx(e){const t=this,n=[];let r=0,i,l,o;return a;function a(g){if(r<n.length){const b=n[r];return t.containerState=b[1],e.attempt(b[0].continuation,s,u)(g)}return u(g)}function s(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const b=t.events.length;let N=b,S;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){S=t.events[N][1].end;break}v(r);let T=b;for(;T<t.events.length;)t.events[T][1].end={...S},T++;return ot(t.events,N+1,0,t.events.slice(b)),t.events.length=T,u(g)}return a(g)}function u(g){if(r===n.length){if(!i)return d(g);if(i.currentConstruct&&i.currentConstruct.concrete)return m(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wc,f,c)(g)}function f(g){return i&&y(),v(r),d(g)}function c(g){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(g)}function d(g){return t.containerState={},e.attempt(Wc,h,m)(g)}function h(g){return r++,n.push([t.currentConstruct,t.containerState]),d(g)}function m(g){if(g===null){i&&y(),v(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),x(g)}function x(g){if(g===null){w(e.exit("chunkFlow"),!0),v(0),e.consume(g);return}return q(g)?(e.consume(g),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(g),x)}function w(g,b){const N=t.sliceStream(g);if(b&&N.push(null),g.previous=l,l&&(l.next=g),l=g,i.defineSkip(g.start),i.write(N),t.parser.lazy[g.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const T=t.events.length;let j=T,L,C;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(L){C=t.events[j][1].end;break}L=!0}for(v(r),S=T;S<t.events.length;)t.events[S][1].end={...C},S++;ot(t.events,j+1,0,t.events.slice(T)),t.events.length=S}}function v(g){let b=n.length;for(;b-- >g;){const N=n[b];t.containerState=N[1],N[0].exit.call(t,e)}n.length=g}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function rx(e,t,n){return te(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function hr(e){if(e===null||le(e)||Pn(e))return 1;if(ro(e))return 2}function io(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const ts={name:"attention",resolveAll:ix,tokenize:lx};function ix(e,t){let n=-1,r,i,l,o,a,s,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};Gc(c,-s),Gc(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={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=dt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=dt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=dt(u,io(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=dt(u,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=dt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ot(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function lx(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=hr(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),f=hr(s),c=!f||f===2&&i||n.includes(s),d=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!d)),u._close=!!(l===42?d:d&&(f||!c)),t(s)}}function Gc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ox={name:"autolink",tokenize:ax};function ax(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Ue(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||De(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||De(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Rl(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):Kv(h)?(e.consume(h),u):n(h)}function f(h){return De(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||De(h))&&r++<63){const m=h===45?d:c;return e.consume(h),m}return n(h)}}const yi={partial:!0,tokenize:sx};function sx(e,t,n){return r;function r(l){return J(l)?te(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||q(l)?t(l):n(l)}}const fh={continuation:{tokenize:cx},exit:fx,name:"blockQuote",tokenize:ux};function ux(e,t,n){const r=this;return i;function i(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"),l}return n(o)}function l(o){return J(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function cx(e,t,n){const r=this;return i;function i(o){return J(o)?te(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(fh,t,n)(o)}}function fx(e){e.exit("blockQuote")}const dh={name:"characterEscape",tokenize:dx};function dx(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Zv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const ph={name:"characterReference",tokenize:px};function px(e,t,n){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=De,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Xv,f):(e.enter("characterReferenceValue"),l=7,o=es,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===De&&!cu(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const Qc={partial:!0,tokenize:mx},qc={concrete:!0,name:"codeFenced",tokenize:hx};function hx(e,t,n){const r=this,i={partial:!0,tokenize:N};let l=0,o=0,a;return s;function s(S){return u(S)}function u(S){const T=r.events[r.events.length-1];return l=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(o++,e.consume(S),f):o<3?n(S):(e.exit("codeFencedFenceSequence"),J(S)?te(e,c,"whitespace")(S):c(S))}function c(S){return S===null||q(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Qc,x,b)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):J(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),te(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),d)}function h(S){return S===null||q(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?n(S):(e.consume(S),m)}function x(S){return e.attempt(i,b,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),v}function v(S){return l>0&&J(S)?te(e,y,"linePrefix",l+1)(S):y(S)}function y(S){return S===null||q(S)?e.check(Qc,x,b)(S):(e.enter("codeFlowValue"),g(S))}function g(S){return S===null||q(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),g)}function b(S){return e.exit("codeFenced"),t(S)}function N(S,T,j){let L=0;return C;function C(F){return S.enter("lineEnding"),S.consume(F),S.exit("lineEnding"),R}function R(F){return S.enter("codeFencedFence"),J(F)?te(S,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):M(F)}function M(F){return F===a?(S.enter("codeFencedFenceSequence"),U(F)):j(F)}function U(F){return F===a?(L++,S.consume(F),U):L>=o?(S.exit("codeFencedFenceSequence"),J(F)?te(S,$,"whitespace")(F):$(F)):j(F)}function $(F){return F===null||q(F)?(S.exit("codeFencedFence"),T(F)):j(F)}}}function mx(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Uo={name:"codeIndented",tokenize:yx},gx={partial:!0,tokenize:vx};function yx(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),te(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):q(u)?e.attempt(gx,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||q(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function vx(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):te(e,l,"linePrefix",5)(o)}function l(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):q(o)?i(o):n(o)}}const xx={name:"codeText",previous:wx,resolve:kx,tokenize:bx};function kx(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function wx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bx(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):q(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||q(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class Sx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_r(this.left,r),l.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),_r(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_r(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);_r(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_r(this.left,n.reverse())}}}function _r(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 hh(e){const t={};let n=-1,r,i,l,o,a,s,u;const f=new Sx(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ex(f,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return ot(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Ex(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let f,c,d=-1,h=n,m=0,x=0;const w=[x];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(x=d+1,w.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):w.pop(),d=w.length;d--;){const v=a.slice(w[d],w[d+1]),y=l.pop();s.push([y,y+v.length-1]),e.splice(y,2,v)}for(s.reverse(),d=-1;++d<s.length;)u[m+s[d][0]]=m+s[d][1],m+=s[d][1]-s[d][0]-1;return u}const Cx={resolve:Tx,tokenize:_x},Nx={partial:!0,tokenize:jx};function Tx(e){return hh(e),e}function _x(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):q(a)?e.check(Nx,o,l)(a):(e.consume(a),i)}function l(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,i}}function jx(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),te(e,l,"linePrefix")}function l(o){if(o===null||q(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 mh(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(v){return v===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(v),e.exit(l),d):v===null||v===32||v===41||Rl(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(v))}function d(v){return v===62?(e.enter(l),e.consume(v),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(a),d(v)):v===null||v===60||q(v)?n(v):(e.consume(v),v===92?m:h)}function m(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function x(v){return!f&&(v===null||v===41||le(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):f<u&&v===40?(e.consume(v),f++,x):v===41?(e.consume(v),f--,x):v===null||v===32||v===40||Rl(v)?n(v):(e.consume(v),v===92?w:x)}function w(v){return v===40||v===41||v===92?(e.consume(v),x):x(v)}}function gh(e,t,n,r,i,l){const o=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):q(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||q(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!J(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function yh(e,t,n,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),u(d))}function u(d){return d===o?(e.exit(l),s(o)):d===null?n(d):q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),te(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||q(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function Vr(e,t){let n;return r;function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):J(i)?te(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Ix={name:"definition",tokenize:Px},Ax={partial:!0,tokenize:Lx};function Px(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return gh.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Et(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return le(h)?Vr(e,u)(h):u(h)}function u(h){return mh(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Ax,c,c)(h)}function c(h){return J(h)?te(e,d,"whitespace")(h):d(h)}function d(h){return h===null||q(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Lx(e,t,n){return r;function r(a){return le(a)?Vr(e,i)(a):n(a)}function i(a){return yh(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return J(a)?te(e,o,"whitespace")(a):o(a)}function o(a){return a===null||q(a)?t(a):n(a)}}const Fx={name:"hardBreakEscape",tokenize:Rx};function Rx(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return q(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Dx={name:"headingAtx",resolve:Ox,tokenize:zx};function Ox(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ot(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function zx(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||le(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||q(f)?(e.exit("atxHeading"),t(f)):J(f)?te(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||le(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Mx=["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"],Yc=["pre","script","style","textarea"],Bx={concrete:!0,name:"htmlFlow",resolveTo:Hx,tokenize:Vx},$x={partial:!0,tokenize:Gx},Ux={partial:!0,tokenize:Wx};function Hx(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 Vx(e,t,n){const r=this;let i,l,o,a,s;return u;function u(E){return f(E)}function f(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),l=!0,x):E===63?(e.consume(E),i=3,r.interrupt?t:k):Ue(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function d(E){return E===45?(e.consume(E),i=2,h):E===91?(e.consume(E),i=5,a=0,m):Ue(E)?(e.consume(E),i=4,r.interrupt?t:k):n(E)}function h(E){return E===45?(e.consume(E),r.interrupt?t:k):n(E)}function m(E){const ue="CDATA[";return E===ue.charCodeAt(a++)?(e.consume(E),a===ue.length?r.interrupt?t:M:m):n(E)}function x(E){return Ue(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function w(E){if(E===null||E===47||E===62||le(E)){const ue=E===47,Ee=o.toLowerCase();return!ue&&!l&&Yc.includes(Ee)?(i=1,r.interrupt?t(E):M(E)):Mx.includes(o.toLowerCase())?(i=6,ue?(e.consume(E),v):r.interrupt?t(E):M(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):l?y(E):g(E))}return E===45||De(E)?(e.consume(E),o+=String.fromCharCode(E),w):n(E)}function v(E){return E===62?(e.consume(E),r.interrupt?t:M):n(E)}function y(E){return J(E)?(e.consume(E),y):C(E)}function g(E){return E===47?(e.consume(E),C):E===58||E===95||Ue(E)?(e.consume(E),b):J(E)?(e.consume(E),g):C(E)}function b(E){return E===45||E===46||E===58||E===95||De(E)?(e.consume(E),b):N(E)}function N(E){return E===61?(e.consume(E),S):J(E)?(e.consume(E),N):g(E)}function S(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,T):J(E)?(e.consume(E),S):j(E)}function T(E){return E===s?(e.consume(E),s=null,L):E===null||q(E)?n(E):(e.consume(E),T)}function j(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||le(E)?N(E):(e.consume(E),j)}function L(E){return E===47||E===62||J(E)?g(E):n(E)}function C(E){return E===62?(e.consume(E),R):n(E)}function R(E){return E===null||q(E)?M(E):J(E)?(e.consume(E),R):n(E)}function M(E){return E===45&&i===2?(e.consume(E),G):E===60&&i===1?(e.consume(E),Z):E===62&&i===4?(e.consume(E),K):E===63&&i===3?(e.consume(E),k):E===93&&i===5?(e.consume(E),W):q(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check($x,Y,U)(E)):E===null||q(E)?(e.exit("htmlFlowData"),U(E)):(e.consume(E),M)}function U(E){return e.check(Ux,$,Y)(E)}function $(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),F}function F(E){return E===null||q(E)?U(E):(e.enter("htmlFlowData"),M(E))}function G(E){return E===45?(e.consume(E),k):M(E)}function Z(E){return E===47?(e.consume(E),o="",D):M(E)}function D(E){if(E===62){const ue=o.toLowerCase();return Yc.includes(ue)?(e.consume(E),K):M(E)}return Ue(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),D):M(E)}function W(E){return E===93?(e.consume(E),k):M(E)}function k(E){return E===62?(e.consume(E),K):E===45&&i===2?(e.consume(E),k):M(E)}function K(E){return E===null||q(E)?(e.exit("htmlFlowData"),Y(E)):(e.consume(E),K)}function Y(E){return e.exit("htmlFlow"),t(E)}}function Wx(e,t,n){const r=this;return i;function i(o){return q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Gx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(yi,t,n)}}const Qx={name:"htmlText",tokenize:qx};function qx(e,t,n){const r=this;let i,l,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),N):k===63?(e.consume(k),g):Ue(k)?(e.consume(k),j):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):Ue(k)?(e.consume(k),y):n(k)}function f(k){return k===45?(e.consume(k),h):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),d):q(k)?(o=c,Z(k)):(e.consume(k),c)}function d(k){return k===45?(e.consume(k),h):c(k)}function h(k){return k===62?G(k):k===45?d(k):c(k)}function m(k){const K="CDATA[";return k===K.charCodeAt(l++)?(e.consume(k),l===K.length?x:m):n(k)}function x(k){return k===null?n(k):k===93?(e.consume(k),w):q(k)?(o=x,Z(k)):(e.consume(k),x)}function w(k){return k===93?(e.consume(k),v):x(k)}function v(k){return k===62?G(k):k===93?(e.consume(k),v):x(k)}function y(k){return k===null||k===62?G(k):q(k)?(o=y,Z(k)):(e.consume(k),y)}function g(k){return k===null?n(k):k===63?(e.consume(k),b):q(k)?(o=g,Z(k)):(e.consume(k),g)}function b(k){return k===62?G(k):g(k)}function N(k){return Ue(k)?(e.consume(k),S):n(k)}function S(k){return k===45||De(k)?(e.consume(k),S):T(k)}function T(k){return q(k)?(o=T,Z(k)):J(k)?(e.consume(k),T):G(k)}function j(k){return k===45||De(k)?(e.consume(k),j):k===47||k===62||le(k)?L(k):n(k)}function L(k){return k===47?(e.consume(k),G):k===58||k===95||Ue(k)?(e.consume(k),C):q(k)?(o=L,Z(k)):J(k)?(e.consume(k),L):G(k)}function C(k){return k===45||k===46||k===58||k===95||De(k)?(e.consume(k),C):R(k)}function R(k){return k===61?(e.consume(k),M):q(k)?(o=R,Z(k)):J(k)?(e.consume(k),R):L(k)}function M(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,U):q(k)?(o=M,Z(k)):J(k)?(e.consume(k),M):(e.consume(k),$)}function U(k){return k===i?(e.consume(k),i=void 0,F):k===null?n(k):q(k)?(o=U,Z(k)):(e.consume(k),U)}function $(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||le(k)?L(k):(e.consume(k),$)}function F(k){return k===47||k===62||le(k)?L(k):n(k)}function G(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function Z(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return J(k)?te(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):W(k)}function W(k){return e.enter("htmlTextData"),o(k)}}const fu={name:"labelEnd",resolveAll:Zx,resolveTo:Jx,tokenize:ek},Yx={tokenize:tk},Kx={tokenize:nk},Xx={tokenize:rk};function Zx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ot(e,0,e.length,n),e}function Jx(e,t){let n=e.length,r=0,i,l,o,a;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=dt(a,e.slice(l+1,l+r+3)),a=dt(a,[["enter",f,t]]),a=dt(a,io(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=dt(a,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),a=dt(a,e.slice(o+1)),a=dt(a,[["exit",s,t]]),ot(e,l,e.length,a),e}function ek(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?c(d):(o=r.parser.defined.includes(Et(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),s):n(d)}function s(d){return d===40?e.attempt(Yx,f,o?f:c)(d):d===91?e.attempt(Kx,f,o?u:c)(d):o?f(d):c(d)}function u(d){return e.attempt(Xx,f,c)(d)}function f(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function tk(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return le(c)?Vr(e,l)(c):l(c)}function l(c){return c===41?f(c):mh(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return le(c)?Vr(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?yh(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return le(c)?Vr(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function nk(e,t,n){const r=this;return i;function i(a){return gh.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Et(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function rk(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const ik={name:"labelStartImage",resolveAll:fu.resolveAll,tokenize:lk};function lk(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(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 ok={name:"labelStartLink",resolveAll:fu.resolveAll,tokenize:ak};function ak(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Ho={name:"lineEnding",tokenize:sk};function sk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),te(e,t,"linePrefix")}}const al={name:"thematicBreak",tokenize:uk};function uk(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||q(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?te(e,a,"whitespace")(u):a(u))}}const Qe={continuation:{tokenize:pk},exit:mk,name:"list",tokenize:dk},ck={partial:!0,tokenize:gk},fk={partial:!0,tokenize:hk};function dk(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:es(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(al,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return es(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(yi,r.interrupt?n:f,e.attempt(ck,d,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,d(h)}function c(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function pk(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yi,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,te(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!J(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(fk,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,te(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function hk(e,t,n){const r=this;return te(e,i,"listItemIndent",r.containerState.size+1);function i(l){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(l):n(l)}}function mk(e){e.exit(this.containerState.type)}function gk(e,t,n){const r=this;return te(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!J(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Kc={name:"setextUnderline",resolveTo:yk,tokenize:vk};function yk(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function vk(e,t,n){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?te(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||q(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const xk={tokenize:kk};function kk(e){const t=this,n=e.attempt(yi,r,e.attempt(this.parser.constructs.flowInitial,i,te(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Cx,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const wk={resolveAll:xh()},bk=vh("string"),Sk=vh("text");function vh(e){return{resolveAll:xh(e==="text"?Ek:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,a);return o;function o(f){return u(f)?l(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const h=c[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function xh(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function Ek(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];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){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,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 Ck={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:fh},Nk={91:Ix},Tk={[-2]:Uo,[-1]:Uo,32:Uo},_k={35:Dx,42:al,45:[Kc,al],60:Bx,61:Kc,95:al,96:qc,126:qc},jk={38:ph,92:dh},Ik={[-5]:Ho,[-4]:Ho,[-3]:Ho,33:ik,38:ph,42:ts,60:[ox,Qx],91:ok,92:[Fx,dh],93:fu,95:ts,96:xx},Ak={null:[ts,wk]},Pk={null:[42,95]},Lk={null:[]},Fk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Pk,contentInitial:Nk,disable:Lk,document:Ck,flow:_k,flowInitial:Tk,insideSpan:Ak,string:jk,text:Ik},Symbol.toStringTag,{value:"Module"}));function Rk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:T(N),check:T(S),consume:y,enter:g,exit:b,interrupt:T(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:m,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function c(R){return o=dt(o,R),w(),o[o.length-1]!==null?[]:(j(t,0),u.events=io(l,u.events,u),u.events)}function d(R,M){return Ok(h(R),M)}function h(R){return Dk(o,R)}function m(){const{_bufferIndex:R,_index:M,line:U,column:$,offset:F}=r;return{_bufferIndex:R,_index:M,line:U,column:$,offset:F}}function x(R){i[R.line]=R.column,C()}function w(){let R;for(;r._index<o.length;){const M=o[r._index];if(typeof M=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<M.length;)v(M.charCodeAt(r._bufferIndex));else v(M)}}function v(R){f=f(R)}function y(R){q(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,C()):R!==-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=R}function g(R,M){const U=M||{};return U.type=R,U.start=m(),u.events.push(["enter",U,u]),a.push(U),U}function b(R){const M=a.pop();return M.end=m(),u.events.push(["exit",M,u]),M}function N(R,M){j(R,M.from)}function S(R,M){M.restore()}function T(R,M){return U;function U($,F,G){let Z,D,W,k;return Array.isArray($)?Y($):"tokenize"in $?Y([$]):K($);function K(ne){return Pe;function Pe(Ge){const et=Ge!==null&&ne[Ge],Ft=Ge!==null&&ne.null,de=[...Array.isArray(et)?et:et?[et]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return Y(de)(Ge)}}function Y(ne){return Z=ne,D=0,ne.length===0?G:E(ne[D])}function E(ne){return Pe;function Pe(Ge){return k=L(),W=ne,ne.partial||(u.currentConstruct=ne),ne.name&&u.parser.constructs.disable.null.includes(ne.name)?Ee():ne.tokenize.call(M?Object.assign(Object.create(u),M):u,s,ue,Ee)(Ge)}}function ue(ne){return R(W,k),F}function Ee(ne){return k.restore(),++D<Z.length?E(Z[D]):G}}}function j(R,M){R.resolveAll&&!l.includes(R)&&l.push(R),R.resolve&&ot(u.events,M,u.events.length-M,R.resolve(u.events.slice(M),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function L(){const R=m(),M=u.previous,U=u.currentConstruct,$=u.events.length,F=Array.from(a);return{from:$,restore:G};function G(){r=R,u.previous=M,u.currentConstruct=U,u.events.length=$,a=F,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Dk(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Ok(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
42
+ `;break}case-3:{o=`\r
43
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function zk(e){const r={constructs:uh([Fk,...(e||{}).extensions||[]]),content:i(Jv),defined:[],document:i(tx),flow:i(xk),lazy:{},string:i(bk),text:i(Sk)};return r;function i(l){return o;function o(a){return Rk(r,l,a)}}}function Mk(e){for(;!hh(e););return e}const Xc=/[\0\t\n\r]/g;function Bk(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,d,h;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Xc.lastIndex=c,u=Xc.exec(l),d=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(d),!u){t=l.slice(c);break}if(h===10&&c===d&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<d&&(s.push(l.slice(c,d)),e+=d-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const $k=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Uk(e){return e.replace($k,Hk)}function Hk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return ch(n.slice(l?2:1),l?16:10)}return cu(n)||e}const kh={}.hasOwnProperty;function Vk(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Wk(n)(Mk(zk(n).document().write(Bk()(e,t,!0))))}function Wk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Si),autolinkProtocol:L,autolinkEmail:L,atxHeading:l(ki),blockQuote:l(Ft),characterEscape:L,characterReference:L,codeFenced:l(de),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(de,o),codeText:l(co,o),codeTextData:L,data:L,codeFlowValue:L,definition:l(xi),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(gn),hardBreakEscape:l(wi),hardBreakTrailing:l(wi),htmlFlow:l(bi,o),htmlFlowData:L,htmlText:l(bi,o),htmlTextData:L,image:l(Dn),label:o,link:l(Si),listItem:l(fo),listItemValue:d,listOrdered:l(On,c),listUnordered:l(On),paragraph:l(po),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(ki),strong:l(Ei),thematicBreak:l(Ni)},exit:{atxHeading:s(),atxHeadingSequence:N,autolink:s(),autolinkEmail:et,autolinkProtocol:Ge,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:ne,characterReference:Pe,codeFenced:s(w),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:s(v),codeText:s(F),codeTextData:C,data:C,definition:s(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(U),htmlFlowData:C,htmlText:s($),htmlTextData:C,image:s(Z),label:W,labelText:D,lineEnding:R,link:s(G),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ue,resourceDestinationString:k,resourceTitleString:K,resource:Y,setextHeading:s(j),setextHeadingLineSequence:T,setextHeadingText:S,strong:s(),thematicBreak:s()}};wh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let _={type:"root",children:[]};const B={stack:[_],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:f,data:n},H=[];let Q=-1;for(;++Q<I.length;)if(I[Q][1].type==="listOrdered"||I[Q][1].type==="listUnordered")if(I[Q][0]==="enter")H.push(Q);else{const oe=H.pop();Q=i(I,oe,Q)}for(Q=-1;++Q<I.length;){const oe=t[I[Q][0]];kh.call(oe,I[Q][1].type)&&oe[I[Q][1].type].call(Object.assign({sliceSerialize:I[Q][2].sliceSerialize},B),I[Q][1])}if(B.tokenStack.length>0){const oe=B.tokenStack[B.tokenStack.length-1];(oe[1]||Zc).call(B,void 0,oe[0])}for(_.position={start:qt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:qt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q<t.transforms.length;)_=t.transforms[Q](_)||_;return _}function i(I,_,B){let H=_-1,Q=-1,oe=!1,Me,ve,Be,ke;for(;++H<=B;){const he=I[H];switch(he[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{he[0]==="enter"?Q++:Q--,ke=void 0;break}case"lineEndingBlank":{he[0]==="enter"&&(Me&&!ke&&!Q&&!Be&&(Be=H),ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ke=void 0}if(!Q&&he[0]==="enter"&&he[1].type==="listItemPrefix"||Q===-1&&he[0]==="exit"&&(he[1].type==="listUnordered"||he[1].type==="listOrdered")){if(Me){let Gt=H;for(ve=void 0;Gt--;){const yt=I[Gt];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;ve&&(I[ve][1].type="lineEndingBlank",oe=!0),yt[1].type="lineEnding",ve=Gt}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}Be&&(!ve||Be<ve)&&(Me._spread=!0),Me.end=Object.assign({},ve?I[ve][1].start:he[1].end),I.splice(ve||H,0,["exit",Me,he[2]]),H++,B++}if(he[1].type==="listItemPrefix"){const Gt={type:"listItem",_spread:!1,start:Object.assign({},he[1].start),end:void 0};Me=Gt,I.splice(H,0,["enter",Gt,he[2]]),H++,B++,Be=void 0,ke=!0}}}return I[_][1]._spread=oe,B}function l(I,_){return B;function B(H){a.call(this,I(H),H),_&&_.call(this,H)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(I,_,B){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([_,B||void 0]),I.position={start:qt(_.start),end:void 0}}function s(I){return _;function _(B){I&&I.call(this,B),u.call(this,B)}}function u(I,_){const B=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==I.type&&(_?_.call(this,I,H[0]):(H[1]||Zc).call(this,I,H[0]));else throw new Error("Cannot close `"+I.type+"` ("+Hr({start:I.start,end:I.end})+"): it’s not open");B.position.end=qt(I.end)}function f(){return uu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(I){if(this.data.expectingFirstListItemValue){const _=this.stack[this.stack.length-2];_.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function h(){const I=this.resume(),_=this.stack[this.stack.length-1];_.lang=I}function m(){const I=this.resume(),_=this.stack[this.stack.length-1];_.meta=I}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const I=this.resume(),_=this.stack[this.stack.length-1];_.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const I=this.resume(),_=this.stack[this.stack.length-1];_.value=I.replace(/(\r?\n|\r)$/g,"")}function y(I){const _=this.resume(),B=this.stack[this.stack.length-1];B.label=_,B.identifier=Et(this.sliceSerialize(I)).toLowerCase()}function g(){const I=this.resume(),_=this.stack[this.stack.length-1];_.title=I}function b(){const I=this.resume(),_=this.stack[this.stack.length-1];_.url=I}function N(I){const _=this.stack[this.stack.length-1];if(!_.depth){const B=this.sliceSerialize(I).length;_.depth=B}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function T(I){const _=this.stack[this.stack.length-1];_.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function L(I){const B=this.stack[this.stack.length-1].children;let H=B[B.length-1];(!H||H.type!=="text")&&(H=Ci(),H.position={start:qt(I.start),end:void 0},B.push(H)),this.stack.push(H)}function C(I){const _=this.stack.pop();_.value+=this.sliceSerialize(I),_.position.end=qt(I.end)}function R(I){const _=this.stack[this.stack.length-1];if(this.data.atHardBreak){const B=_.children[_.children.length-1];B.position.end=qt(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(_.type)&&(L.call(this,I),C.call(this,I))}function M(){this.data.atHardBreak=!0}function U(){const I=this.resume(),_=this.stack[this.stack.length-1];_.value=I}function $(){const I=this.resume(),_=this.stack[this.stack.length-1];_.value=I}function F(){const I=this.resume(),_=this.stack[this.stack.length-1];_.value=I}function G(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const _=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=_,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function Z(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const _=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=_,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function D(I){const _=this.sliceSerialize(I),B=this.stack[this.stack.length-2];B.label=Uk(_),B.identifier=Et(_).toLowerCase()}function W(){const I=this.stack[this.stack.length-1],_=this.resume(),B=this.stack[this.stack.length-1];if(this.data.inReference=!0,B.type==="link"){const H=I.children;B.children=H}else B.alt=_}function k(){const I=this.resume(),_=this.stack[this.stack.length-1];_.url=I}function K(){const I=this.resume(),_=this.stack[this.stack.length-1];_.title=I}function Y(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ue(I){const _=this.resume(),B=this.stack[this.stack.length-1];B.label=_,B.identifier=Et(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function Ee(I){this.data.characterReferenceType=I.type}function ne(I){const _=this.sliceSerialize(I),B=this.data.characterReferenceType;let H;B?(H=ch(_,B==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=cu(_);const Q=this.stack[this.stack.length-1];Q.value+=H}function Pe(I){const _=this.stack.pop();_.position.end=qt(I.end)}function Ge(I){C.call(this,I);const _=this.stack[this.stack.length-1];_.url=this.sliceSerialize(I)}function et(I){C.call(this,I);const _=this.stack[this.stack.length-1];_.url="mailto:"+this.sliceSerialize(I)}function Ft(){return{type:"blockquote",children:[]}}function de(){return{type:"code",lang:null,meta:null,value:""}}function co(){return{type:"inlineCode",value:""}}function xi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function gn(){return{type:"emphasis",children:[]}}function ki(){return{type:"heading",depth:0,children:[]}}function wi(){return{type:"break"}}function bi(){return{type:"html",value:""}}function Dn(){return{type:"image",title:null,url:"",alt:null}}function Si(){return{type:"link",title:null,url:"",children:[]}}function On(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function fo(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function po(){return{type:"paragraph",children:[]}}function Ei(){return{type:"strong",children:[]}}function Ci(){return{type:"text",value:""}}function Ni(){return{type:"thematicBreak"}}}function qt(e){return{line:e.line,column:e.column,offset:e.offset}}function wh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wh(e,r):Gk(e,r)}}function Gk(e,t){let n;for(n in t)if(kh.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 Zc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Hr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Hr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Hr({start:t.start,end:t.end})+") is still open")}function Qk(e){const t=this;t.parser=n;function n(r){return Vk(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qk(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 Yk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
44
+ `}]}function Kk(e,t){const n=t.value?t.value+`
45
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function Xk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=xr(r.toLowerCase()),l=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=l+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function e1(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 t1(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function bh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function n1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bh(e,t);const i={src:xr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function r1(e,t){const n={src:xr(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 i1(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 l1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bh(e,t);const i={href:xr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function o1(e,t){const n={href:xr(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 a1(e,t,n){const r=e.all(t),i=n?s1(n):Sh(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
46
+ `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
47
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function s1(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=Sh(n[r])}return t}function Sh(e){const t=e.spread;return t??e.children.length>1}function u1(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];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 l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function c1(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f1(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function d1(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p1(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=lu(t.children[1]),s=nh(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function h1(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const c=t.children[s],d={},h=o?o[s]:void 0;h&&(d.align=h);let m={type:"element",tagName:l,properties:d,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),u.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function m1(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Jc=9,ef=32;function g1(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(tf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(tf(t.slice(i),i>0,!1)),l.join("")}function tf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Jc||l===ef;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Jc||l===ef;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function y1(e,t){const n={type:"text",value:g1(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function v1(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const x1={blockquote:qk,break:Yk,code:Kk,delete:Xk,emphasis:Zk,footnoteReference:Jk,heading:e1,html:t1,imageReference:n1,image:r1,inlineCode:i1,linkReference:l1,link:o1,listItem:a1,list:u1,paragraph:c1,root:f1,strong:d1,table:p1,tableCell:m1,tableRow:h1,text:y1,thematicBreak:v1,toml:Vi,yaml:Vi,definition:Vi,footnoteDefinition:Vi};function Vi(){}const Eh=-1,lo=0,Wr=1,Dl=2,du=3,pu=4,hu=5,mu=6,Ch=7,Nh=8,k1=typeof self=="object"?self:globalThis,nf=(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 k1[e](t)},w1=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case lo:case Eh:return n(o,i);case Wr:{const a=n([],i);for(const s of o)a.push(r(s));return a}case Dl:{const a=n({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case du:return n(new Date(o),i);case pu:{const{source:a,flags:s}=o;return n(new RegExp(a,s),i)}case hu:{const a=n(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case mu:{const a=n(new Set,i);for(const s of o)a.add(r(s));return a}case Ch:{const{name:a,message:s}=o;return n(nf(a,s),i)}case Nh:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);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(nf(l,o),i)};return r},rf=e=>w1(new Map,e)(0),Mn="",{toString:b1}={},{keys:S1}=Object,jr=e=>{const t=typeof e;if(t!=="object"||!e)return[lo,t];const n=b1.call(e).slice(8,-1);switch(n){case"Array":return[Wr,Mn];case"Object":return[Dl,Mn];case"Date":return[du,Mn];case"RegExp":return[pu,Mn];case"Map":return[hu,Mn];case"Set":return[mu,Mn];case"DataView":return[Wr,n]}return n.includes("Array")?[Wr,n]:n.includes("Error")?[Ch,n]:[Dl,n]},Wi=([e,t])=>e===lo&&(t==="function"||t==="symbol"),E1=(e,t,n,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},l=o=>{if(n.has(o))return n.get(o);let[a,s]=jr(o);switch(a){case lo:{let f=o;switch(s){case"bigint":a=Nh,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Eh],o)}return i([a,f],o)}case Wr:{if(s){let d=o;return s==="DataView"?d=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(d=new Uint8Array(o)),i([s,[...d]],o)}const f=[],c=i([a,f],o);for(const d of o)f.push(l(d));return c}case Dl:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([a,f],o);for(const d of S1(o))(e||!Wi(jr(o[d])))&&f.push([l(d),l(o[d])]);return c}case du:return i([a,o.toISOString()],o);case pu:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case hu:{const f=[],c=i([a,f],o);for(const[d,h]of o)(e||!(Wi(jr(d))||Wi(jr(h))))&&f.push([l(d),l(h)]);return c}case mu:{const f=[],c=i([a,f],o);for(const d of o)(e||!Wi(jr(d)))&&f.push(l(d));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},lf=(e,{json:t,lossy:n}={})=>{const r=[];return E1(!(t||n),!!t,new Map,r)(e),r},Ol=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?rf(lf(e,t)):structuredClone(e):(e,t)=>rf(lf(e,t));function C1(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 N1(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function T1(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||C1,r=e.options.footnoteBackLabel||N1,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=xr(c.toLowerCase());let h=0;const m=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++h<=x;){m.length>0&&m.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,h);typeof y=="string"&&(y={type:"text",value:y}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const y=w.children[w.children.length-1];y&&y.type==="text"?y.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else f.push(...m);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ol(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
48
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
49
+ `}]}}const oo=function(e){if(e==null)return A1;if(typeof e=="function")return ao(e);if(typeof e=="object")return Array.isArray(e)?_1(e):j1(e);if(typeof e=="string")return I1(e);throw new Error("Expected function, string, or object as test")};function _1(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=oo(e[n]);return ao(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function j1(e){const t=e;return ao(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function I1(e){return ao(t);function t(n){return n&&n.type===e}}function ao(e){return t;function t(n,r,i){return!!(P1(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function A1(){return!0}function P1(e){return e!==null&&typeof e=="object"&&"type"in e}const Th=[],L1=!0,ns=!1,F1="skip";function _h(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=oo(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=Th,m,x,w;if((!t||l(s,u,f[f.length-1]||void 0))&&(h=R1(n(s,f)),h[0]===ns))return h;if("children"in s&&s.children){const v=s;if(v.children&&h[0]!==F1)for(x=(r?v.children.length:-1)+o,w=f.concat(v);x>-1&&x<v.children.length;){const y=v.children[x];if(m=a(y,x,w)(),m[0]===ns)return m;x=typeof m[1]=="number"?m[1]:x+o}}return h}}}function R1(e){return Array.isArray(e)?e:typeof e=="number"?[L1,e]:e==null?Th:[e]}function gu(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),_h(e,l,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const rs={}.hasOwnProperty,D1={};function O1(e,t){const n=t||D1,r=new Map,i=new Map,l=new Map,o={...x1,...n.handlers},a={all:u,applyData:M1,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:z1,wrap:$1};return gu(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),a;function s(f,c){const d=f.type,h=a.handlers[d];if(rs.call(a.handlers,d)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in f){const{children:x,...w}=f,v=Ol(w);return v.children=a.all(f),v}return Ol(f)}return(a.options.unknownHandler||B1)(a,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let h=-1;for(;++h<d.length;){const m=a.one(d[h],f);if(m){if(h&&d[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=of(m.value)),!Array.isArray(m)&&m.type==="element")){const x=m.children[0];x&&x.type==="text"&&(x.value=of(x.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function z1(e,t){e.position&&(t.position=Cv(e))}function M1(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=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"&&l&&Object.assign(n.properties,Ol(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function B1(e,t){const n=t.data||{},r="value"in t&&!(rs.call(n,"hProperties")||rs.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 $1(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
50
+ `});++r<e.length;)r&&n.push({type:"text",value:`
51
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
52
+ `}),n}function of(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function af(e,t){const n=O1(e,t),r=n.one(e,void 0),i=T1(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
53
+ `},i),l}function U1(e,t){return e&&"run"in e?async function(n,r){const i=af(n,{file:r,...t});await e.run(i,r)}:function(n,r){return af(n,{file:r,...e||t})}}function sf(e){if(e)throw e}var sl=Object.prototype.hasOwnProperty,jh=Object.prototype.toString,uf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,ff=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jh.call(t)==="[object Array]"},df=function(t){if(!t||jh.call(t)!=="[object Object]")return!1;var n=sl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&sl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||sl.call(t,i)},pf=function(t,n){uf&&n.name==="__proto__"?uf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},hf=function(t,n){if(n==="__proto__")if(sl.call(t,n)){if(cf)return cf(t,n).value}else return;return t[n]},H1=function e(){var t,n,r,i,l,o,a=arguments[0],s=1,u=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=hf(a,n),i=hf(t,n),a!==i&&(f&&i&&(df(i)||(l=ff(i)))?(l?(l=!1,o=r&&ff(r)?r:[]):o=r&&df(r)?r:{},pf(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&pf(a,{name:n,newValue:i}));return a};const Vo=as(H1);function is(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 V1(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?W1(f,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function W1(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&n)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){n||(n=!0,t(o,...a))}function l(o){i(null,o)}}const _t={basename:G1,dirname:Q1,extname:q1,join:Y1,sep:"/"};function G1(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vi(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Q1(e){if(vi(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 q1(e){vi(e);let t=e.length,n=-1,r=0,i=-1,l=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?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Y1(...e){let t=-1,n;for(;++t<e.length;)vi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":K1(n)}function K1(e){vi(e);const t=e.codePointAt(0)===47;let n=X1(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function X1(e,t){let n="",r=0,i=-1,l=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(!(i===o-1||l===1))if(i!==o-1&&l===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("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return n}function vi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Z1={cwd:J1};function J1(){return"/"}function ls(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ew(e){if(typeof e=="string")e=new URL(e);else if(!ls(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 tw(e)}function tw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Wo=["history","path","basename","stem","extname","dirname"];class Ih{constructor(t){let n;t?ls(t)?n={path:t}:typeof t=="string"||nw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Z1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Wo.length;){const l=Wo[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Wo.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?_t.basename(this.path):void 0}set basename(t){Qo(t,"basename"),Go(t,"basename"),this.path=_t.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?_t.dirname(this.path):void 0}set dirname(t){mf(this.basename,"dirname"),this.path=_t.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?_t.extname(this.path):void 0}set extname(t){if(Go(t,"extname"),mf(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=_t.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ls(t)&&(t=ew(t)),Qo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?_t.basename(this.path,this.extname):void 0}set stem(t){Qo(t,"stem"),Go(t,"stem"),this.path=_t.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ze(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Go(e,t){if(e&&e.includes(_t.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_t.sep+"`")}function Qo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function mf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rw=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},iw={}.hasOwnProperty;class yu extends rw{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=V1()}copy(){const t=new yu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Vo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ko("data",this.frozen),this.namespace[t]=n,this):iw.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 i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Gi(t),r=this.parser||this.Parser;return qo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),qo("process",this.parser||this.Parser),Yo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=Gi(t),s=r.parse(a);r.run(s,a,function(f,c,d){if(f||!c||!d)return u(f);const h=c,m=r.stringify(h,d);aw(m)?d.value=m:d.result=m,u(f,d)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),qo("processSync",this.parser||this.Parser),Yo("processSync",this.compiler||this.Compiler),this.process(t,i),yf("processSync","process",n),r;function i(l,o){n=!0,sf(l),r=o}}run(t,n,r){gf(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const s=Gi(n);i.run(t,s,u);function u(f,c,d){const h=c||t;f?a(f):o?o(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),yf("runSync","run",r),i;function l(o,a){sf(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Gi(n),i=this.compiler||this.Compiler;return Yo("stringify",i),gf(t),i(t,r)}use(t,...n){const r=this.attachers,i=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 l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Vo(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[h,...m]=f;const x=r[d][1];is(x)&&is(h)&&(h=Vo(!0,x,h)),r[d]=[u,h,...m]}}}}const lw=new yu().freeze();function qo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yo(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 gf(e){if(!is(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function yf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gi(e){return ow(e)?e:new Ih(e)}function ow(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function aw(e){return typeof e=="string"||sw(e)}function sw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vf=[],xf={allowDangerousHtml:!0},cw=/^(https?|ircs?|mailto|xmpp)$/i,fw=[{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 dw(e){const t=pw(e),n=hw(e);return mw(t.runSync(t.parse(n),n),e)}function pw(e){const t=e.rehypePlugins||vf,n=e.remarkPlugins||vf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xf}:xf;return lw().use(Qk).use(n).use(U1,r).use(t)}function hw(e){const t=e.children||"",n=new Ih;return typeof t=="string"&&(n.value=t),n}function mw(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||gw;for(const f of fw)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+uw+f.id,void 0);return gu(e,u),Iv(e,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function u(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in $o)if(Object.hasOwn($o,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],x=$o[h];(x===null||x.includes(f.tagName))&&(f.properties[h]=s(String(m||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return a&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function gw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||cw.test(e.slice(0,t))?e:""}function kf(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function yw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vw(e,t,n){const i=oo((n||{}).ignore||[]),l=xw(t);let o=-1;for(;++o<l.length;)_h(e,"text",a);function a(u,f){let c=-1,d;for(;++c<f.length;){const h=f[c],m=d?d.children:void 0;if(i(h,m?m.indexOf(h):void 0,d))return;d=h}if(d)return s(u,f)}function s(u,f){const c=f[f.length-1],d=l[o][0],h=l[o][1];let m=0;const w=c.children.indexOf(u);let v=!1,y=[];d.lastIndex=0;let g=d.exec(u.value);for(;g;){const b=g.index,N={index:g.index,input:g.input,stack:[...f,u]};let S=h(...g,N);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?d.lastIndex=b+1:(m!==b&&y.push({type:"text",value:u.value.slice(m,b)}),Array.isArray(S)?y.push(...S):S&&y.push(S),m=b+g[0].length,v=!0),!d.global)break;g=d.exec(u.value)}return v?(m<u.value.length&&y.push({type:"text",value:u.value.slice(m)}),c.children.splice(w,1,...y)):y=[u],w+y.length}}function xw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([kw(i[0]),ww(i[1])])}return t}function kw(e){return typeof e=="string"?new RegExp(yw(e),"g"):e}function ww(e){return typeof e=="function"?e:function(){return e}}const Xo="phrasing",Zo=["autolink","link","image","label"];function bw(){return{transforms:[jw],enter:{literalAutolink:Ew,literalAutolinkEmail:Jo,literalAutolinkHttp:Jo,literalAutolinkWww:Jo},exit:{literalAutolink:_w,literalAutolinkEmail:Tw,literalAutolinkHttp:Cw,literalAutolinkWww:Nw}}}function Sw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xo,notInConstruct:Zo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xo,notInConstruct:Zo},{character:":",before:"[ps]",after:"\\/",inConstruct:Xo,notInConstruct:Zo}]}}function Ew(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Jo(e){this.config.enter.autolinkProtocol.call(this,e)}function Cw(e){this.config.exit.autolinkProtocol.call(this,e)}function Nw(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 Tw(e){this.config.exit.autolinkEmail.call(this,e)}function _w(e){this.exit(e)}function jw(e){vw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Iw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Aw]],{ignore:["link","linkReference"]})}function Iw(e,t,n,r,i){let l="";if(!Ah(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Pw(n)))return!1;const o=Lw(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function Aw(e,t,n,r){return!Ah(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Pw(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 Lw(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=kf(e,"(");let l=kf(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Ah(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pn(n)||ro(n))&&(!t||n!==47)}Ph.peek=Uw;function Fw(){this.buffer()}function Rw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Dw(){this.buffer()}function Ow(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Et(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Mw(e){this.exit(e)}function Bw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Et(this.sliceSerialize(e)).toLowerCase(),n.label=t}function $w(e){this.exit(e)}function Uw(){return"["}function Ph(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function Hw(){return{enter:{gfmFootnoteCallString:Fw,gfmFootnoteCall:Rw,gfmFootnoteDefinitionLabelString:Dw,gfmFootnoteDefinition:Ow},exit:{gfmFootnoteCallString:zw,gfmFootnoteCall:Mw,gfmFootnoteDefinitionLabelString:Bw,gfmFootnoteDefinition:$w}}}function Vw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ph},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const a=l.createTracker(o);let s=a.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=a.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
54
+ `:" ")+l.indentLines(l.containerFlow(r,a.current()),t?Lh:Ww))),u(),s}}function Ww(e,t,n){return t===0?e:Lh(e,t,n)}function Lh(e,t,n){return(n?"":" ")+e}const Gw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Fh.peek=Xw;function Qw(){return{canContainEols:["delete"],enter:{strikethrough:Yw},exit:{strikethrough:Kw}}}function qw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Gw}],handlers:{delete:Fh}}}function Yw(e){this.enter({type:"delete",children:[]},e)}function Kw(e){this.exit(e)}function Fh(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Xw(){return"~"}function Zw(e){return e.length}function Jw(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Zw,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const x=[],w=[];let v=-1;for(e[f].length>u&&(u=e[f].length);++v<e[f].length;){const y=e0(e[f][v]);if(n.alignDelimiters!==!1){const g=i(y);w[v]=g,(s[v]===void 0||g>s[v])&&(s[v]=g)}x.push(y)}o[f]=x,a[f]=w}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=wf(r[c]);else{const x=wf(r);for(;++c<u;)l[c]=x}c=-1;const d=[],h=[];for(;++c<u;){const x=l[c];let w="",v="";x===99?(w=":",v=":"):x===108?w=":":x===114&&(v=":");let y=n.alignDelimiters===!1?1:Math.max(1,s[c]-w.length-v.length);const g=w+"-".repeat(y)+v;n.alignDelimiters!==!1&&(y=w.length+y+v.length,y>s[c]&&(s[c]=y),h[c]=y),d[c]=g}o.splice(1,0,d),a.splice(1,0,h),f=-1;const m=[];for(;++f<o.length;){const x=o[f],w=a[f];c=-1;const v=[];for(;++c<u;){const y=x[c]||"";let g="",b="";if(n.alignDelimiters!==!1){const N=s[c]-(w[c]||0),S=l[c];S===114?g=" ".repeat(N):S===99?N%2?(g=" ".repeat(N/2+.5),b=" ".repeat(N/2-.5)):(g=" ".repeat(N/2),b=g):b=" ".repeat(N)}n.delimiterStart!==!1&&!c&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&v.push(" "),n.alignDelimiters!==!1&&v.push(g),v.push(y),n.alignDelimiters!==!1&&v.push(b),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&v.push("|")}m.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return m.join(`
55
+ `)}function e0(e){return e==null?"":String(e)}function wf(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 t0(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),n0);return i(),o}function n0(e,t,n){return">"+(n?"":" ")+e}function r0(e,t){return bf(e,t.inConstruct,!0)&&!bf(e,t.notInConstruct,!1)}function bf(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 Sf(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
56
+ `&&r0(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
57
+ `}function i0(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function l0(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 o0(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 a0(e,t,n,r){const i=o0(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(l0(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(l,s0);return c(),d}const a=n.createTracker(r),s=i.repeat(Math.max(i0(l,i)+1,3)),u=n.enter("codeFenced");let f=a.move(s);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
58
+ `,encode:["`"],...a.current()})),c()}return f+=a.move(`
59
+ `),l&&(f+=a.move(l+`
60
+ `)),f+=a.move(s),u(),f}function s0(e,t,n){return(n?"":" ")+e}function vu(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 u0(e,t,n,r){const i=vu(n),l=i==='"'?"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?" ":`
61
+ `,...s.current()}))),a(),e.title&&(a=n.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),o(),u}function c0(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 ci(e){return"&#x"+e.toString(16).toUpperCase()+";"}function zl(e,t,n){const r=hr(e),i=hr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Rh.peek=f0;function Rh(e,t,n,r){const i=c0(n),l=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i);let s=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=zl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=ci(u)+s.slice(1));const c=s.charCodeAt(s.length-1),d=zl(r.after.charCodeAt(0),c,i);d.inside&&(s=s.slice(0,-1)+ci(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},a+s+h}function f0(e,t,n){return n.options.emphasis||"*"}function d0(e,t){let n=!1;return gu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ns}),!!((!e.depth||e.depth<3)&&uu(e)&&(t.options.setext||n))}function p0(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(d0(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...l.current(),before:`
62
+ `,after:`
63
+ `});return c(),f(),d+`
64
+ `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
65
+ `))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");l.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
66
+ `,...l.current()});return/^[\t ]/.test(u)&&(u=ci(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}Dh.peek=h0;function Dh(e){return e.value||""}function h0(){return"<"}Oh.peek=m0;function Oh(e,t,n,r){const i=vu(n),l=i==='"'?"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${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),o(),u}function m0(){return"!"}zh.peek=g0;function zh(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function g0(){return"!"}Mh.peek=y0;function Mh(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],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 i+r+i}function y0(){return"`"}function Bh(e,t){const n=uu(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))}$h.peek=v0;function $h(e,t,n,r){const i=vu(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(Bh(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),n.stack=f,c}a=n.enter("link"),s=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),a(),u}function v0(e,t,n){return Bh(e,n)?"<":"["}Uh.peek=x0;function Uh(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function x0(){return"["}function xu(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 k0(e){const t=xu(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 w0(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 Hh(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 b0(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?w0(n):xu(n);const a=e.ordered?o==="."?")":".":k0(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Hh(n)===o&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.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=l,i(),u}function S0(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 E0(e,t,n,r){const i=S0(n);let l=n.bulletCurrent||xu(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return s(),u;function f(c,d,h){return d?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function C0(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const N0=oo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function T0(e,t,n,r){return(e.children.some(function(o){return N0(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function _0(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Vh.peek=j0;function Vh(e,t,n,r){const i=_0(n),l=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let s=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=zl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=ci(u)+s.slice(1));const c=s.charCodeAt(s.length-1),d=zl(r.after.charCodeAt(0),c,i);d.inside&&(s=s.slice(0,-1)+ci(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},a+s+h}function j0(e,t,n){return n.options.strong||"*"}function I0(e,t,n,r){return n.safe(e.value,r)}function A0(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 P0(e,t,n){const r=(Hh(n)+(n.options.ruleSpaces?" ":"")).repeat(A0(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Wh={blockquote:t0,break:Sf,code:a0,definition:u0,emphasis:Rh,hardBreak:Sf,heading:p0,html:Dh,image:Oh,imageReference:zh,inlineCode:Mh,link:$h,linkReference:Uh,list:b0,listItem:E0,paragraph:C0,root:T0,strong:Vh,text:I0,thematicBreak:P0};function L0(){return{enter:{table:F0,tableData:Ef,tableHeader:Ef,tableRow:D0},exit:{codeText:O0,table:R0,tableData:ea,tableHeader:ea,tableRow:ea}}}function F0(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 R0(e){this.exit(e),this.data.inTable=void 0}function D0(e){this.enter({type:"tableRow",children:[]},e)}function ea(e){this.exit(e)}function Ef(e){this.enter({type:"tableCell",children:[]},e)}function O0(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,z0));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function z0(e,t){return t==="|"?t:e}function M0(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
67
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:s,tableRow:a}};function o(h,m,x,w){return u(f(h,x,w),h.align)}function a(h,m,x,w){const v=c(h,x,w),y=u([v]);return y.slice(0,y.indexOf(`
68
+ `))}function s(h,m,x,w){const v=x.enter("tableCell"),y=x.enter("phrasing"),g=x.containerPhrasing(h,{...w,before:l,after:l});return y(),v(),g}function u(h,m){return Jw(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,x){const w=h.children;let v=-1;const y=[],g=m.enter("table");for(;++v<w.length;)y[v]=c(w[v],m,x);return g(),y}function c(h,m,x){const w=h.children;let v=-1;const y=[],g=m.enter("tableRow");for(;++v<w.length;)y[v]=s(w[v],h,m,x);return g(),y}function d(h,m,x){let w=Wh.inlineCode(h,m,x);return x.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function B0(){return{exit:{taskListCheckValueChecked:Cf,taskListCheckValueUnchecked:Cf,paragraph:U0}}}function $0(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:H0}}}function Cf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function U0(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const a=i[l];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 H0(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=Wh.listItem(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function V0(){return[bw(),Hw(),Qw(),L0(),B0()]}function W0(e){return{extensions:[Sw(),Vw(e),qw(),M0(e),$0()]}}const G0={tokenize:Z0,partial:!0},Gh={tokenize:J0,partial:!0},Qh={tokenize:eb,partial:!0},qh={tokenize:tb,partial:!0},Q0={tokenize:nb,partial:!0},Yh={name:"wwwAutolink",tokenize:K0,previous:Xh},Kh={name:"protocolAutolink",tokenize:X0,previous:Zh},Wt={name:"emailAutolink",tokenize:Y0,previous:Jh},Lt={};function q0(){return{text:Lt}}let yn=48;for(;yn<123;)Lt[yn]=Wt,yn++,yn===58?yn=65:yn===91&&(yn=97);Lt[43]=Wt;Lt[45]=Wt;Lt[46]=Wt;Lt[95]=Wt;Lt[72]=[Wt,Kh];Lt[104]=[Wt,Kh];Lt[87]=[Wt,Yh];Lt[119]=[Wt,Yh];function Y0(e,t,n){const r=this;let i,l;return o;function o(c){return!os(c)||!Jh.call(r,r.previous)||ku(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return os(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(Q0,f,u)(c):c===45||c===95||De(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&Ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function K0(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Xh.call(r,r.previous)||ku(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(G0,e.attempt(Gh,e.attempt(Qh,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function X0(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Zh.call(r,r.previous)&&!ku(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(Ue(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):n(c)}function u(c){return c===null||Rl(c)||le(c)||Pn(c)||ro(c)?n(c):e.attempt(Gh,e.attempt(Qh,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Z0(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function J0(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(qh,s,a)(u):u===null||le(u)||Pn(u)||u!==45&&ro(u)?s(u):(l=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function s(u){return i||r||!l?n(u):t(u)}}function eb(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(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(qh,t,l)(o):o===null||le(o)||Pn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function tb(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),l):a===93?(e.consume(a),i):a===60||a===null||le(a)||Pn(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||le(a)||Pn(a)?t(a):r(a)}function l(a){return Ue(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):Ue(a)?(e.consume(a),o):n(a)}}function nb(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return De(l)?n(l):t(l)}}function Xh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||le(e)}function Zh(e){return!Ue(e)}function Jh(e){return!(e===47||os(e))}function os(e){return e===43||e===45||e===46||e===95||De(e)}function ku(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 rb={tokenize:fb,partial:!0};function ib(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sb,continuation:{tokenize:ub},exit:cb}},text:{91:{name:"gfmFootnoteCall",tokenize:ab},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:lb,resolveTo:ob}}}}function lb(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][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=Et(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function ob(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function ab(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||le(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Et(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return le(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function sb(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(o>999||m===93&&!a||m===null||m===91||le(m))return n(m);if(m===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=Et(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return le(m)||(a=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),te(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function ub(e,t,n){return e.check(yi,t,e.attempt(rb,t,n))}function cb(e){e.exit("gfmFootnoteDefinition")}function fb(e,t,n){const r=this;return te(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function db(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},d=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ot(d,d.length,0,io(h,o.slice(u+1,s),a)),ot(d,d.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),ot(o,u-1,s-u+3,d),s=u+d.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const u=this.previous,f=this.events;let c=0;return d;function d(m){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(m):(o.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const x=hr(u);if(m===126)return c>1?s(m):(o.consume(m),c++,h);if(c<2&&!n)return s(m);const w=o.exit("strikethroughSequenceTemporary"),v=hr(m);return w._open=!v||v===2&&!!x,w._close=!x||x===2&&!!v,a(m)}}}class pb{constructor(){this.map=[]}add(t,n,r){hb(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[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 i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function hb(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function mb(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function gb(){return{flow:{null:{name:"table",tokenize:yb,resolveAll:vb}}}}function yb(e,t,n){const r=this;let i=0,l=0,o;return a;function a(C){let R=r.events.length-1;for(;R>-1;){const $=r.events[R][1].type;if($==="lineEnding"||$==="linePrefix")R--;else break}const M=R>-1?r.events[R][1].type:null,U=M==="tableHead"||M==="tableRow"?S:s;return U===S&&r.parser.lazy[r.now().line]?n(C):U(C)}function s(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(o=!0,l+=1),f(C)}function f(C){return C===null?n(C):q(C)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h):n(C):J(C)?te(e,f,"whitespace")(C):(l+=1,o&&(o=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(C)))}function c(C){return C===null||C===124||le(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?d:c)}function d(C){return C===92||C===124?(e.consume(C),c):c(C)}function h(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,J(C)?te(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?w(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),x):N(C)}function x(C){return J(C)?te(e,w,"whitespace")(C):w(C)}function w(C){return C===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),v):C===45?(l+=1,v(C)):C===null||q(C)?b(C):N(C)}function v(C){return C===45?(e.enter("tableDelimiterFiller"),y(C)):N(C)}function y(C){return C===45?(e.consume(C),y):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(C))}function g(C){return J(C)?te(e,b,"whitespace")(C):b(C)}function b(C){return C===124?m(C):C===null||q(C)?!o||i!==l?N(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):N(C)}function N(C){return n(C)}function S(C){return e.enter("tableRow"),T(C)}function T(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),T):C===null||q(C)?(e.exit("tableRow"),t(C)):J(C)?te(e,T,"whitespace")(C):(e.enter("data"),j(C))}function j(C){return C===null||C===124||le(C)?(e.exit("data"),T(C)):(e.consume(C),C===92?L:j)}function L(C){return C===92||C===124?(e.consume(C),j):j(C)}}function vb(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const d=new pb;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,s!==0&&(Nf(d,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Qi(d,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Qi(d,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):m.type==="tableHead"?(a=!0,s=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=Qi(d,t,l,i,n,c)):o[1]!==0&&(c=Qi(d,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Nf(d,t,s,u,f),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=mb(t.events,n))}return e}function Qi(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(l.end=Object.assign({},$n(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=$n(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const u=$n(t.events,n[2]),f=$n(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,x=n[3]-n[2]-1;e.add(m,x,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},$n(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Nf(e,t,n,r,i){const l=[],o=$n(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function $n(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const xb={name:"tasklistCheck",tokenize:wb};function kb(){return{text:{91:xb}}}function wb(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return le(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 q(s)?t(s):J(s)?e.check({tokenize:bb},t,n)(s):n(s)}}function bb(e,t,n){return te(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Sb(e){return uh([q0(),ib(),db(e),gb(),kb()])}const Eb={};function Cb(e){const t=this,n=e||Eb,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Sb(n)),l.push(V0()),o.push(W0(n))}function em(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=em(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tm(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=em(e))&&(r&&(r+=" "),r+=t);return r}var Nb=Object.create,so=Object.defineProperty,Tb=Object.defineProperties,_b=Object.getOwnPropertyDescriptor,jb=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertyNames,Ml=Object.getOwnPropertySymbols,Ib=Object.getPrototypeOf,wu=Object.prototype.hasOwnProperty,rm=Object.prototype.propertyIsEnumerable,Tf=(e,t,n)=>t in e?so(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||(t={}))wu.call(t,n)&&Tf(e,n,t[n]);if(Ml)for(var n of Ml(t))rm.call(t,n)&&Tf(e,n,t[n]);return e},uo=(e,t)=>Tb(e,jb(t)),im=(e,t)=>{var n={};for(var r in e)wu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&rm.call(e,r)&&(n[r]=e[r]);return n},Ab=(e,t)=>function(){return t||(0,e[nm(e)[0]])((t={exports:{}}).exports,t),t.exports},Pb=(e,t)=>{for(var n in t)so(e,n,{get:t[n],enumerable:!0})},Lb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nm(t))!wu.call(e,i)&&i!==n&&so(e,i,{get:()=>t[i],enumerable:!(r=_b(t,i))||r.enumerable});return e},Fb=(e,t,n)=>(n=e!=null?Nb(Ib(e)):{},Lb(!e||!e.__esModule?so(n,"default",{value:e,enumerable:!0}):n,e)),Rb=Ab({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,l={},o={util:{encode:function m(x){return x instanceof a?new a(x.type,m(x.content),x.alias):Array.isArray(x)?x.map(m):x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++i}),m.__id},clone:function m(x,w){w=w||{};var v,y;switch(o.util.type(x)){case"Object":if(y=o.util.objId(x),w[y])return w[y];v={},w[y]=v;for(var g in x)x.hasOwnProperty(g)&&(v[g]=m(x[g],w));return v;case"Array":return y=o.util.objId(x),w[y]?w[y]:(v=[],w[y]=v,x.forEach(function(b,N){v[N]=m(b,w)}),v);default:return x}},getLanguage:function(m){for(;m;){var x=r.exec(m.className);if(x)return x[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,x){m.className=m.className.replace(RegExp(r,"gi"),""),m.classList.add("language-"+x)},isActive:function(m,x,w){for(var v="no-"+x;m;){var y=m.classList;if(y.contains(x))return!0;if(y.contains(v))return!1;m=m.parentElement}return!!w}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(m,x){var w=o.util.clone(o.languages[m]);for(var v in x)w[v]=x[v];return w},insertBefore:function(m,x,w,v){v=v||o.languages;var y=v[m],g={};for(var b in y)if(y.hasOwnProperty(b)){if(b==x)for(var N in w)w.hasOwnProperty(N)&&(g[N]=w[N]);w.hasOwnProperty(b)||(g[b]=y[b])}var S=v[m];return v[m]=g,o.languages.DFS(o.languages,function(T,j){j===S&&T!=m&&(this[T]=g)}),g},DFS:function m(x,w,v,y){y=y||{};var g=o.util.objId;for(var b in x)if(x.hasOwnProperty(b)){w.call(x,b,x[b],v||b);var N=x[b],S=o.util.type(N);S==="Object"&&!y[g(N)]?(y[g(N)]=!0,m(N,w,null,y)):S==="Array"&&!y[g(N)]&&(y[g(N)]=!0,m(N,w,b,y))}}},plugins:{},highlight:function(m,x,w){var v={code:m,grammar:x,language:w};if(o.hooks.run("before-tokenize",v),!v.grammar)throw new Error('The language "'+v.language+'" has no grammar.');return v.tokens=o.tokenize(v.code,v.grammar),o.hooks.run("after-tokenize",v),a.stringify(o.util.encode(v.tokens),v.language)},tokenize:function(m,x){var w=x.rest;if(w){for(var v in w)x[v]=w[v];delete x.rest}var y=new f;return c(y,y.head,m),u(m,y,x,y.head,0),h(y)},hooks:{all:{},add:function(m,x){var w=o.hooks.all;w[m]=w[m]||[],w[m].push(x)},run:function(m,x){var w=o.hooks.all[m];if(!(!w||!w.length))for(var v=0,y;y=w[v++];)y(x)}},Token:a};function a(m,x,w,v){this.type=m,this.content=x,this.alias=w,this.length=(v||"").length|0}a.stringify=function m(x,w){if(typeof x=="string")return x;if(Array.isArray(x)){var v="";return x.forEach(function(S){v+=m(S,w)}),v}var y={type:x.type,content:m(x.content,w),tag:"span",classes:["token",x.type],attributes:{},language:w},g=x.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(y.classes,g):y.classes.push(g)),o.hooks.run("wrap",y);var b="";for(var N in y.attributes)b+=" "+N+'="'+(y.attributes[N]||"").replace(/"/g,"&quot;")+'"';return"<"+y.tag+' class="'+y.classes.join(" ")+'"'+b+">"+y.content+"</"+y.tag+">"};function s(m,x,w,v){m.lastIndex=x;var y=m.exec(w);if(y&&v&&y[1]){var g=y[1].length;y.index+=g,y[0]=y[0].slice(g)}return y}function u(m,x,w,v,y,g){for(var b in w)if(!(!w.hasOwnProperty(b)||!w[b])){var N=w[b];N=Array.isArray(N)?N:[N];for(var S=0;S<N.length;++S){if(g&&g.cause==b+","+S)return;var T=N[S],j=T.inside,L=!!T.lookbehind,C=!!T.greedy,R=T.alias;if(C&&!T.pattern.global){var M=T.pattern.toString().match(/[imsuy]*$/)[0];T.pattern=RegExp(T.pattern.source,M+"g")}for(var U=T.pattern||T,$=v.next,F=y;$!==x.tail&&!(g&&F>=g.reach);F+=$.value.length,$=$.next){var G=$.value;if(x.length>m.length)return;if(!(G instanceof a)){var Z=1,D;if(C){if(D=s(U,F,m,L),!D||D.index>=m.length)break;var Y=D.index,W=D.index+D[0].length,k=F;for(k+=$.value.length;Y>=k;)$=$.next,k+=$.value.length;if(k-=$.value.length,F=k,$.value instanceof a)continue;for(var K=$;K!==x.tail&&(k<W||typeof K.value=="string");K=K.next)Z++,k+=K.value.length;Z--,G=m.slice(F,k),D.index-=F}else if(D=s(U,0,G,L),!D)continue;var Y=D.index,E=D[0],ue=G.slice(0,Y),Ee=G.slice(Y+E.length),ne=F+G.length;g&&ne>g.reach&&(g.reach=ne);var Pe=$.prev;ue&&(Pe=c(x,Pe,ue),F+=ue.length),d(x,Pe,Z);var Ge=new a(b,j?o.tokenize(E,j):E,R,E);if($=c(x,Pe,Ge),Ee&&c(x,$,Ee),Z>1){var et={cause:b+","+S,reach:ne};u(m,x,w,$.prev,F,et),g&&et.reach>g.reach&&(g.reach=et.reach)}}}}}}function f(){var m={value:null,prev:null,next:null},x={value:null,prev:m,next:null};m.next=x,this.head=m,this.tail=x,this.length=0}function c(m,x,w){var v=x.next,y={value:w,prev:x,next:v};return x.next=y,v.prev=y,m.length++,y}function d(m,x,w){for(var v=x.next,y=0;y<w&&v!==m.tail;y++)v=v.next;x.next=v,v.prev=x,m.length-=y}function h(m){for(var x=[],w=m.head.next;w!==m.tail;)x.push(w.value),w=w.next;return x}return o}();t.exports=n,n.default=n}}),A=Fb(Rb());A.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},A.languages.markup.tag.inside["attr-value"].inside.entity=A.languages.markup.entity,A.languages.markup.doctype.inside["internal-subset"].inside=A.languages.markup,A.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(A.languages.markup.tag,"addInlined",{value:function(e,r){var n={},n=(n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:A.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:A.languages[r]},{});r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},A.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(A.languages.markup.tag,"addAttribute",{value:function(e,t){A.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:A.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),A.languages.html=A.languages.markup,A.languages.mathml=A.languages.markup,A.languages.svg=A.languages.markup,A.languages.xml=A.languages.extend("markup",{}),A.languages.ssml=A.languages.xml,A.languages.atom=A.languages.xml,A.languages.rss=A.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",r=RegExp(r+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(A),A.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},A.languages.javascript=A.languages.extend("clike",{"class-name":[A.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),A.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,A.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:A.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:A.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:A.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:A.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:A.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),A.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:A.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),A.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),A.languages.markup&&(A.languages.markup.tag.addInlined("script","javascript"),A.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),A.languages.js=A.languages.javascript,A.languages.actionscript=A.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),A.languages.actionscript["class-name"].alias="function",delete A.languages.actionscript.parameter,delete A.languages.actionscript["literal-property"],A.languages.markup&&A.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:A.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(A),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(n,r){(n=typeof n=="string"?[n]:n).forEach(function(i){var l=function(c){c.inside||(c.inside={}),c.inside.rest=r},o="doc-comment";if(a=e.languages[i]){var a,s=a[o];if((s=s||(a=e.languages.insertBefore(i,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(s=a[o]={pattern:s}),Array.isArray(s))for(var u=0,f=s.length;u<f;u++)s[u]instanceof RegExp&&(s[u]={pattern:s[u]}),l(s[u]);else l(s)}})}}),t.addSupport(["java","javascript","php"],t)}(A),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(A),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(A),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(a,s){s=(s||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return a});return RegExp(u,s)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(l),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(A),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,o=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+l+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+l+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(f){u!==f&&(e.languages.markdown[u].inside.content.inside[f]=e.languages.markdown[f])})}),e.hooks.add("after-tokenize",function(u){u.language!=="markdown"&&u.language!=="md"||function f(c){if(c&&typeof c!="string")for(var d=0,h=c.length;d<h;d++){var m,x=c[d];x.type!=="code"?f(x.content):(m=x.content[1],x=x.content[3],m&&x&&m.type==="code-language"&&x.type==="code-block"&&typeof m.content=="string"&&(m=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase()),x.alias?typeof x.alias=="string"?x.alias=[x.alias,m]:x.alias.push(m):x.alias=[m]))}}(u.tokens)}),e.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var f="",c=0,d=u.classes.length;c<d;c++){var h=u.classes[c],h=/language-(.+)/.exec(h);if(h){f=h[1];break}}var m,x=e.languages[f];x?u.content=e.highlight(function(w){return w=w.replace(o,""),w=w.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,y){var g;return(y=y.toLowerCase())[0]==="#"?(g=y[1]==="x"?parseInt(y.slice(2),16):Number(y.slice(1)),s(g)):a[y]||v})}(u.content),x,f):f&&f!=="none"&&e.plugins.autoloader&&(m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),u.attributes.id=m,e.plugins.autoloader.loadLanguages(f,function(){var w=document.getElementById(m);w&&(w.innerHTML=e.highlight(w.textContent,e.languages[f],f))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),a={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(A),A.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:A.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},A.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(m){return typeof m!="string"&&m.type!=="comment"&&m.type!=="scalar"}),n=0;n<t.length;){var r=t[n++];if(r.type==="keyword"&&r.content==="mutation"){var i=[];if(c(["definition-mutation","punctuation"])&&f(1).content==="("){n+=2;var l=d(/^\($/,/^\)$/);if(l===-1)continue;for(;n<l;n++){var o=f(0);o.type==="variable"&&(h(o,"variable-input"),i.push(o.content))}n=l+1}if(c(["punctuation","property-query"])&&f(0).content==="{"&&(n++,h(f(0),"property-mutation"),0<i.length)){var a=d(/^\{$/,/^\}$/);if(a!==-1)for(var s=n;s<a;s++){var u=t[s];u.type==="variable"&&0<=i.indexOf(u.content)&&h(u,"variable-input")}}}}function f(m){return t[n+m]}function c(m,x){x=x||0;for(var w=0;w<m.length;w++){var v=f(w+x);if(!v||v.type!==m[w])return}return 1}function d(m,x){for(var w=1,v=n;v<t.length;v++){var y=t[v],g=y.content;if(y.type==="punctuation"&&typeof g=="string"){if(m.test(g))w++;else if(x.test(g)&&--w===0)return v}}return-1}function h(m,x){var w=m.alias;w?Array.isArray(w)||(m.alias=w=[w]):m.alias=w=[],w.push(x)}}),A.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,i=r.inside["interpolation-punctuation"],l=r.pattern.source;function o(c,d){if(e.languages[c])return{pattern:RegExp("((?:"+d+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:c}}}}function a(c,d,h){return c={code:c,grammar:d,language:h},e.hooks.run("before-tokenize",c),c.tokens=e.tokenize(c.code,c.grammar),e.hooks.run("after-tokenize",c),c.tokens}function s(c,d,h){var w=e.tokenize(c,{interpolation:{pattern:RegExp(l),lookbehind:!0}}),m=0,x={},w=a(w.map(function(y){if(typeof y=="string")return y;for(var g,b,y=y.content;c.indexOf((b=m++,g="___"+h.toUpperCase()+"_"+b+"___"))!==-1;);return x[g]=y,g}).join(""),d,h),v=Object.keys(x);return m=0,function y(g){for(var b=0;b<g.length;b++){if(m>=v.length)return;var N,S,T,j,L,C,R,M=g[b];typeof M=="string"||typeof M.content=="string"?(N=v[m],(R=(C=typeof M=="string"?M:M.content).indexOf(N))!==-1&&(++m,S=C.substring(0,R),L=x[N],T=void 0,(j={})["interpolation-punctuation"]=i,(j=e.tokenize(L,j)).length===3&&((T=[1,1]).push.apply(T,a(j[1],e.languages.javascript,"javascript")),j.splice.apply(j,T)),T=new e.Token("interpolation",j,r.alias,L),j=C.substring(R+N.length),L=[],S&&L.push(S),L.push(T),j&&(y(C=[j]),L.push.apply(L,C)),typeof M=="string"?(g.splice.apply(g,[b,1].concat(L)),b+=L.length-1):M.content=L)):(R=M.content,Array.isArray(R)?y(R):y([R]))}}(w),new e.Token(h,w,"language-"+h,c)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(c){return typeof c=="string"?c:Array.isArray(c)?c.map(f).join(""):f(c.content)}e.hooks.add("after-tokenize",function(c){c.language in u&&function d(h){for(var m=0,x=h.length;m<x;m++){var w,v,y,g=h[m];typeof g!="string"&&(w=g.content,Array.isArray(w)?g.type==="template-string"?(g=w[1],w.length===3&&typeof g!="string"&&g.type==="embedded-code"&&(v=f(g),g=g.alias,g=Array.isArray(g)?g[0]:g,y=e.languages[g])&&(w[1]=s(v,y,g))):d(w):typeof w!="string"&&d([w]))}}(c.tokens)})}(A),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(A),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(A),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(A),A.languages.n4js=A.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),A.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),A.languages.n4jsd=A.languages.n4js,function(e){function t(o,a){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),a)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var l=n[r],i=e.languages.javascript[l],l=(i=e.util.type(i)==="RegExp"?e.languages.javascript[l]={pattern:i}:i).inside||{};(i.inside=l)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(A),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function l(s,u){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(s,u)}i=l(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:l(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function o(s){for(var u=[],f=0;f<s.length;f++){var c=s[f],d=!1;typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?0<u.length&&u[u.length-1].tagName===a(c.content[0].content[1])&&u.pop():c.content[c.content.length-1].content!=="/>"&&u.push({tagName:a(c.content[0].content[1]),openedBraces:0}):0<u.length&&c.type==="punctuation"&&c.content==="{"?u[u.length-1].openedBraces++:0<u.length&&0<u[u.length-1].openedBraces&&c.type==="punctuation"&&c.content==="}"?u[u.length-1].openedBraces--:d=!0),(d||typeof c=="string")&&0<u.length&&u[u.length-1].openedBraces===0&&(d=a(c),f<s.length-1&&(typeof s[f+1]=="string"||s[f+1].type==="plain-text")&&(d+=a(s[f+1]),s.splice(f+1,1)),0<f&&(typeof s[f-1]=="string"||s[f-1].type==="plain-text")&&(d=a(s[f-1])+d,s.splice(f-1,1),f--),s[f]=new e.Token("plain-text",d,null,d)),c.content&&typeof c.content!="string"&&o(c.content)}}var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||o(s.tokens)})}(A),function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(A),A.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},A.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=A.languages.swift}),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(A),A.languages.c=A.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),A.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),A.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},A.languages.c.string],char:A.languages.c.char,comment:A.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:A.languages.c}}}}),A.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete A.languages.c.boolean,A.languages.objectivec=A.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete A.languages.objectivec["class-name"],A.languages.objc=A.languages.objectivec,A.languages.reason=A.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),A.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete A.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(A),A.languages.go=A.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),A.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete A.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(A),A.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},A.languages.python["string-interpolation"].inside.interpolation.inside.rest=A.languages.python,A.languages.py=A.languages.python,A.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},A.languages.webmanifest=A.languages.json;var lm={};Pb(lm,{dracula:()=>Ob,duotoneDark:()=>Mb,duotoneLight:()=>$b,github:()=>Hb,gruvboxMaterialDark:()=>vS,gruvboxMaterialLight:()=>kS,jettwaveDark:()=>cS,jettwaveLight:()=>dS,nightOwl:()=>Wb,nightOwlLight:()=>Qb,oceanicNext:()=>Yb,okaidia:()=>Xb,oneDark:()=>hS,oneLight:()=>gS,palenight:()=>Jb,shadesOfPurple:()=>tS,synthwave84:()=>rS,ultramin:()=>lS,vsDark:()=>om,vsLight:()=>sS});var Db={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Ob=Db,zb={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Mb=zb,Bb={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},$b=Bb,Ub={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Hb=Ub,Vb={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Wb=Vb,Gb={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Qb=Gb,tt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},qb={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:tt.keyword}},{types:["attr-value"],style:{color:tt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:tt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:tt.primitive}},{types:["boolean"],style:{color:tt.boolean}},{types:["tag"],style:{color:tt.tag}},{types:["string"],style:{color:tt.string}},{types:["punctuation"],style:{color:tt.string}},{types:["selector","char","builtin","inserted"],style:{color:tt.char}},{types:["function"],style:{color:tt.function}},{types:["operator","entity","url","variable"],style:{color:tt.variable}},{types:["keyword"],style:{color:tt.keyword}},{types:["atrule","class-name"],style:{color:tt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Yb=qb,Kb={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Xb=Kb,Zb={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Jb=Zb,eS={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},tS=eS,nS={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},rS=nS,iS={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},lS=iS,oS={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},om=oS,aS={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},sS=aS,uS={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},cS=uS,fS={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},dS=fS,pS={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},hS=pS,mS={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},gS=mS,yS={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},vS=yS,xS={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},kS=xS,wS=e=>P.useCallback(t=>{var n=t,{className:r,style:i,line:l}=n,o=im(n,["className","style","line"]);const a=uo(Pt({},o),{className:tm("token-line",r)});return typeof e=="object"&&"plain"in e&&(a.style=e.plain),typeof i=="object"&&(a.style=Pt(Pt({},a.style||{}),i)),a},[e]),bS=e=>{const t=P.useCallback(({types:n,empty:r})=>{if(e!=null){{if(n.length===1&&n[0]==="plain")return r!=null?{display:"inline-block"}:void 0;if(n.length===1&&r!=null)return e[n[0]]}return Object.assign(r!=null?{display:"inline-block"}:{},...n.map(i=>e[i]))}},[e]);return P.useCallback(n=>{var r=n,{token:i,className:l,style:o}=r,a=im(r,["token","className","style"]);const s=uo(Pt({},a),{className:tm("token",...i.types,l),children:i.content,style:t(i)});return o!=null&&(s.style=Pt(Pt({},s.style||{}),o)),s},[t])},SS=/\r\n|\r|\n/,_f=e=>{e.length===0?e.push({types:["plain"],content:`
69
+ `,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
70
+ `,e[0].empty=!0)},jf=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ES=e=>{const t=[[]],n=[e],r=[0],i=[e.length];let l=0,o=0,a=[];const s=[a];for(;o>-1;){for(;(l=r[o]++)<i[o];){let u,f=t[o];const d=n[o][l];if(typeof d=="string"?(f=o>0?f:["plain"],u=d):(f=jf(f,d.type),d.alias&&(f=jf(f,d.alias)),u=d.content),typeof u!="string"){o++,t.push(f),n.push(u),r.push(0),i.push(u.length);continue}const h=u.split(SS),m=h.length;a.push({types:f,content:h[0]});for(let x=1;x<m;x++)_f(a),s.push(a=[]),a.push({types:f,content:h[x]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return _f(a),s},If=ES,CS=({prism:e,code:t,grammar:n,language:r})=>P.useMemo(()=>{if(n==null)return If([t]);const i={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",i),If(i.tokens)},[t,n,r,e]),NS=(e,t)=>{const{plain:n}=e,r=e.styles.reduce((i,l)=>{const{languages:o,style:a}=l;return o&&!o.includes(t)||l.types.forEach(s=>{const u=Pt(Pt({},i[s]),a);i[s]=u}),i},{});return r.root=n,r.plain=uo(Pt({},n),{backgroundColor:void 0}),r},TS=NS,_S=({children:e,language:t,code:n,theme:r,prism:i})=>{const l=t.toLowerCase(),o=TS(r,l),a=wS(o),s=bS(o),u=i.languages[l],f=CS({prism:i,language:l,code:n,grammar:u});return e({tokens:f,className:`prism-code language-${l}`,style:o!=null?o.root:{},getLineProps:a,getTokenProps:s})},jS=e=>P.createElement(_S,uo(Pt({},e),{prism:e.prism||A,theme:e.theme||om,code:e.code,language:e.language}));/*! Bundled license information:
71
+
72
+ prismjs/prism.js:
73
+ (**
74
+ * Prism: Lightweight, robust, elegant syntax highlighting
75
+ *
76
+ * @license MIT <https://opensource.org/licenses/MIT>
77
+ * @author Lea Verou <https://lea.verou.me>
78
+ * @namespace
79
+ * @public
80
+ *)
81
+ */const IS={sh:"bash",shell:"bash",zsh:"bash",console:"bash",yml:"yaml",md:"markdown",mjs:"javascript",cjs:"javascript",node:"javascript",js:"javascript",ts:"typescript",py:"python",rs:"rust",html:"markup",xml:"markup",txt:"text"};function AS(e){if(!e)return"text";const t=String(e).toLowerCase();return IS[t]||t}function PS({code:e,language:t}){const[n,r]=P.useState(!1),i=AS(t),l=P.useCallback(()=>{var o;try{(o=navigator.clipboard)==null||o.writeText(e),r(!0),setTimeout(()=>r(!1),1400)}catch{}},[e]);return p.jsxs("div",{className:"code-block","data-testid":"code-block",children:[p.jsxs("div",{className:"code-block-head",children:[p.jsx("span",{className:"code-lang",children:i==="text"?"code":i}),p.jsx("button",{className:"code-copy",onClick:l,title:"Copy to clipboard",children:n?"✓ copied":"Copy"})]}),p.jsx(jS,{theme:lm.vsDark,code:e,language:i,children:({tokens:o,getLineProps:a,getTokenProps:s})=>p.jsx("pre",{className:"code-block-body",children:o.map((u,f)=>p.jsx("div",{...a({line:u}),children:u.map((c,d)=>p.jsx("span",{...s({token:c})},d))},f))})})]})}const LS={pre({children:e}){const t=Array.isArray(e)?e[0]:e,n=(t==null?void 0:t.props)||{},r=/language-([\w-]+)/.exec(n.className||""),i=n.children,l=(Array.isArray(i)?i.join(""):String(i??"")).replace(/\n+$/,"");return p.jsx(PS,{code:l,language:r?r[1]:""})},code({children:e}){return p.jsx("code",{className:"md-code-inline",children:e})},a({href:e,children:t}){return p.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t})},table({children:e}){return p.jsx("div",{className:"md-table-wrap",children:p.jsx("table",{children:e})})}};function FS({text:e}){return p.jsx("div",{className:"markdown",children:p.jsx(dw,{remarkPlugins:[Cb],components:LS,children:e||""})})}const RS=P.memo(FS);class DS{diff(t,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);const l=this.castInput(t,r),o=this.castInput(n,r),a=this.removeEmpty(this.tokenize(l,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,i)}diffWithOptionsObj(t,n,r,i){var l;const o=y=>{if(y=this.postProcess(y,r),i){setTimeout(function(){i(y)},0);return}else return y},a=n.length,s=t.length;let u=1,f=a+s;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));const c=(l=r.timeout)!==null&&l!==void 0?l:1/0,d=Date.now()+c,h=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(h[0],n,t,0,r);if(h[0].oldPos+1>=s&&m+1>=a)return o(this.buildValues(h[0].lastComponent,n,t));let x=-1/0,w=1/0;const v=()=>{for(let y=Math.max(x,-u);y<=Math.min(w,u);y+=2){let g;const b=h[y-1],N=h[y+1];b&&(h[y-1]=void 0);let S=!1;if(N){const j=N.oldPos-y;S=N&&0<=j&&j<a}const T=b&&b.oldPos+1<s;if(!S&&!T){h[y]=void 0;continue}if(!T||S&&b.oldPos<N.oldPos?g=this.addToPath(N,!0,!1,0,r):g=this.addToPath(b,!1,!0,1,r),m=this.extractCommon(g,n,t,y,r),g.oldPos+1>=s&&m+1>=a)return o(this.buildValues(g.lastComponent,n,t))||!0;h[y]=g,g.oldPos+1>=s&&(w=Math.min(w,y-1)),m+1>=a&&(x=Math.max(x,y+1))}u++};if(i)(function y(){setTimeout(function(){if(u>f||Date.now()>d)return i(void 0);v()||y()},0)})();else for(;u<=f&&Date.now()<=d;){const y=v();if(y)return y}}addToPath(t,n,r,i,l){const o=t.lastComponent;return o&&!l.oneChangePerToken&&o.added===n&&o.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:r,previousComponent:o.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:o}}}extractCommon(t,n,r,i,l){const o=n.length,a=r.length;let s=t.oldPos,u=s-i,f=0;for(;u+1<o&&s+1<a&&this.equals(r[s+1],n[u+1],l);)u++,s++,f++,l.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return f&&!l.oneChangePerToken&&(t.lastComponent={count:f,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=s,u}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){const i=[];let l;for(;t;)i.push(t),l=t.previousComponent,delete t.previousComponent,t=l;i.reverse();const o=i.length;let a=0,s=0,u=0;for(;a<o;a++){const f=i[a];if(f.removed)f.value=this.join(r.slice(u,u+f.count)),u+=f.count;else{if(!f.added&&this.useLongestToken){let c=n.slice(s,s+f.count);c=c.map(function(d,h){const m=r[u+h];return m.length>d.length?m:d}),f.value=this.join(c)}else f.value=this.join(n.slice(s,s+f.count));s+=f.count,f.added||(u+=f.count)}}return i}}class OS extends DS{constructor(){super(...arguments),this.tokenize=BS}equals(t,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!t.includes(`
82
+ `))&&(t=t.trim()),(!r.newlineIsToken||!n.includes(`
83
+ `))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(t.endsWith(`
84
+ `)&&(t=t.slice(0,-1)),n.endsWith(`
85
+ `)&&(n=n.slice(0,-1))),super.equals(t,n,r)}}const zS=new OS;function MS(e,t,n){return zS.diff(e,t,n)}function BS(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
86
+ `));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){const l=r[i];i%2&&!t.newlineIsToken?n[n.length-1]+=l:n.push(l)}return n}function $S(e,t){const n=MS(e??"",t??""),r=[];for(const i of n){const l=i.added?"add":i.removed?"del":"ctx",o=i.value.split(`
87
+ `);o.length>1&&o[o.length-1]===""&&o.pop();for(const a of o)r.push({type:l,text:a})}return r}const US={add:"+",del:"−",ctx:" "};function ul({oldText:e,newText:t,maxRows:n=80}){const r=$S(e,t),i=r.reduce((a,s)=>a+(s.type==="add"?1:0),0),l=r.reduce((a,s)=>a+(s.type==="del"?1:0),0),o=r.slice(0,n);return p.jsxs("div",{className:"diff-view","data-testid":"diff-view",children:[p.jsxs("div",{className:"diff-stat",children:[p.jsxs("span",{className:"diff-stat-add",children:["+",i]}),p.jsxs("span",{className:"diff-stat-del",children:["−",l]})]}),p.jsx("pre",{className:"diff-body",children:o.map((a,s)=>p.jsxs("div",{className:`diff-line ${a.type}`,children:[p.jsx("span",{className:"diff-gutter",children:US[a.type]}),p.jsx("span",{className:"diff-text",children:a.text===""?" ":a.text})]},s))}),r.length>n&&p.jsxs("div",{className:"diff-more",children:["+",r.length-n," more lines"]})]})}function Af(e){if(!e)return"";const t=String(e).split(/[\\/]+/).filter(Boolean);return t.length>2?"…/"+t.slice(-2).join("/"):t.join("/")}function HS(e){if(!e||typeof e!="object")return"";for(const t of Object.values(e))if(typeof t=="string"&&t)return t;return""}const VS={Read:{icon:"📄",verb:"Read"},Edit:{icon:"✏️",verb:"Edit"},MultiEdit:{icon:"✏️",verb:"Edit"},Write:{icon:"📝",verb:"Write"},NotebookEdit:{icon:"📓",verb:"Edit notebook"},Bash:{icon:"▶",verb:"Run"},PowerShell:{icon:"▶",verb:"Run"},Glob:{icon:"🔍",verb:"Find"},Grep:{icon:"🔍",verb:"Search"},Task:{icon:"🤖",verb:"Agent"},WebFetch:{icon:"🌐",verb:"Fetch"},WebSearch:{icon:"🌐",verb:"Web search"},Skill:{icon:"✨",verb:"Skill"},TodoWrite:{icon:"☑",verb:"Plan"}};function WS(e,t){if(!t)return"";switch(e){case"Read":case"Edit":case"MultiEdit":case"Write":return Af(t.file_path);case"NotebookEdit":return Af(t.notebook_path);case"Bash":case"PowerShell":return t.command||"";case"Glob":case"Grep":return t.pattern||"";case"Task":return t.description||t.subagent_type||"";case"WebFetch":return t.url||"";case"WebSearch":return t.query||"";case"Skill":return t.command||t.name||"";default:return HS(t)}}function GS({name:e,input:t}){return(t==null?void 0:t._raw)!=null?p.jsx("pre",{className:"tool-raw",children:String(t._raw)}):e==="Edit"?p.jsx(ul,{oldText:t.old_string||"",newText:t.new_string||""}):e==="MultiEdit"&&Array.isArray(t.edits)?p.jsx(p.Fragment,{children:t.edits.map((n,r)=>p.jsx(ul,{oldText:n.old_string||"",newText:n.new_string||""},r))}):e==="Write"?p.jsx(ul,{oldText:"",newText:t.content||""}):(e==="Bash"||e==="PowerShell")&&t.description?p.jsx("div",{className:"tool-desc",children:t.description}):null}function QS({content:e,isError:t}){if(e==null)return null;const n=String(e);if(!n.trim()&&!t)return null;const i=n.length>4e3?n.slice(0,4e3)+`
88
+ … (truncated)`:n,l=n.split(`
89
+ `).find(o=>o.trim())||(t?"error":"done");return p.jsxs("details",{className:`tool-result ${t?"err":""}`,open:t,children:[p.jsxs("summary",{children:[t?"✗ ":"",l.slice(0,140)]}),p.jsx("pre",{children:i})]})}function qS({block:e}){const{name:t,input:n={},result:r,done:i,isError:l}=e,o=VS[t]||{icon:"⚙",verb:t},a=WS(t,n),s=i?l?"error":"done":"running";return p.jsxs("div",{className:`tool-card ${s}`,"data-testid":"tool-card","data-tool":t,children:[p.jsxs("div",{className:"tool-head",children:[p.jsx("span",{className:"tool-icon",children:o.icon}),p.jsx("span",{className:"tool-verb",children:o.verb}),a&&p.jsx("code",{className:"tool-target",children:a}),t==="Edit"&&n.replace_all&&p.jsx("span",{className:"tool-tag",children:"all"}),p.jsx("span",{className:"tool-status","data-status":s,children:s==="running"?p.jsx("span",{className:"tool-spinner","aria-label":"running"}):s==="error"?"✗":"✓"})]}),p.jsx(GS,{name:t,input:n}),p.jsx(QS,{content:r,isError:l})]})}const qi="wild-workspace.chat.v2";function YS(e,t){var i;const n=e.blocks?e.blocks.slice():[],r=n[n.length-1];switch(t.type){case"text":return r&&r.type==="text"?n[n.length-1]={...r,text:r.text+t.text}:n.push({type:"text",text:t.text}),{...e,blocks:n};case"thinking":return r&&r.type==="thinking"?n[n.length-1]={...r,text:r.text+t.text}:n.push({type:"thinking",text:t.text}),{...e,blocks:n};case"tool-use":return n.push({type:"tool",id:t.id,name:t.name,input:t.input||{},done:!1}),{...e,blocks:n};case"tool-result":{const l=n.findIndex(o=>o.type==="tool"&&o.id===t.id);return l>=0&&(n[l]={...n[l],result:t.content,isError:t.isError,done:!0}),{...e,blocks:n}}case"usage":return{...e,usage:t.usage,costUsd:(i=t.usage)==null?void 0:i.cost_usd,durationMs:t.durationMs};case"error":return n.push({type:"error",text:t.message||"agent error"}),{...e,blocks:n};default:return e}}function Pf(e,t,n){const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]=YS(i[r],n),i}function KS(e,t,n){if(!n||!n.trim())return e;const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]={...i[r],stderr:(i[r].stderr||"")+n},i}function XS({role:e,capabilities:t,mode:n,token:r}){const[i,l]=P.useState(()=>{try{const T=localStorage.getItem(qi);if(T)return JSON.parse(T)}catch{}return[]}),[o,a]=P.useState(null),[s,u]=P.useState(!1),[f,c]=P.useState(""),[d,h]=P.useState(!1),m=P.useRef(null),x=P.useRef(null),w=P.useRef(!0);P.useEffect(()=>{try{localStorage.setItem(qi,JSON.stringify(i.slice(-120)))}catch{}},[i]),P.useEffect(()=>{const T=x.current;T&&w.current&&(T.scrollTop=T.scrollHeight)},[i]);function v(){const T=x.current;T&&(w.current=T.scrollHeight-T.scrollTop-T.clientHeight<90)}P.useEffect(()=>{let T=!1,j=0,L=null,C=null;const R=()=>{if(T)return;const M=window.location.protocol==="https:"?"wss":"ws",U=new URL(`${M}://${window.location.host}/ws/chat`);r&&U.searchParams.set("t",r),C=new WebSocket(U.toString()),m.current=C,C.onopen=()=>{j=0,h(!0)},C.onmessage=$=>{let F;try{F=JSON.parse($.data)}catch{return}if(F.type==="chunk")l(G=>Pf(G,F.messageId,F.chunk));else if(F.type==="stderr")l(G=>KS(G,F.messageId,F.text));else if(F.type==="end")a(null),u(!1);else if(F.type==="error")a(null),u(!1),F.messageId?l(G=>Pf(G,F.messageId,{type:"error",message:F.message||"agent error"})):l(G=>[...G,{id:`err-${Date.now()}`,role:"error",text:F.message||"agent error"}]);else if(F.type==="turn-begin")l(G=>{if(G.some(D=>D.id===F.messageId))return G;const Z=[];return F.userText&&Z.push({id:`u-${F.messageId}`,role:"user",text:F.userText}),F.note&&Z.push({id:`note-${F.messageId}`,role:"system",text:F.note}),Z.push({id:F.messageId,role:"agent",blocks:[]}),[...G,...Z]}),a(F.messageId),u(!0);else if(F.type==="reset"){l([]),a(null),u(!1);try{localStorage.removeItem(qi)}catch{}}},C.onerror=()=>u(!1),C.onclose=()=>{if(h(!1),u(!1),a(null),T)return;const $=Math.min(1e3*2**j,1e4);j+=1,L=setTimeout(R,$)}};return R(),()=>{T=!0,clearTimeout(L);try{C==null||C.close()}catch{}}},[r]);function y(){if(!t.chatWrite)return;const T=f.trim();if(!T||s)return;const j=m.current,L=j==null?void 0:j.readyState;if(!j||L!==WebSocket.OPEN&&L!==WebSocket.CONNECTING){l(M=>[...M,{id:`err-${Date.now()}`,role:"error",text:"reconnecting to your agent — try again in a few seconds"}]);return}const C=`m-${Date.now()}`;w.current=!0,l(M=>[...M,{id:`u-${C}`,role:"user",text:T},{id:C,role:"agent",blocks:[]}]),a(C),u(!0),c("");const R=JSON.stringify({type:"send",text:T,mode:n,messageId:C});L===WebSocket.OPEN?j.send(R):j.addEventListener("open",()=>{try{j.send(R)}catch{}},{once:!0})}function g(){var T;((T=m.current)==null?void 0:T.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"cancel"})),u(!1),a(null)}function b(){var T;((T=m.current)==null?void 0:T.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"reset"})),l([]),a(null),u(!1);try{localStorage.removeItem(qi)}catch{}}function N(T){T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),y())}const S=i.length===0;return p.jsxs(p.Fragment,{children:[!S&&t.chatWrite&&p.jsx("div",{className:"chat-toolbar","data-testid":"chat-toolbar",children:p.jsx("button",{className:"chat-newbtn",onClick:b,disabled:s,"data-testid":"new-chat-btn",title:"Start a fresh conversation — the agent forgets the current thread",children:"+ New chat"})}),p.jsxs("div",{className:"chat-messages",ref:x,onScroll:v,"data-testid":"chat-messages",children:[S&&p.jsx(nE,{role:e,connected:d}),i.map(T=>p.jsx(ZS,{message:T,streaming:T.id===o},T.id))]}),t.chatWrite&&p.jsxs("div",{className:"chat-input","data-testid":"chat-input",children:[p.jsx("textarea",{"data-testid":"chat-textarea",placeholder:e==="client"?"Describe the change you’d like…":"Ask the agent to build, fix, or explain something — Enter to send",value:f,onChange:T=>c(T.target.value),onKeyDown:N,disabled:s,rows:2}),s?p.jsx("button",{onClick:g,"data-testid":"cancel-btn",children:"Stop"}):p.jsx("button",{className:"primary send-btn",onClick:y,disabled:!f.trim(),"data-testid":"send-btn",children:"Send"})]}),!t.chatWrite&&e==="viewer"&&p.jsx("div",{className:"chat-readonly-banner",children:"You’re viewing a shared workspace (read-only)."})]})}function ZS({message:e,streaming:t}){if(e.role==="user")return p.jsx("div",{className:"chat-msg user","data-testid":"chat-msg-user",children:p.jsx("div",{className:"msg-plain",children:e.text})});if(e.role==="system")return p.jsx("div",{className:"chat-msg system","data-testid":"chat-msg-system",children:e.text});if(e.role==="error")return p.jsxs("div",{className:"chat-msg error","data-testid":"chat-msg-error",children:["⚠ ",e.text]});const n=e.blocks||[],r=n[n.length-1],i=t&&(r==null?void 0:r.type)==="text"?n.length-1:-1,l=t&&(n.length===0||(r==null?void 0:r.type)==="tool"&&r.done);return p.jsxs("div",{className:"chat-msg agent","data-testid":"chat-msg-agent",children:[n.map((o,a)=>p.jsx(JS,{block:o,cursor:a===i},o.id||`${o.type}-${a}`)),l&&p.jsx(eE,{}),e.usage&&p.jsx(tE,{usage:e.usage,costUsd:e.costUsd,durationMs:e.durationMs}),e.stderr&&p.jsxs("details",{className:"stderr-block",children:[p.jsx("summary",{children:"stderr"}),p.jsx("pre",{children:e.stderr})]})]})}function JS({block:e,cursor:t}){return e.type==="text"?p.jsxs("div",{className:"agent-text",children:[p.jsx(RS,{text:e.text}),t&&p.jsx("span",{className:"stream-cursor"})]}):e.type==="thinking"?p.jsxs("details",{className:"thinking-block",children:[p.jsx("summary",{children:"💭 Thought process"}),p.jsx("div",{className:"thinking-body",children:e.text})]}):e.type==="tool"?p.jsx(qS,{block:e}):e.type==="error"?p.jsxs("div",{className:"agent-error",children:["⚠ ",e.text]}):null}function eE(){return p.jsxs("div",{className:"agent-working","data-testid":"agent-working",children:[p.jsxs("span",{className:"dots",children:[p.jsx("i",{}),p.jsx("i",{}),p.jsx("i",{})]}),"working"]})}function tE({usage:e,costUsd:t,durationMs:n}){const r=typeof t=="number"?t:e==null?void 0:e.cost_usd;return p.jsxs("div",{className:"usage-footer","data-testid":"usage-footer",children:[(e==null?void 0:e.output_tokens)!=null&&p.jsxs("span",{title:"output tokens",children:["↑ ",e.output_tokens.toLocaleString()]}),typeof r=="number"&&r>0&&p.jsxs("span",{title:"cost (USD)",children:["$",r.toFixed(4)]}),n!=null&&p.jsxs("span",{children:[(n/1e3).toFixed(1),"s"]})]})}function nE({role:e,connected:t}){return p.jsxs("div",{className:"chat-empty","data-testid":"chat-empty",children:[p.jsx("div",{className:"chat-empty-mark",children:"✦"}),p.jsx("p",{className:"chat-empty-title",children:e==="client"?"Describe what you’d like changed":"Build something by chatting"}),p.jsx("p",{className:"chat-empty-sub",children:e==="client"?"The team’s AI agent will pick it up and you’ll see it here.":"The agent can read, write, and run code in this workspace. It streams back here — edits show up as diffs."}),e!=="client"&&p.jsxs("div",{className:"chat-empty-hints",children:[p.jsx("span",{children:"“What’s in this workspace?”"}),p.jsx("span",{children:"“Build a landing page in /web”"}),p.jsx("span",{children:"“Fix the failing test”"})]}),!t&&p.jsx("p",{className:"chat-empty-warn",children:"connecting to the agent bridge…"})]})}function rE({onCollapse:e,workspaceRoot:t,onOpen:n}){const[r,i]=P.useState(null),[l,o]=P.useState(null),[a,s]=P.useState(new Set);P.useEffect(()=>{fetch("/api/workspace/tree").then(c=>c.json()).then(c=>{if(c.error){o(c.error);return}i(c.entries||[])}).catch(c=>o(c.message||String(c)))},[]);function u(c){s(d=>{const h=new Set(d);return h.has(c)?h.delete(c):h.add(c),h})}function f(c,d=0){var x;const h=c.type==="dir",m=a.has(c.path);return p.jsxs("div",{children:[p.jsxs("div",{className:`tree-node ${h?"dir":""}`,onClick:()=>h?u(c.path):n==null?void 0:n(c.path),style:{paddingLeft:d*12+4},"data-testid":`tree-node-${c.path}`,children:[p.jsx("span",{style:{width:12,display:"inline-block"},children:h?m?"▾":"▸":" "}),p.jsx("span",{children:c.name})]}),h&&m&&((x=c.children)==null?void 0:x.map(w=>f(w,d+1)))]},c.path)}return p.jsxs("aside",{className:"tree-pane","data-testid":"file-tree",children:[p.jsxs("div",{className:"tree-header",children:[p.jsx("span",{children:"Files"}),p.jsx("button",{onClick:e,style:{padding:"2px 6px",fontSize:11},children:"⟨"})]}),p.jsxs("div",{className:"tree-list",children:[l&&p.jsx("div",{style:{color:"var(--error)",padding:4},children:l}),!r&&!l&&p.jsxs("div",{style:{color:"var(--text-muted)",padding:4},children:[p.jsx("span",{className:"spinner"})," loading…"]}),(r==null?void 0:r.length)===0&&p.jsx("div",{style:{color:"var(--text-muted)",padding:4},children:"Empty workspace"}),r==null?void 0:r.map(c=>f(c,0))]})]})}const iE=[{id:"preview",label:"Preview"},{id:"code",label:"Code"},{id:"logs",label:"Logs"},{id:"deploy",label:"Deploy"}];function lE({focus:e,workspaceRoot:t}){const[n,r]=P.useState("preview"),[i,l]=P.useState([]),[o,a]=P.useState(null),[s,u]=P.useState("3000"),[f,c]=P.useState(null);return P.useEffect(()=>{e&&(r("code"),fetch(`/api/workspace/file?path=${encodeURIComponent(e)}`).then(d=>d.json()).then(d=>c(d)))},[e]),P.useEffect(()=>{if(n!=="preview")return;let d=!1;async function h(){var v;const x=await fetch("/api/preview/ports").catch(()=>null);if(!x||d)return;const w=await x.json();d||(l(w.ports||[]),!o&&((v=w.ports)==null?void 0:v.length)>0&&a(w.ports[0].port))}h();const m=setInterval(h,4e3);return()=>{d=!0,clearInterval(m)}},[n,o]),p.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[p.jsxs("div",{className:"preview-tabs","data-testid":"preview-tabs",children:[iE.map(d=>p.jsx("button",{className:n===d.id?"active":"",onClick:()=>r(d.id),"data-testid":`preview-tab-${d.id}`,children:d.label},d.id)),p.jsx("span",{style:{flex:1}}),n==="preview"&&p.jsxs("div",{className:"preview-port-input",children:[p.jsx("input",{value:s,onChange:d=>u(d.target.value),placeholder:"port","data-testid":"preview-port-input"}),p.jsx("button",{onClick:()=>a(Number(s)),"data-testid":"preview-port-go",children:"Load"})]})]}),p.jsxs("div",{className:"preview-body",children:[n==="preview"&&(o?p.jsx("iframe",{className:"preview-iframe",src:`http://localhost:${o}`,title:`localhost:${o}`,"data-testid":"preview-iframe"},o):p.jsxs("div",{className:"preview-empty","data-testid":"preview-empty",children:[p.jsxs("p",{style:{maxWidth:320,lineHeight:1.6},children:["No dev server detected yet. Ask the agent to start one (e.g. ",p.jsx("code",{children:"bun dev"}),", ",p.jsx("code",{children:"npm run dev"}),"), then I’ll auto-detect it."]}),i.length>0&&p.jsxs("p",{style:{fontSize:12},children:["Detected: ",i.map(d=>`:${d.port}`).join(", ")]})]})),n==="code"&&p.jsx("div",{className:"preview-code-view","data-testid":"preview-code",children:f?p.jsxs(p.Fragment,{children:[p.jsxs("div",{style:{color:"var(--text-muted)",fontSize:11,marginBottom:8},children:[e," (",f.size," bytes",f.truncated?", truncated":"",")"]}),p.jsx("pre",{children:f.content})]}):p.jsx("div",{className:"preview-empty",children:"Click a file in the tree to inspect it."})}),n==="logs"&&p.jsx("div",{className:"preview-empty","data-testid":"preview-logs",children:"Logs panel — wires up to the agent's stderr stream and dev-server stdout (v1.x)."}),n==="deploy"&&p.jsxs("div",{className:"preview-empty","data-testid":"preview-deploy",children:["Deploy — Cloudflare Pages + custom-domain wizard ships in v1.1.",p.jsx("br",{}),"For now: run ",p.jsx("code",{children:"npx wrangler pages deploy"})," in the terminal."]})]})]})}function oE({onClose:e}){const[t,n]=P.useState("viewer"),[r,i]=P.useState(24),[l,o]=P.useState(""),[a,s]=P.useState(null),[u,f]=P.useState([]),[c,d]=P.useState(null),[h,m]=P.useState(!1);P.useEffect(()=>{x()},[]);async function x(){const g=await fetch("/api/share").catch(()=>null);if(!g||!g.ok)return;const b=await g.json();f(b.tokens||[])}async function w(){d(null),m(!0);try{const g=await fetch("/api/share",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({role:t,ttlSeconds:Math.max(60,Number(r)*3600),label:l})}),b=await g.json();if(!g.ok)throw new Error(b.error||`HTTP ${g.status}`);s(b),x()}catch(g){d(g.message||String(g))}finally{m(!1)}}async function v(g){await fetch(`/api/share/${encodeURIComponent(g)}`,{method:"DELETE"}),x()}async function y(g){try{await navigator.clipboard.writeText(g)}catch{}}return p.jsx("div",{className:"modal-backdrop",onClick:e,children:p.jsxs("div",{className:"modal",onClick:g=>g.stopPropagation(),"data-testid":"share-dialog",children:[p.jsx("h2",{children:"Share workspace"}),p.jsx("p",{className:"muted",children:"Issue a token-protected URL. Anyone with the link opens this workspace in their browser with the role you choose."}),p.jsx("label",{children:"Role"}),p.jsx("div",{className:"row",children:p.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[p.jsx("input",{type:"radio",name:"role",value:"viewer",checked:t==="viewer",onChange:()=>n("viewer"),"data-testid":"share-role-viewer"}),p.jsx("span",{children:"Viewer — read-only chat + preview"})]})}),p.jsx("div",{className:"row",children:p.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[p.jsx("input",{type:"radio",name:"role",value:"client",checked:t==="client",onChange:()=>n("client"),"data-testid":"share-role-client"}),p.jsx("span",{children:"Client — chat + request changes (for AI-installer GTM)"})]})}),p.jsxs("div",{className:"row",children:[p.jsxs("div",{children:[p.jsx("label",{children:"Expires in"}),p.jsx("input",{type:"number",min:"1",value:r,onChange:g=>i(g.target.value),style:{width:80,background:"var(--bg)",color:"var(--text)",border:"1px solid var(--border)",padding:"4px 8px",borderRadius:6},"data-testid":"share-ttl"}),p.jsx("span",{style:{marginLeft:6,color:"var(--text-muted)",fontSize:12},children:"hours"})]}),p.jsxs("div",{style:{flex:1},children:[p.jsx("label",{children:"Label (optional)"}),p.jsx("input",{value:l,onChange:g=>o(g.target.value),placeholder:"e.g. Mel preview",style:{width:"100%",background:"var(--bg)",color:"var(--text)",border:"1px solid var(--border)",padding:"4px 8px",borderRadius:6},"data-testid":"share-label"})]})]}),c&&p.jsx("div",{style:{color:"var(--error)",fontSize:12,marginBottom:8},"data-testid":"share-error",children:c}),a&&p.jsxs(p.Fragment,{children:[p.jsx("label",{children:"Share URL"}),p.jsx("div",{className:"url-output","data-testid":"share-url",children:a.shareUrl}),p.jsxs("div",{style:{display:"flex",gap:8},children:[p.jsx("button",{onClick:()=>y(a.shareUrl),"data-testid":"share-copy",children:"Copy"}),p.jsx("a",{href:a.shareUrl,target:"_blank",rel:"noreferrer",children:p.jsx("button",{children:"Open"})})]})]}),u.length>0&&p.jsxs("div",{style:{marginTop:16},children:[p.jsx("label",{children:"Active share tokens"}),p.jsx("div",{style:{maxHeight:140,overflow:"auto",border:"1px solid var(--border)",borderRadius:6},children:u.map(g=>p.jsxs("div",{style:{padding:"6px 10px",borderBottom:"1px solid var(--border)",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:12},"data-testid":`active-token-${g.sub}`,children:[p.jsxs("div",{children:[p.jsx("strong",{children:g.label||g.role})," ",p.jsxs("span",{style:{color:"var(--text-muted)"},children:["(",g.role,", expires ",new Date(g.exp*1e3).toLocaleString(),")"]})]}),p.jsx("button",{onClick:()=>v(g.sub),style:{fontSize:11},"data-testid":`revoke-${g.sub}`,children:"Revoke"})]},g.sub))})]}),p.jsxs("div",{className:"actions",children:[p.jsx("button",{onClick:e,"data-testid":"share-close",children:"Close"}),p.jsx("button",{className:"primary",onClick:w,disabled:h,"data-testid":"share-issue",children:h?p.jsx("span",{className:"spinner"}):"Issue URL"})]})]})})}function aE({onClose:e,token:t}){var R,M;const[n,r]=P.useState(null),[i,l]=P.useState(!1),[o,a]=P.useState(null),[s,u]=P.useState(!1),[f,c]=P.useState(""),[d,h]=P.useState(""),[m,x]=P.useState(168),[w,v]=P.useState(null);P.useEffect(()=>{g()},[]);function y(U,$={}){const F={...$.headers||{}};return t&&(F.Authorization=`Bearer ${t}`),fetch(U,{...$,headers:F})}async function g(){a(null),l(!1);const U=await y("/api/sync/status").catch(()=>null);if(!U||!U.ok){l(!0);return}r(await U.json())}async function b(U){a(null),u(!0);try{await U()}catch($){a($.message||String($))}finally{u(!1)}}const N=()=>b(async()=>{const U=await y("/api/sync/pair",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({inviteCode:f})}),$=await U.json();if(!U.ok)throw new Error($.error||`HTTP ${U.status}`);c(""),await g()}),S=()=>b(async()=>{var F,G;const U=await y("/api/sync/invite",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectCode:(G=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:G.projectId,displayName:d,expiresHours:Math.max(1,Number(m)||168)})}),$=await U.json();if(!U.ok)throw new Error($.error||`HTTP ${U.status}`);v($.invite)}),T=()=>b(async()=>{var F,G;const U=await y("/api/sync/detach",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({workspaceId:(G=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:G.workspaceId})}),$=await U.json();if(!U.ok)throw new Error($.error||`HTTP ${U.status}`);v(null),await g()});async function j(U){try{await navigator.clipboard.writeText(U)}catch{}}const L=((R=n==null?void 0:n.workspaces)==null?void 0:R[0])||null,C=!!n&&!((M=n.daemon)!=null&&M.running);return p.jsx("div",{className:"modal-backdrop",onClick:e,children:p.jsxs("div",{className:"modal",onClick:U=>U.stopPropagation(),"data-testid":"sync-dialog",children:[p.jsx("h2",{children:"Collaborate on this folder"}),p.jsx("p",{className:"muted",children:"bmo-sync keeps this workspace folder identical across machines — yours and a collaborator's. Both of you edit; changes flow both ways. Like a shared drive, but built for workspaces."}),!n&&!i&&p.jsxs("div",{className:"muted",children:[p.jsx("span",{className:"spinner"})," Checking sync status…"]}),i&&p.jsxs("div",{className:"sync-state warn","data-testid":"sync-load-failed",children:[p.jsx("strong",{children:"Couldn't load sync status."}),p.jsx("span",{className:"muted",children:"The workspace server didn't answer. Try again."})]}),C&&p.jsxs("div",{className:"sync-state warn","data-testid":"sync-daemon-down",children:[p.jsx("strong",{children:"The bmo-sync daemon isn't running."}),p.jsx("span",{className:"muted",children:"Folder sharing needs the background sync service running on this machine. Start it, then recheck."})]}),n&&!C&&!L&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sync-state","data-testid":"sync-unpaired",children:[p.jsxs("strong",{children:[n.workspaceName," isn't shared yet."]}),p.jsx("span",{className:"muted",children:"Got an invite code from a collaborator? Paste it to sync this folder with theirs."})]}),p.jsx("label",{children:"Invite code"}),p.jsxs("div",{className:"row",children:[p.jsx("input",{className:"sync-input",style:{flex:1},value:f,onChange:U=>c(U.target.value),placeholder:"e.g. CAFE-MILANO-A8X3","data-testid":"sync-invite-input"}),p.jsx("button",{className:"primary",onClick:N,disabled:s||!f.trim(),"data-testid":"sync-join",children:s?p.jsx("span",{className:"spinner"}):"Connect folder"})]})]}),n&&!C&&L&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sync-state ok","data-testid":"sync-paired",children:[p.jsxs("strong",{children:["✓ Synced — ",L.projectName||L.projectId]}),p.jsxs("span",{className:"muted",children:["This folder is shared. Edits sync both ways automatically",L.conflictCount?` · ${L.conflictCount} conflict${L.conflictCount>1?"s":""} resolved`:"","."]})]}),n.canInvite?p.jsxs(p.Fragment,{children:[p.jsx("label",{children:"Invite a collaborator"}),p.jsxs("div",{className:"row",children:[p.jsx("input",{className:"sync-input",style:{flex:1},value:d,onChange:U=>h(U.target.value),placeholder:"Their name — e.g. Mel","data-testid":"sync-invite-name"}),p.jsx("input",{className:"sync-input",style:{width:64},type:"number",min:"1",value:m,onChange:U=>x(U.target.value),title:"Invite expires in (hours)"}),p.jsx("button",{onClick:S,disabled:s,"data-testid":"sync-create-invite",children:s?p.jsx("span",{className:"spinner"}):"Create invite"})]}),w&&p.jsxs(p.Fragment,{children:[p.jsx("label",{children:"Send this code to your collaborator"}),p.jsx("div",{className:"url-output","data-testid":"sync-invite-code",children:w.code}),p.jsxs("div",{className:"row",style:{marginBottom:0},children:[p.jsx("button",{onClick:()=>j(w.code),"data-testid":"sync-copy-code",children:"Copy code"}),w.expiresAt&&p.jsxs("span",{className:"muted",style:{margin:0},children:["expires ",new Date(w.expiresAt*1e3).toLocaleDateString()]})]})]})]}):p.jsxs("p",{className:"muted","data-testid":"sync-no-invite",children:["Inviting from here needs a bmo-sync admin key (set"," ",p.jsx("span",{className:"md-code-inline",children:"BMO_SYNC_ADMIN_KEY"}),"). Without it, anyone you've already invited can still join with their own code."]})]}),o&&p.jsx("div",{style:{color:"var(--error)",fontSize:12,marginTop:8},"data-testid":"sync-error",children:o}),p.jsxs("div",{className:"actions",children:[(C||i)&&p.jsx("button",{onClick:g,disabled:s,"data-testid":"sync-recheck",children:"Recheck"}),L&&!C&&p.jsx("button",{onClick:T,disabled:s,"data-testid":"sync-disconnect",children:"Disconnect"}),p.jsx("button",{onClick:e,"data-testid":"sync-close",children:"Close"})]})]})})}function sE({alert:e,onDismiss:t}){if(!e)return null;const n=e.kind==="fatal";return p.jsxs("div",{className:"conflict-banner","data-testid":"conflict-banner",role:"status",children:[p.jsx("span",{className:"ico",children:n?"⛔":"⚠️"}),n?p.jsxs("span",{children:[p.jsx("strong",{children:"Sync stopped."})," ",e.message||"The sync engine hit a fatal error."," Reconnect from the Collaborate dialog."]}):p.jsxs("span",{children:[p.jsx("strong",{children:"Sync conflict"})," on ",p.jsx("code",{children:e.path||"a file"})," — bmo-sync kept ",p.jsx("strong",{children:e.resolution||"the latest edit"}),e.user?` (also edited by ${e.user})`:"","."]}),p.jsx("span",{className:"spacer"}),p.jsx("button",{onClick:t,"data-testid":"conflict-dismiss",children:"Dismiss"})]})}function uE({urlToken:e,onClose:t}){const[n,r]=P.useState([]),[i,l]=P.useState(!0),[o,a]=P.useState(null),[s,u]=P.useState(null),[f,c]=P.useState({}),[d,h]=P.useState(null),m=e?{Authorization:`Bearer ${e}`}:{};function x(){l(!0),fetch("/api/conflicts",{headers:m}).then(g=>g.ok?g.json():{conflicts:[]}).then(g=>{r(Array.isArray(g==null?void 0:g.conflicts)?g.conflicts:[]),a(null)}).catch(g=>a(String((g==null?void 0:g.message)||g))).finally(()=>l(!1))}P.useEffect(x,[]);function w(g){return`${g.workspaceId}:${g.path}`}async function v(g){const b=w(g);if(f[b])return;const N=new URL("/api/conflicts/view",window.location.origin);N.searchParams.set("workspaceId",g.workspaceId),N.searchParams.set("path",g.path);const S=await fetch(N.toString(),{headers:m});if(!S.ok){a(`Could not load ${g.path} (HTTP ${S.status})`);return}const T=await S.json().catch(()=>null);T&&c(j=>({...j,[b]:{mine:Lf(T.mine),theirs:Lf(T.theirs),conflict:T.conflict}}))}async function y(g,b){const N=w(g);h(N);try{const S=await fetch("/api/conflicts/resolve",{method:"POST",headers:{"content-type":"application/json",...m},body:JSON.stringify({workspaceId:g.workspaceId,path:g.path,action:b})});if(!S.ok){const T=await S.json().catch(()=>({}));a((T==null?void 0:T.error)||`Resolve failed (HTTP ${S.status}).`);return}x(),u(null)}finally{h(null)}}return p.jsxs("div",{className:"conflict-panel","data-testid":"conflict-panel",role:"dialog","aria-label":"Open conflicts",children:[p.jsxs("header",{className:"conflict-panel-header",children:[p.jsx("strong",{children:"Open conflicts"})," ",p.jsxs("span",{className:"muted",children:["(",n.length,") · changes saved to the daemon back-office until you resolve"]}),p.jsx("span",{className:"spacer"}),p.jsx("button",{onClick:x,children:"Refresh"}),p.jsx("button",{onClick:t,children:"Close"})]}),i&&p.jsx("div",{className:"muted",children:"Loading…"}),o&&p.jsx("div",{className:"conflict-panel-error",children:o}),!i&&n.length===0&&p.jsx("div",{className:"muted",children:"No open conflicts."}),p.jsx("ul",{className:"conflict-list",children:n.map(g=>{const b=w(g),N=s===b,S=f[b];return p.jsxs("li",{className:"conflict-row",children:[p.jsxs("div",{className:"conflict-row-head",onClick:()=>{N?u(null):(u(b),g.resolution!=="remote_announced"&&v(g))},children:[p.jsx("code",{children:g.path}),p.jsxs("span",{className:"muted",children:["·"," ",g.resolution==="remote_announced"?`${g.conflictingUser||"peer"} flagged`:g.conflictingUser||"peer"," ","·"," ",new Date((g.detectedAt||0)*1e3).toLocaleTimeString()]}),p.jsx("span",{className:"spacer"}),p.jsx("span",{className:"muted",children:N?"▲":"▼"})]}),N&&g.resolution==="remote_announced"&&p.jsxs("div",{className:"conflict-row-body",children:[p.jsxs("div",{className:"muted",children:[g.conflictingUser||"A peer"," reported a conflict on this file. Your local copy is unchanged here — open it, decide whether to keep your version or pull theirs, save, and the next sync will reconcile."]}),p.jsx("div",{className:"conflict-actions",children:p.jsx("button",{disabled:d===b,onClick:()=>y(g,"keep_mine"),"data-testid":"conflict-acknowledge",children:"Acknowledge"})})]}),N&&g.resolution!=="remote_announced"&&p.jsxs("div",{className:"conflict-row-body",children:[!S&&p.jsx("div",{className:"muted",children:"Loading diff…"}),S&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"conflict-meta",children:[p.jsxs("span",{children:["mine: ",p.jsx("code",{children:ta(g.mineSha256)})]}),p.jsxs("span",{children:["theirs: ",p.jsx("code",{children:ta(g.theirsSha256)})]}),g.baseSha256&&p.jsxs("span",{children:["base: ",p.jsx("code",{children:ta(g.baseSha256)})]})]}),p.jsx(cE,{mine:S.mine,theirs:S.theirs}),p.jsxs("div",{className:"conflict-actions",children:[p.jsx("button",{disabled:d===b,onClick:()=>y(g,"keep_mine"),"data-testid":"conflict-keep-mine",children:"Keep mine"}),p.jsx("button",{disabled:d===b,onClick:()=>y(g,"take_theirs"),"data-testid":"conflict-take-theirs",children:"Take theirs"})]})]})]})]},b)})})]})}function Lf(e){if(typeof e!="string")return null;try{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return new TextDecoder().decode(n)}catch{return null}}function ta(e){return typeof e!="string"?"∅":e.length>12?`${e.slice(0,12)}…`:e}function cE({mine:e,theirs:t}){return e==null&&t==null?p.jsx("div",{className:"muted",children:"Both versions unavailable on disk."}):e==null||t==null?p.jsx("div",{className:"muted",children:"Only one side is available — the other was deleted before resolution."}):p.jsx(ul,{oldText:t,newText:e})}function fE({role:e,urlToken:t,onSyncAlert:n,onOpenConflicts:r}){const[i,l]=P.useState([]),[o,a]=P.useState({tokensIn:0,tokensOut:0,costUsd:0}),[s,u]=P.useState([]),[f,c]=P.useState(!1),[d,h]=P.useState(null),[m,x]=P.useState(0);P.useEffect(()=>{if(e!=="partner")return;const b=t?{Authorization:`Bearer ${t}`}:{};fetch("/api/sync/status",{headers:b}).then(N=>N.ok?N.json():null).then(N=>{var S;N&&h({paired:!!N.paired,daemonRunning:!!((S=N.daemon)!=null&&S.running),peer:null})}).catch(()=>{}),fetch("/api/conflicts",{headers:b}).then(N=>N.ok?N.json():{conflicts:[]}).then(N=>x(Array.isArray(N==null?void 0:N.conflicts)?N.conflicts.length:0)).catch(()=>{})},[e,t]),P.useEffect(()=>{const b=window.location.protocol==="https:"?"wss":"ws",N=new URL(`${b}://${window.location.host}/ws/activity`);t&&N.searchParams.set("t",t);const S=new WebSocket(N.toString());return S.onopen=()=>c(!0),S.onclose=()=>c(!1),S.onmessage=T=>{let j;try{j=JSON.parse(T.data)}catch{return}j.type==="snapshot"?(l(j.snapshot.presence||[]),a(j.snapshot.usage||{tokensIn:0,tokensOut:0,costUsd:0}),u(j.snapshot.recent||[])):(u(L=>[...L.slice(-49),j]),w(j))},()=>{try{S.close()}catch{}}},[t]);function w(b){b.type==="daemon-status"?h(N=>({...N||{paired:!1},daemonRunning:!!b.connected})):b.type==="sync-paired"?h(N=>({...N||{},paired:!0,daemonRunning:!0})):b.type==="sync-detached"?h(N=>({...N||{},paired:!1,peer:null})):b.type==="remote-presence"?h(N=>({...N||{paired:!0},peer:b.user||null})):b.type==="sync-conflict"?(n==null||n({kind:"conflict",path:b.path,resolution:b.resolution,user:b.conflictingUser}),(b.resolution==="local_pre_write_guard"||b.resolution==="remote_announced")&&x(N=>N+1)):b.type==="sync-conflict-resolved"?x(N=>Math.max(0,N-1)):b.type==="sync-fatal"&&(n==null||n({kind:"fatal",message:b.message}))}const v=[...s].reverse().find(b=>b.type==="chat-stream"||b.type==="chat-user"||b.type==="chat-end"),y=s.find(b=>b.type==="inbox-change");let g=null;return d!=null&&d.paired&&(g=d.daemonRunning?p.jsxs("span",{className:"pill synced","data-testid":"activity-sync",children:["⇄ Synced",d.peer?` · with ${d.peer}`:""]}):p.jsx("span",{className:"pill sync-off","data-testid":"activity-sync",children:"⇄ Sync paused"})),p.jsxs("footer",{className:"bottombar","data-testid":"activity-bar",children:[p.jsx("span",{className:`pill ${f?"live":""}`,"data-testid":"activity-connected",children:f?"live":"reconnecting…"}),p.jsxs("span",{className:"pill","data-testid":"activity-presence",children:["👥 ",i.length," viewing"]}),g,e==="partner"&&m>0&&p.jsxs("button",{type:"button",className:"pill conflict-badge","data-testid":"activity-conflicts",onClick:()=>r==null?void 0:r(),title:"Resolve open sync conflicts",children:["🛑 ",m," conflict",m===1?"":"s"]}),p.jsxs("span",{className:"pill","data-testid":"activity-usage",children:["↓",o.tokensIn," ↑",o.tokensOut," · $",(o.costUsd||0).toFixed(3)]}),v&&p.jsx("span",{className:"pill",style:{maxWidth:380,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"activity-last",children:v.type==="chat-end"?"✓ agent finished":"… agent streaming"}),y&&p.jsx("span",{className:"pill","data-testid":"activity-inbox",children:"📦 inbox updated"}),p.jsx("span",{style:{flex:1}}),p.jsxs("span",{style:{fontSize:11},children:["v0.1.0 · ",e]})]})}function dE(){var r;const[e,t]=P.useState(null);if(P.useEffect(()=>{let i=!1;async function l(){try{const s=await(await fetch("/api/inbox")).json();i||t(s)}catch{}}l();const o=setInterval(l,5e3);return()=>{i=!0,clearInterval(o)}},[]),!e||!e.hasInbox||!((r=e.imports)!=null&&r.length))return null;const n=e.imports.filter(i=>{var o;const l=Object.keys(e.installed||{}).find(a=>a.startsWith(i.replace(/-v[\d.]+$/,"")));return l?((o=e.installed[l])==null?void 0:o.integrated)!==!0:!0});return n.length===0?null:p.jsxs("div",{className:"inbox-card","data-testid":"inbox-card",children:["📦 ",p.jsx("strong",{children:"Component inbox"}),": ",n.length," pending integration",n.length!==1?"s":"",": ",n.join(", "),".",p.jsxs("span",{className:"muted",children:["Ask the agent: ",p.jsxs("em",{children:["“walk me through integrating ",n[0],"”"]})]})]})}const pE=[{id:"concise",label:"Concise",sample:"Got it. Done."},{id:"playful",label:"Playful",sample:"Oh nice — let's go!"},{id:"formal",label:"Formal",sample:"Understood. Proceeding now."},{id:"dry",label:"Dry",sample:"Sure. If we must."}],Ff=["#22d3ee","#a78bfa","#f472b6","#facc15","#34d399","#fb7185"],hE=[{id:"drive",label:"Google Drive",note:"Files & docs"},{id:"notion",label:"Notion",note:"Wiki & notes"},{id:"gmail",label:"Gmail",note:"Inbox & threads"},{id:"calendar",label:"Calendar",note:"Schedule"},{id:"canva",label:"Canva",note:"Designs"},{id:"github",label:"GitHub",note:"Code & PRs"}],mE=new Set(["md","txt","json","yml","yaml","toml","js","mjs","cjs","ts","tsx","jsx","py","rb","go","rs","java","kt","swift","c","h","cpp","cc","hpp","css","scss","html","sh","env","sql","xml","svg","csv"]);function gE(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}function yE(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="localhost"||t.hostname==="127.0.0.1"?null:t.protocol==="http:"&&(t.port===""||t.port==="80")||t.protocol==="https:"&&(t.port===""||t.port==="443")?t.hostname:`${t.hostname}:${t.port}`}catch{return null}}async function vE(e){const t=Array.from(e||[]).slice(0,200);if(t.length===0)return{folderName:null,files:[]};const n=(t[0].webkitRelativePath||t[0].name).split("/")[0]||"folder",r=40,i=600,l=[];for(const a of t){if(l.length>=r)break;const s=a.webkitRelativePath||a.name,u=gE(a.name);if(!mE.has(u)){l.push({path:s,head:""});continue}if(a.size>100*1024){l.push({path:s,head:""});continue}try{const d=await a.slice(0,i).text();l.push({path:s,head:d})}catch{l.push({path:s,head:""})}}const o=Math.max(t.length-l.length,0);return{folderName:n,files:l,totalFiles:t.length,untouched:o}}function xE({peekSummary:e,services:t,agentName:n}){const r=[],i=e!=null&&e.folderName?` (you just glanced at "${e.folderName}")`:"";return r.push({kind:"survey",title:"Tell me what's in my workspace",sub:e!=null&&e.folderName?"I'll read the workspace I'm running in and summarize.":"I'll read what's here and summarize the project."}),(t==null?void 0:t.size)>0?r.push({kind:"startup",title:"Help me start something new",sub:`${n} will ask one question to figure out what to build.`}):r.push({kind:"startup",title:"Help me start a project",sub:"Tell me the rough idea — I'll scaffold it."}),r.push({kind:"chat",title:"Just chat — find me work",sub:"No agenda yet. Get me into the workspace."}),r}function Rf(e,t=55,n=380){const[r,i]=P.useState(""),[l,o]=P.useState(!1),[a,s]=P.useState(!1);return P.useEffect(()=>{if(!e){i(""),o(!1),s(!1);return}i(""),o(!1),s(!1);let u=0,f=null;const c=setTimeout(()=>{s(!0),f=setInterval(()=>{u+=1,i(e.slice(0,u)),u>=e.length&&(clearInterval(f),o(!0))},t)},n);return()=>{clearTimeout(c),f&&clearInterval(f)}},[e,t,n]),[r,l,a]}function vn({children:e,from:t="agent",accent:n,streaming:r=!1}){return p.jsx("div",{className:`ob-bubble ob-bubble-${t}${r?" ob-bubble-streaming":""}`,style:t==="user"?{borderColor:n}:void 0,children:e})}function Bn(){return p.jsx("span",{className:"ob-caret","aria-hidden":"true",children:"▍"})}function Df(e){const t=Math.random().toString(36).slice(2,8);return`${e}-${Date.now().toString(36)}-${t}`}function kE({session:e,token:t,onComplete:n}){var Ei,Ci,Ni,I;const[r,i]=P.useState(1),l=P.useMemo(()=>yE(e==null?void 0:e.shareBaseUrl),[e==null?void 0:e.shareBaseUrl]),[o,a]=P.useState(((Ei=e==null?void 0:e.identity)==null?void 0:Ei.name)||""),[s,u]=P.useState(((Ci=e==null?void 0:e.identity)==null?void 0:Ci.tone)||"concise"),[f,c]=P.useState(((Ni=e==null?void 0:e.identity)==null?void 0:Ni.color)||Ff[0]),[d,h]=P.useState(!1),[m,x]=P.useState(null),[w,v]=P.useState(new Set(((I=e==null?void 0:e.identity)==null?void 0:I.connectedServices)||[])),[y,g]=P.useState(!1),[b,N]=P.useState(null),[S,T]=P.useState(null),[j,L]=P.useState(!1),C=P.useRef(null),R=P.useRef(null),M=P.useRef({}),[U,$]=P.useState({}),F=P.useCallback((_,B,H)=>{_&&$(Q=>{const oe=Q[_]||{text:"",done:!1,error:null},Me=B==="text"?oe.text+(H||""):oe.text,ve={...Q,[_]:{...oe,text:Me}};return M.current[_]=Me,ve})},[]),G=P.useCallback((_,B)=>{_&&$(H=>{const Q=H[_]||{text:"",done:!1,error:null};return{...H,[_]:{...Q,done:!0,error:B||Q.error}}})},[]);P.useEffect(()=>{let _=!1,B=0,H=null,Q=null;const oe=()=>{if(_)return;const Me=window.location.protocol==="https:"?"wss":"ws",ve=new URL(`${Me}://${window.location.host}/ws/chat`);t&&ve.searchParams.set("t",t),Q=new WebSocket(ve.toString()),R.current=Q,Q.onmessage=Be=>{var he;let ke;try{ke=JSON.parse(Be.data)}catch{return}ke.type==="chunk"&&((he=ke.chunk)==null?void 0:he.type)==="text"?F(ke.messageId,"text",ke.chunk.text):ke.type==="end"?G(ke.messageId,null):ke.type==="error"&&G(ke.messageId,ke.message||"agent error")},Q.onopen=()=>{B=0},Q.onclose=()=>{if(R.current=null,_)return;const Be=Math.min(1e3*2**B,8e3);B+=1,H=setTimeout(oe,Be)},Q.onerror=()=>{}};return oe(),()=>{_=!0,clearTimeout(H);try{Q==null||Q.close()}catch{}}},[t,F,G]),P.useEffect(()=>{document.documentElement.style.setProperty("--accent",f),document.documentElement.style.setProperty("--accent-hot",f)},[f]);const Z=P.useMemo(()=>{const _={"content-type":"application/json"};return t&&(_.Authorization=`Bearer ${t}`),_},[t]);async function D(_){const B=await fetch("/api/agent/identity",{method:"POST",headers:Z,body:JSON.stringify({name:o,tone:s,color:f,..._})});if(!B.ok){const H=await B.json().catch(()=>({}));throw new Error(H.error||`save failed (${B.status})`)}return B.json()}async function W(){if(x(null),!o.trim()){x("Pick a name — even just one syllable.");return}h(!0);try{await D({}),i(2)}catch(_){x(String(_.message||_))}finally{h(!1)}}const[k,K]=P.useState(null),Y=k?U[k]:null;async function E(_){if(T(null),!(!_||_.length===0)){g(!0);try{const B=await vE(_);if(B.files.length===0){T("That folder looks empty — try another?"),g(!1);return}N(B);const H=Df("peek");K(H),$(oe=>({...oe,[H]:{text:"",done:!1,error:null}}));const Q=await fetch("/api/onboarding/peek",{method:"POST",headers:Z,body:JSON.stringify({folderName:B.folderName,files:B.files,totalFiles:B.totalFiles,messageId:H})});if(!Q.ok){const oe=await Q.json().catch(()=>({}));throw new Error(oe.error||`peek failed (${Q.status})`)}}catch(B){T(String(B.message||B))}finally{g(!1)}}}function ue(_){v(B=>{const H=new Set(B);return H.has(_)?H.delete(_):H.add(_),H})}const[Ee,ne]=P.useState(null),[Pe,Ge]=P.useState(null),[et,Ft]=P.useState(null),de=Ee?U[Ee]:null;async function co(_){Ft(null),Ge(_);const B=Df("job");ne(B),$(H=>({...H,[B]:{text:"",done:!1,error:null}}));try{await D({connectedServices:[...w]});const H=await fetch("/api/onboarding/start-job",{method:"POST",headers:Z,body:JSON.stringify({kind:_,messageId:B,peekFolderName:(b==null?void 0:b.folderName)||null})});if(!H.ok){const Q=await H.json().catch(()=>({}));throw new Error(Q.error||`start-job failed (${H.status})`)}}catch(H){Ft(String(H.message||H)),ne(null),Ge(null)}}async function xi(){try{await D({connectedServices:[...w]});const _=await fetch("/api/agent/onboarded",{method:"POST",headers:Z});if(!_.ok){const B=await _.json().catch(()=>({}));throw new Error(B.error||`mark-onboarded failed (${_.status})`)}n==null||n()}catch(_){x(String(_.message||_))}}const gn=o.trim()||"your agent",ki="Hey. I'm new here.",wi="Before we start — what should I call myself?",[bi,Dn]=Rf(r===1?ki:"",65,420),[Si,On]=Rf(r===1&&Dn?wi:"",48,520),fo=r===1?On:!0,po=P.useMemo(()=>xE({peekSummary:b,services:w,agentName:gn}),[b,w,gn]);return p.jsx("div",{className:"ob-root",children:p.jsxs("div",{className:"ob-stage",children:[p.jsxs("header",{className:"ob-header",children:[p.jsx("div",{className:"ob-step-dots","aria-label":`Step ${r} of 5`,children:[1,2,3,4,5].map(_=>p.jsx("span",{className:`ob-dot ${_===r?"active":""} ${_<r?"done":""}`},_))}),r>1&&p.jsx("button",{className:"ob-back",onClick:()=>i(r-1),children:"← Back"})]}),r===1&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(vn,{streaming:!Dn||!On,children:[p.jsxs("p",{className:"ob-bubble-text",children:[bi,!Dn&&p.jsx(Bn,{})]}),Dn&&p.jsxs("p",{className:"ob-bubble-text",children:[Si,!On&&p.jsx(Bn,{})]})]}),fo&&p.jsxs("div",{className:"ob-card ob-reveal",children:[p.jsx("label",{className:"ob-label",children:"Name"}),p.jsx("input",{autoFocus:!0,className:"ob-input",placeholder:"Echo, Pip, Atlas, Sage…",value:o,onChange:_=>a(_.target.value),onKeyDown:_=>{_.key==="Enter"&&W()},maxLength:40}),p.jsx("label",{className:"ob-label",children:"Voice"}),p.jsx("div",{className:"ob-tone-grid",children:pE.map(_=>p.jsxs("button",{className:`ob-tone ${s===_.id?"selected":""}`,onClick:()=>u(_.id),children:[p.jsx("span",{className:"ob-tone-label",children:_.label}),p.jsx("span",{className:"ob-tone-sample",children:_.sample})]},_.id))}),p.jsx("label",{className:"ob-label",children:"Color"}),p.jsx("div",{className:"ob-color-row",children:Ff.map(_=>p.jsx("button",{className:`ob-color-swatch ${f===_?"selected":""}`,style:{background:_},onClick:()=>c(_),"aria-label":`Pick ${_}`},_))}),m&&p.jsx("div",{className:"ob-error",children:m}),p.jsx("div",{className:"ob-actions",children:p.jsx("button",{className:"ob-next primary",onClick:W,disabled:d||!o.trim(),children:d?"Saving…":`I'm ${gn}. Let's go →`})})]})]}),r===2&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(vn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"Cool. Now — show me something you're working on. Drag a folder onto me."}),p.jsx("p",{className:"ob-bubble-subtle",children:"I'll read filenames + a short sample of each text file (≤40 files, ≤600 bytes each) so I can react. Files stay on your machine; the sample goes to Anthropic the same way every chat turn does. Pick something you'd be OK talking about in chat."})]}),p.jsxs("div",{className:`ob-dropzone ${j?"over":""} ${y?"peeking":""}`,onDragOver:_=>{_.preventDefault(),L(!0)},onDragLeave:()=>L(!1),onDrop:async _=>{var H,Q;_.preventDefault(),L(!1);const B=(H=_.dataTransfer)==null?void 0:H.items;if(B&&B.length>0&&B[0].webkitGetAsEntry){const oe=[],Me=async(ve,Be="")=>{if(ve.isFile)await new Promise(ke=>ve.file(he=>{try{Object.defineProperty(he,"webkitRelativePath",{value:`${Be}${he.name}`})}catch{}oe.push(he),ke()},ke));else if(ve.isDirectory){const ke=ve.createReader();await new Promise(he=>ke.readEntries(async Gt=>{for(const yt of Gt)await Me(yt,`${Be}${ve.name}/`);he()},he))}};for(const ve of B){const Be=ve.webkitGetAsEntry();Be&&await Me(Be)}if(oe.length>0){await E(oe);return}}await E((Q=_.dataTransfer)==null?void 0:Q.files)},onClick:()=>{var _;return(_=C.current)==null?void 0:_.click()},children:[p.jsx("input",{ref:C,type:"file",webkitdirectory:"",directory:"",multiple:!0,style:{display:"none"},onChange:_=>E(_.target.files)}),y?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ob-drop-icon",children:"👀"}),p.jsx("div",{className:"ob-drop-title",children:"Looking…"})]}):b?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ob-drop-icon",children:"📁"}),p.jsx("div",{className:"ob-drop-title",children:b.folderName}),p.jsxs("div",{className:"ob-drop-sub",children:[b.totalFiles," file",b.totalFiles===1?"":"s"," · sampled ",b.files.length]})]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ob-drop-icon",children:"📂"}),p.jsx("div",{className:"ob-drop-title",children:"Drop a folder here"}),p.jsx("div",{className:"ob-drop-sub",children:"or click to pick one"})]})]}),Y&&p.jsxs(vn,{streaming:!Y.done,children:[Y.text?p.jsxs("p",{className:"ob-bubble-text",children:[Y.text,!Y.done&&p.jsx(Bn,{})]}):p.jsxs("p",{className:"ob-bubble-subtle",children:["👀 ",gn," is reading…",!Y.done&&p.jsx(Bn,{})]}),Y.error&&p.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:Y.error})]}),S&&p.jsx("div",{className:"ob-error",children:S}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>i(3),children:"Skip — I'd rather just chat"}),p.jsx("button",{className:"ob-next primary",onClick:()=>i(3),disabled:!b&&!S,children:"Next: connect data →"})]})]}),r===3&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(vn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"What should I have eyes on?"}),p.jsx("p",{className:"ob-bubble-subtle",children:"Pick anything I should know lives in your world. I'll wire them up later — this just plants the flags."})]}),p.jsx("div",{className:"ob-tile-grid",children:hE.map(_=>p.jsxs("button",{className:`ob-tile ${w.has(_.id)?"selected":""}`,onClick:()=>ue(_.id),children:[p.jsx("span",{className:"ob-tile-label",children:_.label}),p.jsx("span",{className:"ob-tile-note",children:_.note}),w.has(_.id)&&p.jsx("span",{className:"ob-tile-check",children:"✓"})]},_.id))}),p.jsx("div",{className:"ob-soon",children:"Connection flows for these arrive in the next release — your picks here are saved so I'll prompt you when they go live."}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>i(4),children:"Skip →"}),p.jsx("button",{className:"ob-next primary",onClick:()=>i(4),children:"Next: pair another device →"})]})]}),r===4&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(vn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"I don't live on this Mac. I live with you."}),p.jsx("p",{className:"ob-bubble-subtle",children:l?p.jsxs(p.Fragment,{children:["Open ",p.jsx("code",{children:l})," on your phone with the same login and I'll follow."]}):p.jsx(p.Fragment,{children:"Sign in on any device with the same token and I'll show up there — same memory, same conversation."})})]}),p.jsxs("div",{className:"ob-qr-placeholder",children:[p.jsx("div",{className:"ob-qr-box",children:p.jsxs("div",{className:"ob-qr-soon",children:["QR pairing",p.jsx("br",{}),"coming soon"]})}),p.jsx("p",{className:"ob-bubble-subtle",style:{textAlign:"center",marginTop:16},children:"For now, sign in on any device with the same token and we're synced."})]}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>i(5),children:"Skip →"}),p.jsx("button",{className:"ob-next primary",onClick:()=>i(5),children:"Next: first job →"})]})]}),r===5&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(vn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"Right — what should I actually do for you first?"}),p.jsx("p",{className:"ob-bubble-subtle",children:"Pick one and I'll start now. Or close this and just talk to me."})]}),Ee?p.jsxs(p.Fragment,{children:[p.jsxs(vn,{streaming:!de||!de.done,children:[de!=null&&de.text?p.jsxs("p",{className:"ob-bubble-text",children:[de.text,!de.done&&p.jsx(Bn,{})]}):p.jsxs("p",{className:"ob-bubble-subtle",children:[gn," is on it…",(!de||!de.done)&&p.jsx(Bn,{})]}),(de==null?void 0:de.error)&&p.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:de.error})]}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>{ne(null),Ge(null)},children:"← Pick a different job"}),p.jsx("button",{className:"ob-next primary",onClick:xi,disabled:!de||!de.done&&!de.error,children:de!=null&&de.done?"Open my workspace →":"Streaming…"})]})]}):p.jsx("div",{className:"ob-jobs",children:po.map(_=>p.jsxs("button",{className:"ob-job",onClick:()=>co(_.kind),children:[p.jsx("div",{className:"ob-job-title",children:_.title}),p.jsx("div",{className:"ob-job-sub",children:_.sub})]},_.kind))}),(m||et)&&p.jsx("div",{className:"ob-error",children:m||et}),!Ee&&p.jsx("div",{className:"ob-actions",children:p.jsx("button",{className:"ob-skip",onClick:xi,children:"Skip to chat →"})})]})]})})}const wE={partner:"Partner",viewer:"Viewer",client:"Client"};function bE(){var M,U;const[e,t]=P.useState(null),[n,r]=P.useState(null),[i,l]=P.useState(!1),[o,a]=P.useState(!1),[s,u]=P.useState(null),[f,c]=P.useState(!1),[d,h]=P.useState(!1),[m,x]=P.useState(!1),[w,v]=P.useState("build"),[y,g]=P.useState(null),b=P.useMemo(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("t"),[]);if(P.useEffect(()=>{async function $(){try{const F={};b&&(F.Authorization=`Bearer ${b}`);const G=await fetch("/api/session",{headers:F});if(!G.ok)throw new Error(`session fetch failed: ${G.status}`);const Z=await G.json();t(Z)}catch(F){r(F.message||String(F))}}$()},[b]),P.useEffect(()=>{var F;const $=(F=e==null?void 0:e.identity)==null?void 0:F.color;$&&(document.documentElement.style.setProperty("--accent",$),document.documentElement.style.setProperty("--accent-hot",$))},[(M=e==null?void 0:e.identity)==null?void 0:M.color]),n)return p.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:p.jsxs("div",{style:{padding:24},children:[p.jsx("h2",{children:"wild-workspace"}),p.jsxs("p",{style:{color:"var(--error)"},children:["Could not load session: ",n]}),p.jsx("p",{style:{color:"var(--text-muted)",fontSize:13},children:"Verify the server is running and the share URL token is valid."})]})});if(!e)return p.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:p.jsxs("div",{style:{padding:24,color:"var(--text-muted)"},children:[p.jsx("span",{className:"spinner"})," Loading workspace…"]})});if((U=e.capabilities)!=null&&U.chatWrite&&!e.onboarded)return p.jsx(kE,{session:e,token:b,onComplete:async()=>{try{const $={};b&&($.Authorization=`Bearer ${b}`);const F=await fetch("/api/session",{headers:$});F.ok&&t(await F.json())}catch{t({...e,onboarded:!0})}}});const{role:N,capabilities:S,workspace:T,workspaceId:j,agent:L,identity:C}=e,R=["workspace"];return S.fileTree?d&&R.push("collapsed-tree"):R.push("no-tree"),S.preview||R.push("no-preview"),p.jsxs("div",{className:"app",children:[p.jsxs("header",{className:"topbar","data-testid":"topbar",children:[p.jsx("span",{className:"brand",children:"wild-workspace"}),p.jsx("span",{className:`badge ${N}`,"data-testid":"role-badge",children:wE[N]||N}),p.jsx("span",{className:"badge","data-testid":"workspace-name",children:(T==null?void 0:T.name)||j}),C!=null&&C.name?p.jsx("span",{className:"badge","data-testid":"agent-name",style:{borderColor:C.color,color:C.color},children:C.name}):L&&p.jsx("span",{className:"badge","data-testid":"agent-name",children:L.label||L.id}),p.jsx("span",{className:"spacer"}),S.sync&&p.jsx("button",{onClick:()=>a(!0),"data-testid":"collaborate-btn",children:"Collaborate"}),S.share&&p.jsx("button",{onClick:()=>l(!0),"data-testid":"share-btn",children:"Share"}),S.terminal&&p.jsx("button",{onClick:()=>x($=>!$),"data-testid":"terminal-toggle",children:m?"Hide terminal":"Terminal"})]}),p.jsxs("main",{className:R.join(" "),children:[S.fileTree&&!d&&p.jsx(rE,{onCollapse:()=>h(!0),workspaceRoot:T==null?void 0:T.path,onOpen:g}),S.fileTree&&d&&p.jsx("aside",{className:"tree-collapsed-rail",children:p.jsx("button",{onClick:()=>h(!1),title:"Show file tree",children:"≡"})}),p.jsxs("section",{className:"chat-pane","data-testid":"chat-pane",children:[p.jsxs("div",{className:"chat-header","data-testid":"chat-header",children:[p.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Chat"}),S.chatWrite&&p.jsxs("span",{className:"chat-mode-toggle","data-testid":"mode-toggle",children:[p.jsx("button",{className:w==="build"?"active":"",onClick:()=>v("build"),"data-testid":"mode-build",children:"Build"}),p.jsx("button",{className:w==="plan"?"active":"",onClick:()=>v("plan"),"data-testid":"mode-plan",children:"Plan"})]}),p.jsx("span",{className:"spacer"}),p.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:L!=null&&L.available?`via ${L.label}`:"no agent installed — install Claude Code (npm i -g @anthropic-ai/claude-code)"})]}),S.inbox&&p.jsx(dE,{}),p.jsx(XS,{role:N,capabilities:S,mode:w,token:b})]}),S.preview&&p.jsx("section",{className:"preview-pane","data-testid":"preview-pane",children:p.jsx(lE,{focus:y,workspaceRoot:T==null?void 0:T.path})})]}),p.jsx(fE,{role:N,capabilities:S,session:e,urlToken:b,onSyncAlert:u,onOpenConflicts:()=>c(!0)}),p.jsx(sE,{alert:s,onDismiss:()=>u(null)}),f&&p.jsx(uE,{urlToken:b,onClose:()=>c(!1)}),i&&p.jsx(oE,{onClose:()=>l(!1),workspaceId:j}),o&&p.jsx(aE,{onClose:()=>a(!1),token:b}),m&&p.jsxs("div",{className:"terminal-overlay","data-testid":"terminal-overlay",children:[p.jsxs("header",{children:[p.jsx("strong",{children:"Terminal (preview)"}),p.jsx("button",{onClick:()=>x(!1),children:"close"})]}),p.jsx("p",{children:"Power-user terminal is a hidden-by-default toggle. The xterm.js + node-pty integration ships in v1.1. For now use your OS terminal — wild-workspace doesn't replace your shell, it surfaces the agent."})]})]})}(function(){if(typeof window>"u"||!window.fetch)return;const n=new URLSearchParams(window.location.search).get("t");if(!n)return;const r=window.fetch.bind(window);window.fetch=(i,l={})=>{const o=typeof i=="string"?i:(i==null?void 0:i.url)||"";if(!(o.startsWith("/api/")||o.includes("://")===!1&&o.startsWith("api/")))return r(i,l);const s=new Headers(l.headers||{});return s.has("Authorization")||s.set("Authorization",`Bearer ${n}`),r(i,{...l,headers:s})}})();na.createRoot(document.getElementById("root")).render(p.jsx(bm.StrictMode,{children:p.jsx(bE,{})}));