@venturewild/workspace 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/bin/wild-workspace.mjs +20 -4
- package/server/src/config.mjs +18 -7
- package/server/src/index.mjs +252 -55
- package/server/src/logpaths.mjs +1 -0
- package/server/src/service.mjs +127 -1
- package/server/src/share.mjs +39 -4
- package/web/dist/assets/{index-Ci8BkBhX.js → index-n0-hsCzL.js} +17 -17
- package/web/dist/index.html +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ei=Symbol.for("react.element"),Cm=Symbol.for("react.portal"),Nm=Symbol.for("react.fragment"),jm=Symbol.for("react.strict_mode"),Tm=Symbol.for("react.profiler"),_m=Symbol.for("react.provider"),Im=Symbol.for("react.context"),Am=Symbol.for("react.forward_ref"),Pm=Symbol.for("react.suspense"),Lm=Symbol.for("react.memo"),Fm=Symbol.for("react.lazy"),
|
|
9
|
+
*/var Ei=Symbol.for("react.element"),Cm=Symbol.for("react.portal"),Nm=Symbol.for("react.fragment"),jm=Symbol.for("react.strict_mode"),Tm=Symbol.for("react.profiler"),_m=Symbol.for("react.provider"),Im=Symbol.for("react.context"),Am=Symbol.for("react.forward_ref"),Pm=Symbol.for("react.suspense"),Lm=Symbol.for("react.memo"),Fm=Symbol.for("react.lazy"),Ou=Symbol.iterator;function Rm(e){return e===null||typeof e!="object"?null:(e=Ou&&e[Ou]||e["@@iterator"],typeof e=="function"?e:null)}var ed={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},td=Object.assign,nd={};function Er(e,t,n){this.props=e,this.context=t,this.refs=nd,this.updater=n||ed}Er.prototype.isReactComponent={};Er.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")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rd(){}rd.prototype=Er.prototype;function ys(e,t,n){this.props=e,this.context=t,this.refs=nd,this.updater=n||ed}var xs=ys.prototype=new rd;xs.constructor=ys;td(xs,Er.prototype);xs.isPureReactComponent=!0;var Du=Array.isArray,id=Object.prototype.hasOwnProperty,vs={current:null},ld={key:!0,ref:!0,__self:!0,__source:!0};function od(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)id.call(t,r)&&!ld.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:Ei,type:e,key:l,ref:o,props:i,_owner:vs.current}}function Om(e,t){return{$$typeof:Ei,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ks(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ei}function Dm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zu=/\/+/g;function So(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Dm(""+e.key):t.toString(36)}function ll(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 Ei:case Cm:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+So(o,0):r,Du(i)?(n="",e!=null&&(n=e.replace(zu,"$&/")+"/"),ll(i,t,n,"",function(u){return u})):i!=null&&(ks(i)&&(i=Om(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(zu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Du(e))for(var a=0;a<e.length;a++){l=e[a];var s=r+So(l,a);o+=ll(l,t,n,s,i)}else if(s=Rm(e),typeof s=="function")for(e=s.call(e),a=0;!(l=e.next()).done;)l=l.value,s=r+So(l,a++),o+=ll(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 Di(e,t,n){if(e==null)return e;var r=[],i=0;return ll(e,r,"","",function(l){return t.call(n,l,i++)}),r}function zm(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 We={current:null},ol={transition:null},Mm={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:ol,ReactCurrentOwner:vs};function ad(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Di,forEach:function(e,t,n){Di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Di(e,function(){t++}),t},toArray:function(e){return Di(e,function(t){return t})||[]},only:function(e){if(!ks(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Er;ee.Fragment=Nm;ee.Profiler=Tm;ee.PureComponent=ys;ee.StrictMode=jm;ee.Suspense=Pm;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mm;ee.act=ad;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=td({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=vs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)id.call(t,s)&&!ld.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:Ei,type:e.type,key:i,ref:l,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:Im,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_m,_context:e},e.Consumer=e};ee.createElement=od;ee.createFactory=function(e){var t=od.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:Am,render:e}};ee.isValidElement=ks;ee.lazy=function(e){return{$$typeof:Fm,_payload:{_status:-1,_result:e},_init:zm}};ee.memo=function(e,t){return{$$typeof:Lm,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=ol.transition;ol.transition={};try{e()}finally{ol.transition=t}};ee.unstable_act=ad;ee.useCallback=function(e,t){return We.current.useCallback(e,t)};ee.useContext=function(e){return We.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return We.current.useDeferredValue(e)};ee.useEffect=function(e,t){return We.current.useEffect(e,t)};ee.useId=function(){return We.current.useId()};ee.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return We.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};ee.useRef=function(e){return We.current.useRef(e)};ee.useState=function(e){return We.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return We.current.useTransition()};ee.version="18.3.1";Jf.exports=ee;var I=Jf.exports;const Bm=gs(I);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(
|
|
25
|
+
*/(function(e){function t(D,V){var k=D.length;D.push(V);e:for(;0<k;){var Y=k-1>>>1,te=D[Y];if(0<i(te,V))D[Y]=V,D[k]=te,k=Y;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],k=D.pop();if(k!==V){D[0]=k;e:for(var Y=0,te=D.length,E=te>>>1;Y<E;){var se=2*(Y+1)-1,_e=D[se],re=se+1,ce=D[re];if(0>i(_e,k))re<te&&0>i(ce,_e)?(D[Y]=ce,D[re]=k,Y=re):(D[Y]=_e,D[se]=k,Y=se);else if(re<te&&0>i(ce,k))D[Y]=ce,D[re]=k,Y=re;else break e}}return V}function i(D,V){var k=D.sortIndex-V.sortIndex;return k!==0?k:D.id-V.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,p=3,h=!1,m=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=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 V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=D)r(u),V.sortIndex=V.expirationTime,t(s,V);else break;V=n(u)}}function S(D){if(v=!1,g(D),!m)if(n(s)!==null)m=!0,W(N);else{var V=n(u);V!==null&&Z(S,V.startTime-D)}}function N(D,V){m=!1,v&&(v=!1,y(_),_=-1),h=!0;var k=p;try{for(g(V),c=n(s);c!==null&&(!(c.expirationTime>V)||D&&!R());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,p=c.priorityLevel;var te=Y(c.expirationTime<=V);V=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(s)&&r(s),g(V)}else r(s);c=n(s)}if(c!==null)var E=!0;else{var se=n(u);se!==null&&Z(S,se.startTime-V),E=!1}return E}finally{c=null,p=k,h=!1}}var b=!1,j=null,_=-1,L=5,C=-1;function R(){return!(e.unstable_now()-C<L)}function M(){if(j!==null){var D=e.unstable_now();C=D;var V=!0;try{V=j(!0,D)}finally{V?U():(b=!1,j=null)}}else b=!1}var U;if(typeof x=="function")U=function(){x(M)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,F=B.port2;B.port1.onmessage=M,U=function(){F.postMessage(null)}}else U=function(){w(M,0)};function W(D){j=D,b||(b=!0,U())}function Z(D,V){_=w(function(){D(e.unstable_now())},V)}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,W(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 p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var V=3;break;default:V=p}var k=p;p=V;try{return D()}finally{p=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var k=p;p=D;try{return V()}finally{p=k}},e.unstable_scheduleCallback=function(D,V,k){var Y=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Y+k:Y):k=Y,D){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=k+te,D={id:f++,callback:V,priorityLevel:D,startTime:k,expirationTime:te,sortIndex:-1},k>Y?(D.sortIndex=k,t(u,D),n(s)===null&&D===n(u)&&(v?(y(_),_=-1):v=!0,Z(S,k-Y))):(D.sortIndex=te,t(s,D),m||h||(m=!0,W(N))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var V=p;return function(){var k=p;p=V;try{return D.apply(this,arguments)}finally{p=k}}}})(fd);cd.exports=fd;var qm=cd.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,29 +30,29 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Qm=I,ct=qm;function
|
|
33
|
+
*/var Qm=I,ct=qm;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 dd=new Set,li={};function Hn(e,t){gr(e,t),gr(e+"Capture",t)}function gr(e,t){for(li[e]=t,e=0;e<t.length;e++)dd.add(t[e])}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),da=Object.prototype.hasOwnProperty,Ym=/^[: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]*$/,Mu={},Bu={};function Km(e){return da.call(Bu,e)?!0:da.call(Mu,e)?!1:Ym.test(e)?Bu[e]=!0:(Mu[e]=!0,!1)}function Xm(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 Zm(e,t,n,r){if(t===null||typeof t>"u"||Xm(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 Ge(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 Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ge(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){Le[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var ws=/[\-:]([a-z])/g;function bs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ws,bs);Le[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ws,bs);Le[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ws,bs);Le[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ss(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zm(t,n,i,r)&&(n=null),r||i===null?Km(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 Zt=Qm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zi=Symbol.for("react.element"),Xn=Symbol.for("react.portal"),Zn=Symbol.for("react.fragment"),Es=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),pd=Symbol.for("react.provider"),hd=Symbol.for("react.context"),Cs=Symbol.for("react.forward_ref"),ha=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),Ns=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),md=Symbol.for("react.offscreen"),$u=Symbol.iterator;function Lr(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,Eo;function Hr(e){if(Eo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Eo=t&&t[1]||""}return`
|
|
34
34
|
`+Eo+e}var Co=!1;function No(e,t){if(!e||Co)return"";Co=!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
35
|
`),l=r.stack.split(`
|
|
36
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{Co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function Jm(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=No(e.type,!1),e;case 11:return e=No(e.type.render,!1),e;case 1:return e=No(e.type,!0),e;default:return""}}function ga(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 Zn:return"Fragment";case Xn:return"Portal";case pa:return"Profiler";case Es:return"StrictMode";case ha:return"Suspense";case ma:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hd:return(e.displayName||"Context")+".Consumer";case pd:return(e._context.displayName||"Context")+".Provider";case Cs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ns:return t=e.displayName||null,t!==null?t:ga(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return ga(e(t))}catch{}}return null}function eg(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 ga(t);case 8:return t===Es?"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 vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tg(e){var t=gd(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 Mi(e){e._valueTracker||(e._valueTracker=tg(e))}function yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wl(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 ya(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vn(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 xd(e,t){t=t.checked,t!=null&&Ss(e,"checked",t,!1)}function xa(e,t){xd(e,t);var n=vn(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")?va(e,t.type,n):t.hasOwnProperty("defaultValue")&&va(e,t.type,vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hu(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 va(e,t,n){(t!=="number"||wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vr=Array.isArray;function ur(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=""+vn(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 ka(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Vr(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vn(n)}}function vd(e,t){var n=vn(t.value),r=vn(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 Wu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kd(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 wa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,wd=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(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qr={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},ng=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(e){ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qr[t]=qr[e]})});function bd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qr.hasOwnProperty(e)&&qr[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=bd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rg=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(rg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Sa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ea=null;function js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,cr=null,fr=null;function Gu(e){if(e=ji(e)){if(typeof Ca!="function")throw Error(D(280));var t=e.stateNode;t&&(t=to(t),Ca(e.stateNode,e.type,t))}}function Ed(e){cr?fr?fr.push(e):fr=[e]:cr=e}function Cd(){if(cr){var e=cr,t=fr;if(fr=cr=null,Gu(e),t)for(e=0;e<t.length;e++)Gu(t[e])}}function Nd(e,t){return e(t)}function jd(){}var jo=!1;function Td(e,t,n){if(jo)return e(t,n);jo=!0;try{return Nd(e,t,n)}finally{jo=!1,(cr!==null||fr!==null)&&(jd(),Cd())}}function ai(e,t){var n=e.stateNode;if(n===null)return null;var r=to(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Na=!1;if(Qt)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){Na=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Na=!1}function ig(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 Qr=!1,bl=null,Sl=!1,ja=null,lg={onError:function(e){Qr=!0,bl=e}};function og(e,t,n,r,i,l,o,a,s){Qr=!1,bl=null,ig.apply(lg,arguments)}function ag(e,t,n,r,i,l,o,a,s){if(og.apply(this,arguments),Qr){if(Qr){var u=bl;Qr=!1,bl=null}else throw Error(D(198));Sl||(Sl=!0,ja=u)}}function Vn(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 _d(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 qu(e){if(Vn(e)!==e)throw Error(D(188))}function sg(e){var t=e.alternate;if(!t){if(t=Vn(e),t===null)throw Error(D(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 qu(i),e;if(l===r)return qu(i),t;l=l.sibling}throw Error(D(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(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Id(e){return e=sg(e),e!==null?Ad(e):null}function Ad(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ad(e);if(t!==null)return t;e=e.sibling}return null}var Pd=ct.unstable_scheduleCallback,Qu=ct.unstable_cancelCallback,ug=ct.unstable_shouldYield,cg=ct.unstable_requestPaint,be=ct.unstable_now,fg=ct.unstable_getCurrentPriorityLevel,Ts=ct.unstable_ImmediatePriority,Ld=ct.unstable_UserBlockingPriority,El=ct.unstable_NormalPriority,dg=ct.unstable_LowPriority,Fd=ct.unstable_IdlePriority,Xl=null,Ft=null;function pg(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:gg,hg=Math.log,mg=Math.LN2;function gg(e){return e>>>=0,e===0?32:31-(hg(e)/mg|0)|0}var $i=64,Ui=4194304;function Wr(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 Cl(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=Wr(a):(l&=o,l!==0&&(r=Wr(l)))}else o=n&~i,o!==0?r=Wr(o):l!==0&&(r=Wr(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-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function yg(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 xg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Nt(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=yg(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function Ta(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rd(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function To(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function vg(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-Nt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function _s(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function Dd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Od,Is,zd,Md,Bd,_a=!1,Hi=[],fn=null,dn=null,pn=null,si=new Map,ui=new Map,an=[],kg="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 Yu(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(t.pointerId)}}function Rr(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=ji(t),t!==null&&Is(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function wg(e,t,n,r,i){switch(t){case"focusin":return fn=Rr(fn,e,t,n,r,i),!0;case"dragenter":return dn=Rr(dn,e,t,n,r,i),!0;case"mouseover":return pn=Rr(pn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return si.set(l,Rr(si.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ui.set(l,Rr(ui.get(l)||null,e,t,n,r,i)),!0}return!1}function $d(e){var t=Pn(e.target);if(t!==null){var n=Vn(t);if(n!==null){if(t=n.tag,t===13){if(t=_d(n),t!==null){e.blockedOn=t,Bd(e.priority,function(){zd(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 al(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ia(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ea=r,n.target.dispatchEvent(r),Ea=null}else return t=ji(n),t!==null&&Is(t),e.blockedOn=n,!1;t.shift()}return!0}function Ku(e,t,n){al(e)&&n.delete(t)}function bg(){_a=!1,fn!==null&&al(fn)&&(fn=null),dn!==null&&al(dn)&&(dn=null),pn!==null&&al(pn)&&(pn=null),si.forEach(Ku),ui.forEach(Ku)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,_a||(_a=!0,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,bg)))}function ci(e){function t(i){return Dr(i,e)}if(0<Hi.length){Dr(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&Dr(fn,e),dn!==null&&Dr(dn,e),pn!==null&&Dr(pn,e),si.forEach(t),ui.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)$d(n),n.blockedOn===null&&an.shift()}var dr=Zt.ReactCurrentBatchConfig,Nl=!0;function Sg(e,t,n,r){var i=ae,l=dr.transition;dr.transition=null;try{ae=1,As(e,t,n,r)}finally{ae=i,dr.transition=l}}function Eg(e,t,n,r){var i=ae,l=dr.transition;dr.transition=null;try{ae=4,As(e,t,n,r)}finally{ae=i,dr.transition=l}}function As(e,t,n,r){if(Nl){var i=Ia(e,t,n,r);if(i===null)zo(e,t,r,jl,n),Yu(e,r);else if(wg(i,e,t,n,r))r.stopPropagation();else if(Yu(e,r),t&4&&-1<kg.indexOf(e)){for(;i!==null;){var l=ji(i);if(l!==null&&Od(l),l=Ia(e,t,n,r),l===null&&zo(e,t,r,jl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var jl=null;function Ia(e,t,n,r){if(jl=null,e=js(r),e=Pn(e),e!==null)if(t=Vn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_d(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 jl=e,null}function Ud(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(fg()){case Ts:return 1;case Ld:return 4;case El:case dg:return 16;case Fd:return 536870912;default:return 16}default:return 16}}var un=null,Ps=null,sl=null;function Hd(){if(sl)return sl;var e,t=Ps,n=t.length,r,i="value"in un?un.value:un.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 sl=i.slice(e,1<r?1-r:void 0)}function ul(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 Vi(){return!0}function Xu(){return!1}function dt(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)?Vi:Xu,this.isPropagationStopped=Xu,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),t}var Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ls=dt(Cr),Ni=ve({},Cr,{view:0,detail:0}),Cg=dt(Ni),_o,Io,Or,Zl=ve({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fs,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!==Or&&(Or&&e.type==="mousemove"?(_o=e.screenX-Or.screenX,Io=e.screenY-Or.screenY):Io=_o=0,Or=e),_o)},movementY:function(e){return"movementY"in e?e.movementY:Io}}),Zu=dt(Zl),Ng=ve({},Zl,{dataTransfer:0}),jg=dt(Ng),Tg=ve({},Ni,{relatedTarget:0}),Ao=dt(Tg),_g=ve({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ig=dt(_g),Ag=ve({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pg=dt(Ag),Lg=ve({},Cr,{data:0}),Ju=dt(Lg),Fg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rg={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"},Dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Og(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dg[e])?!!t[e]:!1}function Fs(){return Og}var zg=ve({},Ni,{key:function(e){if(e.key){var t=Fg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ul(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fs,charCode:function(e){return e.type==="keypress"?ul(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ul(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mg=dt(zg),Bg=ve({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ec=dt(Bg),$g=ve({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fs}),Ug=dt($g),Hg=ve({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vg=dt(Hg),Wg=ve({},Zl,{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}),Gg=dt(Wg),qg=[9,13,27,32],Rs=Qt&&"CompositionEvent"in window,Yr=null;Qt&&"documentMode"in document&&(Yr=document.documentMode);var Qg=Qt&&"TextEvent"in window&&!Yr,Vd=Qt&&(!Rs||Yr&&8<Yr&&11>=Yr),tc=" ",nc=!1;function Wd(e,t){switch(e){case"keyup":return qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jn=!1;function Yg(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(nc=!0,tc);case"textInput":return e=t.data,e===tc&&nc?null:e;default:return null}}function Kg(e,t){if(Jn)return e==="compositionend"||!Rs&&Wd(e,t)?(e=Hd(),sl=Ps=un=null,Jn=!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 Vd&&t.locale!=="ko"?null:t.data;default:return null}}var Xg={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 rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xg[e.type]:t==="textarea"}function qd(e,t,n,r){Ed(r),t=Tl(t,"onChange"),0<t.length&&(n=new Ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kr=null,fi=null;function Zg(e){ip(e,0)}function Jl(e){var t=nr(e);if(yd(t))return e}function Jg(e,t){if(e==="change")return t}var Qd=!1;if(Qt){var Po;if(Qt){var Lo="oninput"in document;if(!Lo){var ic=document.createElement("div");ic.setAttribute("oninput","return;"),Lo=typeof ic.oninput=="function"}Po=Lo}else Po=!1;Qd=Po&&(!document.documentMode||9<document.documentMode)}function lc(){Kr&&(Kr.detachEvent("onpropertychange",Yd),fi=Kr=null)}function Yd(e){if(e.propertyName==="value"&&Jl(fi)){var t=[];qd(t,fi,e,js(e)),Td(Zg,t)}}function ey(e,t,n){e==="focusin"?(lc(),Kr=t,fi=n,Kr.attachEvent("onpropertychange",Yd)):e==="focusout"&&lc()}function ty(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(fi)}function ny(e,t){if(e==="click")return Jl(t)}function ry(e,t){if(e==="input"||e==="change")return Jl(t)}function iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:iy;function di(e,t){if(_t(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(!da.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function oc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ac(e,t){var n=oc(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=oc(n)}}function Kd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xd(){for(var e=window,t=wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wl(e.document)}return t}function Ds(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 ly(e){var t=Xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kd(n.ownerDocument.documentElement,n)){if(r!==null&&Ds(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=ac(n,l);var o=ac(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 oy=Qt&&"documentMode"in document&&11>=document.documentMode,er=null,Aa=null,Xr=null,Pa=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pa||er==null||er!==wl(r)||(r=er,"selectionStart"in r&&Ds(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}),Xr&&di(Xr,r)||(Xr=r,r=Tl(Aa,"onSelect"),0<r.length&&(t=new Ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=er)))}function Wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tr={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionend:Wi("Transition","TransitionEnd")},Fo={},Zd={};Qt&&(Zd=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function eo(e){if(Fo[e])return Fo[e];if(!tr[e])return e;var t=tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zd)return Fo[e]=t[n];return e}var Jd=eo("animationend"),ep=eo("animationiteration"),tp=eo("animationstart"),np=eo("transitionend"),rp=new Map,uc="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 wn(e,t){rp.set(e,t),Hn(t,[e])}for(var Ro=0;Ro<uc.length;Ro++){var Do=uc[Ro],ay=Do.toLowerCase(),sy=Do[0].toUpperCase()+Do.slice(1);wn(ay,"on"+sy)}wn(Jd,"onAnimationEnd");wn(ep,"onAnimationIteration");wn(tp,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(np,"onTransitionEnd");gr("onMouseEnter",["mouseout","mouseover"]);gr("onMouseLeave",["mouseout","mouseover"]);gr("onPointerEnter",["pointerout","pointerover"]);gr("onPointerLeave",["pointerout","pointerover"]);Hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gr="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(" "),uy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gr));function cc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ag(r,t,void 0,e),e.currentTarget=null}function ip(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;cc(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;cc(i,a,u),l=s}}}if(Sl)throw e=ja,Sl=!1,ja=null,e}function he(e,t){var n=t[Oa];n===void 0&&(n=t[Oa]=new Set);var r=e+"__bubble";n.has(r)||(lp(t,e,2,!1),n.add(r))}function Oo(e,t,n){var r=0;t&&(r|=4),lp(n,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[Gi]){e[Gi]=!0,dd.forEach(function(n){n!=="selectionchange"&&(uy.has(n)||Oo(n,!1,e),Oo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,Oo("selectionchange",!1,t))}}function lp(e,t,n,r){switch(Ud(t)){case 1:var i=Sg;break;case 4:i=Eg;break;default:i=As}n=i.bind(null,t,n,e),i=void 0,!Na||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 zo(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=Pn(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}Td(function(){var u=l,f=js(n),c=[];e:{var p=rp.get(e);if(p!==void 0){var h=Ls,m=e;switch(e){case"keypress":if(ul(n)===0)break e;case"keydown":case"keyup":h=Mg;break;case"focusin":m="focus",h=Ao;break;case"focusout":m="blur",h=Ao;break;case"beforeblur":case"afterblur":h=Ao;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=jg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Ug;break;case Jd:case ep:case tp:h=Ig;break;case np:h=Vg;break;case"scroll":h=Cg;break;case"wheel":h=Gg;break;case"copy":case"cut":case"paste":h=Pg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ec}var v=(t&4)!==0,w=!v&&e==="scroll",y=v?p!==null?p+"Capture":null:p;v=[];for(var x=u,g;x!==null;){g=x;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,y!==null&&(S=ai(x,y),S!=null&&v.push(hi(x,S,g)))),w)break;x=x.return}0<v.length&&(p=new h(p,m,null,n,f),c.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==Ea&&(m=n.relatedTarget||n.fromElement)&&(Pn(m)||m[Yt]))break e;if((h||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?Pn(m):null,m!==null&&(w=Vn(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(v=Zu,S="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(v=ec,S="onPointerLeave",y="onPointerEnter",x="pointer"),w=h==null?p:nr(h),g=m==null?p:nr(m),p=new v(S,x+"leave",h,n,f),p.target=w,p.relatedTarget=g,S=null,Pn(f)===u&&(v=new v(y,x+"enter",m,n,f),v.target=g,v.relatedTarget=w,S=v),w=S,h&&m)t:{for(v=h,y=m,x=0,g=v;g;g=qn(g))x++;for(g=0,S=y;S;S=qn(S))g++;for(;0<x-g;)v=qn(v),x--;for(;0<g-x;)y=qn(y),g--;for(;x--;){if(v===y||y!==null&&v===y.alternate)break t;v=qn(v),y=qn(y)}v=null}else v=null;h!==null&&fc(c,p,h,v,!1),m!==null&&w!==null&&fc(c,w,m,v,!0)}}e:{if(p=u?nr(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var N=Jg;else if(rc(p))if(Qd)N=ry;else{N=ty;var b=ey}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(N=ny);if(N&&(N=N(e,u))){qd(c,N,n,f);break e}b&&b(e,p,u),e==="focusout"&&(b=p._wrapperState)&&b.controlled&&p.type==="number"&&va(p,"number",p.value)}switch(b=u?nr(u):window,e){case"focusin":(rc(b)||b.contentEditable==="true")&&(er=b,Aa=u,Xr=null);break;case"focusout":Xr=Aa=er=null;break;case"mousedown":Pa=!0;break;case"contextmenu":case"mouseup":case"dragend":Pa=!1,sc(c,n,f);break;case"selectionchange":if(oy)break;case"keydown":case"keyup":sc(c,n,f)}var j;if(Rs)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Jn?Wd(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Vd&&n.locale!=="ko"&&(Jn||_!=="onCompositionStart"?_==="onCompositionEnd"&&Jn&&(j=Hd()):(un=f,Ps="value"in un?un.value:un.textContent,Jn=!0)),b=Tl(u,_),0<b.length&&(_=new Ju(_,e,null,n,f),c.push({event:_,listeners:b}),j?_.data=j:(j=Gd(n),j!==null&&(_.data=j)))),(j=Qg?Yg(e,n):Kg(e,n))&&(u=Tl(u,"onBeforeInput"),0<u.length&&(f=new Ju("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=j))}ip(c,t)})}function hi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Tl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ai(e,n),l!=null&&r.unshift(hi(e,l,i)),l=ai(e,t),l!=null&&r.push(hi(e,l,i))),e=e.return}return r}function qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fc(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=ai(n,l),s!=null&&o.unshift(hi(n,s,a))):i||(s=ai(n,l),s!=null&&o.push(hi(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var cy=/\r\n?/g,fy=/\u0000|\uFFFD/g;function dc(e){return(typeof e=="string"?e:""+e).replace(cy,`
|
|
38
|
-
`).replace(fy,"")}function qi(e,t,n){if(t=dc(t),dc(e)!==t&&n)throw Error(D(425))}function _l(){}var La=null,Fa=null;function Ra(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Da=typeof setTimeout=="function"?setTimeout:void 0,dy=typeof clearTimeout=="function"?clearTimeout:void 0,pc=typeof Promise=="function"?Promise:void 0,py=typeof queueMicrotask=="function"?queueMicrotask:typeof pc<"u"?function(e){return pc.resolve(null).then(e).catch(hy)}:Da;function hy(e){setTimeout(function(){throw e})}function Mo(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),ci(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ci(t)}function hn(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 hc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nr=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Nr,mi="__reactProps$"+Nr,Yt="__reactContainer$"+Nr,Oa="__reactEvents$"+Nr,my="__reactListeners$"+Nr,gy="__reactHandles$"+Nr;function Pn(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yt]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hc(e);e!==null;){if(n=e[Lt])return n;e=hc(e)}return t}e=n,n=e.parentNode}return null}function ji(e){return e=e[Lt]||e[Yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function to(e){return e[mi]||null}var za=[],rr=-1;function bn(e){return{current:e}}function me(e){0>rr||(e.current=za[rr],za[rr]=null,rr--)}function de(e,t){rr++,za[rr]=e.current,e.current=t}var kn={},ze=bn(kn),Je=bn(!1),On=kn;function yr(e,t){var n=e.type.contextTypes;if(!n)return kn;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 et(e){return e=e.childContextTypes,e!=null}function Il(){me(Je),me(ze)}function mc(e,t,n){if(ze.current!==kn)throw Error(D(168));de(ze,t),de(Je,n)}function op(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(D(108,eg(e)||"Unknown",i));return ve({},n,r)}function Al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,On=ze.current,de(ze,e),de(Je,Je.current),!0}function gc(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=op(e,t,On),r.__reactInternalMemoizedMergedChildContext=e,me(Je),me(ze),de(ze,e)):me(Je),de(Je,n)}var Vt=null,no=!1,Bo=!1;function ap(e){Vt===null?Vt=[e]:Vt.push(e)}function yy(e){no=!0,ap(e)}function Sn(){if(!Bo&&Vt!==null){Bo=!0;var e=0,t=ae;try{var n=Vt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,no=!1}catch(i){throw Vt!==null&&(Vt=Vt.slice(e+1)),Pd(Ts,Sn),i}finally{ae=t,Bo=!1}}return null}var ir=[],lr=0,Pl=null,Ll=0,ht=[],mt=0,zn=null,Wt=1,Gt="";function _n(e,t){ir[lr++]=Ll,ir[lr++]=Pl,Pl=e,Ll=t}function sp(e,t,n){ht[mt++]=Wt,ht[mt++]=Gt,ht[mt++]=zn,zn=e;var r=Wt;e=Gt;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var l=32-Nt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wt=1<<32-Nt(t)+i|n<<i|r,Gt=l+e}else Wt=1<<l|n<<i|r,Gt=e}function Os(e){e.return!==null&&(_n(e,1),sp(e,1,0))}function zs(e){for(;e===Pl;)Pl=ir[--lr],ir[lr]=null,Ll=ir[--lr],ir[lr]=null;for(;e===zn;)zn=ht[--mt],ht[mt]=null,Gt=ht[--mt],ht[mt]=null,Wt=ht[--mt],ht[mt]=null}var st=null,at=null,ge=!1,Ct=null;function up(e,t){var n=yt(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 yc(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,st=e,at=hn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zn!==null?{id:Wt,overflow:Gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,at=null,!0):!1;default:return!1}}function Ma(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ba(e){if(ge){var t=at;if(t){var n=t;if(!yc(e,t)){if(Ma(e))throw Error(D(418));t=hn(n.nextSibling);var r=st;t&&yc(e,t)?up(r,n):(e.flags=e.flags&-4097|2,ge=!1,st=e)}}else{if(Ma(e))throw Error(D(418));e.flags=e.flags&-4097|2,ge=!1,st=e}}}function xc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function Qi(e){if(e!==st)return!1;if(!ge)return xc(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ra(e.type,e.memoizedProps)),t&&(t=at)){if(Ma(e))throw cp(),Error(D(418));for(;t;)up(e,t),t=hn(t.nextSibling)}if(xc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){at=hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}at=null}}else at=st?hn(e.stateNode.nextSibling):null;return!0}function cp(){for(var e=at;e;)e=hn(e.nextSibling)}function xr(){at=st=null,ge=!1}function Ms(e){Ct===null?Ct=[e]:Ct.push(e)}var xy=Zt.ReactCurrentBatchConfig;function zr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var 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(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vc(e){var t=e._init;return t(e._payload)}function fp(e){function t(y,x){if(e){var g=y.deletions;g===null?(y.deletions=[x],y.flags|=16):g.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(y,x){return y=xn(y,x),y.index=0,y.sibling=null,y}function l(y,x,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<x?(y.flags|=2,x):g):(y.flags|=2,x)):(y.flags|=1048576,x)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,x,g,S){return x===null||x.tag!==6?(x=qo(g,y.mode,S),x.return=y,x):(x=i(x,g),x.return=y,x)}function s(y,x,g,S){var N=g.type;return N===Zn?f(y,x,g.props.children,S,g.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ln&&vc(N)===x.type)?(S=i(x,g.props),S.ref=zr(y,x,g),S.return=y,S):(S=gl(g.type,g.key,g.props,null,y.mode,S),S.ref=zr(y,x,g),S.return=y,S)}function u(y,x,g,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==g.containerInfo||x.stateNode.implementation!==g.implementation?(x=Qo(g,y.mode,S),x.return=y,x):(x=i(x,g.children||[]),x.return=y,x)}function f(y,x,g,S,N){return x===null||x.tag!==7?(x=Dn(g,y.mode,S,N),x.return=y,x):(x=i(x,g),x.return=y,x)}function c(y,x,g){if(typeof x=="string"&&x!==""||typeof x=="number")return x=qo(""+x,y.mode,g),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case zi:return g=gl(x.type,x.key,x.props,null,y.mode,g),g.ref=zr(y,null,x),g.return=y,g;case Xn:return x=Qo(x,y.mode,g),x.return=y,x;case ln:var S=x._init;return c(y,S(x._payload),g)}if(Vr(x)||Lr(x))return x=Dn(x,y.mode,g,null),x.return=y,x;Yi(y,x)}return null}function p(y,x,g,S){var N=x!==null?x.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return N!==null?null:a(y,x,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zi:return g.key===N?s(y,x,g,S):null;case Xn:return g.key===N?u(y,x,g,S):null;case ln:return N=g._init,p(y,x,N(g._payload),S)}if(Vr(g)||Lr(g))return N!==null?null:f(y,x,g,S,null);Yi(y,g)}return null}function h(y,x,g,S,N){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(g)||null,a(x,y,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case zi:return y=y.get(S.key===null?g:S.key)||null,s(x,y,S,N);case Xn:return y=y.get(S.key===null?g:S.key)||null,u(x,y,S,N);case ln:var b=S._init;return h(y,x,g,b(S._payload),N)}if(Vr(S)||Lr(S))return y=y.get(g)||null,f(x,y,S,N,null);Yi(x,S)}return null}function m(y,x,g,S){for(var N=null,b=null,j=x,_=x=0,L=null;j!==null&&_<g.length;_++){j.index>_?(L=j,j=null):L=j.sibling;var C=p(y,j,g[_],S);if(C===null){j===null&&(j=L);break}e&&j&&C.alternate===null&&t(y,j),x=l(C,x,_),b===null?N=C:b.sibling=C,b=C,j=L}if(_===g.length)return n(y,j),ge&&_n(y,_),N;if(j===null){for(;_<g.length;_++)j=c(y,g[_],S),j!==null&&(x=l(j,x,_),b===null?N=j:b.sibling=j,b=j);return ge&&_n(y,_),N}for(j=r(y,j);_<g.length;_++)L=h(j,y,_,g[_],S),L!==null&&(e&&L.alternate!==null&&j.delete(L.key===null?_:L.key),x=l(L,x,_),b===null?N=L:b.sibling=L,b=L);return e&&j.forEach(function(R){return t(y,R)}),ge&&_n(y,_),N}function v(y,x,g,S){var N=Lr(g);if(typeof N!="function")throw Error(D(150));if(g=N.call(g),g==null)throw Error(D(151));for(var b=N=null,j=x,_=x=0,L=null,C=g.next();j!==null&&!C.done;_++,C=g.next()){j.index>_?(L=j,j=null):L=j.sibling;var R=p(y,j,C.value,S);if(R===null){j===null&&(j=L);break}e&&j&&R.alternate===null&&t(y,j),x=l(R,x,_),b===null?N=R:b.sibling=R,b=R,j=L}if(C.done)return n(y,j),ge&&_n(y,_),N;if(j===null){for(;!C.done;_++,C=g.next())C=c(y,C.value,S),C!==null&&(x=l(C,x,_),b===null?N=C:b.sibling=C,b=C);return ge&&_n(y,_),N}for(j=r(y,j);!C.done;_++,C=g.next())C=h(j,y,_,C.value,S),C!==null&&(e&&C.alternate!==null&&j.delete(C.key===null?_:C.key),x=l(C,x,_),b===null?N=C:b.sibling=C,b=C);return e&&j.forEach(function(M){return t(y,M)}),ge&&_n(y,_),N}function w(y,x,g,S){if(typeof g=="object"&&g!==null&&g.type===Zn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case zi:e:{for(var N=g.key,b=x;b!==null;){if(b.key===N){if(N=g.type,N===Zn){if(b.tag===7){n(y,b.sibling),x=i(b,g.props.children),x.return=y,y=x;break e}}else if(b.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ln&&vc(N)===b.type){n(y,b.sibling),x=i(b,g.props),x.ref=zr(y,b,g),x.return=y,y=x;break e}n(y,b);break}else t(y,b);b=b.sibling}g.type===Zn?(x=Dn(g.props.children,y.mode,S,g.key),x.return=y,y=x):(S=gl(g.type,g.key,g.props,null,y.mode,S),S.ref=zr(y,x,g),S.return=y,y=S)}return o(y);case Xn:e:{for(b=g.key;x!==null;){if(x.key===b)if(x.tag===4&&x.stateNode.containerInfo===g.containerInfo&&x.stateNode.implementation===g.implementation){n(y,x.sibling),x=i(x,g.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=Qo(g,y.mode,S),x.return=y,y=x}return o(y);case ln:return b=g._init,w(y,x,b(g._payload),S)}if(Vr(g))return m(y,x,g,S);if(Lr(g))return v(y,x,g,S);Yi(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,x!==null&&x.tag===6?(n(y,x.sibling),x=i(x,g),x.return=y,y=x):(n(y,x),x=qo(g,y.mode,S),x.return=y,y=x),o(y)):n(y,x)}return w}var vr=fp(!0),dp=fp(!1),Fl=bn(null),Rl=null,or=null,Bs=null;function $s(){Bs=or=Rl=null}function Us(e){var t=Fl.current;me(Fl),e._currentValue=t}function $a(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 pr(e,t){Rl=e,Bs=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Bs!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Rl===null)throw Error(D(308));or=e,Rl.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Ln=null;function Hs(e){Ln===null?Ln=[e]:Ln.push(e)}function pp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Hs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Kt(e,r)}function Kt(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 on=!1;function Vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hp(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 qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Kt(e,n)}return i=r.interleaved,i===null?(t.next=t,Hs(r)):(t.next=i.next,i.next=t),r.interleaved=t,Kt(e,n)}function cl(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,_s(e,n)}}function kc(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 Dl(e,t,n,r){var i=e.updateQueue;on=!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 p=a.lane,h=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,v=a;switch(p=t,h=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(h,c,p);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,p=typeof m=="function"?m.call(h,c,p):m,p==null)break e;c=ve({},c,p);break e;case 2:on=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(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);Bn|=o,e.lanes=o,e.memoizedState=c}}function wc(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(D(191,i));i.call(r)}}}var Ti={},Rt=bn(Ti),gi=bn(Ti),yi=bn(Ti);function Fn(e){if(e===Ti)throw Error(D(174));return e}function Ws(e,t){switch(de(yi,t),de(gi,e),de(Rt,Ti),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wa(t,e)}me(Rt),de(Rt,t)}function kr(){me(Rt),me(gi),me(yi)}function mp(e){Fn(yi.current);var t=Fn(Rt.current),n=wa(t,e.type);t!==n&&(de(gi,e),de(Rt,n))}function Gs(e){gi.current===e&&(me(Rt),me(gi))}var ye=bn(0);function Ol(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 $o=[];function qs(){for(var e=0;e<$o.length;e++)$o[e]._workInProgressVersionPrimary=null;$o.length=0}var fl=Zt.ReactCurrentDispatcher,Uo=Zt.ReactCurrentBatchConfig,Mn=0,xe=null,Ce=null,je=null,zl=!1,Zr=!1,xi=0,vy=0;function Fe(){throw Error(D(321))}function Qs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Ys(e,t,n,r,i,l){if(Mn=l,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fl.current=e===null||e.memoizedState===null?Sy:Ey,e=n(r,i),Zr){l=0;do{if(Zr=!1,xi=0,25<=l)throw Error(D(301));l+=1,je=Ce=null,t.updateQueue=null,fl.current=Cy,e=n(r,i)}while(Zr)}if(fl.current=Ml,t=Ce!==null&&Ce.next!==null,Mn=0,je=Ce=xe=null,zl=!1,t)throw Error(D(300));return e}function Ks(){var e=xi!==0;return xi=0,e}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?xe.memoizedState=je=e:je=je.next=e,je}function kt(){if(Ce===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=je===null?xe.memoizedState:je.next;if(t!==null)je=t,Ce=e;else{if(e===null)throw Error(D(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},je===null?xe.memoizedState=je=e:je=je.next=e}return je}function vi(e,t){return typeof t=="function"?t(e):t}function Ho(e){var t=kt(),n=t.queue;if(n===null)throw Error(D(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((Mn&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,xe.lanes|=f,Bn|=f}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,_t(r,t.memoizedState)||(Ze=!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,xe.lanes|=l,Bn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vo(e){var t=kt(),n=t.queue;if(n===null)throw Error(D(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);_t(l,t.memoizedState)||(Ze=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function gp(){}function yp(e,t){var n=xe,r=kt(),i=t(),l=!_t(r.memoizedState,i);if(l&&(r.memoizedState=i,Ze=!0),r=r.queue,Xs(kp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,ki(9,vp.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(D(349));Mn&30||xp(n,t,i)}return i}function xp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vp(e,t,n,r){t.value=n,t.getSnapshot=r,wp(t)&&bp(e)}function kp(e,t,n){return n(function(){wp(t)&&bp(e)})}function wp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function bp(e){var t=Kt(e,1);t!==null&&jt(t,e,1,-1)}function bc(e){var t=At();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=by.bind(null,xe,e),[t.memoizedState,e]}function ki(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.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 kt().memoizedState}function dl(e,t,n,r){var i=At();xe.flags|=e,i.memoizedState=ki(1|t,n,void 0,r===void 0?null:r)}function ro(e,t,n,r){var i=kt();r=r===void 0?null:r;var l=void 0;if(Ce!==null){var o=Ce.memoizedState;if(l=o.destroy,r!==null&&Qs(r,o.deps)){i.memoizedState=ki(t,n,l,r);return}}xe.flags|=e,i.memoizedState=ki(1|t,n,l,r)}function Sc(e,t){return dl(8390656,8,e,t)}function Xs(e,t){return ro(2048,8,e,t)}function Ep(e,t){return ro(4,2,e,t)}function Cp(e,t){return ro(4,4,e,t)}function Np(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 jp(e,t,n){return n=n!=null?n.concat([e]):null,ro(4,4,Np.bind(null,t,e),n)}function Zs(){}function Tp(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _p(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ip(e,t,n){return Mn&21?(_t(n,t)||(n=Rd(),xe.lanes|=n,Bn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=n)}function ky(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Uo.transition;Uo.transition={};try{e(!1),t()}finally{ae=n,Uo.transition=r}}function Ap(){return kt().memoizedState}function wy(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pp(e))Lp(t,n);else if(n=pp(e,t,n,r),n!==null){var i=Ve();jt(n,e,r,i),Fp(n,t,r)}}function by(e,t,n){var r=yn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))Lp(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,_t(a,o)){var s=t.interleaved;s===null?(i.next=i,Hs(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=pp(e,t,i,r),n!==null&&(i=Ve(),jt(n,e,r,i),Fp(n,t,r))}}function Pp(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Lp(e,t){Zr=zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_s(e,n)}}var Ml={readContext:vt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Sy={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dl(4194308,4,Np.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();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=wy.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:bc,useDebugValue:Zs,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=bc(!1),t=e[0];return e=ky.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,i=At();if(ge){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Te===null)throw Error(D(349));Mn&30||xp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Sc(kp.bind(null,r,l,e),[e]),r.flags|=2048,ki(9,vp.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(ge){var n=Gt,r=Wt;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ey={readContext:vt,useCallback:Tp,useContext:vt,useEffect:Xs,useImperativeHandle:jp,useInsertionEffect:Ep,useLayoutEffect:Cp,useMemo:_p,useReducer:Ho,useRef:Sp,useState:function(){return Ho(vi)},useDebugValue:Zs,useDeferredValue:function(e){var t=kt();return Ip(t,Ce.memoizedState,e)},useTransition:function(){var e=Ho(vi)[0],t=kt().memoizedState;return[e,t]},useMutableSource:gp,useSyncExternalStore:yp,useId:Ap,unstable_isNewReconciler:!1},Cy={readContext:vt,useCallback:Tp,useContext:vt,useEffect:Xs,useImperativeHandle:jp,useInsertionEffect:Ep,useLayoutEffect:Cp,useMemo:_p,useReducer:Vo,useRef:Sp,useState:function(){return Vo(vi)},useDebugValue:Zs,useDeferredValue:function(e){var t=kt();return Ce===null?t.memoizedState=e:Ip(t,Ce.memoizedState,e)},useTransition:function(){var e=Vo(vi)[0],t=kt().memoizedState;return[e,t]},useMutableSource:gp,useSyncExternalStore:yp,useId:Ap,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ua(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var io={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ve(),i=yn(e),l=qt(r,i);l.payload=t,n!=null&&(l.callback=n),t=mn(e,l,i),t!==null&&(jt(t,e,i,r),cl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ve(),i=yn(e),l=qt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=mn(e,l,i),t!==null&&(jt(t,e,i,r),cl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ve(),r=yn(e),i=qt(n,r);i.tag=2,t!=null&&(i.callback=t),t=mn(e,i,r),t!==null&&(jt(t,e,r,n),cl(t,e,r))}};function Ec(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?!di(n,r)||!di(i,l):!0}function Rp(e,t,n){var r=!1,i=kn,l=t.contextType;return typeof l=="object"&&l!==null?l=vt(l):(i=et(t)?On:ze.current,r=t.contextTypes,l=(r=r!=null)?yr(e,i):kn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=io,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Cc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&io.enqueueReplaceState(t,t.state,null)}function Ha(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Vs(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=vt(l):(l=et(t)?On:ze.current,i.context=yr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Ua(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&&io.enqueueReplaceState(i,i.state,null),Dl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function wr(e,t){try{var n="",r=t;do n+=Jm(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
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{Co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function Jm(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=No(e.type,!1),e;case 11:return e=No(e.type.render,!1),e;case 1:return e=No(e.type,!0),e;default:return""}}function ga(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 Zn:return"Fragment";case Xn:return"Portal";case pa:return"Profiler";case Es:return"StrictMode";case ha:return"Suspense";case ma:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hd:return(e.displayName||"Context")+".Consumer";case pd:return(e._context.displayName||"Context")+".Provider";case Cs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ns:return t=e.displayName||null,t!==null?t:ga(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return ga(e(t))}catch{}}return null}function eg(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 ga(t);case 8:return t===Es?"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 vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tg(e){var t=gd(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 Mi(e){e._valueTracker||(e._valueTracker=tg(e))}function yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wl(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 ya(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vn(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 xd(e,t){t=t.checked,t!=null&&Ss(e,"checked",t,!1)}function xa(e,t){xd(e,t);var n=vn(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")?va(e,t.type,n):t.hasOwnProperty("defaultValue")&&va(e,t.type,vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hu(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 va(e,t,n){(t!=="number"||wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vr=Array.isArray;function ur(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=""+vn(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 ka(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vu(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(Vr(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vn(n)}}function vd(e,t){var n=vn(t.value),r=vn(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 Wu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kd(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 wa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,wd=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(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qr={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},ng=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(e){ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qr[t]=qr[e]})});function bd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qr.hasOwnProperty(e)&&qr[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=bd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rg=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(rg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Sa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ea=null;function js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,cr=null,fr=null;function Gu(e){if(e=ji(e)){if(typeof Ca!="function")throw Error(O(280));var t=e.stateNode;t&&(t=to(t),Ca(e.stateNode,e.type,t))}}function Ed(e){cr?fr?fr.push(e):fr=[e]:cr=e}function Cd(){if(cr){var e=cr,t=fr;if(fr=cr=null,Gu(e),t)for(e=0;e<t.length;e++)Gu(t[e])}}function Nd(e,t){return e(t)}function jd(){}var jo=!1;function Td(e,t,n){if(jo)return e(t,n);jo=!0;try{return Nd(e,t,n)}finally{jo=!1,(cr!==null||fr!==null)&&(jd(),Cd())}}function ai(e,t){var n=e.stateNode;if(n===null)return null;var r=to(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 Na=!1;if(Qt)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){Na=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Na=!1}function ig(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 Qr=!1,bl=null,Sl=!1,ja=null,lg={onError:function(e){Qr=!0,bl=e}};function og(e,t,n,r,i,l,o,a,s){Qr=!1,bl=null,ig.apply(lg,arguments)}function ag(e,t,n,r,i,l,o,a,s){if(og.apply(this,arguments),Qr){if(Qr){var u=bl;Qr=!1,bl=null}else throw Error(O(198));Sl||(Sl=!0,ja=u)}}function Vn(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 _d(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 qu(e){if(Vn(e)!==e)throw Error(O(188))}function sg(e){var t=e.alternate;if(!t){if(t=Vn(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 qu(i),e;if(l===r)return qu(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 Id(e){return e=sg(e),e!==null?Ad(e):null}function Ad(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ad(e);if(t!==null)return t;e=e.sibling}return null}var Pd=ct.unstable_scheduleCallback,Qu=ct.unstable_cancelCallback,ug=ct.unstable_shouldYield,cg=ct.unstable_requestPaint,be=ct.unstable_now,fg=ct.unstable_getCurrentPriorityLevel,Ts=ct.unstable_ImmediatePriority,Ld=ct.unstable_UserBlockingPriority,El=ct.unstable_NormalPriority,dg=ct.unstable_LowPriority,Fd=ct.unstable_IdlePriority,Xl=null,Ft=null;function pg(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:gg,hg=Math.log,mg=Math.LN2;function gg(e){return e>>>=0,e===0?32:31-(hg(e)/mg|0)|0}var $i=64,Ui=4194304;function Wr(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 Cl(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=Wr(a):(l&=o,l!==0&&(r=Wr(l)))}else o=n&~i,o!==0?r=Wr(o):l!==0&&(r=Wr(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-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function yg(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 xg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Nt(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=yg(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function Ta(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rd(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function To(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function vg(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-Nt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function _s(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function Od(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Dd,Is,zd,Md,Bd,_a=!1,Hi=[],fn=null,dn=null,pn=null,si=new Map,ui=new Map,an=[],kg="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 Yu(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(t.pointerId)}}function Rr(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=ji(t),t!==null&&Is(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function wg(e,t,n,r,i){switch(t){case"focusin":return fn=Rr(fn,e,t,n,r,i),!0;case"dragenter":return dn=Rr(dn,e,t,n,r,i),!0;case"mouseover":return pn=Rr(pn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return si.set(l,Rr(si.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ui.set(l,Rr(ui.get(l)||null,e,t,n,r,i)),!0}return!1}function $d(e){var t=Pn(e.target);if(t!==null){var n=Vn(t);if(n!==null){if(t=n.tag,t===13){if(t=_d(n),t!==null){e.blockedOn=t,Bd(e.priority,function(){zd(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 al(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ia(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ea=r,n.target.dispatchEvent(r),Ea=null}else return t=ji(n),t!==null&&Is(t),e.blockedOn=n,!1;t.shift()}return!0}function Ku(e,t,n){al(e)&&n.delete(t)}function bg(){_a=!1,fn!==null&&al(fn)&&(fn=null),dn!==null&&al(dn)&&(dn=null),pn!==null&&al(pn)&&(pn=null),si.forEach(Ku),ui.forEach(Ku)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,_a||(_a=!0,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,bg)))}function ci(e){function t(i){return Or(i,e)}if(0<Hi.length){Or(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&Or(fn,e),dn!==null&&Or(dn,e),pn!==null&&Or(pn,e),si.forEach(t),ui.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)$d(n),n.blockedOn===null&&an.shift()}var dr=Zt.ReactCurrentBatchConfig,Nl=!0;function Sg(e,t,n,r){var i=ae,l=dr.transition;dr.transition=null;try{ae=1,As(e,t,n,r)}finally{ae=i,dr.transition=l}}function Eg(e,t,n,r){var i=ae,l=dr.transition;dr.transition=null;try{ae=4,As(e,t,n,r)}finally{ae=i,dr.transition=l}}function As(e,t,n,r){if(Nl){var i=Ia(e,t,n,r);if(i===null)zo(e,t,r,jl,n),Yu(e,r);else if(wg(i,e,t,n,r))r.stopPropagation();else if(Yu(e,r),t&4&&-1<kg.indexOf(e)){for(;i!==null;){var l=ji(i);if(l!==null&&Dd(l),l=Ia(e,t,n,r),l===null&&zo(e,t,r,jl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var jl=null;function Ia(e,t,n,r){if(jl=null,e=js(r),e=Pn(e),e!==null)if(t=Vn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_d(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 jl=e,null}function Ud(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(fg()){case Ts:return 1;case Ld:return 4;case El:case dg:return 16;case Fd:return 536870912;default:return 16}default:return 16}}var un=null,Ps=null,sl=null;function Hd(){if(sl)return sl;var e,t=Ps,n=t.length,r,i="value"in un?un.value:un.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 sl=i.slice(e,1<r?1-r:void 0)}function ul(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 Vi(){return!0}function Xu(){return!1}function dt(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)?Vi:Xu,this.isPropagationStopped=Xu,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),t}var Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ls=dt(Cr),Ni=ve({},Cr,{view:0,detail:0}),Cg=dt(Ni),_o,Io,Dr,Zl=ve({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fs,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!==Dr&&(Dr&&e.type==="mousemove"?(_o=e.screenX-Dr.screenX,Io=e.screenY-Dr.screenY):Io=_o=0,Dr=e),_o)},movementY:function(e){return"movementY"in e?e.movementY:Io}}),Zu=dt(Zl),Ng=ve({},Zl,{dataTransfer:0}),jg=dt(Ng),Tg=ve({},Ni,{relatedTarget:0}),Ao=dt(Tg),_g=ve({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ig=dt(_g),Ag=ve({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pg=dt(Ag),Lg=ve({},Cr,{data:0}),Ju=dt(Lg),Fg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rg={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"},Og={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Og[e])?!!t[e]:!1}function Fs(){return Dg}var zg=ve({},Ni,{key:function(e){if(e.key){var t=Fg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ul(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fs,charCode:function(e){return e.type==="keypress"?ul(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ul(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mg=dt(zg),Bg=ve({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ec=dt(Bg),$g=ve({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fs}),Ug=dt($g),Hg=ve({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vg=dt(Hg),Wg=ve({},Zl,{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}),Gg=dt(Wg),qg=[9,13,27,32],Rs=Qt&&"CompositionEvent"in window,Yr=null;Qt&&"documentMode"in document&&(Yr=document.documentMode);var Qg=Qt&&"TextEvent"in window&&!Yr,Vd=Qt&&(!Rs||Yr&&8<Yr&&11>=Yr),tc=" ",nc=!1;function Wd(e,t){switch(e){case"keyup":return qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jn=!1;function Yg(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(nc=!0,tc);case"textInput":return e=t.data,e===tc&&nc?null:e;default:return null}}function Kg(e,t){if(Jn)return e==="compositionend"||!Rs&&Wd(e,t)?(e=Hd(),sl=Ps=un=null,Jn=!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 Vd&&t.locale!=="ko"?null:t.data;default:return null}}var Xg={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 rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xg[e.type]:t==="textarea"}function qd(e,t,n,r){Ed(r),t=Tl(t,"onChange"),0<t.length&&(n=new Ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kr=null,fi=null;function Zg(e){ip(e,0)}function Jl(e){var t=nr(e);if(yd(t))return e}function Jg(e,t){if(e==="change")return t}var Qd=!1;if(Qt){var Po;if(Qt){var Lo="oninput"in document;if(!Lo){var ic=document.createElement("div");ic.setAttribute("oninput","return;"),Lo=typeof ic.oninput=="function"}Po=Lo}else Po=!1;Qd=Po&&(!document.documentMode||9<document.documentMode)}function lc(){Kr&&(Kr.detachEvent("onpropertychange",Yd),fi=Kr=null)}function Yd(e){if(e.propertyName==="value"&&Jl(fi)){var t=[];qd(t,fi,e,js(e)),Td(Zg,t)}}function ey(e,t,n){e==="focusin"?(lc(),Kr=t,fi=n,Kr.attachEvent("onpropertychange",Yd)):e==="focusout"&&lc()}function ty(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(fi)}function ny(e,t){if(e==="click")return Jl(t)}function ry(e,t){if(e==="input"||e==="change")return Jl(t)}function iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:iy;function di(e,t){if(_t(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(!da.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function oc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ac(e,t){var n=oc(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=oc(n)}}function Kd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xd(){for(var e=window,t=wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wl(e.document)}return t}function Os(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 ly(e){var t=Xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kd(n.ownerDocument.documentElement,n)){if(r!==null&&Os(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=ac(n,l);var o=ac(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 oy=Qt&&"documentMode"in document&&11>=document.documentMode,er=null,Aa=null,Xr=null,Pa=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pa||er==null||er!==wl(r)||(r=er,"selectionStart"in r&&Os(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}),Xr&&di(Xr,r)||(Xr=r,r=Tl(Aa,"onSelect"),0<r.length&&(t=new Ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=er)))}function Wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tr={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionend:Wi("Transition","TransitionEnd")},Fo={},Zd={};Qt&&(Zd=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function eo(e){if(Fo[e])return Fo[e];if(!tr[e])return e;var t=tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zd)return Fo[e]=t[n];return e}var Jd=eo("animationend"),ep=eo("animationiteration"),tp=eo("animationstart"),np=eo("transitionend"),rp=new Map,uc="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 wn(e,t){rp.set(e,t),Hn(t,[e])}for(var Ro=0;Ro<uc.length;Ro++){var Oo=uc[Ro],ay=Oo.toLowerCase(),sy=Oo[0].toUpperCase()+Oo.slice(1);wn(ay,"on"+sy)}wn(Jd,"onAnimationEnd");wn(ep,"onAnimationIteration");wn(tp,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(np,"onTransitionEnd");gr("onMouseEnter",["mouseout","mouseover"]);gr("onMouseLeave",["mouseout","mouseover"]);gr("onPointerEnter",["pointerout","pointerover"]);gr("onPointerLeave",["pointerout","pointerover"]);Hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gr="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(" "),uy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gr));function cc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ag(r,t,void 0,e),e.currentTarget=null}function ip(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;cc(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;cc(i,a,u),l=s}}}if(Sl)throw e=ja,Sl=!1,ja=null,e}function he(e,t){var n=t[Da];n===void 0&&(n=t[Da]=new Set);var r=e+"__bubble";n.has(r)||(lp(t,e,2,!1),n.add(r))}function Do(e,t,n){var r=0;t&&(r|=4),lp(n,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[Gi]){e[Gi]=!0,dd.forEach(function(n){n!=="selectionchange"&&(uy.has(n)||Do(n,!1,e),Do(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,Do("selectionchange",!1,t))}}function lp(e,t,n,r){switch(Ud(t)){case 1:var i=Sg;break;case 4:i=Eg;break;default:i=As}n=i.bind(null,t,n,e),i=void 0,!Na||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 zo(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=Pn(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}Td(function(){var u=l,f=js(n),c=[];e:{var p=rp.get(e);if(p!==void 0){var h=Ls,m=e;switch(e){case"keypress":if(ul(n)===0)break e;case"keydown":case"keyup":h=Mg;break;case"focusin":m="focus",h=Ao;break;case"focusout":m="blur",h=Ao;break;case"beforeblur":case"afterblur":h=Ao;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=jg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Ug;break;case Jd:case ep:case tp:h=Ig;break;case np:h=Vg;break;case"scroll":h=Cg;break;case"wheel":h=Gg;break;case"copy":case"cut":case"paste":h=Pg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ec}var v=(t&4)!==0,w=!v&&e==="scroll",y=v?p!==null?p+"Capture":null:p;v=[];for(var x=u,g;x!==null;){g=x;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,y!==null&&(S=ai(x,y),S!=null&&v.push(hi(x,S,g)))),w)break;x=x.return}0<v.length&&(p=new h(p,m,null,n,f),c.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==Ea&&(m=n.relatedTarget||n.fromElement)&&(Pn(m)||m[Yt]))break e;if((h||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?Pn(m):null,m!==null&&(w=Vn(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(v=Zu,S="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(v=ec,S="onPointerLeave",y="onPointerEnter",x="pointer"),w=h==null?p:nr(h),g=m==null?p:nr(m),p=new v(S,x+"leave",h,n,f),p.target=w,p.relatedTarget=g,S=null,Pn(f)===u&&(v=new v(y,x+"enter",m,n,f),v.target=g,v.relatedTarget=w,S=v),w=S,h&&m)t:{for(v=h,y=m,x=0,g=v;g;g=qn(g))x++;for(g=0,S=y;S;S=qn(S))g++;for(;0<x-g;)v=qn(v),x--;for(;0<g-x;)y=qn(y),g--;for(;x--;){if(v===y||y!==null&&v===y.alternate)break t;v=qn(v),y=qn(y)}v=null}else v=null;h!==null&&fc(c,p,h,v,!1),m!==null&&w!==null&&fc(c,w,m,v,!0)}}e:{if(p=u?nr(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var N=Jg;else if(rc(p))if(Qd)N=ry;else{N=ty;var b=ey}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(N=ny);if(N&&(N=N(e,u))){qd(c,N,n,f);break e}b&&b(e,p,u),e==="focusout"&&(b=p._wrapperState)&&b.controlled&&p.type==="number"&&va(p,"number",p.value)}switch(b=u?nr(u):window,e){case"focusin":(rc(b)||b.contentEditable==="true")&&(er=b,Aa=u,Xr=null);break;case"focusout":Xr=Aa=er=null;break;case"mousedown":Pa=!0;break;case"contextmenu":case"mouseup":case"dragend":Pa=!1,sc(c,n,f);break;case"selectionchange":if(oy)break;case"keydown":case"keyup":sc(c,n,f)}var j;if(Rs)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Jn?Wd(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Vd&&n.locale!=="ko"&&(Jn||_!=="onCompositionStart"?_==="onCompositionEnd"&&Jn&&(j=Hd()):(un=f,Ps="value"in un?un.value:un.textContent,Jn=!0)),b=Tl(u,_),0<b.length&&(_=new Ju(_,e,null,n,f),c.push({event:_,listeners:b}),j?_.data=j:(j=Gd(n),j!==null&&(_.data=j)))),(j=Qg?Yg(e,n):Kg(e,n))&&(u=Tl(u,"onBeforeInput"),0<u.length&&(f=new Ju("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=j))}ip(c,t)})}function hi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Tl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ai(e,n),l!=null&&r.unshift(hi(e,l,i)),l=ai(e,t),l!=null&&r.push(hi(e,l,i))),e=e.return}return r}function qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fc(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=ai(n,l),s!=null&&o.unshift(hi(n,s,a))):i||(s=ai(n,l),s!=null&&o.push(hi(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var cy=/\r\n?/g,fy=/\u0000|\uFFFD/g;function dc(e){return(typeof e=="string"?e:""+e).replace(cy,`
|
|
38
|
+
`).replace(fy,"")}function qi(e,t,n){if(t=dc(t),dc(e)!==t&&n)throw Error(O(425))}function _l(){}var La=null,Fa=null;function Ra(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oa=typeof setTimeout=="function"?setTimeout:void 0,dy=typeof clearTimeout=="function"?clearTimeout:void 0,pc=typeof Promise=="function"?Promise:void 0,py=typeof queueMicrotask=="function"?queueMicrotask:typeof pc<"u"?function(e){return pc.resolve(null).then(e).catch(hy)}:Oa;function hy(e){setTimeout(function(){throw e})}function Mo(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),ci(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ci(t)}function hn(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 hc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nr=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Nr,mi="__reactProps$"+Nr,Yt="__reactContainer$"+Nr,Da="__reactEvents$"+Nr,my="__reactListeners$"+Nr,gy="__reactHandles$"+Nr;function Pn(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yt]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hc(e);e!==null;){if(n=e[Lt])return n;e=hc(e)}return t}e=n,n=e.parentNode}return null}function ji(e){return e=e[Lt]||e[Yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function to(e){return e[mi]||null}var za=[],rr=-1;function bn(e){return{current:e}}function me(e){0>rr||(e.current=za[rr],za[rr]=null,rr--)}function de(e,t){rr++,za[rr]=e.current,e.current=t}var kn={},ze=bn(kn),Je=bn(!1),Dn=kn;function yr(e,t){var n=e.type.contextTypes;if(!n)return kn;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 et(e){return e=e.childContextTypes,e!=null}function Il(){me(Je),me(ze)}function mc(e,t,n){if(ze.current!==kn)throw Error(O(168));de(ze,t),de(Je,n)}function op(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,eg(e)||"Unknown",i));return ve({},n,r)}function Al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,Dn=ze.current,de(ze,e),de(Je,Je.current),!0}function gc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=op(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,me(Je),me(ze),de(ze,e)):me(Je),de(Je,n)}var Vt=null,no=!1,Bo=!1;function ap(e){Vt===null?Vt=[e]:Vt.push(e)}function yy(e){no=!0,ap(e)}function Sn(){if(!Bo&&Vt!==null){Bo=!0;var e=0,t=ae;try{var n=Vt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,no=!1}catch(i){throw Vt!==null&&(Vt=Vt.slice(e+1)),Pd(Ts,Sn),i}finally{ae=t,Bo=!1}}return null}var ir=[],lr=0,Pl=null,Ll=0,ht=[],mt=0,zn=null,Wt=1,Gt="";function _n(e,t){ir[lr++]=Ll,ir[lr++]=Pl,Pl=e,Ll=t}function sp(e,t,n){ht[mt++]=Wt,ht[mt++]=Gt,ht[mt++]=zn,zn=e;var r=Wt;e=Gt;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var l=32-Nt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wt=1<<32-Nt(t)+i|n<<i|r,Gt=l+e}else Wt=1<<l|n<<i|r,Gt=e}function Ds(e){e.return!==null&&(_n(e,1),sp(e,1,0))}function zs(e){for(;e===Pl;)Pl=ir[--lr],ir[lr]=null,Ll=ir[--lr],ir[lr]=null;for(;e===zn;)zn=ht[--mt],ht[mt]=null,Gt=ht[--mt],ht[mt]=null,Wt=ht[--mt],ht[mt]=null}var st=null,at=null,ge=!1,Ct=null;function up(e,t){var n=yt(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 yc(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,st=e,at=hn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zn!==null?{id:Wt,overflow:Gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,at=null,!0):!1;default:return!1}}function Ma(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ba(e){if(ge){var t=at;if(t){var n=t;if(!yc(e,t)){if(Ma(e))throw Error(O(418));t=hn(n.nextSibling);var r=st;t&&yc(e,t)?up(r,n):(e.flags=e.flags&-4097|2,ge=!1,st=e)}}else{if(Ma(e))throw Error(O(418));e.flags=e.flags&-4097|2,ge=!1,st=e}}}function xc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function Qi(e){if(e!==st)return!1;if(!ge)return xc(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ra(e.type,e.memoizedProps)),t&&(t=at)){if(Ma(e))throw cp(),Error(O(418));for(;t;)up(e,t),t=hn(t.nextSibling)}if(xc(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){at=hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}at=null}}else at=st?hn(e.stateNode.nextSibling):null;return!0}function cp(){for(var e=at;e;)e=hn(e.nextSibling)}function xr(){at=st=null,ge=!1}function Ms(e){Ct===null?Ct=[e]:Ct.push(e)}var xy=Zt.ReactCurrentBatchConfig;function zr(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 Yi(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vc(e){var t=e._init;return t(e._payload)}function fp(e){function t(y,x){if(e){var g=y.deletions;g===null?(y.deletions=[x],y.flags|=16):g.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(y,x){return y=xn(y,x),y.index=0,y.sibling=null,y}function l(y,x,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<x?(y.flags|=2,x):g):(y.flags|=2,x)):(y.flags|=1048576,x)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,x,g,S){return x===null||x.tag!==6?(x=qo(g,y.mode,S),x.return=y,x):(x=i(x,g),x.return=y,x)}function s(y,x,g,S){var N=g.type;return N===Zn?f(y,x,g.props.children,S,g.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ln&&vc(N)===x.type)?(S=i(x,g.props),S.ref=zr(y,x,g),S.return=y,S):(S=gl(g.type,g.key,g.props,null,y.mode,S),S.ref=zr(y,x,g),S.return=y,S)}function u(y,x,g,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==g.containerInfo||x.stateNode.implementation!==g.implementation?(x=Qo(g,y.mode,S),x.return=y,x):(x=i(x,g.children||[]),x.return=y,x)}function f(y,x,g,S,N){return x===null||x.tag!==7?(x=On(g,y.mode,S,N),x.return=y,x):(x=i(x,g),x.return=y,x)}function c(y,x,g){if(typeof x=="string"&&x!==""||typeof x=="number")return x=qo(""+x,y.mode,g),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case zi:return g=gl(x.type,x.key,x.props,null,y.mode,g),g.ref=zr(y,null,x),g.return=y,g;case Xn:return x=Qo(x,y.mode,g),x.return=y,x;case ln:var S=x._init;return c(y,S(x._payload),g)}if(Vr(x)||Lr(x))return x=On(x,y.mode,g,null),x.return=y,x;Yi(y,x)}return null}function p(y,x,g,S){var N=x!==null?x.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return N!==null?null:a(y,x,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zi:return g.key===N?s(y,x,g,S):null;case Xn:return g.key===N?u(y,x,g,S):null;case ln:return N=g._init,p(y,x,N(g._payload),S)}if(Vr(g)||Lr(g))return N!==null?null:f(y,x,g,S,null);Yi(y,g)}return null}function h(y,x,g,S,N){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(g)||null,a(x,y,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case zi:return y=y.get(S.key===null?g:S.key)||null,s(x,y,S,N);case Xn:return y=y.get(S.key===null?g:S.key)||null,u(x,y,S,N);case ln:var b=S._init;return h(y,x,g,b(S._payload),N)}if(Vr(S)||Lr(S))return y=y.get(g)||null,f(x,y,S,N,null);Yi(x,S)}return null}function m(y,x,g,S){for(var N=null,b=null,j=x,_=x=0,L=null;j!==null&&_<g.length;_++){j.index>_?(L=j,j=null):L=j.sibling;var C=p(y,j,g[_],S);if(C===null){j===null&&(j=L);break}e&&j&&C.alternate===null&&t(y,j),x=l(C,x,_),b===null?N=C:b.sibling=C,b=C,j=L}if(_===g.length)return n(y,j),ge&&_n(y,_),N;if(j===null){for(;_<g.length;_++)j=c(y,g[_],S),j!==null&&(x=l(j,x,_),b===null?N=j:b.sibling=j,b=j);return ge&&_n(y,_),N}for(j=r(y,j);_<g.length;_++)L=h(j,y,_,g[_],S),L!==null&&(e&&L.alternate!==null&&j.delete(L.key===null?_:L.key),x=l(L,x,_),b===null?N=L:b.sibling=L,b=L);return e&&j.forEach(function(R){return t(y,R)}),ge&&_n(y,_),N}function v(y,x,g,S){var N=Lr(g);if(typeof N!="function")throw Error(O(150));if(g=N.call(g),g==null)throw Error(O(151));for(var b=N=null,j=x,_=x=0,L=null,C=g.next();j!==null&&!C.done;_++,C=g.next()){j.index>_?(L=j,j=null):L=j.sibling;var R=p(y,j,C.value,S);if(R===null){j===null&&(j=L);break}e&&j&&R.alternate===null&&t(y,j),x=l(R,x,_),b===null?N=R:b.sibling=R,b=R,j=L}if(C.done)return n(y,j),ge&&_n(y,_),N;if(j===null){for(;!C.done;_++,C=g.next())C=c(y,C.value,S),C!==null&&(x=l(C,x,_),b===null?N=C:b.sibling=C,b=C);return ge&&_n(y,_),N}for(j=r(y,j);!C.done;_++,C=g.next())C=h(j,y,_,C.value,S),C!==null&&(e&&C.alternate!==null&&j.delete(C.key===null?_:C.key),x=l(C,x,_),b===null?N=C:b.sibling=C,b=C);return e&&j.forEach(function(M){return t(y,M)}),ge&&_n(y,_),N}function w(y,x,g,S){if(typeof g=="object"&&g!==null&&g.type===Zn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case zi:e:{for(var N=g.key,b=x;b!==null;){if(b.key===N){if(N=g.type,N===Zn){if(b.tag===7){n(y,b.sibling),x=i(b,g.props.children),x.return=y,y=x;break e}}else if(b.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ln&&vc(N)===b.type){n(y,b.sibling),x=i(b,g.props),x.ref=zr(y,b,g),x.return=y,y=x;break e}n(y,b);break}else t(y,b);b=b.sibling}g.type===Zn?(x=On(g.props.children,y.mode,S,g.key),x.return=y,y=x):(S=gl(g.type,g.key,g.props,null,y.mode,S),S.ref=zr(y,x,g),S.return=y,y=S)}return o(y);case Xn:e:{for(b=g.key;x!==null;){if(x.key===b)if(x.tag===4&&x.stateNode.containerInfo===g.containerInfo&&x.stateNode.implementation===g.implementation){n(y,x.sibling),x=i(x,g.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=Qo(g,y.mode,S),x.return=y,y=x}return o(y);case ln:return b=g._init,w(y,x,b(g._payload),S)}if(Vr(g))return m(y,x,g,S);if(Lr(g))return v(y,x,g,S);Yi(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,x!==null&&x.tag===6?(n(y,x.sibling),x=i(x,g),x.return=y,y=x):(n(y,x),x=qo(g,y.mode,S),x.return=y,y=x),o(y)):n(y,x)}return w}var vr=fp(!0),dp=fp(!1),Fl=bn(null),Rl=null,or=null,Bs=null;function $s(){Bs=or=Rl=null}function Us(e){var t=Fl.current;me(Fl),e._currentValue=t}function $a(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 pr(e,t){Rl=e,Bs=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Bs!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Rl===null)throw Error(O(308));or=e,Rl.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Ln=null;function Hs(e){Ln===null?Ln=[e]:Ln.push(e)}function pp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Hs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Kt(e,r)}function Kt(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 on=!1;function Vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hp(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 qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Kt(e,n)}return i=r.interleaved,i===null?(t.next=t,Hs(r)):(t.next=i.next,i.next=t),r.interleaved=t,Kt(e,n)}function cl(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,_s(e,n)}}function kc(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 Ol(e,t,n,r){var i=e.updateQueue;on=!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 p=a.lane,h=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,v=a;switch(p=t,h=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(h,c,p);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,p=typeof m=="function"?m.call(h,c,p):m,p==null)break e;c=ve({},c,p);break e;case 2:on=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(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);Bn|=o,e.lanes=o,e.memoizedState=c}}function wc(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 Ti={},Rt=bn(Ti),gi=bn(Ti),yi=bn(Ti);function Fn(e){if(e===Ti)throw Error(O(174));return e}function Ws(e,t){switch(de(yi,t),de(gi,e),de(Rt,Ti),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wa(t,e)}me(Rt),de(Rt,t)}function kr(){me(Rt),me(gi),me(yi)}function mp(e){Fn(yi.current);var t=Fn(Rt.current),n=wa(t,e.type);t!==n&&(de(gi,e),de(Rt,n))}function Gs(e){gi.current===e&&(me(Rt),me(gi))}var ye=bn(0);function Dl(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 $o=[];function qs(){for(var e=0;e<$o.length;e++)$o[e]._workInProgressVersionPrimary=null;$o.length=0}var fl=Zt.ReactCurrentDispatcher,Uo=Zt.ReactCurrentBatchConfig,Mn=0,xe=null,Ce=null,je=null,zl=!1,Zr=!1,xi=0,vy=0;function Fe(){throw Error(O(321))}function Qs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Ys(e,t,n,r,i,l){if(Mn=l,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fl.current=e===null||e.memoizedState===null?Sy:Ey,e=n(r,i),Zr){l=0;do{if(Zr=!1,xi=0,25<=l)throw Error(O(301));l+=1,je=Ce=null,t.updateQueue=null,fl.current=Cy,e=n(r,i)}while(Zr)}if(fl.current=Ml,t=Ce!==null&&Ce.next!==null,Mn=0,je=Ce=xe=null,zl=!1,t)throw Error(O(300));return e}function Ks(){var e=xi!==0;return xi=0,e}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?xe.memoizedState=je=e:je=je.next=e,je}function kt(){if(Ce===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=je===null?xe.memoizedState:je.next;if(t!==null)je=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},je===null?xe.memoizedState=je=e:je=je.next=e}return je}function vi(e,t){return typeof t=="function"?t(e):t}function Ho(e){var t=kt(),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((Mn&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,xe.lanes|=f,Bn|=f}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,_t(r,t.memoizedState)||(Ze=!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,xe.lanes|=l,Bn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vo(e){var t=kt(),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);_t(l,t.memoizedState)||(Ze=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function gp(){}function yp(e,t){var n=xe,r=kt(),i=t(),l=!_t(r.memoizedState,i);if(l&&(r.memoizedState=i,Ze=!0),r=r.queue,Xs(kp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,ki(9,vp.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(O(349));Mn&30||xp(n,t,i)}return i}function xp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vp(e,t,n,r){t.value=n,t.getSnapshot=r,wp(t)&&bp(e)}function kp(e,t,n){return n(function(){wp(t)&&bp(e)})}function wp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function bp(e){var t=Kt(e,1);t!==null&&jt(t,e,1,-1)}function bc(e){var t=At();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=by.bind(null,xe,e),[t.memoizedState,e]}function ki(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.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 kt().memoizedState}function dl(e,t,n,r){var i=At();xe.flags|=e,i.memoizedState=ki(1|t,n,void 0,r===void 0?null:r)}function ro(e,t,n,r){var i=kt();r=r===void 0?null:r;var l=void 0;if(Ce!==null){var o=Ce.memoizedState;if(l=o.destroy,r!==null&&Qs(r,o.deps)){i.memoizedState=ki(t,n,l,r);return}}xe.flags|=e,i.memoizedState=ki(1|t,n,l,r)}function Sc(e,t){return dl(8390656,8,e,t)}function Xs(e,t){return ro(2048,8,e,t)}function Ep(e,t){return ro(4,2,e,t)}function Cp(e,t){return ro(4,4,e,t)}function Np(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 jp(e,t,n){return n=n!=null?n.concat([e]):null,ro(4,4,Np.bind(null,t,e),n)}function Zs(){}function Tp(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _p(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ip(e,t,n){return Mn&21?(_t(n,t)||(n=Rd(),xe.lanes|=n,Bn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=n)}function ky(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Uo.transition;Uo.transition={};try{e(!1),t()}finally{ae=n,Uo.transition=r}}function Ap(){return kt().memoizedState}function wy(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pp(e))Lp(t,n);else if(n=pp(e,t,n,r),n!==null){var i=Ve();jt(n,e,r,i),Fp(n,t,r)}}function by(e,t,n){var r=yn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))Lp(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,_t(a,o)){var s=t.interleaved;s===null?(i.next=i,Hs(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=pp(e,t,i,r),n!==null&&(i=Ve(),jt(n,e,r,i),Fp(n,t,r))}}function Pp(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Lp(e,t){Zr=zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_s(e,n)}}var Ml={readContext:vt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Sy={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dl(4194308,4,Np.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();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=wy.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:bc,useDebugValue:Zs,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=bc(!1),t=e[0];return e=ky.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,i=At();if(ge){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Te===null)throw Error(O(349));Mn&30||xp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Sc(kp.bind(null,r,l,e),[e]),r.flags|=2048,ki(9,vp.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(ge){var n=Gt,r=Wt;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ey={readContext:vt,useCallback:Tp,useContext:vt,useEffect:Xs,useImperativeHandle:jp,useInsertionEffect:Ep,useLayoutEffect:Cp,useMemo:_p,useReducer:Ho,useRef:Sp,useState:function(){return Ho(vi)},useDebugValue:Zs,useDeferredValue:function(e){var t=kt();return Ip(t,Ce.memoizedState,e)},useTransition:function(){var e=Ho(vi)[0],t=kt().memoizedState;return[e,t]},useMutableSource:gp,useSyncExternalStore:yp,useId:Ap,unstable_isNewReconciler:!1},Cy={readContext:vt,useCallback:Tp,useContext:vt,useEffect:Xs,useImperativeHandle:jp,useInsertionEffect:Ep,useLayoutEffect:Cp,useMemo:_p,useReducer:Vo,useRef:Sp,useState:function(){return Vo(vi)},useDebugValue:Zs,useDeferredValue:function(e){var t=kt();return Ce===null?t.memoizedState=e:Ip(t,Ce.memoizedState,e)},useTransition:function(){var e=Vo(vi)[0],t=kt().memoizedState;return[e,t]},useMutableSource:gp,useSyncExternalStore:yp,useId:Ap,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ua(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var io={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ve(),i=yn(e),l=qt(r,i);l.payload=t,n!=null&&(l.callback=n),t=mn(e,l,i),t!==null&&(jt(t,e,i,r),cl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ve(),i=yn(e),l=qt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=mn(e,l,i),t!==null&&(jt(t,e,i,r),cl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ve(),r=yn(e),i=qt(n,r);i.tag=2,t!=null&&(i.callback=t),t=mn(e,i,r),t!==null&&(jt(t,e,r,n),cl(t,e,r))}};function Ec(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?!di(n,r)||!di(i,l):!0}function Rp(e,t,n){var r=!1,i=kn,l=t.contextType;return typeof l=="object"&&l!==null?l=vt(l):(i=et(t)?Dn:ze.current,r=t.contextTypes,l=(r=r!=null)?yr(e,i):kn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=io,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Cc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&io.enqueueReplaceState(t,t.state,null)}function Ha(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Vs(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=vt(l):(l=et(t)?Dn:ze.current,i.context=yr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Ua(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&&io.enqueueReplaceState(i,i.state,null),Ol(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function wr(e,t){try{var n="",r=t;do n+=Jm(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
39
|
Error generating stack: `+l.message+`
|
|
40
|
-
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Wo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Va(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ny=typeof WeakMap=="function"?WeakMap:Map;function Dp(e,t,n){n=qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,es=r),Va(e,t)},n}function Op(e,t,n){n=qt(-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(){Va(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Va(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Nc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ny;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 jc(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 Tc(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=qt(-1,1),t.tag=2,mn(n,t,1))),n.lanes|=1),e)}var jy=Zt.ReactCurrentOwner,Ze=!1;function Ue(e,t,n,r){t.child=e===null?dp(t,null,n,r):vr(t,e.child,n,r)}function _c(e,t,n,r,i){n=n.render;var l=t.ref;return pr(t,i),r=Ys(e,t,n,r,l,i),n=Ks(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ge&&n&&Os(t),t.flags|=1,Ue(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!ou(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,zp(e,t,l,r,i)):(e=gl(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:di,n(o,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=xn(l,r),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(di(l,r)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return Wa(e,t,n,r,i)}function Mp(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},de(sr,ot),ot|=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,de(sr,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,de(sr,ot),ot|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,de(sr,ot),ot|=r;return Ue(e,t,i,n),t.child}function Bp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wa(e,t,n,r,i){var l=et(n)?On:ze.current;return l=yr(t,l),pr(t,i),n=Ys(e,t,n,r,l,i),r=Ks(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ge&&r&&Os(t),t.flags|=1,Ue(e,t,n,i),t.child)}function Ac(e,t,n,r,i){if(et(n)){var l=!0;Al(t)}else l=!1;if(pr(t,i),t.stateNode===null)pl(e,t),Rp(t,n,r),Ha(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=vt(u):(u=et(n)?On:ze.current,u=yr(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)&&Cc(t,o,r,u),on=!1;var p=t.memoizedState;o.state=p,Dl(t,r,o,i),s=t.memoizedState,a!==r||p!==s||Je.current||on?(typeof f=="function"&&(Ua(t,n,f,r),s=t.memoizedState),(a=on||Ec(t,n,a,r,p,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,hp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,c=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=vt(s):(s=et(n)?On:ze.current,s=yr(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||p!==s)&&Cc(t,o,r,s),on=!1,p=t.memoizedState,o.state=p,Dl(t,r,o,i);var m=t.memoizedState;a!==c||p!==m||Je.current||on?(typeof h=="function"&&(Ua(t,n,h,r),m=t.memoizedState),(u=on||Ec(t,n,u,r,p,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&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===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&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ga(e,t,n,r,l,i)}function Ga(e,t,n,r,i,l){Bp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&gc(t,n,!1),Xt(e,t,l);r=t.stateNode,jy.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,l),t.child=vr(t,null,a,l)):Ue(e,t,a,l),t.memoizedState=r.state,i&&gc(t,n,!0),t.child}function $p(e){var t=e.stateNode;t.pendingContext?mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mc(e,t.context,!1),Ws(e,t.containerInfo)}function Pc(e,t,n,r,i){return xr(),Ms(i),t.flags|=256,Ue(e,t,n,r),t.child}var qa={dehydrated:null,treeContext:null,retryLane:0};function Qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Up(e,t,n){var r=t.pendingProps,i=ye.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),de(ye,i&1),e===null)return Ba(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=ao(o,r,0,null),e=Dn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Qa(n),t.memoizedState=qa,e):Js(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ty(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=xn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=xn(a,l):(l=Dn(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?Qa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=qa,r}return l=e.child,e=l.sibling,r=xn(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 Js(e,t){return t=ao({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ki(e,t,n,r){return r!==null&&Ms(r),vr(t,e.child,null,n),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ty(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Wo(Error(D(422))),Ki(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=ao({mode:"visible",children:r.children},i,0,null),l=Dn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&vr(t,e.child,null,o),t.child.memoizedState=Qa(o),t.memoizedState=qa,l);if(!(t.mode&1))return Ki(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(D(419)),r=Wo(l,r,void 0),Ki(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ze||a){if(r=Te,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,Kt(e,i),jt(r,e,i,-1))}return lu(),r=Wo(Error(D(421))),Ki(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$y.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,at=hn(i.nextSibling),st=t,ge=!0,Ct=null,e!==null&&(ht[mt++]=Wt,ht[mt++]=Gt,ht[mt++]=zn,Wt=e.id,Gt=e.overflow,zn=t),t=Js(t,r.children),t.flags|=4096,t)}function Lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$a(e.return,t,n)}function Go(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 Hp(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Ue(e,t,r.children,n),r=ye.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lc(e,n,t);else if(e.tag===19)Lc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ye,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&&Ol(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Go(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&&Ol(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Go(t,!0,n,null,l);break;case"together":Go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _y(e,t,n){switch(t.tag){case 3:$p(t),xr();break;case 5:mp(t);break;case 1:et(t.type)&&Al(t);break;case 4:Ws(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;de(Fl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?Up(e,t,n):(de(ye,ye.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);de(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Mp(e,t,n)}return Xt(e,t,n)}var Vp,Ya,Wp,Gp;Vp=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}};Ya=function(){};Wp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Fn(Rt.current);var l=null;switch(n){case"input":i=ya(e,i),r=ya(e,r),l=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),l=[];break;case"textarea":i=ka(e,i),r=ka(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_l)}ba(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"&&(li.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"&&(li.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&he("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)}};Gp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mr(e,t){if(!ge)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 Re(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 Iy(e,t,n){var r=t.pendingProps;switch(zs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return et(t.type)&&Il(),Re(t),null;case 3:return r=t.stateNode,kr(),me(Je),me(ze),qs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(rs(Ct),Ct=null))),Ya(e,t),Re(t),null;case 5:Gs(t);var i=Fn(yi.current);if(n=t.type,e!==null&&t.stateNode!=null)Wp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Re(t),null}if(e=Fn(Rt.current),Qi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Lt]=t,r[mi]=l,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(i=0;i<Gr.length;i++)he(Gr[i],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":Uu(r,l),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},he("invalid",r);break;case"textarea":Vu(r,l),he("invalid",r)}ba(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&&qi(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&qi(r.textContent,a,e),i=["children",""+a]):li.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&he("scroll",r)}switch(n){case"input":Mi(r),Hu(r,l,!0);break;case"textarea":Mi(r),Wu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=_l)}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=kd(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[Lt]=t,e[mi]=r,Vp(e,t,!1,!1),t.stateNode=e;e:{switch(o=Sa(n,r),n){case"dialog":he("cancel",e),he("close",e),i=r;break;case"iframe":case"object":case"embed":he("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gr.length;i++)he(Gr[i],e);i=r;break;case"source":he("error",e),i=r;break;case"img":case"image":case"link":he("error",e),he("load",e),i=r;break;case"details":he("toggle",e),i=r;break;case"input":Uu(e,r),i=ya(e,r),he("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),he("invalid",e);break;case"textarea":Vu(e,r),i=ka(e,r),he("invalid",e);break;default:i=r}ba(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&&wd(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&oi(e,s):typeof s=="number"&&oi(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(li.hasOwnProperty(l)?s!=null&&l==="onScroll"&&he("scroll",e):s!=null&&Ss(e,l,s,o))}switch(n){case"input":Mi(e),Hu(e,r,!1);break;case"textarea":Mi(e),Wu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?ur(e,!!r.multiple,l,!1):r.defaultValue!=null&&ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_l)}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 Re(t),null;case 6:if(e&&t.stateNode!=null)Gp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Fn(yi.current),Fn(Rt.current),Qi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Lt]=t,(l=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:qi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Lt]=t,t.stateNode=r}return Re(t),null;case 13:if(me(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&at!==null&&t.mode&1&&!(t.flags&128))cp(),xr(),t.flags|=98560,l=!1;else if(l=Qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(D(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(D(317));l[Lt]=t}else xr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),l=!1}else Ct!==null&&(rs(Ct),Ct=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||ye.current&1?Ne===0&&(Ne=3):lu())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return kr(),Ya(e,t),e===null&&pi(t.stateNode.containerInfo),Re(t),null;case 10:return Us(t.type._context),Re(t),null;case 17:return et(t.type)&&Il(),Re(t),null;case 19:if(me(ye),l=t.memoizedState,l===null)return Re(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Mr(l,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ol(e),o!==null){for(t.flags|=128,Mr(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 de(ye,ye.current&1|2),t.child}e=e.sibling}l.tail!==null&&be()>br&&(t.flags|=128,r=!0,Mr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ol(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ge)return Re(t),null}else 2*be()-l.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,Mr(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=be(),t.sibling=null,n=ye.current,de(ye,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return iu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function Ay(e,t){switch(zs(t),t.tag){case 1:return et(t.type)&&Il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),me(Je),me(ze),qs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gs(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return kr(),null;case 10:return Us(t.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var Xi=!1,De=!1,Py=typeof WeakSet=="function"?WeakSet:Set,H=null;function ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Ka(e,t,n){try{n()}catch(r){we(e,t,r)}}var Fc=!1;function Ly(e,t){if(La=Nl,e=Xd(),Ds(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,p=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;)p=c,c=h;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=o),p===l&&++f===r&&(s=o),(h=c.nextSibling)!==null)break;c=p,p=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(Fa={focusedElem:e,selectionRange:n},Nl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;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 v=m.memoizedProps,w=m.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:St(t.type,v),w);y.__reactInternalSnapshotBeforeUpdate=x}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(D(163))}}catch(S){we(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return m=Fc,Fc=!1,m}function Jr(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&&Ka(t,n,l)}i=i.next}while(i!==r)}}function lo(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 Xa(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 qp(e){var t=e.alternate;t!==null&&(e.alternate=null,qp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[mi],delete t[Oa],delete t[my],delete t[gy])),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 Qp(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qp(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 Za(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=_l));else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}function Ja(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(Ja(e,t,n),e=e.sibling;e!==null;)Ja(e,t,n),e=e.sibling}var Ae=null,Et=!1;function tn(e,t,n){for(n=n.child;n!==null;)Yp(e,t,n),n=n.sibling}function Yp(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:De||ar(n,t);case 6:var r=Ae,i=Et;Ae=null,tn(e,t,n),Ae=r,Et=i,Ae!==null&&(Et?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(Et?(e=Ae,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),ci(e)):Mo(Ae,n.stateNode));break;case 4:r=Ae,i=Et,Ae=n.stateNode.containerInfo,Et=!0,tn(e,t,n),Ae=r,Et=i;break;case 0:case 11:case 14:case 15:if(!De&&(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)&&Ka(n,t,o),i=i.next}while(i!==r)}tn(e,t,n);break;case 1:if(!De&&(ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,tn(e,t,n),De=r):tn(e,t,n);break;default:tn(e,t,n)}}function Dc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Py),t.forEach(function(r){var i=Uy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function bt(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:Ae=a.stateNode,Et=!1;break e;case 3:Ae=a.stateNode.containerInfo,Et=!0;break e;case 4:Ae=a.stateNode.containerInfo,Et=!0;break e}a=a.return}if(Ae===null)throw Error(D(160));Yp(l,o,i),Ae=null,Et=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){we(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kp(t,e),t=t.sibling}function Kp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),It(e),r&4){try{Jr(3,e,e.return),lo(3,e)}catch(v){we(e,e.return,v)}try{Jr(5,e,e.return)}catch(v){we(e,e.return,v)}}break;case 1:bt(t,e),It(e),r&512&&n!==null&&ar(n,n.return);break;case 5:if(bt(t,e),It(e),r&512&&n!==null&&ar(n,n.return),e.flags&32){var i=e.stateNode;try{oi(i,"")}catch(v){we(e,e.return,v)}}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&&xd(i,l),Sa(a,o);var u=Sa(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"?wd(i,c):f==="children"?oi(i,c):Ss(i,f,c,u)}switch(a){case"input":xa(i,l);break;case"textarea":vd(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?ur(i,!!l.multiple,h,!1):p!==!!l.multiple&&(l.defaultValue!=null?ur(i,!!l.multiple,l.defaultValue,!0):ur(i,!!l.multiple,l.multiple?[]:"",!1))}i[mi]=l}catch(v){we(e,e.return,v)}}break;case 6:if(bt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(D(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(v){we(e,e.return,v)}}break;case 3:if(bt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ci(t.containerInfo)}catch(v){we(e,e.return,v)}break;case 4:bt(t,e),It(e);break;case 13:bt(t,e),It(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(nu=be())),r&4&&Dc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(De=(u=De)||f,bt(t,e),De=u):bt(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(H=e,f=e.child;f!==null;){for(c=H=f;H!==null;){switch(p=H,h=p.child,p.tag){case 0:case 11:case 14:case 15:Jr(4,p,p.return);break;case 1:ar(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){we(r,n,v)}}break;case 5:ar(p,p.return);break;case 22:if(p.memoizedState!==null){zc(c);continue}}h!==null?(h.return=p,H=h):zc(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=bd("display",o))}catch(v){we(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){we(e,e.return,v)}}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:bt(t,e),It(e),r&4&&Dc(e);break;case 21:break;default:bt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qp(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(oi(i,""),r.flags&=-33);var l=Rc(e);Ja(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Rc(e);Za(e,a,o);break;default:throw Error(D(161))}}catch(s){we(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fy(e,t,n){H=e,Xp(e)}function Xp(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var i=H,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Xi;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||De;a=Xi;var u=De;if(Xi=o,(De=s)&&!u)for(H=i;H!==null;)o=H,s=o.child,o.tag===22&&o.memoizedState!==null?Mc(i):s!==null?(s.return=o,H=s):Mc(i);for(;l!==null;)H=l,Xp(l),l=l.sibling;H=i,Xi=a,De=u}Oc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,H=l):Oc(e)}}function Oc(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:De||lo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!De)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&wc(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}wc(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&&ci(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}De||t.flags&512&&Xa(t)}catch(p){we(t,t.return,p)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function zc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Mc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lo(4,t)}catch(s){we(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){we(t,i,s)}}var l=t.return;try{Xa(t)}catch(s){we(t,l,s)}break;case 5:var o=t.return;try{Xa(t)}catch(s){we(t,o,s)}}}catch(s){we(t,t.return,s)}if(t===e){H=null;break}var a=t.sibling;if(a!==null){a.return=t.return,H=a;break}H=t.return}}var Ry=Math.ceil,Bl=Zt.ReactCurrentDispatcher,eu=Zt.ReactCurrentOwner,xt=Zt.ReactCurrentBatchConfig,le=0,Te=null,Ee=null,Pe=0,ot=0,sr=bn(0),Ne=0,wi=null,Bn=0,oo=0,tu=0,ei=null,Xe=null,nu=0,br=1/0,Ht=null,$l=!1,es=null,gn=null,Zi=!1,cn=null,Ul=0,ti=0,ts=null,hl=-1,ml=0;function Ve(){return le&6?be():hl!==-1?hl:hl=be()}function yn(e){return e.mode&1?le&2&&Pe!==0?Pe&-Pe:xy.transition!==null?(ml===0&&(ml=Rd()),ml):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Ud(e.type)),e):1}function jt(e,t,n,r){if(50<ti)throw ti=0,ts=null,Error(D(185));Ci(e,n,r),(!(le&2)||e!==Te)&&(e===Te&&(!(le&2)&&(oo|=n),Ne===4&&sn(e,Pe)),tt(e,r),n===1&&le===0&&!(t.mode&1)&&(br=be()+500,no&&Sn()))}function tt(e,t){var n=e.callbackNode;xg(e,t);var r=Cl(e,e===Te?Pe:0);if(r===0)n!==null&&Qu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qu(n),t===1)e.tag===0?yy(Bc.bind(null,e)):ap(Bc.bind(null,e)),py(function(){!(le&6)&&Sn()}),n=null;else{switch(Dd(r)){case 1:n=Ts;break;case 4:n=Ld;break;case 16:n=El;break;case 536870912:n=Fd;break;default:n=El}n=lh(n,Zp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zp(e,t){if(hl=-1,ml=0,le&6)throw Error(D(327));var n=e.callbackNode;if(hr()&&e.callbackNode!==n)return null;var r=Cl(e,e===Te?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hl(e,r);else{t=r;var i=le;le|=2;var l=eh();(Te!==e||Pe!==t)&&(Ht=null,br=be()+500,Rn(e,t));do try{zy();break}catch(a){Jp(e,a)}while(!0);$s(),Bl.current=l,le=i,Ee!==null?t=0:(Te=null,Pe=0,t=Ne)}if(t!==0){if(t===2&&(i=Ta(e),i!==0&&(r=i,t=ns(e,i))),t===1)throw n=wi,Rn(e,0),sn(e,r),tt(e,be()),n;if(t===6)sn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Dy(i)&&(t=Hl(e,r),t===2&&(l=Ta(e),l!==0&&(r=l,t=ns(e,l))),t===1))throw n=wi,Rn(e,0),sn(e,r),tt(e,be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:In(e,Xe,Ht);break;case 3:if(sn(e,r),(r&130023424)===r&&(t=nu+500-be(),10<t)){if(Cl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ve(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Da(In.bind(null,e,Xe,Ht),t);break}In(e,Xe,Ht);break;case 4:if(sn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Nt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ry(r/1960))-r,10<r){e.timeoutHandle=Da(In.bind(null,e,Xe,Ht),r);break}In(e,Xe,Ht);break;case 5:In(e,Xe,Ht);break;default:throw Error(D(329))}}}return tt(e,be()),e.callbackNode===n?Zp.bind(null,e):null}function ns(e,t){var n=ei;return e.current.memoizedState.isDehydrated&&(Rn(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&rs(t)),e}function rs(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function Dy(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(!_t(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 sn(e,t){for(t&=~tu,t&=~oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function Bc(e){if(le&6)throw Error(D(327));hr();var t=Cl(e,0);if(!(t&1))return tt(e,be()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var r=Ta(e);r!==0&&(t=r,n=ns(e,r))}if(n===1)throw n=wi,Rn(e,0),sn(e,t),tt(e,be()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,In(e,Xe,Ht),tt(e,be()),null}function ru(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(br=be()+500,no&&Sn())}}function $n(e){cn!==null&&cn.tag===0&&!(le&6)&&hr();var t=le;le|=1;var n=xt.transition,r=ae;try{if(xt.transition=null,ae=1,e)return e()}finally{ae=r,xt.transition=n,le=t,!(le&6)&&Sn()}}function iu(){ot=sr.current,me(sr)}function Rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dy(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(zs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Il();break;case 3:kr(),me(Je),me(ze),qs();break;case 5:Gs(r);break;case 4:kr();break;case 13:me(ye);break;case 19:me(ye);break;case 10:Us(r.type._context);break;case 22:case 23:iu()}n=n.return}if(Te=e,Ee=e=xn(e.current,null),Pe=ot=t,Ne=0,wi=null,tu=oo=Bn=0,Xe=ei=null,Ln!==null){for(t=0;t<Ln.length;t++)if(n=Ln[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}Ln=null}return e}function Jp(e,t){do{var n=Ee;try{if($s(),fl.current=Ml,zl){for(var r=xe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}zl=!1}if(Mn=0,je=Ce=xe=null,Zr=!1,xi=0,eu.current=null,n===null||n.return===null){Ne=1,wi=t,Ee=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=Pe,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 p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=jc(o);if(h!==null){h.flags&=-257,Tc(h,o,a,l,t),h.mode&1&&Nc(l,u,t),t=h,s=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}else{if(!(t&1)){Nc(l,u,t),lu();break e}s=Error(D(426))}}else if(ge&&a.mode&1){var w=jc(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Tc(w,o,a,l,t),Ms(wr(s,a));break e}}l=s=wr(s,a),Ne!==4&&(Ne=2),ei===null?ei=[l]:ei.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var y=Dp(l,s,t);kc(l,y);break e;case 1:a=s;var x=l.type,g=l.stateNode;if(!(l.flags&128)&&(typeof x.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(gn===null||!gn.has(g)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=Op(l,a,t);kc(l,S);break e}}l=l.return}while(l!==null)}nh(n)}catch(N){t=N,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function eh(){var e=Bl.current;return Bl.current=Ml,e===null?Ml:e}function lu(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Te===null||!(Bn&268435455)&&!(oo&268435455)||sn(Te,Pe)}function Hl(e,t){var n=le;le|=2;var r=eh();(Te!==e||Pe!==t)&&(Ht=null,Rn(e,t));do try{Oy();break}catch(i){Jp(e,i)}while(!0);if($s(),le=n,Bl.current=r,Ee!==null)throw Error(D(261));return Te=null,Pe=0,Ne}function Oy(){for(;Ee!==null;)th(Ee)}function zy(){for(;Ee!==null&&!ug();)th(Ee)}function th(e){var t=ih(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?nh(e):Ee=t,eu.current=null}function nh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ay(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Ee=null;return}}else if(n=Iy(n,t,ot),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ne===0&&(Ne=5)}function In(e,t,n){var r=ae,i=xt.transition;try{xt.transition=null,ae=1,My(e,t,n,r)}finally{xt.transition=i,ae=r}return null}function My(e,t,n,r){do hr();while(cn!==null);if(le&6)throw Error(D(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(D(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(vg(e,l),e===Te&&(Ee=Te=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zi||(Zi=!0,lh(El,function(){return hr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=xt.transition,xt.transition=null;var o=ae;ae=1;var a=le;le|=4,eu.current=null,Ly(e,n),Kp(n,e),ly(Fa),Nl=!!La,Fa=La=null,e.current=n,Fy(n),cg(),le=a,ae=o,xt.transition=l}else e.current=n;if(Zi&&(Zi=!1,cn=e,Ul=i),l=e.pendingLanes,l===0&&(gn=null),pg(n.stateNode),tt(e,be()),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($l)throw $l=!1,e=es,es=null,e;return Ul&1&&e.tag!==0&&hr(),l=e.pendingLanes,l&1?e===ts?ti++:(ti=0,ts=e):ti=0,Sn(),null}function hr(){if(cn!==null){var e=Dd(Ul),t=xt.transition,n=ae;try{if(xt.transition=null,ae=16>e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,Ul=0,le&6)throw Error(D(331));var i=le;for(le|=4,H=e.current;H!==null;){var l=H,o=l.child;if(H.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(H=u;H!==null;){var f=H;switch(f.tag){case 0:case 11:case 15:Jr(8,f,l)}var c=f.child;if(c!==null)c.return=f,H=c;else for(;H!==null;){f=H;var p=f.sibling,h=f.return;if(qp(f),f===u){H=null;break}if(p!==null){p.return=h,H=p;break}H=h}}}var m=l.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}H=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,H=o;else e:for(;H!==null;){if(l=H,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Jr(9,l,l.return)}var y=l.sibling;if(y!==null){y.return=l.return,H=y;break e}H=l.return}}var x=e.current;for(H=x;H!==null;){o=H;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,H=g;else e:for(o=x;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:lo(9,a)}}catch(N){we(a,a.return,N)}if(a===o){H=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,H=S;break e}H=a.return}}if(le=i,Sn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Xl,e)}catch{}r=!0}return r}finally{ae=n,xt.transition=t}}return!1}function $c(e,t,n){t=wr(n,t),t=Dp(e,t,1),e=mn(e,t,1),t=Ve(),e!==null&&(Ci(e,1,t),tt(e,t))}function we(e,t,n){if(e.tag===3)$c(e,e,n);else for(;t!==null;){if(t.tag===3){$c(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=wr(n,e),e=Op(t,e,1),t=mn(t,e,1),e=Ve(),t!==null&&(Ci(t,1,e),tt(t,e));break}}t=t.return}}function By(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ve(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Pe&n)===n&&(Ne===4||Ne===3&&(Pe&130023424)===Pe&&500>be()-nu?Rn(e,0):tu|=n),tt(e,t)}function rh(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=Ve();e=Kt(e,t),e!==null&&(Ci(e,t,n),tt(e,n))}function $y(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function Uy(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(D(314))}r!==null&&r.delete(t),rh(e,n)}var ih;ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ze=!1,_y(e,t,n);Ze=!!(e.flags&131072)}else Ze=!1,ge&&t.flags&1048576&&sp(t,Ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var i=yr(t,ze.current);pr(t,n),i=Ys(null,t,r,e,i,n);var l=Ks();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,et(r)?(l=!0,Al(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vs(t),i.updater=io,t.stateNode=i,i._reactInternals=t,Ha(t,r,e,n),t=Ga(null,t,r,!0,l,n)):(t.tag=0,ge&&l&&Os(t),Ue(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Vy(r),e=St(r,e),i){case 0:t=Wa(null,t,r,e,n);break e;case 1:t=Ac(null,t,r,e,n);break e;case 11:t=_c(null,t,r,e,n);break e;case 14:t=Ic(null,t,r,St(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Wa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Ac(e,t,r,i,n);case 3:e:{if($p(t),e===null)throw Error(D(387));r=t.pendingProps,l=t.memoizedState,i=l.element,hp(e,t),Dl(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=wr(Error(D(423)),t),t=Pc(e,t,r,n,i);break e}else if(r!==i){i=wr(Error(D(424)),t),t=Pc(e,t,r,n,i);break e}else for(at=hn(t.stateNode.containerInfo.firstChild),st=t,ge=!0,Ct=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===i){t=Xt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return mp(t),e===null&&Ba(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Ra(r,i)?o=null:l!==null&&Ra(r,l)&&(t.flags|=32),Bp(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&Ba(t),null;case 13:return Up(e,t,n);case 4:return Ws(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),_c(e,t,r,i,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(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,de(Fl,r._currentValue),r._currentValue=o,l!==null)if(_t(l.value,o)){if(l.children===i.children&&!Je.current){t=Xt(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=qt(-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),$a(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(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),$a(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}Ue(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pr(t,n),i=vt(i),r=r(i),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),Ic(e,t,r,i,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),pl(e,t),t.tag=1,et(r)?(e=!0,Al(t)):e=!1,pr(t,n),Rp(t,r,i),Ha(t,r,i,n),Ga(null,t,r,!0,e,n);case 19:return Hp(e,t,n);case 22:return Mp(e,t,n)}throw Error(D(156,t.tag))};function lh(e,t){return Pd(e,t)}function Hy(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 yt(e,t,n,r){return new Hy(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vy(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cs)return 11;if(e===Ns)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=yt(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 gl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")ou(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Zn:return Dn(n.children,i,l,t);case Es:o=8,i|=8;break;case pa:return e=yt(12,n,t,i|2),e.elementType=pa,e.lanes=l,e;case ha:return e=yt(13,n,t,i),e.elementType=ha,e.lanes=l,e;case ma:return e=yt(19,n,t,i),e.elementType=ma,e.lanes=l,e;case md:return ao(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pd:o=10;break e;case hd:o=9;break e;case Cs:o=11;break e;case Ns:o=14;break e;case ln:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=yt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Dn(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function ao(e,t,n,r){return e=yt(22,e,r,t),e.elementType=md,e.lanes=n,e.stateNode={isHidden:!1},e}function qo(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function Qo(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wy(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=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,i,l,o,a,s){return e=new Wy(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=yt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vs(l),e}function Gy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function oh(e){if(!e)return kn;e=e._reactInternals;e:{if(Vn(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(et(n))return op(e,n,t)}return t}function ah(e,t,n,r,i,l,o,a,s){return e=au(n,r,!0,e,i,l,o,a,s),e.context=oh(null),n=e.current,r=Ve(),i=yn(n),l=qt(r,i),l.callback=t??null,mn(n,l,i),e.current.lanes=i,Ci(e,i,r),tt(e,r),e}function so(e,t,n,r){var i=t.current,l=Ve(),o=yn(i);return n=oh(n),t.context===null?t.context=n:t.pendingContext=n,t=qt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mn(i,t,o),e!==null&&(jt(e,i,o,l),cl(e,i,o)),o}function Vl(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 Uc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}function qy(){return null}var sh=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}uo.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));so(e,t,null,null)};uo.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$n(function(){so(null,e,null,null)}),t[Yt]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Md();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&$d(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function co(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hc(){}function Qy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Vl(o);l.call(u)}}var o=ah(t,r,e,0,null,!1,!1,"",Hc);return e._reactRootContainer=o,e[Yt]=o.current,pi(e.nodeType===8?e.parentNode:e),$n(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Vl(s);a.call(u)}}var s=au(e,0,!1,null,null,!1,!1,"",Hc);return e._reactRootContainer=s,e[Yt]=s.current,pi(e.nodeType===8?e.parentNode:e),$n(function(){so(t,s,n,r)}),s}function fo(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=Vl(o);a.call(s)}}so(t,o,e,i)}else o=Qy(n,t,e,i,r);return Vl(o)}Od=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(_s(t,n|1),tt(t,be()),!(le&6)&&(br=be()+500,Sn()))}break;case 13:$n(function(){var r=Kt(e,1);if(r!==null){var i=Ve();jt(r,e,1,i)}}),su(e,1)}};Is=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var n=Ve();jt(t,e,134217728,n)}su(e,134217728)}};zd=function(e){if(e.tag===13){var t=yn(e),n=Kt(e,t);if(n!==null){var r=Ve();jt(n,e,t,r)}su(e,t)}};Md=function(){return ae};Bd=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Ca=function(e,t,n){switch(t){case"input":if(xa(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=to(r);if(!i)throw Error(D(90));yd(r),xa(r,i)}}}break;case"textarea":vd(e,n);break;case"select":t=n.value,t!=null&&ur(e,!!n.multiple,t,!1)}};Nd=ru;jd=$n;var Yy={usingClientEntryPoint:!1,Events:[ji,nr,to,Ed,Cd,ru]},Br={findFiberByHostInstance:Pn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ky={bundleType:Br.bundleType,version:Br.version,rendererPackageName:Br.rendererPackageName,rendererConfig:Br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Id(e),e===null?null:e.stateNode},findFiberByHostInstance:Br.findFiberByHostInstance||qy,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 Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{Xl=Ji.inject(Ky),Ft=Ji}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yy;ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(D(200));return Gy(e,t,null,n)};ft.createRoot=function(e,t){if(!cu(e))throw Error(D(299));var n=!1,r="",i=sh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,r,i),e[Yt]=t.current,pi(e.nodeType===8?e.parentNode:e),new uu(t)};ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Id(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return $n(e)};ft.hydrate=function(e,t,n){if(!co(t))throw Error(D(200));return fo(null,e,t,!0,n)};ft.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=sh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ah(t,null,e,1,n??null,i,!1,l,o),e[Yt]=t.current,pi(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 uo(t)};ft.render=function(e,t,n){if(!co(t))throw Error(D(200));return fo(null,e,t,!1,n)};ft.unmountComponentAtNode=function(e){if(!co(e))throw Error(D(40));return e._reactRootContainer?($n(function(){fo(null,null,e,!1,function(){e._reactRootContainer=null,e[Yt]=null})}),!0):!1};ft.unstable_batchedUpdates=ru;ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!co(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return fo(e,t,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function uh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uh)}catch(e){console.error(e)}}uh(),ud.exports=ft;var Xy=ud.exports,Vc=Xy;fa.createRoot=Vc.createRoot,fa.hydrateRoot=Vc.hydrateRoot;function Zy(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Jy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ex=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tx={};function Wc(e,t){return(tx.jsx?ex:Jy).test(e)}const nx=/[ \t\n\f\r]/g;function rx(e){return typeof e=="object"?e.type==="text"?Gc(e.value):!1:Gc(e)}function Gc(e){return e.replace(nx,"")===""}class _i{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}_i.prototype.normal={};_i.prototype.property={};_i.prototype.space=void 0;function ch(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new _i(n,r,t)}function is(e){return e.toLowerCase()}class nt{constructor(t,n){this.attribute=n,this.property=t}}nt.prototype.attribute="";nt.prototype.booleanish=!1;nt.prototype.boolean=!1;nt.prototype.commaOrSpaceSeparated=!1;nt.prototype.commaSeparated=!1;nt.prototype.defined=!1;nt.prototype.mustUseProperty=!1;nt.prototype.number=!1;nt.prototype.overloadedBoolean=!1;nt.prototype.property="";nt.prototype.spaceSeparated=!1;nt.prototype.space=void 0;let ix=0;const X=Wn(),Se=Wn(),ls=Wn(),z=Wn(),fe=Wn(),mr=Wn(),lt=Wn();function Wn(){return 2**++ix}const os=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:Se,commaOrSpaceSeparated:lt,commaSeparated:mr,number:z,overloadedBoolean:ls,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Yo=Object.keys(os);class fu extends nt{constructor(t,n,r,i){let l=-1;if(super(t,n),qc(this,"space",i),typeof r=="number")for(;++l<Yo.length;){const o=Yo[l];qc(this,Yo[l],(r&os[o])===os[o])}}}fu.prototype.defined=!0;function qc(e,t,n){n&&(e[t]=n)}function jr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new fu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[is(r)]=r,n[is(l.attribute)]=r}return new _i(t,n,e.space)}const fh=jr({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:fe,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:z,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:fe,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Se,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 dh(e,t){return t in e?e[t]:t}function ph(e,t){return dh(e,t.toLowerCase())}const lx=jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mr,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:fe,autoFocus:X,autoPlay:X,blocking:fe,capture:null,charSet:null,checked:X,cite:null,className:fe,cols:z,colSpan:null,content:null,contentEditable:Se,controls:X,controlsList:fe,coords:z|mr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:ls,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:fe,height:z,hidden:ls,high:z,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:fe,itemRef:fe,itemScope:X,itemType:fe,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:fe,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:fe,required:X,reversed:X,rows:z,rowSpan:z,sandbox:fe,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:Se,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:Se,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,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:Se,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:ph}),ox=jr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:lt,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:fe,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:mr,g2:mr,glyphName:mr,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:lt,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:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lt,rev:lt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lt,requiredFeatures:lt,requiredFonts:lt,requiredFormats:lt,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:lt,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:lt,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:lt,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:dh}),hh=jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mh=jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ph}),gh=jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ax={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"},sx=/[A-Z]/g,Qc=/-[a-z]/g,ux=/^data[-\w.:]+$/i;function cx(e,t){const n=is(t);let r=t,i=nt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ux.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Qc,dx);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Qc.test(l)){let o=l.replace(sx,fx);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=fu}return new i(r,t)}function fx(e){return"-"+e.toLowerCase()}function dx(e){return e.charAt(1).toUpperCase()}const px=ch([fh,lx,hh,mh,gh],"html"),du=ch([fh,ox,hh,mh,gh],"svg");function hx(e){return e.join(" ").trim()}var pu={},Yc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mx=/\n/g,gx=/^\s*/,yx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xx=/^:\s*/,vx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kx=/^[;\s]*/,wx=/^\s+|\s+$/g,bx=`
|
|
41
|
-
`,Kc="/",Xc="*",An="",Sx="comment",Ex="declaration";function Cx(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 v=m.match(mx);v&&(n+=v.length);var w=m.lastIndexOf(bx);r=~w?m.length-w:r+m.length}function l(){var m={line:n,column:r};return function(v){return v.position=new o(m),u(),v}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var v=new Error(t.source+":"+n+":"+r+": "+m);if(v.reason=m,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function s(m){var v=m.exec(e);if(v){var w=v[0];return i(w),e=e.slice(w.length),v}}function u(){s(gx)}function f(m){var v;for(m=m||[];v=c();)v!==!1&&m.push(v);return m}function c(){var m=l();if(!(Kc!=e.charAt(0)||Xc!=e.charAt(1))){for(var v=2;An!=e.charAt(v)&&(Xc!=e.charAt(v)||Kc!=e.charAt(v+1));)++v;if(v+=2,An===e.charAt(v-1))return a("End of comment missing");var w=e.slice(2,v-2);return r+=2,i(w),e=e.slice(v),r+=2,m({type:Sx,comment:w})}}function p(){var m=l(),v=s(yx);if(v){if(c(),!s(xx))return a("property missing ':'");var w=s(vx),y=m({type:Ex,property:Zc(v[0].replace(Yc,An)),value:w?Zc(w[0].replace(Yc,An)):An});return s(kx),y}}function h(){var m=[];f(m);for(var v;v=p();)v!==!1&&(m.push(v),f(m));return m}return u(),h()}function Zc(e){return e?e.replace(wx,An):An}var Nx=Cx,jx=kl&&kl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pu,"__esModule",{value:!0});pu.default=_x;const Tx=jx(Nx);function _x(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Tx.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 po={};Object.defineProperty(po,"__esModule",{value:!0});po.camelCase=void 0;var Ix=/^--[a-zA-Z0-9_-]+$/,Ax=/-([a-z])/g,Px=/^[^-]+$/,Lx=/^-(webkit|moz|ms|o|khtml)-/,Fx=/^-(ms)-/,Rx=function(e){return!e||Px.test(e)||Ix.test(e)},Dx=function(e,t){return t.toUpperCase()},Jc=function(e,t){return"".concat(t,"-")},Ox=function(e,t){return t===void 0&&(t={}),Rx(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Fx,Jc):e=e.replace(Lx,Jc),e.replace(Ax,Dx))};po.camelCase=Ox;var zx=kl&&kl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Mx=zx(pu),Bx=po;function as(e,t){var n={};return!e||typeof e!="string"||(0,Mx.default)(e,function(r,i){r&&i&&(n[(0,Bx.camelCase)(r,t)]=i)}),n}as.default=as;var $x=as;const Ux=gs($x),yh=xh("end"),hu=xh("start");function xh(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 Hx(e){const t=hu(e),n=yh(e);if(t&&n)return{start:t,end:n}}function ni(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ef(e.position):"start"in e||"end"in e?ef(e):"line"in e||"column"in e?ss(e):""}function ss(e){return tf(e&&e.line)+":"+tf(e&&e.column)}function ef(e){return ss(e&&e.start)+"-"+ss(e&&e.end)}function tf(e){return e&&typeof e=="number"?e:1}class Me 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=ni(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}}Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;const mu={}.hasOwnProperty,Vx=new Map,Wx=/[A-Z]/g,Gx=new Set(["table","tbody","thead","tfoot","tr"]),qx=new Set(["td","th"]),vh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qx(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=nv(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=tv(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"?du:px,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=kh(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function kh(e,t,n){if(t.type==="element")return Yx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Kx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Zx(e,t,n);if(t.type==="mdxjsEsm")return Xx(e,t);if(t.type==="root")return Jx(e,t,n);if(t.type==="text")return ev(e,t)}function Yx(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=du,e.schema=i),e.ancestors.push(t);const l=bh(e,t.tagName,!1),o=rv(e,t);let a=yu(e,t);return Gx.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!rx(s):!0})),wh(e,o,l,t),gu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Kx(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)}bi(e,t.position)}function Xx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bi(e,t.position)}function Zx(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=du,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:bh(e,t.name,!0),o=iv(e,t),a=yu(e,t);return wh(e,o,l,t),gu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Jx(e,t,n){const r={};return gu(r,yu(e,t)),e.create(t,e.Fragment,r,n)}function ev(e,t){return t.value}function wh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function tv(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 nv(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=hu(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 rv(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&mu.call(t.properties,i)){const l=lv(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&qx.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 iv(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 bi(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 bi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function yu(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Vx;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=kh(e,l,o);a!==void 0&&n.push(a)}return n}function lv(e,t,n){const r=cx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Zy(n):hx(n)),r.property==="style"){let i=typeof n=="object"?n:ov(e,String(n));return e.stylePropertyNameCase==="css"&&(i=av(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ax[r.property]||r.property:r.attribute,n]}}function ov(e,t){try{return Ux(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Me("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=vh+"#cannot-parse-style-attribute",i}}function bh(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=Wc(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=Wc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return mu.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);bi(e)}function bi(e,t){const n=new Me("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=vh+"#cannot-handle-mdx-estrees-without-createevaluater",n}function av(e){const t={};let n;for(n in e)mu.call(e,n)&&(t[sv(n)]=e[n]);return t}function sv(e){let t=e.replace(Wx,uv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function uv(e){return"-"+e.toLowerCase()}const Ko={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"]},cv={};function xu(e,t){const n=cv,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(fv(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 nf(e.children,t,n)}return Array.isArray(e)?nf(e,t,n):""}function nf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Sh(e[i],t,n);return r.join("")}function fv(e){return!!(e&&typeof e=="object")}const rf=document.createElement("i");function vu(e){const t="&"+e+";";rf.innerHTML=t;const n=rf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ut(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 gt(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const lf={}.hasOwnProperty;function Eh(e){const t={};let n=-1;for(;++n<e.length;)dv(t,e[n]);return t}function dv(e,t){let n;for(n in t){const i=(lf.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){lf.call(i,o)||(i[o]=[]);const a=l[o];pv(i[o],Array.isArray(a)?a:a?[a]:[])}}}function pv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ut(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 Tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const He=En(/[A-Za-z]/),Oe=En(/[\dA-Za-z]/),hv=En(/[#-'*+\--9=?A-Z^-~]/);function Wl(e){return e!==null&&(e<32||e===127)}const us=En(/\d/),mv=En(/[\dA-Fa-f]/),gv=En(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const ho=En(new RegExp("\\p{P}|\\p{S}","u")),Un=En(/\s/);function En(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Tr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&Oe(e.charCodeAt(n+1))&&Oe(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 ne(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 yv={tokenize:xv};function xv(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"),ne(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 G(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const vv={tokenize:kv},of={tokenize:wv};function kv(e){const t=this,n=[];let r=0,i,l,o;return a;function a(g){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,s,u)(g)}return u(g)}function s(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const S=t.events.length;let N=S,b;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){b=t.events[N][1].end;break}y(r);let j=S;for(;j<t.events.length;)t.events[j][1].end={...b},j++;return ut(t.events,N+1,0,t.events.slice(S)),t.events.length=j,u(g)}return a(g)}function u(g){if(r===n.length){if(!i)return p(g);if(i.currentConstruct&&i.currentConstruct.concrete)return m(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(of,f,c)(g)}function f(g){return i&&x(),y(r),p(g)}function c(g){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(g)}function p(g){return t.containerState={},e.attempt(of,h,m)(g)}function h(g){return r++,n.push([t.currentConstruct,t.containerState]),p(g)}function m(g){if(g===null){i&&x(),y(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),v(g)}function v(g){if(g===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(g);return}return G(g)?(e.consume(g),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(g),v)}function w(g,S){const N=t.sliceStream(g);if(S&&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 b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const j=t.events.length;let _=j,L,C;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(L){C=t.events[_][1].end;break}L=!0}for(y(r),b=j;b<t.events.length;)t.events[b][1].end={...C},b++;ut(t.events,_+1,0,t.events.slice(j)),t.events.length=b}}function y(g){let S=n.length;for(;S-- >g;){const N=n[S];t.containerState=N[1],N[0].exit.call(t,e)}n.length=g}function x(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wv(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Sr(e){if(e===null||ue(e)||Un(e))return 1;if(ho(e))return 2}function mo(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 cs={name:"attention",resolveAll:bv,tokenize:Sv};function bv(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},p={...e[n][1].start};af(c,-s),af(p,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:p},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=gt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=gt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=gt(u,mo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=gt(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=gt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ut(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 Sv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Sr(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=Sr(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!p)),u._close=!!(l===42?p:p&&(f||!c)),t(s)}}function af(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ev={name:"autolink",tokenize:Cv};function Cv(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 He(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||Oe(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||Oe(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||Wl(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):hv(h)?(e.consume(h),u):n(h)}function f(h){return Oe(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):p(h)}function p(h){if((h===45||Oe(h))&&r++<63){const m=h===45?p:c;return e.consume(h),m}return n(h)}}const Ii={partial:!0,tokenize:Nv};function Nv(e,t,n){return r;function r(l){return J(l)?ne(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||G(l)?t(l):n(l)}}const Nh={continuation:{tokenize:Tv},exit:_v,name:"blockQuote",tokenize:jv};function jv(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 Tv(e,t,n){const r=this;return i;function i(o){return J(o)?ne(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Nh,t,n)(o)}}function _v(e){e.exit("blockQuote")}const jh={name:"characterEscape",tokenize:Iv};function Iv(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 gv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Th={name:"characterReference",tokenize:Av};function Av(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=Oe,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=mv,f):(e.enter("characterReferenceValue"),l=7,o=us,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===Oe&&!vu(r.sliceSerialize(p))?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 sf={partial:!0,tokenize:Lv},uf={concrete:!0,name:"codeFenced",tokenize:Pv};function Pv(e,t,n){const r=this,i={partial:!0,tokenize:N};let l=0,o=0,a;return s;function s(b){return u(b)}function u(b){const j=r.events[r.events.length-1];return l=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(o++,e.consume(b),f):o<3?n(b):(e.exit("codeFencedFenceSequence"),J(b)?ne(e,c,"whitespace")(b):c(b))}function c(b){return b===null||G(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(sf,v,S)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||G(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):J(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,h,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),p)}function h(b){return b===null||G(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||G(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),m)}function v(b){return e.attempt(i,S,w)(b)}function w(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y}function y(b){return l>0&&J(b)?ne(e,x,"linePrefix",l+1)(b):x(b)}function x(b){return b===null||G(b)?e.check(sf,v,S)(b):(e.enter("codeFlowValue"),g(b))}function g(b){return b===null||G(b)?(e.exit("codeFlowValue"),x(b)):(e.consume(b),g)}function S(b){return e.exit("codeFenced"),t(b)}function N(b,j,_){let L=0;return C;function C(F){return b.enter("lineEnding"),b.consume(F),b.exit("lineEnding"),R}function R(F){return b.enter("codeFencedFence"),J(F)?ne(b,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):M(F)}function M(F){return F===a?(b.enter("codeFencedFenceSequence"),U(F)):_(F)}function U(F){return F===a?(L++,b.consume(F),U):L>=o?(b.exit("codeFencedFenceSequence"),J(F)?ne(b,B,"whitespace")(F):B(F)):_(F)}function B(F){return F===null||G(F)?(b.exit("codeFencedFence"),j(F)):_(F)}}}function Lv(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 Xo={name:"codeIndented",tokenize:Rv},Fv={partial:!0,tokenize:Dv};function Rv(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ne(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):G(u)?e.attempt(Fv,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||G(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Dv(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ne(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):G(o)?i(o):n(o)}}const Ov={name:"codeText",previous:Mv,resolve:zv,tokenize:Bv};function zv(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 Mv(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bv(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)):G(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||G(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class $v{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 _h(e){const t={};let n=-1,r,i,l,o,a,s,u;const f=new $v(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,Uv(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 ut(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Uv(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,p=-1,h=n,m=0,v=0;const w=[v];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;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(v=p+1,w.push(v),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(),p=w.length;p--;){const y=a.slice(w[p],w[p+1]),x=l.pop();s.push([x,x+y.length-1]),e.splice(x,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return u}const Hv={resolve:Wv,tokenize:Gv},Vv={partial:!0,tokenize:qv};function Wv(e){return _h(e),e}function Gv(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):G(a)?e.check(Vv,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 qv(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ne(e,l,"linePrefix")}function l(o){if(o===null||G(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Ih(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(y),e.exit(l),p):y===null||y===32||y===41||Wl(y)?n(y):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(y))}function p(y){return y===62?(e.enter(l),e.consume(y),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||G(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function v(y){return!f&&(y===null||y===41||ue(y))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,v):y===41?(e.consume(y),f--,v):y===null||y===32||y===40||Wl(y)?n(y):(e.consume(y),y===92?w:v)}function w(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function Ah(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):G(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||G(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!J(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Ph(e,t,n,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?n(p):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||G(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function ri(e,t){let n;return r;function r(i){return G(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):J(i)?ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Qv={name:"definition",tokenize:Kv},Yv={partial:!0,tokenize:Xv};function Kv(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Ah.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Tt(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 ue(h)?ri(e,u)(h):u(h)}function u(h){return Ih(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Yv,c,c)(h)}function c(h){return J(h)?ne(e,p,"whitespace")(h):p(h)}function p(h){return h===null||G(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Xv(e,t,n){return r;function r(a){return ue(a)?ri(e,i)(a):n(a)}function i(a){return Ph(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return J(a)?ne(e,o,"whitespace")(a):o(a)}function o(a){return a===null||G(a)?t(a):n(a)}}const Zv={name:"hardBreakEscape",tokenize:Jv};function Jv(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return G(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const ek={name:"headingAtx",resolve:tk,tokenize:nk};function tk(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"},ut(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function nk(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||ue(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||G(f)?(e.exit("atxHeading"),t(f)):J(f)?ne(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||ue(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const rk=["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"],cf=["pre","script","style","textarea"],ik={concrete:!0,name:"htmlFlow",resolveTo:ak,tokenize:sk},lk={partial:!0,tokenize:ck},ok={partial:!0,tokenize:uk};function ak(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 sk(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),p):E===47?(e.consume(E),l=!0,v):E===63?(e.consume(E),i=3,r.interrupt?t:k):He(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function p(E){return E===45?(e.consume(E),i=2,h):E===91?(e.consume(E),i=5,a=0,m):He(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 se="CDATA[";return E===se.charCodeAt(a++)?(e.consume(E),a===se.length?r.interrupt?t:M:m):n(E)}function v(E){return He(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function w(E){if(E===null||E===47||E===62||ue(E)){const se=E===47,_e=o.toLowerCase();return!se&&!l&&cf.includes(_e)?(i=1,r.interrupt?t(E):M(E)):rk.includes(o.toLowerCase())?(i=6,se?(e.consume(E),y):r.interrupt?t(E):M(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):l?x(E):g(E))}return E===45||Oe(E)?(e.consume(E),o+=String.fromCharCode(E),w):n(E)}function y(E){return E===62?(e.consume(E),r.interrupt?t:M):n(E)}function x(E){return J(E)?(e.consume(E),x):C(E)}function g(E){return E===47?(e.consume(E),C):E===58||E===95||He(E)?(e.consume(E),S):J(E)?(e.consume(E),g):C(E)}function S(E){return E===45||E===46||E===58||E===95||Oe(E)?(e.consume(E),S):N(E)}function N(E){return E===61?(e.consume(E),b):J(E)?(e.consume(E),N):g(E)}function b(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,j):J(E)?(e.consume(E),b):_(E)}function j(E){return E===s?(e.consume(E),s=null,L):E===null||G(E)?n(E):(e.consume(E),j)}function _(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ue(E)?N(E):(e.consume(E),_)}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||G(E)?M(E):J(E)?(e.consume(E),R):n(E)}function M(E){return E===45&&i===2?(e.consume(E),W):E===60&&i===1?(e.consume(E),Z):E===62&&i===4?(e.consume(E),Y):E===63&&i===3?(e.consume(E),k):E===93&&i===5?(e.consume(E),V):G(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lk,te,U)(E)):E===null||G(E)?(e.exit("htmlFlowData"),U(E)):(e.consume(E),M)}function U(E){return e.check(ok,B,te)(E)}function B(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),F}function F(E){return E===null||G(E)?U(E):(e.enter("htmlFlowData"),M(E))}function W(E){return E===45?(e.consume(E),k):M(E)}function Z(E){return E===47?(e.consume(E),o="",O):M(E)}function O(E){if(E===62){const se=o.toLowerCase();return cf.includes(se)?(e.consume(E),Y):M(E)}return He(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),O):M(E)}function V(E){return E===93?(e.consume(E),k):M(E)}function k(E){return E===62?(e.consume(E),Y):E===45&&i===2?(e.consume(E),k):M(E)}function Y(E){return E===null||G(E)?(e.exit("htmlFlowData"),te(E)):(e.consume(E),Y)}function te(E){return e.exit("htmlFlow"),t(E)}}function uk(e,t,n){const r=this;return i;function i(o){return G(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 ck(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ii,t,n)}}const fk={name:"htmlText",tokenize:dk};function dk(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):He(k)?(e.consume(k),_):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):He(k)?(e.consume(k),x):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),p):G(k)?(o=c,Z(k)):(e.consume(k),c)}function p(k){return k===45?(e.consume(k),h):c(k)}function h(k){return k===62?W(k):k===45?p(k):c(k)}function m(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?v:m):n(k)}function v(k){return k===null?n(k):k===93?(e.consume(k),w):G(k)?(o=v,Z(k)):(e.consume(k),v)}function w(k){return k===93?(e.consume(k),y):v(k)}function y(k){return k===62?W(k):k===93?(e.consume(k),y):v(k)}function x(k){return k===null||k===62?W(k):G(k)?(o=x,Z(k)):(e.consume(k),x)}function g(k){return k===null?n(k):k===63?(e.consume(k),S):G(k)?(o=g,Z(k)):(e.consume(k),g)}function S(k){return k===62?W(k):g(k)}function N(k){return He(k)?(e.consume(k),b):n(k)}function b(k){return k===45||Oe(k)?(e.consume(k),b):j(k)}function j(k){return G(k)?(o=j,Z(k)):J(k)?(e.consume(k),j):W(k)}function _(k){return k===45||Oe(k)?(e.consume(k),_):k===47||k===62||ue(k)?L(k):n(k)}function L(k){return k===47?(e.consume(k),W):k===58||k===95||He(k)?(e.consume(k),C):G(k)?(o=L,Z(k)):J(k)?(e.consume(k),L):W(k)}function C(k){return k===45||k===46||k===58||k===95||Oe(k)?(e.consume(k),C):R(k)}function R(k){return k===61?(e.consume(k),M):G(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):G(k)?(o=M,Z(k)):J(k)?(e.consume(k),M):(e.consume(k),B)}function U(k){return k===i?(e.consume(k),i=void 0,F):k===null?n(k):G(k)?(o=U,Z(k)):(e.consume(k),U)}function B(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||ue(k)?L(k):(e.consume(k),B)}function F(k){return k===47||k===62||ue(k)?L(k):n(k)}function W(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"),O}function O(k){return J(k)?ne(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):V(k)}function V(k){return e.enter("htmlTextData"),o(k)}}const ku={name:"labelEnd",resolveAll:gk,resolveTo:yk,tokenize:xk},pk={tokenize:vk},hk={tokenize:kk},mk={tokenize:wk};function gk(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&&ut(e,0,e.length,n),e}function yk(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=gt(a,e.slice(l+1,l+r+3)),a=gt(a,[["enter",f,t]]),a=gt(a,mo(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=gt(a,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),a=gt(a,e.slice(o+1)),a=gt(a,[["exit",s,t]]),ut(e,l,e.length,a),e}function xk(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(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(Tt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(pk,f,o?f:c)(p):p===91?e.attempt(hk,f,o?u:c)(p):o?f(p):c(p)}function u(p){return e.attempt(mk,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function vk(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 ue(c)?ri(e,l)(c):l(c)}function l(c){return c===41?f(c):Ih(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ue(c)?ri(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?Ph(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ue(c)?ri(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 kk(e,t,n){const r=this;return i;function i(a){return Ah.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function wk(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 bk={name:"labelStartImage",resolveAll:ku.resolveAll,tokenize:Sk};function Sk(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 Ek={name:"labelStartLink",resolveAll:ku.resolveAll,tokenize:Ck};function Ck(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 Zo={name:"lineEnding",tokenize:Nk};function Nk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ne(e,t,"linePrefix")}}const yl={name:"thematicBreak",tokenize:jk};function jk(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||G(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?ne(e,a,"whitespace")(u):a(u))}}const Ke={continuation:{tokenize:Ak},exit:Lk,name:"list",tokenize:Ik},Tk={partial:!0,tokenize:Fk},_k={partial:!0,tokenize:Pk};function Ik(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:us(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(yl,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 us(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(Ii,r.interrupt?n:f,e.attempt(Tk,p,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function c(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ak(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ii,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(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(_k,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(Ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Pk(e,t,n){const r=this;return ne(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 Lk(e){e.exit(this.containerState.type)}function Fk(e,t,n){const r=this;return ne(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 ff={name:"setextUnderline",resolveTo:Rk,tokenize:Dk};function Rk(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 Dk(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)?ne(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||G(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ok={tokenize:zk};function zk(e){const t=this,n=e.attempt(Ii,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Hv,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 Mk={resolveAll:Fh()},Bk=Lh("string"),$k=Lh("text");function Lh(e){return{resolveAll:Fh(e==="text"?Uk: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 p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Fh(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 Uk(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 Hk={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:Nh},Vk={91:Qv},Wk={[-2]:Xo,[-1]:Xo,32:Xo},Gk={35:ek,42:yl,45:[ff,yl],60:ik,61:ff,95:yl,96:uf,126:uf},qk={38:Th,92:jh},Qk={[-5]:Zo,[-4]:Zo,[-3]:Zo,33:bk,38:Th,42:cs,60:[Ev,fk],91:Ek,92:[Zv,jh],93:ku,95:cs,96:Ov},Yk={null:[cs,Mk]},Kk={null:[42,95]},Xk={null:[]},Zk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Kk,contentInitial:Vk,disable:Xk,document:Hk,flow:Gk,flowInitial:Wk,insideSpan:Yk,string:qk,text:Qk},Symbol.toStringTag,{value:"Module"}));function Jk(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:j(N),check:j(b),consume:x,enter:g,exit:S,interrupt:j(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function c(R){return o=gt(o,R),w(),o[o.length-1]!==null?[]:(_(t,0),u.events=mo(l,u.events,u),u.events)}function p(R,M){return tw(h(R),M)}function h(R){return ew(o,R)}function m(){const{_bufferIndex:R,_index:M,line:U,column:B,offset:F}=r;return{_bufferIndex:R,_index:M,line:U,column:B,offset:F}}function v(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;)y(M.charCodeAt(r._bufferIndex));else y(M)}}function y(R){f=f(R)}function x(R){G(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 S(R){const M=a.pop();return M.end=m(),u.events.push(["exit",M,u]),M}function N(R,M){_(R,M.from)}function b(R,M){M.restore()}function j(R,M){return U;function U(B,F,W){let Z,O,V,k;return Array.isArray(B)?te(B):"tokenize"in B?te([B]):Y(B);function Y(re){return ce;function ce(qe){const Qe=qe!==null&&re[qe],zt=qe!==null&&re.null,Gn=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(zt)?zt:zt?[zt]:[]];return te(Gn)(qe)}}function te(re){return Z=re,O=0,re.length===0?W:E(re[O])}function E(re){return ce;function ce(qe){return k=L(),V=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?_e():re.tokenize.call(M?Object.assign(Object.create(u),M):u,s,se,_e)(qe)}}function se(re){return R(V,k),F}function _e(re){return k.restore(),++O<Z.length?E(Z[O]):W}}}function _(R,M){R.resolveAll&&!l.includes(R)&&l.push(R),R.resolve&&ut(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,B=u.events.length,F=Array.from(a);return{from:B,restore:W};function W(){r=R,u.previous=M,u.currentConstruct=U,u.events.length=B,a=F,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ew(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 tw(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=`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Wo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Va(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ny=typeof WeakMap=="function"?WeakMap:Map;function Op(e,t,n){n=qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,es=r),Va(e,t)},n}function Dp(e,t,n){n=qt(-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(){Va(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Va(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Nc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ny;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 jc(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 Tc(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=qt(-1,1),t.tag=2,mn(n,t,1))),n.lanes|=1),e)}var jy=Zt.ReactCurrentOwner,Ze=!1;function Ue(e,t,n,r){t.child=e===null?dp(t,null,n,r):vr(t,e.child,n,r)}function _c(e,t,n,r,i){n=n.render;var l=t.ref;return pr(t,i),r=Ys(e,t,n,r,l,i),n=Ks(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ge&&n&&Ds(t),t.flags|=1,Ue(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!ou(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,zp(e,t,l,r,i)):(e=gl(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:di,n(o,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=xn(l,r),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(di(l,r)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return Wa(e,t,n,r,i)}function Mp(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},de(sr,ot),ot|=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,de(sr,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,de(sr,ot),ot|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,de(sr,ot),ot|=r;return Ue(e,t,i,n),t.child}function Bp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wa(e,t,n,r,i){var l=et(n)?Dn:ze.current;return l=yr(t,l),pr(t,i),n=Ys(e,t,n,r,l,i),r=Ks(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ge&&r&&Ds(t),t.flags|=1,Ue(e,t,n,i),t.child)}function Ac(e,t,n,r,i){if(et(n)){var l=!0;Al(t)}else l=!1;if(pr(t,i),t.stateNode===null)pl(e,t),Rp(t,n,r),Ha(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=vt(u):(u=et(n)?Dn:ze.current,u=yr(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)&&Cc(t,o,r,u),on=!1;var p=t.memoizedState;o.state=p,Ol(t,r,o,i),s=t.memoizedState,a!==r||p!==s||Je.current||on?(typeof f=="function"&&(Ua(t,n,f,r),s=t.memoizedState),(a=on||Ec(t,n,a,r,p,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,hp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,c=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=vt(s):(s=et(n)?Dn:ze.current,s=yr(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||p!==s)&&Cc(t,o,r,s),on=!1,p=t.memoizedState,o.state=p,Ol(t,r,o,i);var m=t.memoizedState;a!==c||p!==m||Je.current||on?(typeof h=="function"&&(Ua(t,n,h,r),m=t.memoizedState),(u=on||Ec(t,n,u,r,p,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&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===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&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ga(e,t,n,r,l,i)}function Ga(e,t,n,r,i,l){Bp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&gc(t,n,!1),Xt(e,t,l);r=t.stateNode,jy.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,l),t.child=vr(t,null,a,l)):Ue(e,t,a,l),t.memoizedState=r.state,i&&gc(t,n,!0),t.child}function $p(e){var t=e.stateNode;t.pendingContext?mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mc(e,t.context,!1),Ws(e,t.containerInfo)}function Pc(e,t,n,r,i){return xr(),Ms(i),t.flags|=256,Ue(e,t,n,r),t.child}var qa={dehydrated:null,treeContext:null,retryLane:0};function Qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Up(e,t,n){var r=t.pendingProps,i=ye.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),de(ye,i&1),e===null)return Ba(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=ao(o,r,0,null),e=On(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Qa(n),t.memoizedState=qa,e):Js(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ty(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=xn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=xn(a,l):(l=On(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?Qa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=qa,r}return l=e.child,e=l.sibling,r=xn(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 Js(e,t){return t=ao({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ki(e,t,n,r){return r!==null&&Ms(r),vr(t,e.child,null,n),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ty(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Wo(Error(O(422))),Ki(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=ao({mode:"visible",children:r.children},i,0,null),l=On(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&vr(t,e.child,null,o),t.child.memoizedState=Qa(o),t.memoizedState=qa,l);if(!(t.mode&1))return Ki(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=Wo(l,r,void 0),Ki(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ze||a){if(r=Te,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,Kt(e,i),jt(r,e,i,-1))}return lu(),r=Wo(Error(O(421))),Ki(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$y.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,at=hn(i.nextSibling),st=t,ge=!0,Ct=null,e!==null&&(ht[mt++]=Wt,ht[mt++]=Gt,ht[mt++]=zn,Wt=e.id,Gt=e.overflow,zn=t),t=Js(t,r.children),t.flags|=4096,t)}function Lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$a(e.return,t,n)}function Go(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 Hp(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Ue(e,t,r.children,n),r=ye.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lc(e,n,t);else if(e.tag===19)Lc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ye,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&&Dl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Go(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&&Dl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Go(t,!0,n,null,l);break;case"together":Go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _y(e,t,n){switch(t.tag){case 3:$p(t),xr();break;case 5:mp(t);break;case 1:et(t.type)&&Al(t);break;case 4:Ws(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;de(Fl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?Up(e,t,n):(de(ye,ye.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);de(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Mp(e,t,n)}return Xt(e,t,n)}var Vp,Ya,Wp,Gp;Vp=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}};Ya=function(){};Wp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Fn(Rt.current);var l=null;switch(n){case"input":i=ya(e,i),r=ya(e,r),l=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),l=[];break;case"textarea":i=ka(e,i),r=ka(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_l)}ba(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"&&(li.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"&&(li.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&he("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)}};Gp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mr(e,t){if(!ge)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 Re(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 Iy(e,t,n){var r=t.pendingProps;switch(zs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return et(t.type)&&Il(),Re(t),null;case 3:return r=t.stateNode,kr(),me(Je),me(ze),qs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(rs(Ct),Ct=null))),Ya(e,t),Re(t),null;case 5:Gs(t);var i=Fn(yi.current);if(n=t.type,e!==null&&t.stateNode!=null)Wp(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 Re(t),null}if(e=Fn(Rt.current),Qi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Lt]=t,r[mi]=l,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(i=0;i<Gr.length;i++)he(Gr[i],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":Uu(r,l),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},he("invalid",r);break;case"textarea":Vu(r,l),he("invalid",r)}ba(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&&qi(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&qi(r.textContent,a,e),i=["children",""+a]):li.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&he("scroll",r)}switch(n){case"input":Mi(r),Hu(r,l,!0);break;case"textarea":Mi(r),Wu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=_l)}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=kd(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[Lt]=t,e[mi]=r,Vp(e,t,!1,!1),t.stateNode=e;e:{switch(o=Sa(n,r),n){case"dialog":he("cancel",e),he("close",e),i=r;break;case"iframe":case"object":case"embed":he("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gr.length;i++)he(Gr[i],e);i=r;break;case"source":he("error",e),i=r;break;case"img":case"image":case"link":he("error",e),he("load",e),i=r;break;case"details":he("toggle",e),i=r;break;case"input":Uu(e,r),i=ya(e,r),he("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),he("invalid",e);break;case"textarea":Vu(e,r),i=ka(e,r),he("invalid",e);break;default:i=r}ba(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&&wd(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&oi(e,s):typeof s=="number"&&oi(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(li.hasOwnProperty(l)?s!=null&&l==="onScroll"&&he("scroll",e):s!=null&&Ss(e,l,s,o))}switch(n){case"input":Mi(e),Hu(e,r,!1);break;case"textarea":Mi(e),Wu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?ur(e,!!r.multiple,l,!1):r.defaultValue!=null&&ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_l)}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 Re(t),null;case 6:if(e&&t.stateNode!=null)Gp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Fn(yi.current),Fn(Rt.current),Qi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Lt]=t,(l=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:qi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Lt]=t,t.stateNode=r}return Re(t),null;case 13:if(me(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&at!==null&&t.mode&1&&!(t.flags&128))cp(),xr(),t.flags|=98560,l=!1;else if(l=Qi(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[Lt]=t}else xr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),l=!1}else Ct!==null&&(rs(Ct),Ct=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||ye.current&1?Ne===0&&(Ne=3):lu())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return kr(),Ya(e,t),e===null&&pi(t.stateNode.containerInfo),Re(t),null;case 10:return Us(t.type._context),Re(t),null;case 17:return et(t.type)&&Il(),Re(t),null;case 19:if(me(ye),l=t.memoizedState,l===null)return Re(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Mr(l,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Dl(e),o!==null){for(t.flags|=128,Mr(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 de(ye,ye.current&1|2),t.child}e=e.sibling}l.tail!==null&&be()>br&&(t.flags|=128,r=!0,Mr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Dl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ge)return Re(t),null}else 2*be()-l.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,Mr(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=be(),t.sibling=null,n=ye.current,de(ye,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return iu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Ay(e,t){switch(zs(t),t.tag){case 1:return et(t.type)&&Il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),me(Je),me(ze),qs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gs(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return kr(),null;case 10:return Us(t.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var Xi=!1,Oe=!1,Py=typeof WeakSet=="function"?WeakSet:Set,H=null;function ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Ka(e,t,n){try{n()}catch(r){we(e,t,r)}}var Fc=!1;function Ly(e,t){if(La=Nl,e=Xd(),Os(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,p=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;)p=c,c=h;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=o),p===l&&++f===r&&(s=o),(h=c.nextSibling)!==null)break;c=p,p=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(Fa={focusedElem:e,selectionRange:n},Nl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;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 v=m.memoizedProps,w=m.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:St(t.type,v),w);y.__reactInternalSnapshotBeforeUpdate=x}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(S){we(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return m=Fc,Fc=!1,m}function Jr(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&&Ka(t,n,l)}i=i.next}while(i!==r)}}function lo(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 Xa(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 qp(e){var t=e.alternate;t!==null&&(e.alternate=null,qp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[mi],delete t[Da],delete t[my],delete t[gy])),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 Qp(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qp(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 Za(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=_l));else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}function Ja(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(Ja(e,t,n),e=e.sibling;e!==null;)Ja(e,t,n),e=e.sibling}var Ae=null,Et=!1;function tn(e,t,n){for(n=n.child;n!==null;)Yp(e,t,n),n=n.sibling}function Yp(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:Oe||ar(n,t);case 6:var r=Ae,i=Et;Ae=null,tn(e,t,n),Ae=r,Et=i,Ae!==null&&(Et?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(Et?(e=Ae,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),ci(e)):Mo(Ae,n.stateNode));break;case 4:r=Ae,i=Et,Ae=n.stateNode.containerInfo,Et=!0,tn(e,t,n),Ae=r,Et=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(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)&&Ka(n,t,o),i=i.next}while(i!==r)}tn(e,t,n);break;case 1:if(!Oe&&(ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,tn(e,t,n),Oe=r):tn(e,t,n);break;default:tn(e,t,n)}}function Oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Py),t.forEach(function(r){var i=Uy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function bt(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:Ae=a.stateNode,Et=!1;break e;case 3:Ae=a.stateNode.containerInfo,Et=!0;break e;case 4:Ae=a.stateNode.containerInfo,Et=!0;break e}a=a.return}if(Ae===null)throw Error(O(160));Yp(l,o,i),Ae=null,Et=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){we(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kp(t,e),t=t.sibling}function Kp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),It(e),r&4){try{Jr(3,e,e.return),lo(3,e)}catch(v){we(e,e.return,v)}try{Jr(5,e,e.return)}catch(v){we(e,e.return,v)}}break;case 1:bt(t,e),It(e),r&512&&n!==null&&ar(n,n.return);break;case 5:if(bt(t,e),It(e),r&512&&n!==null&&ar(n,n.return),e.flags&32){var i=e.stateNode;try{oi(i,"")}catch(v){we(e,e.return,v)}}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&&xd(i,l),Sa(a,o);var u=Sa(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"?wd(i,c):f==="children"?oi(i,c):Ss(i,f,c,u)}switch(a){case"input":xa(i,l);break;case"textarea":vd(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?ur(i,!!l.multiple,h,!1):p!==!!l.multiple&&(l.defaultValue!=null?ur(i,!!l.multiple,l.defaultValue,!0):ur(i,!!l.multiple,l.multiple?[]:"",!1))}i[mi]=l}catch(v){we(e,e.return,v)}}break;case 6:if(bt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(v){we(e,e.return,v)}}break;case 3:if(bt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ci(t.containerInfo)}catch(v){we(e,e.return,v)}break;case 4:bt(t,e),It(e);break;case 13:bt(t,e),It(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(nu=be())),r&4&&Oc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(u=Oe)||f,bt(t,e),Oe=u):bt(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(H=e,f=e.child;f!==null;){for(c=H=f;H!==null;){switch(p=H,h=p.child,p.tag){case 0:case 11:case 14:case 15:Jr(4,p,p.return);break;case 1:ar(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){we(r,n,v)}}break;case 5:ar(p,p.return);break;case 22:if(p.memoizedState!==null){zc(c);continue}}h!==null?(h.return=p,H=h):zc(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=bd("display",o))}catch(v){we(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){we(e,e.return,v)}}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:bt(t,e),It(e),r&4&&Oc(e);break;case 21:break;default:bt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qp(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&&(oi(i,""),r.flags&=-33);var l=Rc(e);Ja(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Rc(e);Za(e,a,o);break;default:throw Error(O(161))}}catch(s){we(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fy(e,t,n){H=e,Xp(e)}function Xp(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var i=H,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Xi;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Oe;a=Xi;var u=Oe;if(Xi=o,(Oe=s)&&!u)for(H=i;H!==null;)o=H,s=o.child,o.tag===22&&o.memoizedState!==null?Mc(i):s!==null?(s.return=o,H=s):Mc(i);for(;l!==null;)H=l,Xp(l),l=l.sibling;H=i,Xi=a,Oe=u}Dc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,H=l):Dc(e)}}function Dc(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||lo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&wc(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}wc(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&&ci(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Oe||t.flags&512&&Xa(t)}catch(p){we(t,t.return,p)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function zc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Mc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lo(4,t)}catch(s){we(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){we(t,i,s)}}var l=t.return;try{Xa(t)}catch(s){we(t,l,s)}break;case 5:var o=t.return;try{Xa(t)}catch(s){we(t,o,s)}}}catch(s){we(t,t.return,s)}if(t===e){H=null;break}var a=t.sibling;if(a!==null){a.return=t.return,H=a;break}H=t.return}}var Ry=Math.ceil,Bl=Zt.ReactCurrentDispatcher,eu=Zt.ReactCurrentOwner,xt=Zt.ReactCurrentBatchConfig,le=0,Te=null,Ee=null,Pe=0,ot=0,sr=bn(0),Ne=0,wi=null,Bn=0,oo=0,tu=0,ei=null,Xe=null,nu=0,br=1/0,Ht=null,$l=!1,es=null,gn=null,Zi=!1,cn=null,Ul=0,ti=0,ts=null,hl=-1,ml=0;function Ve(){return le&6?be():hl!==-1?hl:hl=be()}function yn(e){return e.mode&1?le&2&&Pe!==0?Pe&-Pe:xy.transition!==null?(ml===0&&(ml=Rd()),ml):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Ud(e.type)),e):1}function jt(e,t,n,r){if(50<ti)throw ti=0,ts=null,Error(O(185));Ci(e,n,r),(!(le&2)||e!==Te)&&(e===Te&&(!(le&2)&&(oo|=n),Ne===4&&sn(e,Pe)),tt(e,r),n===1&&le===0&&!(t.mode&1)&&(br=be()+500,no&&Sn()))}function tt(e,t){var n=e.callbackNode;xg(e,t);var r=Cl(e,e===Te?Pe:0);if(r===0)n!==null&&Qu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qu(n),t===1)e.tag===0?yy(Bc.bind(null,e)):ap(Bc.bind(null,e)),py(function(){!(le&6)&&Sn()}),n=null;else{switch(Od(r)){case 1:n=Ts;break;case 4:n=Ld;break;case 16:n=El;break;case 536870912:n=Fd;break;default:n=El}n=lh(n,Zp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zp(e,t){if(hl=-1,ml=0,le&6)throw Error(O(327));var n=e.callbackNode;if(hr()&&e.callbackNode!==n)return null;var r=Cl(e,e===Te?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hl(e,r);else{t=r;var i=le;le|=2;var l=eh();(Te!==e||Pe!==t)&&(Ht=null,br=be()+500,Rn(e,t));do try{zy();break}catch(a){Jp(e,a)}while(!0);$s(),Bl.current=l,le=i,Ee!==null?t=0:(Te=null,Pe=0,t=Ne)}if(t!==0){if(t===2&&(i=Ta(e),i!==0&&(r=i,t=ns(e,i))),t===1)throw n=wi,Rn(e,0),sn(e,r),tt(e,be()),n;if(t===6)sn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Oy(i)&&(t=Hl(e,r),t===2&&(l=Ta(e),l!==0&&(r=l,t=ns(e,l))),t===1))throw n=wi,Rn(e,0),sn(e,r),tt(e,be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:In(e,Xe,Ht);break;case 3:if(sn(e,r),(r&130023424)===r&&(t=nu+500-be(),10<t)){if(Cl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ve(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Oa(In.bind(null,e,Xe,Ht),t);break}In(e,Xe,Ht);break;case 4:if(sn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Nt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ry(r/1960))-r,10<r){e.timeoutHandle=Oa(In.bind(null,e,Xe,Ht),r);break}In(e,Xe,Ht);break;case 5:In(e,Xe,Ht);break;default:throw Error(O(329))}}}return tt(e,be()),e.callbackNode===n?Zp.bind(null,e):null}function ns(e,t){var n=ei;return e.current.memoizedState.isDehydrated&&(Rn(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&rs(t)),e}function rs(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function Oy(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(!_t(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 sn(e,t){for(t&=~tu,t&=~oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function Bc(e){if(le&6)throw Error(O(327));hr();var t=Cl(e,0);if(!(t&1))return tt(e,be()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var r=Ta(e);r!==0&&(t=r,n=ns(e,r))}if(n===1)throw n=wi,Rn(e,0),sn(e,t),tt(e,be()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,In(e,Xe,Ht),tt(e,be()),null}function ru(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(br=be()+500,no&&Sn())}}function $n(e){cn!==null&&cn.tag===0&&!(le&6)&&hr();var t=le;le|=1;var n=xt.transition,r=ae;try{if(xt.transition=null,ae=1,e)return e()}finally{ae=r,xt.transition=n,le=t,!(le&6)&&Sn()}}function iu(){ot=sr.current,me(sr)}function Rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dy(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(zs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Il();break;case 3:kr(),me(Je),me(ze),qs();break;case 5:Gs(r);break;case 4:kr();break;case 13:me(ye);break;case 19:me(ye);break;case 10:Us(r.type._context);break;case 22:case 23:iu()}n=n.return}if(Te=e,Ee=e=xn(e.current,null),Pe=ot=t,Ne=0,wi=null,tu=oo=Bn=0,Xe=ei=null,Ln!==null){for(t=0;t<Ln.length;t++)if(n=Ln[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}Ln=null}return e}function Jp(e,t){do{var n=Ee;try{if($s(),fl.current=Ml,zl){for(var r=xe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}zl=!1}if(Mn=0,je=Ce=xe=null,Zr=!1,xi=0,eu.current=null,n===null||n.return===null){Ne=1,wi=t,Ee=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=Pe,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 p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=jc(o);if(h!==null){h.flags&=-257,Tc(h,o,a,l,t),h.mode&1&&Nc(l,u,t),t=h,s=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}else{if(!(t&1)){Nc(l,u,t),lu();break e}s=Error(O(426))}}else if(ge&&a.mode&1){var w=jc(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Tc(w,o,a,l,t),Ms(wr(s,a));break e}}l=s=wr(s,a),Ne!==4&&(Ne=2),ei===null?ei=[l]:ei.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var y=Op(l,s,t);kc(l,y);break e;case 1:a=s;var x=l.type,g=l.stateNode;if(!(l.flags&128)&&(typeof x.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(gn===null||!gn.has(g)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=Dp(l,a,t);kc(l,S);break e}}l=l.return}while(l!==null)}nh(n)}catch(N){t=N,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function eh(){var e=Bl.current;return Bl.current=Ml,e===null?Ml:e}function lu(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Te===null||!(Bn&268435455)&&!(oo&268435455)||sn(Te,Pe)}function Hl(e,t){var n=le;le|=2;var r=eh();(Te!==e||Pe!==t)&&(Ht=null,Rn(e,t));do try{Dy();break}catch(i){Jp(e,i)}while(!0);if($s(),le=n,Bl.current=r,Ee!==null)throw Error(O(261));return Te=null,Pe=0,Ne}function Dy(){for(;Ee!==null;)th(Ee)}function zy(){for(;Ee!==null&&!ug();)th(Ee)}function th(e){var t=ih(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?nh(e):Ee=t,eu.current=null}function nh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ay(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Ee=null;return}}else if(n=Iy(n,t,ot),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ne===0&&(Ne=5)}function In(e,t,n){var r=ae,i=xt.transition;try{xt.transition=null,ae=1,My(e,t,n,r)}finally{xt.transition=i,ae=r}return null}function My(e,t,n,r){do hr();while(cn!==null);if(le&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(vg(e,l),e===Te&&(Ee=Te=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zi||(Zi=!0,lh(El,function(){return hr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=xt.transition,xt.transition=null;var o=ae;ae=1;var a=le;le|=4,eu.current=null,Ly(e,n),Kp(n,e),ly(Fa),Nl=!!La,Fa=La=null,e.current=n,Fy(n),cg(),le=a,ae=o,xt.transition=l}else e.current=n;if(Zi&&(Zi=!1,cn=e,Ul=i),l=e.pendingLanes,l===0&&(gn=null),pg(n.stateNode),tt(e,be()),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($l)throw $l=!1,e=es,es=null,e;return Ul&1&&e.tag!==0&&hr(),l=e.pendingLanes,l&1?e===ts?ti++:(ti=0,ts=e):ti=0,Sn(),null}function hr(){if(cn!==null){var e=Od(Ul),t=xt.transition,n=ae;try{if(xt.transition=null,ae=16>e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,Ul=0,le&6)throw Error(O(331));var i=le;for(le|=4,H=e.current;H!==null;){var l=H,o=l.child;if(H.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(H=u;H!==null;){var f=H;switch(f.tag){case 0:case 11:case 15:Jr(8,f,l)}var c=f.child;if(c!==null)c.return=f,H=c;else for(;H!==null;){f=H;var p=f.sibling,h=f.return;if(qp(f),f===u){H=null;break}if(p!==null){p.return=h,H=p;break}H=h}}}var m=l.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}H=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,H=o;else e:for(;H!==null;){if(l=H,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Jr(9,l,l.return)}var y=l.sibling;if(y!==null){y.return=l.return,H=y;break e}H=l.return}}var x=e.current;for(H=x;H!==null;){o=H;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,H=g;else e:for(o=x;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:lo(9,a)}}catch(N){we(a,a.return,N)}if(a===o){H=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,H=S;break e}H=a.return}}if(le=i,Sn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Xl,e)}catch{}r=!0}return r}finally{ae=n,xt.transition=t}}return!1}function $c(e,t,n){t=wr(n,t),t=Op(e,t,1),e=mn(e,t,1),t=Ve(),e!==null&&(Ci(e,1,t),tt(e,t))}function we(e,t,n){if(e.tag===3)$c(e,e,n);else for(;t!==null;){if(t.tag===3){$c(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=wr(n,e),e=Dp(t,e,1),t=mn(t,e,1),e=Ve(),t!==null&&(Ci(t,1,e),tt(t,e));break}}t=t.return}}function By(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ve(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Pe&n)===n&&(Ne===4||Ne===3&&(Pe&130023424)===Pe&&500>be()-nu?Rn(e,0):tu|=n),tt(e,t)}function rh(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=Ve();e=Kt(e,t),e!==null&&(Ci(e,t,n),tt(e,n))}function $y(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function Uy(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),rh(e,n)}var ih;ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ze=!1,_y(e,t,n);Ze=!!(e.flags&131072)}else Ze=!1,ge&&t.flags&1048576&&sp(t,Ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var i=yr(t,ze.current);pr(t,n),i=Ys(null,t,r,e,i,n);var l=Ks();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,et(r)?(l=!0,Al(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vs(t),i.updater=io,t.stateNode=i,i._reactInternals=t,Ha(t,r,e,n),t=Ga(null,t,r,!0,l,n)):(t.tag=0,ge&&l&&Ds(t),Ue(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Vy(r),e=St(r,e),i){case 0:t=Wa(null,t,r,e,n);break e;case 1:t=Ac(null,t,r,e,n);break e;case 11:t=_c(null,t,r,e,n);break e;case 14:t=Ic(null,t,r,St(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:St(r,i),Wa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Ac(e,t,r,i,n);case 3:e:{if($p(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,hp(e,t),Ol(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=wr(Error(O(423)),t),t=Pc(e,t,r,n,i);break e}else if(r!==i){i=wr(Error(O(424)),t),t=Pc(e,t,r,n,i);break e}else for(at=hn(t.stateNode.containerInfo.firstChild),st=t,ge=!0,Ct=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===i){t=Xt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return mp(t),e===null&&Ba(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Ra(r,i)?o=null:l!==null&&Ra(r,l)&&(t.flags|=32),Bp(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&Ba(t),null;case 13:return Up(e,t,n);case 4:return Ws(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),_c(e,t,r,i,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(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,de(Fl,r._currentValue),r._currentValue=o,l!==null)if(_t(l.value,o)){if(l.children===i.children&&!Je.current){t=Xt(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=qt(-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),$a(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),$a(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}Ue(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pr(t,n),i=vt(i),r=r(i),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),Ic(e,t,r,i,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),pl(e,t),t.tag=1,et(r)?(e=!0,Al(t)):e=!1,pr(t,n),Rp(t,r,i),Ha(t,r,i,n),Ga(null,t,r,!0,e,n);case 19:return Hp(e,t,n);case 22:return Mp(e,t,n)}throw Error(O(156,t.tag))};function lh(e,t){return Pd(e,t)}function Hy(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 yt(e,t,n,r){return new Hy(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vy(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cs)return 11;if(e===Ns)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=yt(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 gl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")ou(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Zn:return On(n.children,i,l,t);case Es:o=8,i|=8;break;case pa:return e=yt(12,n,t,i|2),e.elementType=pa,e.lanes=l,e;case ha:return e=yt(13,n,t,i),e.elementType=ha,e.lanes=l,e;case ma:return e=yt(19,n,t,i),e.elementType=ma,e.lanes=l,e;case md:return ao(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pd:o=10;break e;case hd:o=9;break e;case Cs:o=11;break e;case Ns:o=14;break e;case ln:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=yt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function On(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function ao(e,t,n,r){return e=yt(22,e,r,t),e.elementType=md,e.lanes=n,e.stateNode={isHidden:!1},e}function qo(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function Qo(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wy(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=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,i,l,o,a,s){return e=new Wy(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=yt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vs(l),e}function Gy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function oh(e){if(!e)return kn;e=e._reactInternals;e:{if(Vn(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(et(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(et(n))return op(e,n,t)}return t}function ah(e,t,n,r,i,l,o,a,s){return e=au(n,r,!0,e,i,l,o,a,s),e.context=oh(null),n=e.current,r=Ve(),i=yn(n),l=qt(r,i),l.callback=t??null,mn(n,l,i),e.current.lanes=i,Ci(e,i,r),tt(e,r),e}function so(e,t,n,r){var i=t.current,l=Ve(),o=yn(i);return n=oh(n),t.context===null?t.context=n:t.pendingContext=n,t=qt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mn(i,t,o),e!==null&&(jt(e,i,o,l),cl(e,i,o)),o}function Vl(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 Uc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}function qy(){return null}var sh=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}uo.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));so(e,t,null,null)};uo.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$n(function(){so(null,e,null,null)}),t[Yt]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Md();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&$d(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function co(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hc(){}function Qy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Vl(o);l.call(u)}}var o=ah(t,r,e,0,null,!1,!1,"",Hc);return e._reactRootContainer=o,e[Yt]=o.current,pi(e.nodeType===8?e.parentNode:e),$n(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Vl(s);a.call(u)}}var s=au(e,0,!1,null,null,!1,!1,"",Hc);return e._reactRootContainer=s,e[Yt]=s.current,pi(e.nodeType===8?e.parentNode:e),$n(function(){so(t,s,n,r)}),s}function fo(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=Vl(o);a.call(s)}}so(t,o,e,i)}else o=Qy(n,t,e,i,r);return Vl(o)}Dd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(_s(t,n|1),tt(t,be()),!(le&6)&&(br=be()+500,Sn()))}break;case 13:$n(function(){var r=Kt(e,1);if(r!==null){var i=Ve();jt(r,e,1,i)}}),su(e,1)}};Is=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var n=Ve();jt(t,e,134217728,n)}su(e,134217728)}};zd=function(e){if(e.tag===13){var t=yn(e),n=Kt(e,t);if(n!==null){var r=Ve();jt(n,e,t,r)}su(e,t)}};Md=function(){return ae};Bd=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Ca=function(e,t,n){switch(t){case"input":if(xa(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=to(r);if(!i)throw Error(O(90));yd(r),xa(r,i)}}}break;case"textarea":vd(e,n);break;case"select":t=n.value,t!=null&&ur(e,!!n.multiple,t,!1)}};Nd=ru;jd=$n;var Yy={usingClientEntryPoint:!1,Events:[ji,nr,to,Ed,Cd,ru]},Br={findFiberByHostInstance:Pn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ky={bundleType:Br.bundleType,version:Br.version,rendererPackageName:Br.rendererPackageName,rendererConfig:Br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Id(e),e===null?null:e.stateNode},findFiberByHostInstance:Br.findFiberByHostInstance||qy,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 Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{Xl=Ji.inject(Ky),Ft=Ji}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yy;ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(O(200));return Gy(e,t,null,n)};ft.createRoot=function(e,t){if(!cu(e))throw Error(O(299));var n=!1,r="",i=sh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,r,i),e[Yt]=t.current,pi(e.nodeType===8?e.parentNode:e),new uu(t)};ft.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=Id(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return $n(e)};ft.hydrate=function(e,t,n){if(!co(t))throw Error(O(200));return fo(null,e,t,!0,n)};ft.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=sh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ah(t,null,e,1,n??null,i,!1,l,o),e[Yt]=t.current,pi(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 uo(t)};ft.render=function(e,t,n){if(!co(t))throw Error(O(200));return fo(null,e,t,!1,n)};ft.unmountComponentAtNode=function(e){if(!co(e))throw Error(O(40));return e._reactRootContainer?($n(function(){fo(null,null,e,!1,function(){e._reactRootContainer=null,e[Yt]=null})}),!0):!1};ft.unstable_batchedUpdates=ru;ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!co(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return fo(e,t,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function uh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uh)}catch(e){console.error(e)}}uh(),ud.exports=ft;var Xy=ud.exports,Vc=Xy;fa.createRoot=Vc.createRoot,fa.hydrateRoot=Vc.hydrateRoot;function Zy(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Jy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ex=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tx={};function Wc(e,t){return(tx.jsx?ex:Jy).test(e)}const nx=/[ \t\n\f\r]/g;function rx(e){return typeof e=="object"?e.type==="text"?Gc(e.value):!1:Gc(e)}function Gc(e){return e.replace(nx,"")===""}class _i{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}_i.prototype.normal={};_i.prototype.property={};_i.prototype.space=void 0;function ch(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new _i(n,r,t)}function is(e){return e.toLowerCase()}class nt{constructor(t,n){this.attribute=n,this.property=t}}nt.prototype.attribute="";nt.prototype.booleanish=!1;nt.prototype.boolean=!1;nt.prototype.commaOrSpaceSeparated=!1;nt.prototype.commaSeparated=!1;nt.prototype.defined=!1;nt.prototype.mustUseProperty=!1;nt.prototype.number=!1;nt.prototype.overloadedBoolean=!1;nt.prototype.property="";nt.prototype.spaceSeparated=!1;nt.prototype.space=void 0;let ix=0;const X=Wn(),Se=Wn(),ls=Wn(),z=Wn(),fe=Wn(),mr=Wn(),lt=Wn();function Wn(){return 2**++ix}const os=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:Se,commaOrSpaceSeparated:lt,commaSeparated:mr,number:z,overloadedBoolean:ls,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Yo=Object.keys(os);class fu extends nt{constructor(t,n,r,i){let l=-1;if(super(t,n),qc(this,"space",i),typeof r=="number")for(;++l<Yo.length;){const o=Yo[l];qc(this,Yo[l],(r&os[o])===os[o])}}}fu.prototype.defined=!0;function qc(e,t,n){n&&(e[t]=n)}function jr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new fu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[is(r)]=r,n[is(l.attribute)]=r}return new _i(t,n,e.space)}const fh=jr({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:fe,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:z,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:fe,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Se,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 dh(e,t){return t in e?e[t]:t}function ph(e,t){return dh(e,t.toLowerCase())}const lx=jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mr,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:fe,autoFocus:X,autoPlay:X,blocking:fe,capture:null,charSet:null,checked:X,cite:null,className:fe,cols:z,colSpan:null,content:null,contentEditable:Se,controls:X,controlsList:fe,coords:z|mr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:ls,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:fe,height:z,hidden:ls,high:z,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:fe,itemRef:fe,itemScope:X,itemType:fe,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:fe,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:fe,required:X,reversed:X,rows:z,rowSpan:z,sandbox:fe,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:Se,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:Se,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,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:Se,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:ph}),ox=jr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:lt,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:fe,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:mr,g2:mr,glyphName:mr,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:lt,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:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lt,rev:lt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lt,requiredFeatures:lt,requiredFonts:lt,requiredFormats:lt,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:lt,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:lt,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:lt,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:dh}),hh=jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mh=jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ph}),gh=jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ax={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"},sx=/[A-Z]/g,Qc=/-[a-z]/g,ux=/^data[-\w.:]+$/i;function cx(e,t){const n=is(t);let r=t,i=nt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ux.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Qc,dx);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Qc.test(l)){let o=l.replace(sx,fx);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=fu}return new i(r,t)}function fx(e){return"-"+e.toLowerCase()}function dx(e){return e.charAt(1).toUpperCase()}const px=ch([fh,lx,hh,mh,gh],"html"),du=ch([fh,ox,hh,mh,gh],"svg");function hx(e){return e.join(" ").trim()}var pu={},Yc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mx=/\n/g,gx=/^\s*/,yx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xx=/^:\s*/,vx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kx=/^[;\s]*/,wx=/^\s+|\s+$/g,bx=`
|
|
41
|
+
`,Kc="/",Xc="*",An="",Sx="comment",Ex="declaration";function Cx(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 v=m.match(mx);v&&(n+=v.length);var w=m.lastIndexOf(bx);r=~w?m.length-w:r+m.length}function l(){var m={line:n,column:r};return function(v){return v.position=new o(m),u(),v}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var v=new Error(t.source+":"+n+":"+r+": "+m);if(v.reason=m,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function s(m){var v=m.exec(e);if(v){var w=v[0];return i(w),e=e.slice(w.length),v}}function u(){s(gx)}function f(m){var v;for(m=m||[];v=c();)v!==!1&&m.push(v);return m}function c(){var m=l();if(!(Kc!=e.charAt(0)||Xc!=e.charAt(1))){for(var v=2;An!=e.charAt(v)&&(Xc!=e.charAt(v)||Kc!=e.charAt(v+1));)++v;if(v+=2,An===e.charAt(v-1))return a("End of comment missing");var w=e.slice(2,v-2);return r+=2,i(w),e=e.slice(v),r+=2,m({type:Sx,comment:w})}}function p(){var m=l(),v=s(yx);if(v){if(c(),!s(xx))return a("property missing ':'");var w=s(vx),y=m({type:Ex,property:Zc(v[0].replace(Yc,An)),value:w?Zc(w[0].replace(Yc,An)):An});return s(kx),y}}function h(){var m=[];f(m);for(var v;v=p();)v!==!1&&(m.push(v),f(m));return m}return u(),h()}function Zc(e){return e?e.replace(wx,An):An}var Nx=Cx,jx=kl&&kl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pu,"__esModule",{value:!0});pu.default=_x;const Tx=jx(Nx);function _x(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Tx.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 po={};Object.defineProperty(po,"__esModule",{value:!0});po.camelCase=void 0;var Ix=/^--[a-zA-Z0-9_-]+$/,Ax=/-([a-z])/g,Px=/^[^-]+$/,Lx=/^-(webkit|moz|ms|o|khtml)-/,Fx=/^-(ms)-/,Rx=function(e){return!e||Px.test(e)||Ix.test(e)},Ox=function(e,t){return t.toUpperCase()},Jc=function(e,t){return"".concat(t,"-")},Dx=function(e,t){return t===void 0&&(t={}),Rx(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Fx,Jc):e=e.replace(Lx,Jc),e.replace(Ax,Ox))};po.camelCase=Dx;var zx=kl&&kl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Mx=zx(pu),Bx=po;function as(e,t){var n={};return!e||typeof e!="string"||(0,Mx.default)(e,function(r,i){r&&i&&(n[(0,Bx.camelCase)(r,t)]=i)}),n}as.default=as;var $x=as;const Ux=gs($x),yh=xh("end"),hu=xh("start");function xh(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 Hx(e){const t=hu(e),n=yh(e);if(t&&n)return{start:t,end:n}}function ni(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ef(e.position):"start"in e||"end"in e?ef(e):"line"in e||"column"in e?ss(e):""}function ss(e){return tf(e&&e.line)+":"+tf(e&&e.column)}function ef(e){return ss(e&&e.start)+"-"+ss(e&&e.end)}function tf(e){return e&&typeof e=="number"?e:1}class Me 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=ni(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}}Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;const mu={}.hasOwnProperty,Vx=new Map,Wx=/[A-Z]/g,Gx=new Set(["table","tbody","thead","tfoot","tr"]),qx=new Set(["td","th"]),vh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qx(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=nv(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=tv(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"?du:px,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=kh(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function kh(e,t,n){if(t.type==="element")return Yx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Kx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Zx(e,t,n);if(t.type==="mdxjsEsm")return Xx(e,t);if(t.type==="root")return Jx(e,t,n);if(t.type==="text")return ev(e,t)}function Yx(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=du,e.schema=i),e.ancestors.push(t);const l=bh(e,t.tagName,!1),o=rv(e,t);let a=yu(e,t);return Gx.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!rx(s):!0})),wh(e,o,l,t),gu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Kx(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)}bi(e,t.position)}function Xx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bi(e,t.position)}function Zx(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=du,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:bh(e,t.name,!0),o=iv(e,t),a=yu(e,t);return wh(e,o,l,t),gu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Jx(e,t,n){const r={};return gu(r,yu(e,t)),e.create(t,e.Fragment,r,n)}function ev(e,t){return t.value}function wh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function tv(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 nv(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=hu(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 rv(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&mu.call(t.properties,i)){const l=lv(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&qx.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 iv(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 bi(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 bi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function yu(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Vx;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=kh(e,l,o);a!==void 0&&n.push(a)}return n}function lv(e,t,n){const r=cx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Zy(n):hx(n)),r.property==="style"){let i=typeof n=="object"?n:ov(e,String(n));return e.stylePropertyNameCase==="css"&&(i=av(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ax[r.property]||r.property:r.attribute,n]}}function ov(e,t){try{return Ux(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Me("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=vh+"#cannot-parse-style-attribute",i}}function bh(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=Wc(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=Wc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return mu.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);bi(e)}function bi(e,t){const n=new Me("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=vh+"#cannot-handle-mdx-estrees-without-createevaluater",n}function av(e){const t={};let n;for(n in e)mu.call(e,n)&&(t[sv(n)]=e[n]);return t}function sv(e){let t=e.replace(Wx,uv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function uv(e){return"-"+e.toLowerCase()}const Ko={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"]},cv={};function xu(e,t){const n=cv,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(fv(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 nf(e.children,t,n)}return Array.isArray(e)?nf(e,t,n):""}function nf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Sh(e[i],t,n);return r.join("")}function fv(e){return!!(e&&typeof e=="object")}const rf=document.createElement("i");function vu(e){const t="&"+e+";";rf.innerHTML=t;const n=rf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ut(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 gt(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const lf={}.hasOwnProperty;function Eh(e){const t={};let n=-1;for(;++n<e.length;)dv(t,e[n]);return t}function dv(e,t){let n;for(n in t){const i=(lf.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){lf.call(i,o)||(i[o]=[]);const a=l[o];pv(i[o],Array.isArray(a)?a:a?[a]:[])}}}function pv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ut(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 Tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const He=En(/[A-Za-z]/),De=En(/[\dA-Za-z]/),hv=En(/[#-'*+\--9=?A-Z^-~]/);function Wl(e){return e!==null&&(e<32||e===127)}const us=En(/\d/),mv=En(/[\dA-Fa-f]/),gv=En(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const ho=En(new RegExp("\\p{P}|\\p{S}","u")),Un=En(/\s/);function En(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Tr(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 ne(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 yv={tokenize:xv};function xv(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"),ne(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 G(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const vv={tokenize:kv},of={tokenize:wv};function kv(e){const t=this,n=[];let r=0,i,l,o;return a;function a(g){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,s,u)(g)}return u(g)}function s(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const S=t.events.length;let N=S,b;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){b=t.events[N][1].end;break}y(r);let j=S;for(;j<t.events.length;)t.events[j][1].end={...b},j++;return ut(t.events,N+1,0,t.events.slice(S)),t.events.length=j,u(g)}return a(g)}function u(g){if(r===n.length){if(!i)return p(g);if(i.currentConstruct&&i.currentConstruct.concrete)return m(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(of,f,c)(g)}function f(g){return i&&x(),y(r),p(g)}function c(g){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(g)}function p(g){return t.containerState={},e.attempt(of,h,m)(g)}function h(g){return r++,n.push([t.currentConstruct,t.containerState]),p(g)}function m(g){if(g===null){i&&x(),y(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),v(g)}function v(g){if(g===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(g);return}return G(g)?(e.consume(g),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(g),v)}function w(g,S){const N=t.sliceStream(g);if(S&&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 b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const j=t.events.length;let _=j,L,C;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(L){C=t.events[_][1].end;break}L=!0}for(y(r),b=j;b<t.events.length;)t.events[b][1].end={...C},b++;ut(t.events,_+1,0,t.events.slice(j)),t.events.length=b}}function y(g){let S=n.length;for(;S-- >g;){const N=n[S];t.containerState=N[1],N[0].exit.call(t,e)}n.length=g}function x(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wv(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Sr(e){if(e===null||ue(e)||Un(e))return 1;if(ho(e))return 2}function mo(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 cs={name:"attention",resolveAll:bv,tokenize:Sv};function bv(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},p={...e[n][1].start};af(c,-s),af(p,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:p},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=gt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=gt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=gt(u,mo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=gt(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=gt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ut(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 Sv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Sr(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=Sr(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!p)),u._close=!!(l===42?p:p&&(f||!c)),t(s)}}function af(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ev={name:"autolink",tokenize:Cv};function Cv(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 He(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||Wl(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):hv(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):p(h)}function p(h){if((h===45||De(h))&&r++<63){const m=h===45?p:c;return e.consume(h),m}return n(h)}}const Ii={partial:!0,tokenize:Nv};function Nv(e,t,n){return r;function r(l){return J(l)?ne(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||G(l)?t(l):n(l)}}const Nh={continuation:{tokenize:Tv},exit:_v,name:"blockQuote",tokenize:jv};function jv(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 Tv(e,t,n){const r=this;return i;function i(o){return J(o)?ne(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Nh,t,n)(o)}}function _v(e){e.exit("blockQuote")}const jh={name:"characterEscape",tokenize:Iv};function Iv(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 gv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Th={name:"characterReference",tokenize:Av};function Av(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=mv,f):(e.enter("characterReferenceValue"),l=7,o=us,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===De&&!vu(r.sliceSerialize(p))?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 sf={partial:!0,tokenize:Lv},uf={concrete:!0,name:"codeFenced",tokenize:Pv};function Pv(e,t,n){const r=this,i={partial:!0,tokenize:N};let l=0,o=0,a;return s;function s(b){return u(b)}function u(b){const j=r.events[r.events.length-1];return l=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(o++,e.consume(b),f):o<3?n(b):(e.exit("codeFencedFenceSequence"),J(b)?ne(e,c,"whitespace")(b):c(b))}function c(b){return b===null||G(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(sf,v,S)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||G(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):J(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,h,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),p)}function h(b){return b===null||G(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||G(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),m)}function v(b){return e.attempt(i,S,w)(b)}function w(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y}function y(b){return l>0&&J(b)?ne(e,x,"linePrefix",l+1)(b):x(b)}function x(b){return b===null||G(b)?e.check(sf,v,S)(b):(e.enter("codeFlowValue"),g(b))}function g(b){return b===null||G(b)?(e.exit("codeFlowValue"),x(b)):(e.consume(b),g)}function S(b){return e.exit("codeFenced"),t(b)}function N(b,j,_){let L=0;return C;function C(F){return b.enter("lineEnding"),b.consume(F),b.exit("lineEnding"),R}function R(F){return b.enter("codeFencedFence"),J(F)?ne(b,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):M(F)}function M(F){return F===a?(b.enter("codeFencedFenceSequence"),U(F)):_(F)}function U(F){return F===a?(L++,b.consume(F),U):L>=o?(b.exit("codeFencedFenceSequence"),J(F)?ne(b,B,"whitespace")(F):B(F)):_(F)}function B(F){return F===null||G(F)?(b.exit("codeFencedFence"),j(F)):_(F)}}}function Lv(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 Xo={name:"codeIndented",tokenize:Rv},Fv={partial:!0,tokenize:Ov};function Rv(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ne(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):G(u)?e.attempt(Fv,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||G(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Ov(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ne(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):G(o)?i(o):n(o)}}const Dv={name:"codeText",previous:Mv,resolve:zv,tokenize:Bv};function zv(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 Mv(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bv(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)):G(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||G(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class $v{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 _h(e){const t={};let n=-1,r,i,l,o,a,s,u;const f=new $v(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,Uv(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 ut(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Uv(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,p=-1,h=n,m=0,v=0;const w=[v];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;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(v=p+1,w.push(v),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(),p=w.length;p--;){const y=a.slice(w[p],w[p+1]),x=l.pop();s.push([x,x+y.length-1]),e.splice(x,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return u}const Hv={resolve:Wv,tokenize:Gv},Vv={partial:!0,tokenize:qv};function Wv(e){return _h(e),e}function Gv(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):G(a)?e.check(Vv,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 qv(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ne(e,l,"linePrefix")}function l(o){if(o===null||G(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Ih(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(y),e.exit(l),p):y===null||y===32||y===41||Wl(y)?n(y):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(y))}function p(y){return y===62?(e.enter(l),e.consume(y),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||G(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function v(y){return!f&&(y===null||y===41||ue(y))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,v):y===41?(e.consume(y),f--,v):y===null||y===32||y===40||Wl(y)?n(y):(e.consume(y),y===92?w:v)}function w(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function Ah(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):G(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||G(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!J(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Ph(e,t,n,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?n(p):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||G(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function ri(e,t){let n;return r;function r(i){return G(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):J(i)?ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Qv={name:"definition",tokenize:Kv},Yv={partial:!0,tokenize:Xv};function Kv(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Ah.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Tt(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 ue(h)?ri(e,u)(h):u(h)}function u(h){return Ih(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Yv,c,c)(h)}function c(h){return J(h)?ne(e,p,"whitespace")(h):p(h)}function p(h){return h===null||G(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Xv(e,t,n){return r;function r(a){return ue(a)?ri(e,i)(a):n(a)}function i(a){return Ph(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return J(a)?ne(e,o,"whitespace")(a):o(a)}function o(a){return a===null||G(a)?t(a):n(a)}}const Zv={name:"hardBreakEscape",tokenize:Jv};function Jv(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return G(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const ek={name:"headingAtx",resolve:tk,tokenize:nk};function tk(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"},ut(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function nk(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||ue(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||G(f)?(e.exit("atxHeading"),t(f)):J(f)?ne(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||ue(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const rk=["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"],cf=["pre","script","style","textarea"],ik={concrete:!0,name:"htmlFlow",resolveTo:ak,tokenize:sk},lk={partial:!0,tokenize:ck},ok={partial:!0,tokenize:uk};function ak(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 sk(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),p):E===47?(e.consume(E),l=!0,v):E===63?(e.consume(E),i=3,r.interrupt?t:k):He(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function p(E){return E===45?(e.consume(E),i=2,h):E===91?(e.consume(E),i=5,a=0,m):He(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 se="CDATA[";return E===se.charCodeAt(a++)?(e.consume(E),a===se.length?r.interrupt?t:M:m):n(E)}function v(E){return He(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function w(E){if(E===null||E===47||E===62||ue(E)){const se=E===47,_e=o.toLowerCase();return!se&&!l&&cf.includes(_e)?(i=1,r.interrupt?t(E):M(E)):rk.includes(o.toLowerCase())?(i=6,se?(e.consume(E),y):r.interrupt?t(E):M(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):l?x(E):g(E))}return E===45||De(E)?(e.consume(E),o+=String.fromCharCode(E),w):n(E)}function y(E){return E===62?(e.consume(E),r.interrupt?t:M):n(E)}function x(E){return J(E)?(e.consume(E),x):C(E)}function g(E){return E===47?(e.consume(E),C):E===58||E===95||He(E)?(e.consume(E),S):J(E)?(e.consume(E),g):C(E)}function S(E){return E===45||E===46||E===58||E===95||De(E)?(e.consume(E),S):N(E)}function N(E){return E===61?(e.consume(E),b):J(E)?(e.consume(E),N):g(E)}function b(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,j):J(E)?(e.consume(E),b):_(E)}function j(E){return E===s?(e.consume(E),s=null,L):E===null||G(E)?n(E):(e.consume(E),j)}function _(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ue(E)?N(E):(e.consume(E),_)}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||G(E)?M(E):J(E)?(e.consume(E),R):n(E)}function M(E){return E===45&&i===2?(e.consume(E),W):E===60&&i===1?(e.consume(E),Z):E===62&&i===4?(e.consume(E),Y):E===63&&i===3?(e.consume(E),k):E===93&&i===5?(e.consume(E),V):G(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lk,te,U)(E)):E===null||G(E)?(e.exit("htmlFlowData"),U(E)):(e.consume(E),M)}function U(E){return e.check(ok,B,te)(E)}function B(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),F}function F(E){return E===null||G(E)?U(E):(e.enter("htmlFlowData"),M(E))}function W(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 se=o.toLowerCase();return cf.includes(se)?(e.consume(E),Y):M(E)}return He(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),D):M(E)}function V(E){return E===93?(e.consume(E),k):M(E)}function k(E){return E===62?(e.consume(E),Y):E===45&&i===2?(e.consume(E),k):M(E)}function Y(E){return E===null||G(E)?(e.exit("htmlFlowData"),te(E)):(e.consume(E),Y)}function te(E){return e.exit("htmlFlow"),t(E)}}function uk(e,t,n){const r=this;return i;function i(o){return G(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 ck(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ii,t,n)}}const fk={name:"htmlText",tokenize:dk};function dk(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):He(k)?(e.consume(k),_):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):He(k)?(e.consume(k),x):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),p):G(k)?(o=c,Z(k)):(e.consume(k),c)}function p(k){return k===45?(e.consume(k),h):c(k)}function h(k){return k===62?W(k):k===45?p(k):c(k)}function m(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?v:m):n(k)}function v(k){return k===null?n(k):k===93?(e.consume(k),w):G(k)?(o=v,Z(k)):(e.consume(k),v)}function w(k){return k===93?(e.consume(k),y):v(k)}function y(k){return k===62?W(k):k===93?(e.consume(k),y):v(k)}function x(k){return k===null||k===62?W(k):G(k)?(o=x,Z(k)):(e.consume(k),x)}function g(k){return k===null?n(k):k===63?(e.consume(k),S):G(k)?(o=g,Z(k)):(e.consume(k),g)}function S(k){return k===62?W(k):g(k)}function N(k){return He(k)?(e.consume(k),b):n(k)}function b(k){return k===45||De(k)?(e.consume(k),b):j(k)}function j(k){return G(k)?(o=j,Z(k)):J(k)?(e.consume(k),j):W(k)}function _(k){return k===45||De(k)?(e.consume(k),_):k===47||k===62||ue(k)?L(k):n(k)}function L(k){return k===47?(e.consume(k),W):k===58||k===95||He(k)?(e.consume(k),C):G(k)?(o=L,Z(k)):J(k)?(e.consume(k),L):W(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):G(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):G(k)?(o=M,Z(k)):J(k)?(e.consume(k),M):(e.consume(k),B)}function U(k){return k===i?(e.consume(k),i=void 0,F):k===null?n(k):G(k)?(o=U,Z(k)):(e.consume(k),U)}function B(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||ue(k)?L(k):(e.consume(k),B)}function F(k){return k===47||k===62||ue(k)?L(k):n(k)}function W(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)?ne(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):V(k)}function V(k){return e.enter("htmlTextData"),o(k)}}const ku={name:"labelEnd",resolveAll:gk,resolveTo:yk,tokenize:xk},pk={tokenize:vk},hk={tokenize:kk},mk={tokenize:wk};function gk(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&&ut(e,0,e.length,n),e}function yk(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=gt(a,e.slice(l+1,l+r+3)),a=gt(a,[["enter",f,t]]),a=gt(a,mo(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=gt(a,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),a=gt(a,e.slice(o+1)),a=gt(a,[["exit",s,t]]),ut(e,l,e.length,a),e}function xk(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(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(Tt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(pk,f,o?f:c)(p):p===91?e.attempt(hk,f,o?u:c)(p):o?f(p):c(p)}function u(p){return e.attempt(mk,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function vk(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 ue(c)?ri(e,l)(c):l(c)}function l(c){return c===41?f(c):Ih(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ue(c)?ri(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?Ph(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ue(c)?ri(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 kk(e,t,n){const r=this;return i;function i(a){return Ah.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function wk(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 bk={name:"labelStartImage",resolveAll:ku.resolveAll,tokenize:Sk};function Sk(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 Ek={name:"labelStartLink",resolveAll:ku.resolveAll,tokenize:Ck};function Ck(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 Zo={name:"lineEnding",tokenize:Nk};function Nk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ne(e,t,"linePrefix")}}const yl={name:"thematicBreak",tokenize:jk};function jk(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||G(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?ne(e,a,"whitespace")(u):a(u))}}const Ke={continuation:{tokenize:Ak},exit:Lk,name:"list",tokenize:Ik},Tk={partial:!0,tokenize:Fk},_k={partial:!0,tokenize:Pk};function Ik(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:us(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(yl,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 us(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(Ii,r.interrupt?n:f,e.attempt(Tk,p,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function c(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ak(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ii,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(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(_k,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(Ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Pk(e,t,n){const r=this;return ne(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 Lk(e){e.exit(this.containerState.type)}function Fk(e,t,n){const r=this;return ne(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 ff={name:"setextUnderline",resolveTo:Rk,tokenize:Ok};function Rk(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 Ok(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)?ne(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||G(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Dk={tokenize:zk};function zk(e){const t=this,n=e.attempt(Ii,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Hv,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 Mk={resolveAll:Fh()},Bk=Lh("string"),$k=Lh("text");function Lh(e){return{resolveAll:Fh(e==="text"?Uk: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 p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Fh(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 Uk(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 Hk={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:Nh},Vk={91:Qv},Wk={[-2]:Xo,[-1]:Xo,32:Xo},Gk={35:ek,42:yl,45:[ff,yl],60:ik,61:ff,95:yl,96:uf,126:uf},qk={38:Th,92:jh},Qk={[-5]:Zo,[-4]:Zo,[-3]:Zo,33:bk,38:Th,42:cs,60:[Ev,fk],91:Ek,92:[Zv,jh],93:ku,95:cs,96:Dv},Yk={null:[cs,Mk]},Kk={null:[42,95]},Xk={null:[]},Zk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Kk,contentInitial:Vk,disable:Xk,document:Hk,flow:Gk,flowInitial:Wk,insideSpan:Yk,string:qk,text:Qk},Symbol.toStringTag,{value:"Module"}));function Jk(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:j(N),check:j(b),consume:x,enter:g,exit:S,interrupt:j(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function c(R){return o=gt(o,R),w(),o[o.length-1]!==null?[]:(_(t,0),u.events=mo(l,u.events,u),u.events)}function p(R,M){return tw(h(R),M)}function h(R){return ew(o,R)}function m(){const{_bufferIndex:R,_index:M,line:U,column:B,offset:F}=r;return{_bufferIndex:R,_index:M,line:U,column:B,offset:F}}function v(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;)y(M.charCodeAt(r._bufferIndex));else y(M)}}function y(R){f=f(R)}function x(R){G(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 S(R){const M=a.pop();return M.end=m(),u.events.push(["exit",M,u]),M}function N(R,M){_(R,M.from)}function b(R,M){M.restore()}function j(R,M){return U;function U(B,F,W){let Z,D,V,k;return Array.isArray(B)?te(B):"tokenize"in B?te([B]):Y(B);function Y(re){return ce;function ce(qe){const Qe=qe!==null&&re[qe],zt=qe!==null&&re.null,Gn=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(zt)?zt:zt?[zt]:[]];return te(Gn)(qe)}}function te(re){return Z=re,D=0,re.length===0?W:E(re[D])}function E(re){return ce;function ce(qe){return k=L(),V=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?_e():re.tokenize.call(M?Object.assign(Object.create(u),M):u,s,se,_e)(qe)}}function se(re){return R(V,k),F}function _e(re){return k.restore(),++D<Z.length?E(Z[D]):W}}}function _(R,M){R.resolveAll&&!l.includes(R)&&l.push(R),R.resolve&&ut(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,B=u.events.length,F=Array.from(a);return{from:B,restore:W};function W(){r=R,u.previous=M,u.currentConstruct=U,u.events.length=B,a=F,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ew(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 tw(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
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 nw(e){const r={constructs:Eh([Zk,...(e||{}).extensions||[]]),content:i(yv),defined:[],document:i(vv),flow:i(Ok),lazy:{},string:i(Bk),text:i($k)};return r;function i(l){return o;function o(a){return Jk(r,l,a)}}}function rw(e){for(;!_h(e););return e}const df=/[\0\t\n\r]/g;function iw(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,p,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(df.lastIndex=c,u=df.exec(l),p=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(p),!u){t=l.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(l.slice(c,p)),e+=p-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=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const lw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ow(e){return e.replace(lw,aw)}function aw(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 vu(n)||e}const Rh={}.hasOwnProperty;function sw(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),uw(n)(rw(nw(n).document().write(iw()(e,t,!0))))}function uw(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Fi),autolinkProtocol:L,autolinkEmail:L,atxHeading:l(_r),blockQuote:l(zt),characterEscape:L,characterReference:L,codeFenced:l(Gn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Gn,o),codeText:l(Pi,o),codeTextData:L,data:L,codeFlowValue:L,definition:l(wo),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(bo),hardBreakEscape:l(Li),hardBreakTrailing:l(Li),htmlFlow:l(wt,o),htmlFlowData:L,htmlText:l(wt,o),htmlTextData:L,image:l(Ir),label:o,link:l(Fi),listItem:l(Ar),listItemValue:p,listOrdered:l(Cn,c),listUnordered:l(Cn),paragraph:l(Au),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(_r),strong:l(Pr),thematicBreak:l(Di)},exit:{atxHeading:s(),atxHeadingSequence:N,autolink:s(),autolinkEmail:Qe,autolinkProtocol:qe,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:re,characterReference:ce,codeFenced:s(w),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:s(y),codeText:s(F),codeTextData:C,data:C,definition:s(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(U),htmlFlowData:C,htmlText:s(B),htmlTextData:C,image:s(Z),label:V,labelText:O,lineEnding:R,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:se,resourceDestinationString:k,resourceTitleString:Y,resource:te,setextHeading:s(_),setextHeadingLineSequence:j,setextHeadingText:b,strong:s(),thematicBreak:s()}};Dh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let $={type:"root",children:[]};const q={stack:[$],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:f,data:n},K=[];let oe=-1;for(;++oe<T.length;)if(T[oe][1].type==="listOrdered"||T[oe][1].type==="listUnordered")if(T[oe][0]==="enter")K.push(oe);else{const rt=K.pop();oe=i(T,rt,oe)}for(oe=-1;++oe<T.length;){const rt=t[T[oe][0]];Rh.call(rt,T[oe][1].type)&&rt[T[oe][1].type].call(Object.assign({sliceSerialize:T[oe][2].sliceSerialize},q),T[oe][1])}if(q.tokenStack.length>0){const rt=q.tokenStack[q.tokenStack.length-1];(rt[1]||pf).call(q,void 0,rt[0])}for($.position={start:nn(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:nn(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe<t.transforms.length;)$=t.transforms[oe]($)||$;return $}function i(T,$,q){let K=$-1,oe=-1,rt=!1,Mt,Ye,Nn,Bt;for(;++K<=q;){const Be=T[K];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?oe++:oe--,Bt=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(Mt&&!Bt&&!oe&&!Nn&&(Nn=K),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!oe&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||oe===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(Mt){let en=K;for(Ye=void 0;en--;){const ke=T[en];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;Ye&&(T[Ye][1].type="lineEndingBlank",rt=!0),ke[1].type="lineEnding",Ye=en}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}Nn&&(!Ye||Nn<Ye)&&(Mt._spread=!0),Mt.end=Object.assign({},Ye?T[Ye][1].start:Be[1].end),T.splice(Ye||K,0,["exit",Mt,Be[2]]),K++,q++}if(Be[1].type==="listItemPrefix"){const en={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};Mt=en,T.splice(K,0,["enter",en,Be[2]]),K++,q++,Nn=void 0,Bt=!0}}}return T[$][1]._spread=rt,q}function l(T,$){return q;function q(K){a.call(this,T(K),K),$&&$.call(this,K)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(T,$,q){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([$,q||void 0]),T.position={start:nn($.start),end:void 0}}function s(T){return $;function $(q){T&&T.call(this,q),u.call(this,q)}}function u(T,$){const q=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==T.type&&($?$.call(this,T,K[0]):(K[1]||pf).call(this,T,K[0]));else throw new Error("Cannot close `"+T.type+"` ("+ni({start:T.start,end:T.end})+"): it’s not open");q.position.end=nn(T.end)}function f(){return xu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),$=this.stack[this.stack.length-1];$.lang=T}function m(){const T=this.resume(),$=this.stack[this.stack.length-1];$.meta=T}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T.replace(/(\r?\n|\r)$/g,"")}function x(T){const $=this.resume(),q=this.stack[this.stack.length-1];q.label=$,q.identifier=Tt(this.sliceSerialize(T)).toLowerCase()}function g(){const T=this.resume(),$=this.stack[this.stack.length-1];$.title=T}function S(){const T=this.resume(),$=this.stack[this.stack.length-1];$.url=T}function N(T){const $=this.stack[this.stack.length-1];if(!$.depth){const q=this.sliceSerialize(T).length;$.depth=q}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function j(T){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function L(T){const q=this.stack[this.stack.length-1].children;let K=q[q.length-1];(!K||K.type!=="text")&&(K=Ri(),K.position={start:nn(T.start),end:void 0},q.push(K)),this.stack.push(K)}function C(T){const $=this.stack.pop();$.value+=this.sliceSerialize(T),$.position.end=nn(T.end)}function R(T){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=$.children[$.children.length-1];q.position.end=nn(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(L.call(this,T),C.call(this,T))}function M(){this.data.atHardBreak=!0}function U(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T}function B(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T}function F(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T}function W(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=$,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Z(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=$,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function O(T){const $=this.sliceSerialize(T),q=this.stack[this.stack.length-2];q.label=ow($),q.identifier=Tt($).toLowerCase()}function V(){const T=this.stack[this.stack.length-1],$=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const K=T.children;q.children=K}else q.alt=$}function k(){const T=this.resume(),$=this.stack[this.stack.length-1];$.url=T}function Y(){const T=this.resume(),$=this.stack[this.stack.length-1];$.title=T}function te(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function se(T){const $=this.resume(),q=this.stack[this.stack.length-1];q.label=$,q.identifier=Tt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function _e(T){this.data.characterReferenceType=T.type}function re(T){const $=this.sliceSerialize(T),q=this.data.characterReferenceType;let K;q?(K=Ch($,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=vu($);const oe=this.stack[this.stack.length-1];oe.value+=K}function ce(T){const $=this.stack.pop();$.position.end=nn(T.end)}function qe(T){C.call(this,T);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(T)}function Qe(T){C.call(this,T);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(T)}function zt(){return{type:"blockquote",children:[]}}function Gn(){return{type:"code",lang:null,meta:null,value:""}}function Pi(){return{type:"inlineCode",value:""}}function wo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bo(){return{type:"emphasis",children:[]}}function _r(){return{type:"heading",depth:0,children:[]}}function Li(){return{type:"break"}}function wt(){return{type:"html",value:""}}function Ir(){return{type:"image",title:null,url:"",alt:null}}function Fi(){return{type:"link",title:null,url:"",children:[]}}function Cn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Ar(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Au(){return{type:"paragraph",children:[]}}function Pr(){return{type:"strong",children:[]}}function Ri(){return{type:"text",value:""}}function Di(){return{type:"thematicBreak"}}}function nn(e){return{line:e.line,column:e.column,offset:e.offset}}function Dh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Dh(e,r):cw(e,r)}}function cw(e,t){let n;for(n in t)if(Rh.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 pf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is still open")}function fw(e){const t=this;t.parser=n;function n(r){return sw(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dw(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 pw(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
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 nw(e){const r={constructs:Eh([Zk,...(e||{}).extensions||[]]),content:i(yv),defined:[],document:i(vv),flow:i(Dk),lazy:{},string:i(Bk),text:i($k)};return r;function i(l){return o;function o(a){return Jk(r,l,a)}}}function rw(e){for(;!_h(e););return e}const df=/[\0\t\n\r]/g;function iw(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,p,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(df.lastIndex=c,u=df.exec(l),p=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(p),!u){t=l.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(l.slice(c,p)),e+=p-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=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const lw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ow(e){return e.replace(lw,aw)}function aw(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 vu(n)||e}const Rh={}.hasOwnProperty;function sw(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),uw(n)(rw(nw(n).document().write(iw()(e,t,!0))))}function uw(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Fi),autolinkProtocol:L,autolinkEmail:L,atxHeading:l(_r),blockQuote:l(zt),characterEscape:L,characterReference:L,codeFenced:l(Gn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Gn,o),codeText:l(Pi,o),codeTextData:L,data:L,codeFlowValue:L,definition:l(wo),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(bo),hardBreakEscape:l(Li),hardBreakTrailing:l(Li),htmlFlow:l(wt,o),htmlFlowData:L,htmlText:l(wt,o),htmlTextData:L,image:l(Ir),label:o,link:l(Fi),listItem:l(Ar),listItemValue:p,listOrdered:l(Cn,c),listUnordered:l(Cn),paragraph:l(Au),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(_r),strong:l(Pr),thematicBreak:l(Oi)},exit:{atxHeading:s(),atxHeadingSequence:N,autolink:s(),autolinkEmail:Qe,autolinkProtocol:qe,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:re,characterReference:ce,codeFenced:s(w),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:s(y),codeText:s(F),codeTextData:C,data:C,definition:s(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(U),htmlFlowData:C,htmlText:s(B),htmlTextData:C,image:s(Z),label:V,labelText:D,lineEnding:R,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:se,resourceDestinationString:k,resourceTitleString:Y,resource:te,setextHeading:s(_),setextHeadingLineSequence:j,setextHeadingText:b,strong:s(),thematicBreak:s()}};Oh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let $={type:"root",children:[]};const q={stack:[$],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:f,data:n},K=[];let oe=-1;for(;++oe<T.length;)if(T[oe][1].type==="listOrdered"||T[oe][1].type==="listUnordered")if(T[oe][0]==="enter")K.push(oe);else{const rt=K.pop();oe=i(T,rt,oe)}for(oe=-1;++oe<T.length;){const rt=t[T[oe][0]];Rh.call(rt,T[oe][1].type)&&rt[T[oe][1].type].call(Object.assign({sliceSerialize:T[oe][2].sliceSerialize},q),T[oe][1])}if(q.tokenStack.length>0){const rt=q.tokenStack[q.tokenStack.length-1];(rt[1]||pf).call(q,void 0,rt[0])}for($.position={start:nn(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:nn(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe<t.transforms.length;)$=t.transforms[oe]($)||$;return $}function i(T,$,q){let K=$-1,oe=-1,rt=!1,Mt,Ye,Nn,Bt;for(;++K<=q;){const Be=T[K];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?oe++:oe--,Bt=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(Mt&&!Bt&&!oe&&!Nn&&(Nn=K),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!oe&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||oe===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(Mt){let en=K;for(Ye=void 0;en--;){const ke=T[en];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;Ye&&(T[Ye][1].type="lineEndingBlank",rt=!0),ke[1].type="lineEnding",Ye=en}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}Nn&&(!Ye||Nn<Ye)&&(Mt._spread=!0),Mt.end=Object.assign({},Ye?T[Ye][1].start:Be[1].end),T.splice(Ye||K,0,["exit",Mt,Be[2]]),K++,q++}if(Be[1].type==="listItemPrefix"){const en={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};Mt=en,T.splice(K,0,["enter",en,Be[2]]),K++,q++,Nn=void 0,Bt=!0}}}return T[$][1]._spread=rt,q}function l(T,$){return q;function q(K){a.call(this,T(K),K),$&&$.call(this,K)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(T,$,q){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([$,q||void 0]),T.position={start:nn($.start),end:void 0}}function s(T){return $;function $(q){T&&T.call(this,q),u.call(this,q)}}function u(T,$){const q=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==T.type&&($?$.call(this,T,K[0]):(K[1]||pf).call(this,T,K[0]));else throw new Error("Cannot close `"+T.type+"` ("+ni({start:T.start,end:T.end})+"): it’s not open");q.position.end=nn(T.end)}function f(){return xu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),$=this.stack[this.stack.length-1];$.lang=T}function m(){const T=this.resume(),$=this.stack[this.stack.length-1];$.meta=T}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T.replace(/(\r?\n|\r)$/g,"")}function x(T){const $=this.resume(),q=this.stack[this.stack.length-1];q.label=$,q.identifier=Tt(this.sliceSerialize(T)).toLowerCase()}function g(){const T=this.resume(),$=this.stack[this.stack.length-1];$.title=T}function S(){const T=this.resume(),$=this.stack[this.stack.length-1];$.url=T}function N(T){const $=this.stack[this.stack.length-1];if(!$.depth){const q=this.sliceSerialize(T).length;$.depth=q}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function j(T){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function L(T){const q=this.stack[this.stack.length-1].children;let K=q[q.length-1];(!K||K.type!=="text")&&(K=Ri(),K.position={start:nn(T.start),end:void 0},q.push(K)),this.stack.push(K)}function C(T){const $=this.stack.pop();$.value+=this.sliceSerialize(T),$.position.end=nn(T.end)}function R(T){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=$.children[$.children.length-1];q.position.end=nn(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(L.call(this,T),C.call(this,T))}function M(){this.data.atHardBreak=!0}function U(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T}function B(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T}function F(){const T=this.resume(),$=this.stack[this.stack.length-1];$.value=T}function W(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=$,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Z(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=$,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function D(T){const $=this.sliceSerialize(T),q=this.stack[this.stack.length-2];q.label=ow($),q.identifier=Tt($).toLowerCase()}function V(){const T=this.stack[this.stack.length-1],$=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const K=T.children;q.children=K}else q.alt=$}function k(){const T=this.resume(),$=this.stack[this.stack.length-1];$.url=T}function Y(){const T=this.resume(),$=this.stack[this.stack.length-1];$.title=T}function te(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function se(T){const $=this.resume(),q=this.stack[this.stack.length-1];q.label=$,q.identifier=Tt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function _e(T){this.data.characterReferenceType=T.type}function re(T){const $=this.sliceSerialize(T),q=this.data.characterReferenceType;let K;q?(K=Ch($,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=vu($);const oe=this.stack[this.stack.length-1];oe.value+=K}function ce(T){const $=this.stack.pop();$.position.end=nn(T.end)}function qe(T){C.call(this,T);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(T)}function Qe(T){C.call(this,T);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(T)}function zt(){return{type:"blockquote",children:[]}}function Gn(){return{type:"code",lang:null,meta:null,value:""}}function Pi(){return{type:"inlineCode",value:""}}function wo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bo(){return{type:"emphasis",children:[]}}function _r(){return{type:"heading",depth:0,children:[]}}function Li(){return{type:"break"}}function wt(){return{type:"html",value:""}}function Ir(){return{type:"image",title:null,url:"",alt:null}}function Fi(){return{type:"link",title:null,url:"",children:[]}}function Cn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Ar(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Au(){return{type:"paragraph",children:[]}}function Pr(){return{type:"strong",children:[]}}function Ri(){return{type:"text",value:""}}function Oi(){return{type:"thematicBreak"}}}function nn(e){return{line:e.line,column:e.column,offset:e.offset}}function Oh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Oh(e,r):cw(e,r)}}function cw(e,t){let n;for(n in t)if(Rh.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 pf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is still open")}function fw(e){const t=this;t.parser=n;function n(r){return sw(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dw(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 pw(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
44
44
|
`}]}function hw(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 mw(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gw(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yw(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Tr(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 xw(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 vw(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function
|
|
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 mw(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gw(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yw(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Tr(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 xw(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 vw(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Dh(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 kw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dh(e,t);const i={src:Tr(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 ww(e,t){const n={src:Tr(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 bw(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 Sw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dh(e,t);const i={href:Tr(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 Ew(e,t){const n={href:Tr(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 Cw(e,t,n){const r=e.all(t),i=n?Nw(n):zh(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
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 Nw(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=zh(n[r])}return t}function zh(e){const t=e.spread;return t??e.children.length>1}function jw(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 Tw(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _w(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Iw(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Aw(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=hu(t.children[1]),s=yh(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 Pw(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],p={},h=o?o[s]:void 0;h&&(p.align=h);let m={type:"element",tagName:l,properties:p,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 Lw(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const hf=9,mf=32;function Fw(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(gf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(gf(t.slice(i),i>0,!1)),l.join("")}function gf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===hf||l===mf;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===hf||l===mf;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rw(e,t){const n={type:"text",value:Fw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function
|
|
47
|
+
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function Nw(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=zh(n[r])}return t}function zh(e){const t=e.spread;return t??e.children.length>1}function jw(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 Tw(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _w(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Iw(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Aw(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=hu(t.children[1]),s=yh(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 Pw(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],p={},h=o?o[s]:void 0;h&&(p.align=h);let m={type:"element",tagName:l,properties:p,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 Lw(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const hf=9,mf=32;function Fw(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(gf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(gf(t.slice(i),i>0,!1)),l.join("")}function gf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===hf||l===mf;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===hf||l===mf;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rw(e,t){const n={type:"text",value:Fw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ow(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Dw={blockquote:dw,break:pw,code:hw,delete:mw,emphasis:gw,footnoteReference:yw,heading:xw,html:vw,imageReference:kw,image:ww,inlineCode:bw,linkReference:Sw,link:Ew,listItem:Cw,list:jw,paragraph:Tw,root:_w,strong:Iw,table:Aw,tableCell:Lw,tableRow:Pw,text:Rw,thematicBreak:Ow,toml:el,yaml:el,definition:el,footnoteDefinition:el};function el(){}const Mh=-1,go=0,ii=1,Gl=2,wu=3,bu=4,Su=5,Eu=6,Bh=7,$h=8,zw=typeof self=="object"?self:globalThis,yf=(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 zw[e](t)},Mw=(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 go:case Mh:return n(o,i);case ii:{const a=n([],i);for(const s of o)a.push(r(s));return a}case Gl:{const a=n({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case wu:return n(new Date(o),i);case bu:{const{source:a,flags:s}=o;return n(new RegExp(a,s),i)}case Su:{const a=n(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case Eu:{const a=n(new Set,i);for(const s of o)a.add(r(s));return a}case Bh:{const{name:a,message:s}=o;return n(yf(a,s),i)}case $h: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(yf(l,o),i)};return r},xf=e=>Mw(new Map,e)(0),Qn="",{toString:Bw}={},{keys:$w}=Object,Ur=e=>{const t=typeof e;if(t!=="object"||!e)return[go,t];const n=Bw.call(e).slice(8,-1);switch(n){case"Array":return[ii,Qn];case"Object":return[Gl,Qn];case"Date":return[wu,Qn];case"RegExp":return[bu,Qn];case"Map":return[Su,Qn];case"Set":return[Eu,Qn];case"DataView":return[ii,n]}return n.includes("Array")?[ii,n]:n.includes("Error")?[Bh,n]:[Gl,n]},tl=([e,t])=>e===go&&(t==="function"||t==="symbol"),Uw=(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]=Ur(o);switch(a){case go:{let f=o;switch(s){case"bigint":a=$h,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Mh],o)}return i([a,f],o)}case ii:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const f=[],c=i([a,f],o);for(const p of o)f.push(l(p));return c}case Gl:{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 p of $w(o))(e||!tl(Ur(o[p])))&&f.push([l(p),l(o[p])]);return c}case wu:return i([a,o.toISOString()],o);case bu:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case Su:{const f=[],c=i([a,f],o);for(const[p,h]of o)(e||!(tl(Ur(p))||tl(Ur(h))))&&f.push([l(p),l(h)]);return c}case Eu:{const f=[],c=i([a,f],o);for(const p of o)(e||!tl(Ur(p)))&&f.push(l(p));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},vf=(e,{json:t,lossy:n}={})=>{const r=[];return Uw(!(t||n),!!t,new Map,r)(e),r},ql=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xf(vf(e,t)):structuredClone(e):(e,t)=>xf(vf(e,t));function Hw(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 Vw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ww(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Hw,r=e.options.footnoteBackLabel||Vw,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(),p=Tr(c.toLowerCase());let h=0;const m=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++h<=v;){m.length>0&&m.push({type:"text",value:" "});let x=typeof n=="string"?n:n(s,h);typeof x=="string"&&(x={type:"text",value:x}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else f.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ql(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
48
48
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
49
|
-
`}]}}const yo=function(e){if(e==null)return Yw;if(typeof e=="function")return xo(e);if(typeof e=="object")return Array.isArray(e)?Gw(e):qw(e);if(typeof e=="string")return Qw(e);throw new Error("Expected function, string, or object as test")};function Gw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yo(e[n]);return xo(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function qw(e){const t=e;return xo(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Qw(e){return xo(t);function t(n){return n&&n.type===e}}function xo(e){return t;function t(n,r,i){return!!(Kw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Yw(){return!0}function Kw(e){return e!==null&&typeof e=="object"&&"type"in e}const Uh=[],Xw=!0,fs=!1,Zw="skip";function Hh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=yo(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(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Uh,m,v,w;if((!t||l(s,u,f[f.length-1]||void 0))&&(h=Jw(n(s,f)),h[0]===fs))return h;if("children"in s&&s.children){const y=s;if(y.children&&h[0]!==Zw)for(v=(r?y.children.length:-1)+o,w=f.concat(y);v>-1&&v<y.children.length;){const x=y.children[v];if(m=a(x,v,w)(),m[0]===fs)return m;v=typeof m[1]=="number"?m[1]:v+o}}return h}}}function Jw(e){return Array.isArray(e)?e:typeof e=="number"?[Xw,e]:e==null?Uh:[e]}function Cu(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),Hh(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 ds={}.hasOwnProperty,e1={};function t1(e,t){const n=t||e1,r=new Map,i=new Map,l=new Map,o={...
|
|
49
|
+
`}]}}const yo=function(e){if(e==null)return Yw;if(typeof e=="function")return xo(e);if(typeof e=="object")return Array.isArray(e)?Gw(e):qw(e);if(typeof e=="string")return Qw(e);throw new Error("Expected function, string, or object as test")};function Gw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yo(e[n]);return xo(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function qw(e){const t=e;return xo(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Qw(e){return xo(t);function t(n){return n&&n.type===e}}function xo(e){return t;function t(n,r,i){return!!(Kw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Yw(){return!0}function Kw(e){return e!==null&&typeof e=="object"&&"type"in e}const Uh=[],Xw=!0,fs=!1,Zw="skip";function Hh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=yo(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(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Uh,m,v,w;if((!t||l(s,u,f[f.length-1]||void 0))&&(h=Jw(n(s,f)),h[0]===fs))return h;if("children"in s&&s.children){const y=s;if(y.children&&h[0]!==Zw)for(v=(r?y.children.length:-1)+o,w=f.concat(y);v>-1&&v<y.children.length;){const x=y.children[v];if(m=a(x,v,w)(),m[0]===fs)return m;v=typeof m[1]=="number"?m[1]:v+o}}return h}}}function Jw(e){return Array.isArray(e)?e:typeof e=="number"?[Xw,e]:e==null?Uh:[e]}function Cu(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),Hh(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 ds={}.hasOwnProperty,e1={};function t1(e,t){const n=t||e1,r=new Map,i=new Map,l=new Map,o={...Dw,...n.handlers},a={all:u,applyData:r1,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:n1,wrap:l1};return Cu(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function s(f,c){const p=f.type,h=a.handlers[p];if(ds.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:v,...w}=f,y=ql(w);return y.children=a.all(f),y}return ql(f)}return(a.options.unknownHandler||i1)(a,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const m=a.one(p[h],f);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=kf(m.value)),!Array.isArray(m)&&m.type==="element")){const v=m.children[0];v&&v.type==="text"&&(v.value=kf(v.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function n1(e,t){e.position&&(t.position=Hx(e))}function r1(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,ql(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function i1(e,t){const n=t.data||{},r="value"in t&&!(ds.call(n,"hProperties")||ds.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 l1(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
50
50
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
51
51
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
52
52
|
`}),n}function kf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wf(e,t){const n=t1(e,t),r=n.one(e,void 0),i=Ww(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 o1(e,t){return e&&"run"in e?async function(n,r){const i=wf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wf(n,{file:r,...e||t})}}function bf(e){if(e)throw e}var xl=Object.prototype.hasOwnProperty,Vh=Object.prototype.toString,Sf=Object.defineProperty,Ef=Object.getOwnPropertyDescriptor,Cf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Vh.call(t)==="[object Array]"},Nf=function(t){if(!t||Vh.call(t)!=="[object Object]")return!1;var n=xl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||xl.call(t,i)},jf=function(t,n){Sf&&n.name==="__proto__"?Sf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Tf=function(t,n){if(n==="__proto__")if(xl.call(t,n)){if(Ef)return Ef(t,n).value}else return;return t[n]},a1=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=Tf(a,n),i=Tf(t,n),a!==i&&(f&&i&&(Nf(i)||(l=Cf(i)))?(l?(l=!1,o=r&&Cf(r)?r:[]):o=r&&Nf(r)?r:{},jf(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&jf(a,{name:n,newValue:i}));return a};const Jo=gs(a1);function ps(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 s1(){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?u1(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 u1(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 Pt={basename:c1,dirname:f1,extname:d1,join:p1,sep:"/"};function c1(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ai(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 f1(e){if(Ai(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 d1(e){Ai(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 p1(...e){let t=-1,n;for(;++t<e.length;)Ai(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":h1(n)}function h1(e){Ai(e);const t=e.codePointAt(0)===47;let n=m1(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function m1(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 Ai(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const g1={cwd:y1};function y1(){return"/"}function hs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function x1(e){if(typeof e=="string")e=new URL(e);else if(!hs(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 v1(e)}function v1(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 ea=["history","path","basename","stem","extname","dirname"];class Wh{constructor(t){let n;t?hs(t)?n={path:t}:typeof t=="string"||k1(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":g1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ea.length;){const l=ea[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)ea.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Pt.basename(this.path):void 0}set basename(t){na(t,"basename"),ta(t,"basename"),this.path=Pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Pt.dirname(this.path):void 0}set dirname(t){_f(this.basename,"dirname"),this.path=Pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Pt.extname(this.path):void 0}set extname(t){if(ta(t,"extname"),_f(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=Pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hs(t)&&(t=x1(t)),na(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Pt.basename(this.path,this.extname):void 0}set stem(t){na(t,"stem"),ta(t,"stem"),this.path=Pt.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 Me(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 ta(e,t){if(e&&e.includes(Pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pt.sep+"`")}function na(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function k1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w1=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},b1={}.hasOwnProperty;class Nu extends w1{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=s1()}copy(){const t=new Nu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Jo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(la("data",this.frozen),this.namespace[t]=n,this):b1.call(this.namespace,t)&&this.namespace[t]||void 0:t?(la("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=nl(t),r=this.parser||this.Parser;return ra("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ra("process",this.parser||this.Parser),ia("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=nl(t),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const h=c,m=r.stringify(h,p);C1(m)?p.value=m:p.result=m,u(f,p)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),ra("processSync",this.parser||this.Parser),ia("processSync",this.compiler||this.Compiler),this.process(t,i),Af("processSync","process",n),r;function i(l,o){n=!0,bf(l),r=o}}run(t,n,r){If(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=nl(n);i.run(t,s,u);function u(f,c,p){const h=c||t;f?a(f):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Af("runSync","run",r),i;function l(o,a){bf(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=nl(n),i=this.compiler||this.Compiler;return ia("stringify",i),If(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(la("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=Jo(!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,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...m]=f;const v=r[p][1];ps(v)&&ps(h)&&(h=Jo(!0,v,h)),r[p]=[u,h,...m]}}}}const S1=new Nu().freeze();function ra(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ia(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function la(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 If(e){if(!ps(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Af(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nl(e){return E1(e)?e:new Wh(e)}function E1(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function C1(e){return typeof e=="string"||N1(e)}function N1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const j1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pf=[],Lf={allowDangerousHtml:!0},T1=/^(https?|ircs?|mailto|xmpp)$/i,_1=[{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 I1(e){const t=A1(e),n=P1(e);return L1(t.runSync(t.parse(n),n),e)}function A1(e){const t=e.rehypePlugins||Pf,n=e.remarkPlugins||Pf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lf}:Lf;return S1().use(fw).use(n).use(o1,r).use(t)}function P1(e){const t=e.children||"",n=new Wh;return typeof t=="string"&&(n.value=t),n}function L1(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||F1;for(const f of _1)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+j1+f.id,void 0);return Cu(e,u),Qx(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Ko)if(Object.hasOwn(Ko,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],v=Ko[h];(v===null||v.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,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function F1(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||T1.test(e.slice(0,t))?e:""}function Ff(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 R1(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function D1(e,t,n){const i=yo((n||{}).ignore||[]),l=O1(t);let o=-1;for(;++o<l.length;)Hh(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=l[o][0],h=l[o][1];let m=0;const w=c.children.indexOf(u);let y=!1,x=[];p.lastIndex=0;let g=p.exec(u.value);for(;g;){const S=g.index,N={index:g.index,input:g.input,stack:[...f,u]};let b=h(...g,N);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=S+1:(m!==S&&x.push({type:"text",value:u.value.slice(m,S)}),Array.isArray(b)?x.push(...b):b&&x.push(b),m=S+g[0].length,y=!0),!p.global)break;g=p.exec(u.value)}return y?(m<u.value.length&&x.push({type:"text",value:u.value.slice(m)}),c.children.splice(w,1,...x)):x=[u],w+x.length}}function O1(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([z1(i[0]),M1(i[1])])}return t}function z1(e){return typeof e=="string"?new RegExp(R1(e),"g"):e}function M1(e){return typeof e=="function"?e:function(){return e}}const oa="phrasing",aa=["autolink","link","image","label"];function B1(){return{transforms:[q1],enter:{literalAutolink:U1,literalAutolinkEmail:sa,literalAutolinkHttp:sa,literalAutolinkWww:sa},exit:{literalAutolink:G1,literalAutolinkEmail:W1,literalAutolinkHttp:H1,literalAutolinkWww:V1}}}function $1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:oa,notInConstruct:aa},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:oa,notInConstruct:aa},{character:":",before:"[ps]",after:"\\/",inConstruct:oa,notInConstruct:aa}]}}function U1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sa(e){this.config.enter.autolinkProtocol.call(this,e)}function H1(e){this.config.exit.autolinkProtocol.call(this,e)}function V1(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 W1(e){this.config.exit.autolinkEmail.call(this,e)}function G1(e){this.exit(e)}function q1(e){D1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Q1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Y1]],{ignore:["link","linkReference"]})}function Q1(e,t,n,r,i){let l="";if(!Gh(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!K1(n)))return!1;const o=X1(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 Y1(e,t,n,r){return!Gh(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function K1(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 X1(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=Ff(e,"(");let l=Ff(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 Gh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Un(n)||ho(n))&&(!t||n!==47)}qh.peek=o0;function Z1(){this.buffer()}function J1(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function e0(){this.buffer()}function t0(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function n0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function r0(e){this.exit(e)}function i0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function l0(e){this.exit(e)}function o0(){return"["}function qh(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 a0(){return{enter:{gfmFootnoteCallString:Z1,gfmFootnoteCall:J1,gfmFootnoteDefinitionLabelString:e0,gfmFootnoteDefinition:t0},exit:{gfmFootnoteCallString:n0,gfmFootnoteCall:r0,gfmFootnoteDefinitionLabelString:i0,gfmFootnoteDefinition:l0}}}function s0(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:qh},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?`
|
|
53
|
+
`},i),l}function o1(e,t){return e&&"run"in e?async function(n,r){const i=wf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wf(n,{file:r,...e||t})}}function bf(e){if(e)throw e}var xl=Object.prototype.hasOwnProperty,Vh=Object.prototype.toString,Sf=Object.defineProperty,Ef=Object.getOwnPropertyDescriptor,Cf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Vh.call(t)==="[object Array]"},Nf=function(t){if(!t||Vh.call(t)!=="[object Object]")return!1;var n=xl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||xl.call(t,i)},jf=function(t,n){Sf&&n.name==="__proto__"?Sf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Tf=function(t,n){if(n==="__proto__")if(xl.call(t,n)){if(Ef)return Ef(t,n).value}else return;return t[n]},a1=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=Tf(a,n),i=Tf(t,n),a!==i&&(f&&i&&(Nf(i)||(l=Cf(i)))?(l?(l=!1,o=r&&Cf(r)?r:[]):o=r&&Nf(r)?r:{},jf(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&jf(a,{name:n,newValue:i}));return a};const Jo=gs(a1);function ps(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 s1(){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?u1(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 u1(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 Pt={basename:c1,dirname:f1,extname:d1,join:p1,sep:"/"};function c1(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ai(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 f1(e){if(Ai(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 d1(e){Ai(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 p1(...e){let t=-1,n;for(;++t<e.length;)Ai(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":h1(n)}function h1(e){Ai(e);const t=e.codePointAt(0)===47;let n=m1(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function m1(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 Ai(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const g1={cwd:y1};function y1(){return"/"}function hs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function x1(e){if(typeof e=="string")e=new URL(e);else if(!hs(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 v1(e)}function v1(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 ea=["history","path","basename","stem","extname","dirname"];class Wh{constructor(t){let n;t?hs(t)?n={path:t}:typeof t=="string"||k1(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":g1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ea.length;){const l=ea[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)ea.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Pt.basename(this.path):void 0}set basename(t){na(t,"basename"),ta(t,"basename"),this.path=Pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Pt.dirname(this.path):void 0}set dirname(t){_f(this.basename,"dirname"),this.path=Pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Pt.extname(this.path):void 0}set extname(t){if(ta(t,"extname"),_f(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=Pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hs(t)&&(t=x1(t)),na(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Pt.basename(this.path,this.extname):void 0}set stem(t){na(t,"stem"),ta(t,"stem"),this.path=Pt.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 Me(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 ta(e,t){if(e&&e.includes(Pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pt.sep+"`")}function na(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function k1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w1=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},b1={}.hasOwnProperty;class Nu extends w1{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=s1()}copy(){const t=new Nu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Jo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(la("data",this.frozen),this.namespace[t]=n,this):b1.call(this.namespace,t)&&this.namespace[t]||void 0:t?(la("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=nl(t),r=this.parser||this.Parser;return ra("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ra("process",this.parser||this.Parser),ia("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=nl(t),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const h=c,m=r.stringify(h,p);C1(m)?p.value=m:p.result=m,u(f,p)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),ra("processSync",this.parser||this.Parser),ia("processSync",this.compiler||this.Compiler),this.process(t,i),Af("processSync","process",n),r;function i(l,o){n=!0,bf(l),r=o}}run(t,n,r){If(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=nl(n);i.run(t,s,u);function u(f,c,p){const h=c||t;f?a(f):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Af("runSync","run",r),i;function l(o,a){bf(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=nl(n),i=this.compiler||this.Compiler;return ia("stringify",i),If(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(la("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=Jo(!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,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...m]=f;const v=r[p][1];ps(v)&&ps(h)&&(h=Jo(!0,v,h)),r[p]=[u,h,...m]}}}}const S1=new Nu().freeze();function ra(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ia(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function la(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 If(e){if(!ps(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Af(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nl(e){return E1(e)?e:new Wh(e)}function E1(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function C1(e){return typeof e=="string"||N1(e)}function N1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const j1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pf=[],Lf={allowDangerousHtml:!0},T1=/^(https?|ircs?|mailto|xmpp)$/i,_1=[{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 I1(e){const t=A1(e),n=P1(e);return L1(t.runSync(t.parse(n),n),e)}function A1(e){const t=e.rehypePlugins||Pf,n=e.remarkPlugins||Pf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lf}:Lf;return S1().use(fw).use(n).use(o1,r).use(t)}function P1(e){const t=e.children||"",n=new Wh;return typeof t=="string"&&(n.value=t),n}function L1(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||F1;for(const f of _1)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+j1+f.id,void 0);return Cu(e,u),Qx(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Ko)if(Object.hasOwn(Ko,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],v=Ko[h];(v===null||v.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,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function F1(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||T1.test(e.slice(0,t))?e:""}function Ff(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 R1(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function O1(e,t,n){const i=yo((n||{}).ignore||[]),l=D1(t);let o=-1;for(;++o<l.length;)Hh(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=l[o][0],h=l[o][1];let m=0;const w=c.children.indexOf(u);let y=!1,x=[];p.lastIndex=0;let g=p.exec(u.value);for(;g;){const S=g.index,N={index:g.index,input:g.input,stack:[...f,u]};let b=h(...g,N);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=S+1:(m!==S&&x.push({type:"text",value:u.value.slice(m,S)}),Array.isArray(b)?x.push(...b):b&&x.push(b),m=S+g[0].length,y=!0),!p.global)break;g=p.exec(u.value)}return y?(m<u.value.length&&x.push({type:"text",value:u.value.slice(m)}),c.children.splice(w,1,...x)):x=[u],w+x.length}}function D1(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([z1(i[0]),M1(i[1])])}return t}function z1(e){return typeof e=="string"?new RegExp(R1(e),"g"):e}function M1(e){return typeof e=="function"?e:function(){return e}}const oa="phrasing",aa=["autolink","link","image","label"];function B1(){return{transforms:[q1],enter:{literalAutolink:U1,literalAutolinkEmail:sa,literalAutolinkHttp:sa,literalAutolinkWww:sa},exit:{literalAutolink:G1,literalAutolinkEmail:W1,literalAutolinkHttp:H1,literalAutolinkWww:V1}}}function $1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:oa,notInConstruct:aa},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:oa,notInConstruct:aa},{character:":",before:"[ps]",after:"\\/",inConstruct:oa,notInConstruct:aa}]}}function U1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sa(e){this.config.enter.autolinkProtocol.call(this,e)}function H1(e){this.config.exit.autolinkProtocol.call(this,e)}function V1(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 W1(e){this.config.exit.autolinkEmail.call(this,e)}function G1(e){this.exit(e)}function q1(e){O1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Q1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Y1]],{ignore:["link","linkReference"]})}function Q1(e,t,n,r,i){let l="";if(!Gh(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!K1(n)))return!1;const o=X1(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 Y1(e,t,n,r){return!Gh(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function K1(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 X1(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=Ff(e,"(");let l=Ff(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 Gh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Un(n)||ho(n))&&(!t||n!==47)}qh.peek=o0;function Z1(){this.buffer()}function J1(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function e0(){this.buffer()}function t0(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function n0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function r0(e){this.exit(e)}function i0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function l0(e){this.exit(e)}function o0(){return"["}function qh(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 a0(){return{enter:{gfmFootnoteCallString:Z1,gfmFootnoteCall:J1,gfmFootnoteDefinitionLabelString:e0,gfmFootnoteDefinition:t0},exit:{gfmFootnoteCallString:n0,gfmFootnoteCall:r0,gfmFootnoteDefinitionLabelString:i0,gfmFootnoteDefinition:l0}}}function s0(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:qh},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
54
|
`:" ")+l.indentLines(l.containerFlow(r,a.current()),t?Qh:u0))),u(),s}}function u0(e,t,n){return t===0?e:Qh(e,t,n)}function Qh(e,t,n){return(n?"":" ")+e}const c0=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yh.peek=m0;function f0(){return{canContainEols:["delete"],enter:{strikethrough:p0},exit:{strikethrough:h0}}}function d0(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c0}],handlers:{delete:Yh}}}function p0(e){this.enter({type:"delete",children:[]},e)}function h0(e){this.exit(e)}function Yh(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 m0(){return"~"}function g0(e){return e.length}function y0(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||g0,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const v=[],w=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const x=x0(e[f][y]);if(n.alignDelimiters!==!1){const g=i(x);w[y]=g,(s[y]===void 0||g>s[y])&&(s[y]=g)}v.push(x)}o[f]=v,a[f]=w}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=Rf(r[c]);else{const v=Rf(r);for(;++c<u;)l[c]=v}c=-1;const p=[],h=[];for(;++c<u;){const v=l[c];let w="",y="";v===99?(w=":",y=":"):v===108?w=":":v===114&&(y=":");let x=n.alignDelimiters===!1?1:Math.max(1,s[c]-w.length-y.length);const g=w+"-".repeat(x)+y;n.alignDelimiters!==!1&&(x=w.length+x+y.length,x>s[c]&&(s[c]=x),h[c]=x),p[c]=g}o.splice(1,0,p),a.splice(1,0,h),f=-1;const m=[];for(;++f<o.length;){const v=o[f],w=a[f];c=-1;const y=[];for(;++c<u;){const x=v[c]||"";let g="",S="";if(n.alignDelimiters!==!1){const N=s[c]-(w[c]||0),b=l[c];b===114?g=" ".repeat(N):b===99?N%2?(g=" ".repeat(N/2+.5),S=" ".repeat(N/2-.5)):(g=" ".repeat(N/2),S=g):S=" ".repeat(N)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(g),y.push(x),n.alignDelimiters!==!1&&y.push(S),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
|
|
55
|
-
`)}function x0(e){return e==null?"":String(e)}function Rf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function v0(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()),k0);return i(),o}function k0(e,t,n){return">"+(n?"":" ")+e}function w0(e,t){return
|
|
55
|
+
`)}function x0(e){return e==null?"":String(e)}function Rf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function v0(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()),k0);return i(),o}function k0(e,t,n){return">"+(n?"":" ")+e}function w0(e,t){return Of(e,t.inConstruct,!0)&&!Of(e,t.notInConstruct,!1)}function Of(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 Df(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
56
56
|
`&&w0(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
57
57
|
`}function b0(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 S0(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 E0(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 C0(e,t,n,r){const i=E0(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(S0(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,N0);return c(),p}const a=n.createTracker(r),s=i.repeat(Math.max(b0(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
58
|
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
@@ -63,11 +63,11 @@ Error generating stack: `+l.message+`
|
|
|
63
63
|
`});return c(),f(),p+`
|
|
64
64
|
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
65
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=Si(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}Xh.peek=P0;function Xh(e){return e.value||""}function P0(){return"<"}Zh.peek=L0;function Zh(e,t,n,r){const i=ju(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 L0(){return"!"}Jh.peek=F0;function Jh(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 F0(){return"!"}em.peek=R0;function em(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 R0(){return"`"}function tm(e,t){const n=xu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}nm.peek=
|
|
66
|
+
`,...l.current()});return/^[\t ]/.test(u)&&(u=Si(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}Xh.peek=P0;function Xh(e){return e.value||""}function P0(){return"<"}Zh.peek=L0;function Zh(e,t,n,r){const i=ju(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 L0(){return"!"}Jh.peek=F0;function Jh(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 F0(){return"!"}em.peek=R0;function em(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 R0(){return"`"}function tm(e,t){const n=xu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}nm.peek=O0;function nm(e,t,n,r){const i=ju(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(tm(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 O0(e,t,n){return tm(e,n)?"<":"["}rm.peek=D0;function rm(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 D0(){return"["}function Tu(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function z0(e){const t=Tu(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function M0(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 im(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?M0(n):Tu(n);const a=e.ordered?o==="."?")":".":z0(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),im(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.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 $0(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 U0(e,t,n,r){const i=$0(n);let l=n.bulletCurrent||Tu(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,p,h){return p?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function H0(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const V0=yo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function W0(e,t,n,r){return(e.children.some(function(o){return V0(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function G0(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}lm.peek=q0;function lm(e,t,n,r){const i=G0(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=Ql(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Si(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Ql(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+Si(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function q0(e,t,n){return n.options.strong||"*"}function Q0(e,t,n,r){return n.safe(e.value,r)}function Y0(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 K0(e,t,n){const r=(im(n)+(n.options.ruleSpaces?" ":"")).repeat(Y0(n));return n.options.ruleSpaces?r.slice(0,-1):r}const om={blockquote:v0,break:Df,code:C0,definition:j0,emphasis:Kh,hardBreak:Df,heading:A0,html:Xh,image:Zh,imageReference:Jh,inlineCode:em,link:nm,linkReference:rm,list:B0,listItem:U0,paragraph:H0,root:W0,strong:lm,text:Q0,thematicBreak:K0};function X0(){return{enter:{table:Z0,tableData:zf,tableHeader:zf,tableRow:eb},exit:{codeText:tb,table:J0,tableData:ua,tableHeader:ua,tableRow:ua}}}function Z0(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 J0(e){this.exit(e),this.data.inTable=void 0}function eb(e){this.enter({type:"tableRow",children:[]},e)}function ua(e){this.exit(e)}function zf(e){this.enter({type:"tableCell",children:[]},e)}function tb(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nb));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nb(e,t){return t==="|"?t:e}function rb(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
67
67
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:s,tableRow:a}};function o(h,m,v,w){return u(f(h,v,w),h.align)}function a(h,m,v,w){const y=c(h,v,w),x=u([y]);return x.slice(0,x.indexOf(`
|
|
68
|
-
`))}function s(h,m,v,w){const y=v.enter("tableCell"),x=v.enter("phrasing"),g=v.containerPhrasing(h,{...w,before:l,after:l});return x(),y(),g}function u(h,m){return y0(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,v){const w=h.children;let y=-1;const x=[],g=m.enter("table");for(;++y<w.length;)x[y]=c(w[y],m,v);return g(),x}function c(h,m,v){const w=h.children;let y=-1;const x=[],g=m.enter("tableRow");for(;++y<w.length;)x[y]=s(w[y],h,m,v);return g(),x}function p(h,m,v){let w=om.inlineCode(h,m,v);return v.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function ib(){return{exit:{taskListCheckValueChecked:Mf,taskListCheckValueUnchecked:Mf,paragraph:ob}}}function lb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ab}}}function Mf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ob(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 ab(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=om.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 sb(){return[B1(),a0(),f0(),X0(),ib()]}function ub(e){return{extensions:[$1(),s0(e),d0(),rb(e),lb()]}}const cb={tokenize:gb,partial:!0},am={tokenize:yb,partial:!0},sm={tokenize:xb,partial:!0},um={tokenize:vb,partial:!0},fb={tokenize:kb,partial:!0},cm={name:"wwwAutolink",tokenize:hb,previous:dm},fm={name:"protocolAutolink",tokenize:mb,previous:pm},Jt={name:"emailAutolink",tokenize:pb,previous:hm},Ot={};function db(){return{text:Ot}}let Tn=48;for(;Tn<123;)Ot[Tn]=Jt,Tn++,Tn===58?Tn=65:Tn===91&&(Tn=97);Ot[43]=Jt;Ot[45]=Jt;Ot[46]=Jt;Ot[95]=Jt;Ot[72]=[Jt,fm];Ot[104]=[Jt,fm];Ot[87]=[Jt,cm];Ot[119]=[Jt,cm];function pb(e,t,n){const r=this;let i,l;return o;function o(c){return!ms(c)||!hm.call(r,r.previous)||_u(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ms(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(fb,f,u)(c):c===45||c===95||Oe(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&&He(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function hb(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!dm.call(r,r.previous)||_u(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cb,e.attempt(am,e.attempt(sm,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function mb(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&pm.call(r,r.previous)&&!_u(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(He(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="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||Wl(c)||ue(c)||Un(c)||ho(c)?n(c):e.attempt(am,e.attempt(sm,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function gb(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 yb(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(um,s,a)(u):u===null||ue(u)||Un(u)||u!==45&&ho(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 xb(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(um,t,l)(o):o===null||ue(o)||Un(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function vb(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||ue(a)||Un(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ue(a)||Un(a)?t(a):r(a)}function l(a){return He(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):He(a)?(e.consume(a),o):n(a)}}function kb(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Oe(l)?n(l):t(l)}}function dm(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}function pm(e){return!He(e)}function hm(e){return!(e===47||ms(e))}function ms(e){return e===43||e===45||e===46||e===95||Oe(e)}function _u(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 wb={tokenize:_b,partial:!0};function bb(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Nb,continuation:{tokenize:jb},exit:Tb}},text:{91:{name:"gfmFootnoteCall",tokenize:Cb},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Sb,resolveTo:Eb}}}}function Sb(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=Tt(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 Eb(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 Cb(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||ue(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Tt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ue(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 Nb(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||ue(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return l=Tt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ue(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 p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),ne(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function jb(e,t,n){return e.check(Ii,t,e.attempt(wb,t,n))}function Tb(e){e.exit("gfmFootnoteDefinition")}function _b(e,t,n){const r=this;return ne(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 Ib(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)},p=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ut(p,p.length,0,mo(h,o.slice(u+1,s),a)),ut(p,p.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),ut(o,u-1,s-u+3,p),s=u+p.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 p;function p(m){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(m):(o.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const v=Sr(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"),y=Sr(m);return w._open=!y||y===2&&!!v,w._close=!v||v===2&&!!y,a(m)}}}class Ab{constructor(){this.map=[]}add(t,n,r){Pb(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 Pb(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 Lb(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 Fb(){return{flow:{null:{name:"table",tokenize:Rb,resolveAll:Db}}}}function Rb(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 B=r.events[R][1].type;if(B==="lineEnding"||B==="linePrefix")R--;else break}const M=R>-1?r.events[R][1].type:null,U=M==="tableHead"||M==="tableRow"?b:s;return U===b&&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):G(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)?ne(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||ue(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?p:c)}function p(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)?ne(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"),v):N(C)}function v(C){return J(C)?ne(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"),y):C===45?(l+=1,y(C)):C===null||G(C)?S(C):N(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),x(C)):N(C)}function x(C){return C===45?(e.consume(C),x):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)?ne(e,S,"whitespace")(C):S(C)}function S(C){return C===124?m(C):C===null||G(C)?!o||i!==l?N(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):N(C)}function N(C){return n(C)}function b(C){return e.enter("tableRow"),j(C)}function j(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),j):C===null||G(C)?(e.exit("tableRow"),t(C)):J(C)?ne(e,j,"whitespace")(C):(e.enter("data"),_(C))}function _(C){return C===null||C===124||ue(C)?(e.exit("data"),j(C)):(e.consume(C),C===92?L:_)}function L(C){return C===92||C===124?(e.consume(C),_):_(C)}}function Db(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 p=new Ab;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,s!==0&&(Bf(p,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.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)},p.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=rl(p,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=rl(p,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=rl(p,t,l,i,n,c)):o[1]!==0&&(c=rl(p,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Bf(p,t,s,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Lb(t.events,n))}return e}function rl(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(l.end=Object.assign({},Kn(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=Kn(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=Kn(t.events,n[2]),f=Kn(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 p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,v=n[3]-n[2]-1;e.add(m,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Kn(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Bf(e,t,n,r,i){const l=[],o=Kn(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 Kn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ob={name:"tasklistCheck",tokenize:Mb};function zb(){return{text:{91:Ob}}}function Mb(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 ue(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return G(s)?t(s):J(s)?e.check({tokenize:Bb},t,n)(s):n(s)}}function Bb(e,t,n){return ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $b(e){return Eh([db(),bb(),Ib(e),Fb(),zb()])}const Ub={};function Hb(e){const t=this,n=e||Ub,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push($b(n)),l.push(sb()),o.push(ub(n))}function mm(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=mm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gm(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mm(e))&&(r&&(r+=" "),r+=t);return r}var Vb=Object.create,vo=Object.defineProperty,Wb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptor,qb=Object.getOwnPropertyDescriptors,ym=Object.getOwnPropertyNames,Yl=Object.getOwnPropertySymbols,Qb=Object.getPrototypeOf,Iu=Object.prototype.hasOwnProperty,xm=Object.prototype.propertyIsEnumerable,$f=(e,t,n)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t)=>{for(var n in t||(t={}))Iu.call(t,n)&&$f(e,n,t[n]);if(Yl)for(var n of Yl(t))xm.call(t,n)&&$f(e,n,t[n]);return e},ko=(e,t)=>Wb(e,qb(t)),vm=(e,t)=>{var n={};for(var r in e)Iu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yl)for(var r of Yl(e))t.indexOf(r)<0&&xm.call(e,r)&&(n[r]=e[r]);return n},Yb=(e,t)=>function(){return t||(0,e[ym(e)[0]])((t={exports:{}}).exports,t),t.exports},Kb=(e,t)=>{for(var n in t)vo(e,n,{get:t[n],enumerable:!0})},Xb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ym(t))!Iu.call(e,i)&&i!==n&&vo(e,i,{get:()=>t[i],enumerable:!(r=Gb(t,i))||r.enumerable});return e},Zb=(e,t,n)=>(n=e!=null?Vb(Qb(e)):{},Xb(!e||!e.__esModule?vo(n,"default",{value:e,enumerable:!0}):n,e)),Jb=Yb({"../../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(v){return v instanceof a?new a(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&").replace(/</g,"<").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(v,w){w=w||{};var y,x;switch(o.util.type(v)){case"Object":if(x=o.util.objId(v),w[x])return w[x];y={},w[x]=y;for(var g in v)v.hasOwnProperty(g)&&(y[g]=m(v[g],w));return y;case"Array":return x=o.util.objId(v),w[x]?w[x]:(y=[],w[x]=y,v.forEach(function(S,N){y[N]=m(S,w)}),y);default:return v}},getLanguage:function(m){for(;m;){var v=r.exec(m.className);if(v)return v[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,v){m.className=m.className.replace(RegExp(r,"gi"),""),m.classList.add("language-"+v)},isActive:function(m,v,w){for(var y="no-"+v;m;){var x=m.classList;if(x.contains(v))return!0;if(x.contains(y))return!1;m=m.parentElement}return!!w}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(m,v){var w=o.util.clone(o.languages[m]);for(var y in v)w[y]=v[y];return w},insertBefore:function(m,v,w,y){y=y||o.languages;var x=y[m],g={};for(var S in x)if(x.hasOwnProperty(S)){if(S==v)for(var N in w)w.hasOwnProperty(N)&&(g[N]=w[N]);w.hasOwnProperty(S)||(g[S]=x[S])}var b=y[m];return y[m]=g,o.languages.DFS(o.languages,function(j,_){_===b&&j!=m&&(this[j]=g)}),g},DFS:function m(v,w,y,x){x=x||{};var g=o.util.objId;for(var S in v)if(v.hasOwnProperty(S)){w.call(v,S,v[S],y||S);var N=v[S],b=o.util.type(N);b==="Object"&&!x[g(N)]?(x[g(N)]=!0,m(N,w,null,x)):b==="Array"&&!x[g(N)]&&(x[g(N)]=!0,m(N,w,S,x))}}},plugins:{},highlight:function(m,v,w){var y={code:m,grammar:v,language:w};if(o.hooks.run("before-tokenize",y),!y.grammar)throw new Error('The language "'+y.language+'" has no grammar.');return y.tokens=o.tokenize(y.code,y.grammar),o.hooks.run("after-tokenize",y),a.stringify(o.util.encode(y.tokens),y.language)},tokenize:function(m,v){var w=v.rest;if(w){for(var y in w)v[y]=w[y];delete v.rest}var x=new f;return c(x,x.head,m),u(m,x,v,x.head,0),h(x)},hooks:{all:{},add:function(m,v){var w=o.hooks.all;w[m]=w[m]||[],w[m].push(v)},run:function(m,v){var w=o.hooks.all[m];if(!(!w||!w.length))for(var y=0,x;x=w[y++];)x(v)}},Token:a};function a(m,v,w,y){this.type=m,this.content=v,this.alias=w,this.length=(y||"").length|0}a.stringify=function m(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var y="";return v.forEach(function(b){y+=m(b,w)}),y}var x={type:v.type,content:m(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},g=v.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(x.classes,g):x.classes.push(g)),o.hooks.run("wrap",x);var S="";for(var N in x.attributes)S+=" "+N+'="'+(x.attributes[N]||"").replace(/"/g,""")+'"';return"<"+x.tag+' class="'+x.classes.join(" ")+'"'+S+">"+x.content+"</"+x.tag+">"};function s(m,v,w,y){m.lastIndex=v;var x=m.exec(w);if(x&&y&&x[1]){var g=x[1].length;x.index+=g,x[0]=x[0].slice(g)}return x}function u(m,v,w,y,x,g){for(var S in w)if(!(!w.hasOwnProperty(S)||!w[S])){var N=w[S];N=Array.isArray(N)?N:[N];for(var b=0;b<N.length;++b){if(g&&g.cause==S+","+b)return;var j=N[b],_=j.inside,L=!!j.lookbehind,C=!!j.greedy,R=j.alias;if(C&&!j.pattern.global){var M=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,M+"g")}for(var U=j.pattern||j,B=y.next,F=x;B!==v.tail&&!(g&&F>=g.reach);F+=B.value.length,B=B.next){var W=B.value;if(v.length>m.length)return;if(!(W instanceof a)){var Z=1,O;if(C){if(O=s(U,F,m,L),!O||O.index>=m.length)break;var te=O.index,V=O.index+O[0].length,k=F;for(k+=B.value.length;te>=k;)B=B.next,k+=B.value.length;if(k-=B.value.length,F=k,B.value instanceof a)continue;for(var Y=B;Y!==v.tail&&(k<V||typeof Y.value=="string");Y=Y.next)Z++,k+=Y.value.length;Z--,W=m.slice(F,k),O.index-=F}else if(O=s(U,0,W,L),!O)continue;var te=O.index,E=O[0],se=W.slice(0,te),_e=W.slice(te+E.length),re=F+W.length;g&&re>g.reach&&(g.reach=re);var ce=B.prev;se&&(ce=c(v,ce,se),F+=se.length),p(v,ce,Z);var qe=new a(S,_?o.tokenize(E,_):E,R,E);if(B=c(v,ce,qe),_e&&c(v,B,_e),Z>1){var Qe={cause:S+","+b,reach:re};u(m,v,w,B.prev,F,Qe),g&&Qe.reach>g.reach&&(g.reach=Qe.reach)}}}}}}function f(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function c(m,v,w){var y=v.next,x={value:w,prev:v,next:y};return v.next=x,y.prev=x,m.length++,x}function p(m,v,w){for(var y=v.next,x=0;x<w&&y!==m.tail;x++)y=y.next;v.next=y,y.prev=v,m.length-=x}function h(m){for(var v=[],w=m.head.next;w!==m.tail;)v.push(w.value),w=w.next;return v}return o}();t.exports=n,n.default=n}}),A=Zb(Jb());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(/&/,"&"))}),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 p=0,h=c.length;p<h;p++){var m,v=c[p];v.type!=="code"?f(v.content):(m=v.content[1],v=v.content[3],m&&v&&m.type==="code-language"&&v.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()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,m]:v.alias.push(m):v.alias=[m]))}}(u.tokens)}),e.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var f="",c=0,p=u.classes.length;c<p;c++){var h=u.classes[c],h=/language-(.+)/.exec(h);if(h){f=h[1];break}}var m,v=e.languages[f];v?u.content=e.highlight(function(w){return w=w.replace(o,""),w=w.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(y,x){var g;return(x=x.toLowerCase())[0]==="#"?(g=x[1]==="x"?parseInt(x.slice(2),16):Number(x.slice(1)),s(g)):a[x]||y})}(u.content),v,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=p(/^\($/,/^\)$/);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=p(/^\{$/,/^\}$/);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,v){v=v||0;for(var w=0;w<m.length;w++){var y=f(w+v);if(!y||y.type!==m[w])return}return 1}function p(m,v){for(var w=1,y=n;y<t.length;y++){var x=t[y],g=x.content;if(x.type==="punctuation"&&typeof g=="string"){if(m.test(g))w++;else if(v.test(g)&&--w===0)return y}}return-1}function h(m,v){var w=m.alias;w?Array.isArray(w)||(m.alias=w=[w]):m.alias=w=[],w.push(v)}}),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,p){if(e.languages[c])return{pattern:RegExp("((?:"+p+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:c}}}}function a(c,p,h){return c={code:c,grammar:p,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,p,h){var w=e.tokenize(c,{interpolation:{pattern:RegExp(l),lookbehind:!0}}),m=0,v={},w=a(w.map(function(x){if(typeof x=="string")return x;for(var g,S,x=x.content;c.indexOf((S=m++,g="___"+h.toUpperCase()+"_"+S+"___"))!==-1;);return v[g]=x,g}).join(""),p,h),y=Object.keys(v);return m=0,function x(g){for(var S=0;S<g.length;S++){if(m>=y.length)return;var N,b,j,_,L,C,R,M=g[S];typeof M=="string"||typeof M.content=="string"?(N=y[m],(R=(C=typeof M=="string"?M:M.content).indexOf(N))!==-1&&(++m,b=C.substring(0,R),L=v[N],j=void 0,(_={})["interpolation-punctuation"]=i,(_=e.tokenize(L,_)).length===3&&((j=[1,1]).push.apply(j,a(_[1],e.languages.javascript,"javascript")),_.splice.apply(_,j)),j=new e.Token("interpolation",_,r.alias,L),_=C.substring(R+N.length),L=[],b&&L.push(b),L.push(j),_&&(x(C=[_]),L.push.apply(L,C)),typeof M=="string"?(g.splice.apply(g,[S,1].concat(L)),S+=L.length-1):M.content=L)):(R=M.content,Array.isArray(R)?x(R):x([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 p(h){for(var m=0,v=h.length;m<v;m++){var w,y,x,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"&&(y=f(g),g=g.alias,g=Array.isArray(g)?g[0]:g,x=e.languages[g])&&(w[1]=s(y,x,g))):p(w):typeof w!="string"&&p([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],p=!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--:p=!0),(p||typeof c=="string")&&0<u.length&&u[u.length-1].openedBraces===0&&(p=a(c),f<s.length-1&&(typeof s[f+1]=="string"||s[f+1].type==="plain-text")&&(p+=a(s[f+1]),s.splice(f+1,1)),0<f&&(typeof s[f-1]=="string"||s[f-1].type==="plain-text")&&(p=a(s[f-1])+p,s.splice(f-1,1),f--),s[f]=new e.Token("plain-text",p,null,p)),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://,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 km={};Kb(km,{dracula:()=>tS,duotoneDark:()=>rS,duotoneLight:()=>lS,github:()=>aS,gruvboxMaterialDark:()=>DS,gruvboxMaterialLight:()=>zS,jettwaveDark:()=>TS,jettwaveLight:()=>IS,nightOwl:()=>uS,nightOwlLight:()=>fS,oceanicNext:()=>pS,okaidia:()=>mS,oneDark:()=>PS,oneLight:()=>FS,palenight:()=>yS,shadesOfPurple:()=>vS,synthwave84:()=>wS,ultramin:()=>SS,vsDark:()=>wm,vsLight:()=>NS});var eS={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)"}}]},tS=eS,nS={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"}}]},rS=nS,iS={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"}}]},lS=iS,oS={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"}}]},aS=oS,sS={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)"}}]},uS=sS,cS={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)"}}]},fS=cS,it={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},dS={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:it.keyword}},{types:["attr-value"],style:{color:it.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:it.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:it.primitive}},{types:["boolean"],style:{color:it.boolean}},{types:["tag"],style:{color:it.tag}},{types:["string"],style:{color:it.string}},{types:["punctuation"],style:{color:it.string}},{types:["selector","char","builtin","inserted"],style:{color:it.char}},{types:["function"],style:{color:it.function}},{types:["operator","entity","url","variable"],style:{color:it.variable}},{types:["keyword"],style:{color:it.keyword}},{types:["atrule","class-name"],style:{color:it.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},pS=dS,hS={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"}}]},mS=hS,gS={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)"}}]},yS=gS,xS={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)"}}]},vS=xS,kS={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"}}]},wS=kS,bS={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)"}}]},SS=bS,ES={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)"}}]},wm=ES,CS={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)"}}]},NS=CS,jS={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"}}]},TS=jS,_S={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"}}]},IS=_S,AS={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%)"}}]},PS=AS,LS={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%)"}}]},FS=LS,RS={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"}}]},DS=RS,OS={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"}}]},zS=OS,MS=e=>I.useCallback(t=>{var n=t,{className:r,style:i,line:l}=n,o=vm(n,["className","style","line"]);const a=ko(Dt({},o),{className:gm("token-line",r)});return typeof e=="object"&&"plain"in e&&(a.style=e.plain),typeof i=="object"&&(a.style=Dt(Dt({},a.style||{}),i)),a},[e]),BS=e=>{const t=I.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 I.useCallback(n=>{var r=n,{token:i,className:l,style:o}=r,a=vm(r,["token","className","style"]);const s=ko(Dt({},a),{className:gm("token",...i.types,l),children:i.content,style:t(i)});return o!=null&&(s.style=Dt(Dt({},s.style||{}),o)),s},[t])},$S=/\r\n|\r|\n/,Uf=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
68
|
+
`))}function s(h,m,v,w){const y=v.enter("tableCell"),x=v.enter("phrasing"),g=v.containerPhrasing(h,{...w,before:l,after:l});return x(),y(),g}function u(h,m){return y0(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,v){const w=h.children;let y=-1;const x=[],g=m.enter("table");for(;++y<w.length;)x[y]=c(w[y],m,v);return g(),x}function c(h,m,v){const w=h.children;let y=-1;const x=[],g=m.enter("tableRow");for(;++y<w.length;)x[y]=s(w[y],h,m,v);return g(),x}function p(h,m,v){let w=om.inlineCode(h,m,v);return v.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function ib(){return{exit:{taskListCheckValueChecked:Mf,taskListCheckValueUnchecked:Mf,paragraph:ob}}}function lb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ab}}}function Mf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ob(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 ab(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=om.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 sb(){return[B1(),a0(),f0(),X0(),ib()]}function ub(e){return{extensions:[$1(),s0(e),d0(),rb(e),lb()]}}const cb={tokenize:gb,partial:!0},am={tokenize:yb,partial:!0},sm={tokenize:xb,partial:!0},um={tokenize:vb,partial:!0},fb={tokenize:kb,partial:!0},cm={name:"wwwAutolink",tokenize:hb,previous:dm},fm={name:"protocolAutolink",tokenize:mb,previous:pm},Jt={name:"emailAutolink",tokenize:pb,previous:hm},Dt={};function db(){return{text:Dt}}let Tn=48;for(;Tn<123;)Dt[Tn]=Jt,Tn++,Tn===58?Tn=65:Tn===91&&(Tn=97);Dt[43]=Jt;Dt[45]=Jt;Dt[46]=Jt;Dt[95]=Jt;Dt[72]=[Jt,fm];Dt[104]=[Jt,fm];Dt[87]=[Jt,cm];Dt[119]=[Jt,cm];function pb(e,t,n){const r=this;let i,l;return o;function o(c){return!ms(c)||!hm.call(r,r.previous)||_u(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ms(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(fb,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&&He(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function hb(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!dm.call(r,r.previous)||_u(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cb,e.attempt(am,e.attempt(sm,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function mb(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&pm.call(r,r.previous)&&!_u(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(He(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="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||Wl(c)||ue(c)||Un(c)||ho(c)?n(c):e.attempt(am,e.attempt(sm,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function gb(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 yb(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(um,s,a)(u):u===null||ue(u)||Un(u)||u!==45&&ho(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 xb(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(um,t,l)(o):o===null||ue(o)||Un(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function vb(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||ue(a)||Un(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ue(a)||Un(a)?t(a):r(a)}function l(a){return He(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):He(a)?(e.consume(a),o):n(a)}}function kb(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return De(l)?n(l):t(l)}}function dm(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}function pm(e){return!He(e)}function hm(e){return!(e===47||ms(e))}function ms(e){return e===43||e===45||e===46||e===95||De(e)}function _u(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 wb={tokenize:_b,partial:!0};function bb(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Nb,continuation:{tokenize:jb},exit:Tb}},text:{91:{name:"gfmFootnoteCall",tokenize:Cb},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Sb,resolveTo:Eb}}}}function Sb(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=Tt(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 Eb(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 Cb(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||ue(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Tt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ue(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 Nb(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||ue(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return l=Tt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ue(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 p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),ne(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function jb(e,t,n){return e.check(Ii,t,e.attempt(wb,t,n))}function Tb(e){e.exit("gfmFootnoteDefinition")}function _b(e,t,n){const r=this;return ne(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 Ib(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)},p=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ut(p,p.length,0,mo(h,o.slice(u+1,s),a)),ut(p,p.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),ut(o,u-1,s-u+3,p),s=u+p.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 p;function p(m){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(m):(o.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const v=Sr(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"),y=Sr(m);return w._open=!y||y===2&&!!v,w._close=!v||v===2&&!!y,a(m)}}}class Ab{constructor(){this.map=[]}add(t,n,r){Pb(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 Pb(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 Lb(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 Fb(){return{flow:{null:{name:"table",tokenize:Rb,resolveAll:Ob}}}}function Rb(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 B=r.events[R][1].type;if(B==="lineEnding"||B==="linePrefix")R--;else break}const M=R>-1?r.events[R][1].type:null,U=M==="tableHead"||M==="tableRow"?b:s;return U===b&&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):G(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)?ne(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||ue(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?p:c)}function p(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)?ne(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"),v):N(C)}function v(C){return J(C)?ne(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"),y):C===45?(l+=1,y(C)):C===null||G(C)?S(C):N(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),x(C)):N(C)}function x(C){return C===45?(e.consume(C),x):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)?ne(e,S,"whitespace")(C):S(C)}function S(C){return C===124?m(C):C===null||G(C)?!o||i!==l?N(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):N(C)}function N(C){return n(C)}function b(C){return e.enter("tableRow"),j(C)}function j(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),j):C===null||G(C)?(e.exit("tableRow"),t(C)):J(C)?ne(e,j,"whitespace")(C):(e.enter("data"),_(C))}function _(C){return C===null||C===124||ue(C)?(e.exit("data"),j(C)):(e.consume(C),C===92?L:_)}function L(C){return C===92||C===124?(e.consume(C),_):_(C)}}function Ob(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 p=new Ab;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,s!==0&&(Bf(p,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.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)},p.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=rl(p,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=rl(p,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=rl(p,t,l,i,n,c)):o[1]!==0&&(c=rl(p,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Bf(p,t,s,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Lb(t.events,n))}return e}function rl(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(l.end=Object.assign({},Kn(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=Kn(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=Kn(t.events,n[2]),f=Kn(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 p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,v=n[3]-n[2]-1;e.add(m,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Kn(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Bf(e,t,n,r,i){const l=[],o=Kn(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 Kn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Db={name:"tasklistCheck",tokenize:Mb};function zb(){return{text:{91:Db}}}function Mb(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 ue(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return G(s)?t(s):J(s)?e.check({tokenize:Bb},t,n)(s):n(s)}}function Bb(e,t,n){return ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $b(e){return Eh([db(),bb(),Ib(e),Fb(),zb()])}const Ub={};function Hb(e){const t=this,n=e||Ub,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push($b(n)),l.push(sb()),o.push(ub(n))}function mm(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=mm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gm(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mm(e))&&(r&&(r+=" "),r+=t);return r}var Vb=Object.create,vo=Object.defineProperty,Wb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptor,qb=Object.getOwnPropertyDescriptors,ym=Object.getOwnPropertyNames,Yl=Object.getOwnPropertySymbols,Qb=Object.getPrototypeOf,Iu=Object.prototype.hasOwnProperty,xm=Object.prototype.propertyIsEnumerable,$f=(e,t,n)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ot=(e,t)=>{for(var n in t||(t={}))Iu.call(t,n)&&$f(e,n,t[n]);if(Yl)for(var n of Yl(t))xm.call(t,n)&&$f(e,n,t[n]);return e},ko=(e,t)=>Wb(e,qb(t)),vm=(e,t)=>{var n={};for(var r in e)Iu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yl)for(var r of Yl(e))t.indexOf(r)<0&&xm.call(e,r)&&(n[r]=e[r]);return n},Yb=(e,t)=>function(){return t||(0,e[ym(e)[0]])((t={exports:{}}).exports,t),t.exports},Kb=(e,t)=>{for(var n in t)vo(e,n,{get:t[n],enumerable:!0})},Xb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ym(t))!Iu.call(e,i)&&i!==n&&vo(e,i,{get:()=>t[i],enumerable:!(r=Gb(t,i))||r.enumerable});return e},Zb=(e,t,n)=>(n=e!=null?Vb(Qb(e)):{},Xb(!e||!e.__esModule?vo(n,"default",{value:e,enumerable:!0}):n,e)),Jb=Yb({"../../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(v){return v instanceof a?new a(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&").replace(/</g,"<").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(v,w){w=w||{};var y,x;switch(o.util.type(v)){case"Object":if(x=o.util.objId(v),w[x])return w[x];y={},w[x]=y;for(var g in v)v.hasOwnProperty(g)&&(y[g]=m(v[g],w));return y;case"Array":return x=o.util.objId(v),w[x]?w[x]:(y=[],w[x]=y,v.forEach(function(S,N){y[N]=m(S,w)}),y);default:return v}},getLanguage:function(m){for(;m;){var v=r.exec(m.className);if(v)return v[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,v){m.className=m.className.replace(RegExp(r,"gi"),""),m.classList.add("language-"+v)},isActive:function(m,v,w){for(var y="no-"+v;m;){var x=m.classList;if(x.contains(v))return!0;if(x.contains(y))return!1;m=m.parentElement}return!!w}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(m,v){var w=o.util.clone(o.languages[m]);for(var y in v)w[y]=v[y];return w},insertBefore:function(m,v,w,y){y=y||o.languages;var x=y[m],g={};for(var S in x)if(x.hasOwnProperty(S)){if(S==v)for(var N in w)w.hasOwnProperty(N)&&(g[N]=w[N]);w.hasOwnProperty(S)||(g[S]=x[S])}var b=y[m];return y[m]=g,o.languages.DFS(o.languages,function(j,_){_===b&&j!=m&&(this[j]=g)}),g},DFS:function m(v,w,y,x){x=x||{};var g=o.util.objId;for(var S in v)if(v.hasOwnProperty(S)){w.call(v,S,v[S],y||S);var N=v[S],b=o.util.type(N);b==="Object"&&!x[g(N)]?(x[g(N)]=!0,m(N,w,null,x)):b==="Array"&&!x[g(N)]&&(x[g(N)]=!0,m(N,w,S,x))}}},plugins:{},highlight:function(m,v,w){var y={code:m,grammar:v,language:w};if(o.hooks.run("before-tokenize",y),!y.grammar)throw new Error('The language "'+y.language+'" has no grammar.');return y.tokens=o.tokenize(y.code,y.grammar),o.hooks.run("after-tokenize",y),a.stringify(o.util.encode(y.tokens),y.language)},tokenize:function(m,v){var w=v.rest;if(w){for(var y in w)v[y]=w[y];delete v.rest}var x=new f;return c(x,x.head,m),u(m,x,v,x.head,0),h(x)},hooks:{all:{},add:function(m,v){var w=o.hooks.all;w[m]=w[m]||[],w[m].push(v)},run:function(m,v){var w=o.hooks.all[m];if(!(!w||!w.length))for(var y=0,x;x=w[y++];)x(v)}},Token:a};function a(m,v,w,y){this.type=m,this.content=v,this.alias=w,this.length=(y||"").length|0}a.stringify=function m(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var y="";return v.forEach(function(b){y+=m(b,w)}),y}var x={type:v.type,content:m(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},g=v.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(x.classes,g):x.classes.push(g)),o.hooks.run("wrap",x);var S="";for(var N in x.attributes)S+=" "+N+'="'+(x.attributes[N]||"").replace(/"/g,""")+'"';return"<"+x.tag+' class="'+x.classes.join(" ")+'"'+S+">"+x.content+"</"+x.tag+">"};function s(m,v,w,y){m.lastIndex=v;var x=m.exec(w);if(x&&y&&x[1]){var g=x[1].length;x.index+=g,x[0]=x[0].slice(g)}return x}function u(m,v,w,y,x,g){for(var S in w)if(!(!w.hasOwnProperty(S)||!w[S])){var N=w[S];N=Array.isArray(N)?N:[N];for(var b=0;b<N.length;++b){if(g&&g.cause==S+","+b)return;var j=N[b],_=j.inside,L=!!j.lookbehind,C=!!j.greedy,R=j.alias;if(C&&!j.pattern.global){var M=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,M+"g")}for(var U=j.pattern||j,B=y.next,F=x;B!==v.tail&&!(g&&F>=g.reach);F+=B.value.length,B=B.next){var W=B.value;if(v.length>m.length)return;if(!(W instanceof a)){var Z=1,D;if(C){if(D=s(U,F,m,L),!D||D.index>=m.length)break;var te=D.index,V=D.index+D[0].length,k=F;for(k+=B.value.length;te>=k;)B=B.next,k+=B.value.length;if(k-=B.value.length,F=k,B.value instanceof a)continue;for(var Y=B;Y!==v.tail&&(k<V||typeof Y.value=="string");Y=Y.next)Z++,k+=Y.value.length;Z--,W=m.slice(F,k),D.index-=F}else if(D=s(U,0,W,L),!D)continue;var te=D.index,E=D[0],se=W.slice(0,te),_e=W.slice(te+E.length),re=F+W.length;g&&re>g.reach&&(g.reach=re);var ce=B.prev;se&&(ce=c(v,ce,se),F+=se.length),p(v,ce,Z);var qe=new a(S,_?o.tokenize(E,_):E,R,E);if(B=c(v,ce,qe),_e&&c(v,B,_e),Z>1){var Qe={cause:S+","+b,reach:re};u(m,v,w,B.prev,F,Qe),g&&Qe.reach>g.reach&&(g.reach=Qe.reach)}}}}}}function f(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function c(m,v,w){var y=v.next,x={value:w,prev:v,next:y};return v.next=x,y.prev=x,m.length++,x}function p(m,v,w){for(var y=v.next,x=0;x<w&&y!==m.tail;x++)y=y.next;v.next=y,y.prev=v,m.length-=x}function h(m){for(var v=[],w=m.head.next;w!==m.tail;)v.push(w.value),w=w.next;return v}return o}();t.exports=n,n.default=n}}),A=Zb(Jb());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(/&/,"&"))}),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 p=0,h=c.length;p<h;p++){var m,v=c[p];v.type!=="code"?f(v.content):(m=v.content[1],v=v.content[3],m&&v&&m.type==="code-language"&&v.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()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,m]:v.alias.push(m):v.alias=[m]))}}(u.tokens)}),e.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var f="",c=0,p=u.classes.length;c<p;c++){var h=u.classes[c],h=/language-(.+)/.exec(h);if(h){f=h[1];break}}var m,v=e.languages[f];v?u.content=e.highlight(function(w){return w=w.replace(o,""),w=w.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(y,x){var g;return(x=x.toLowerCase())[0]==="#"?(g=x[1]==="x"?parseInt(x.slice(2),16):Number(x.slice(1)),s(g)):a[x]||y})}(u.content),v,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=p(/^\($/,/^\)$/);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=p(/^\{$/,/^\}$/);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,v){v=v||0;for(var w=0;w<m.length;w++){var y=f(w+v);if(!y||y.type!==m[w])return}return 1}function p(m,v){for(var w=1,y=n;y<t.length;y++){var x=t[y],g=x.content;if(x.type==="punctuation"&&typeof g=="string"){if(m.test(g))w++;else if(v.test(g)&&--w===0)return y}}return-1}function h(m,v){var w=m.alias;w?Array.isArray(w)||(m.alias=w=[w]):m.alias=w=[],w.push(v)}}),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,p){if(e.languages[c])return{pattern:RegExp("((?:"+p+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:c}}}}function a(c,p,h){return c={code:c,grammar:p,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,p,h){var w=e.tokenize(c,{interpolation:{pattern:RegExp(l),lookbehind:!0}}),m=0,v={},w=a(w.map(function(x){if(typeof x=="string")return x;for(var g,S,x=x.content;c.indexOf((S=m++,g="___"+h.toUpperCase()+"_"+S+"___"))!==-1;);return v[g]=x,g}).join(""),p,h),y=Object.keys(v);return m=0,function x(g){for(var S=0;S<g.length;S++){if(m>=y.length)return;var N,b,j,_,L,C,R,M=g[S];typeof M=="string"||typeof M.content=="string"?(N=y[m],(R=(C=typeof M=="string"?M:M.content).indexOf(N))!==-1&&(++m,b=C.substring(0,R),L=v[N],j=void 0,(_={})["interpolation-punctuation"]=i,(_=e.tokenize(L,_)).length===3&&((j=[1,1]).push.apply(j,a(_[1],e.languages.javascript,"javascript")),_.splice.apply(_,j)),j=new e.Token("interpolation",_,r.alias,L),_=C.substring(R+N.length),L=[],b&&L.push(b),L.push(j),_&&(x(C=[_]),L.push.apply(L,C)),typeof M=="string"?(g.splice.apply(g,[S,1].concat(L)),S+=L.length-1):M.content=L)):(R=M.content,Array.isArray(R)?x(R):x([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 p(h){for(var m=0,v=h.length;m<v;m++){var w,y,x,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"&&(y=f(g),g=g.alias,g=Array.isArray(g)?g[0]:g,x=e.languages[g])&&(w[1]=s(y,x,g))):p(w):typeof w!="string"&&p([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],p=!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--:p=!0),(p||typeof c=="string")&&0<u.length&&u[u.length-1].openedBraces===0&&(p=a(c),f<s.length-1&&(typeof s[f+1]=="string"||s[f+1].type==="plain-text")&&(p+=a(s[f+1]),s.splice(f+1,1)),0<f&&(typeof s[f-1]=="string"||s[f-1].type==="plain-text")&&(p=a(s[f-1])+p,s.splice(f-1,1),f--),s[f]=new e.Token("plain-text",p,null,p)),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://,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 km={};Kb(km,{dracula:()=>tS,duotoneDark:()=>rS,duotoneLight:()=>lS,github:()=>aS,gruvboxMaterialDark:()=>OS,gruvboxMaterialLight:()=>zS,jettwaveDark:()=>TS,jettwaveLight:()=>IS,nightOwl:()=>uS,nightOwlLight:()=>fS,oceanicNext:()=>pS,okaidia:()=>mS,oneDark:()=>PS,oneLight:()=>FS,palenight:()=>yS,shadesOfPurple:()=>vS,synthwave84:()=>wS,ultramin:()=>SS,vsDark:()=>wm,vsLight:()=>NS});var eS={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)"}}]},tS=eS,nS={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"}}]},rS=nS,iS={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"}}]},lS=iS,oS={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"}}]},aS=oS,sS={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)"}}]},uS=sS,cS={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)"}}]},fS=cS,it={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},dS={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:it.keyword}},{types:["attr-value"],style:{color:it.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:it.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:it.primitive}},{types:["boolean"],style:{color:it.boolean}},{types:["tag"],style:{color:it.tag}},{types:["string"],style:{color:it.string}},{types:["punctuation"],style:{color:it.string}},{types:["selector","char","builtin","inserted"],style:{color:it.char}},{types:["function"],style:{color:it.function}},{types:["operator","entity","url","variable"],style:{color:it.variable}},{types:["keyword"],style:{color:it.keyword}},{types:["atrule","class-name"],style:{color:it.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},pS=dS,hS={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"}}]},mS=hS,gS={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)"}}]},yS=gS,xS={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)"}}]},vS=xS,kS={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"}}]},wS=kS,bS={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)"}}]},SS=bS,ES={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)"}}]},wm=ES,CS={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)"}}]},NS=CS,jS={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"}}]},TS=jS,_S={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"}}]},IS=_S,AS={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%)"}}]},PS=AS,LS={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%)"}}]},FS=LS,RS={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"}}]},OS=RS,DS={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"}}]},zS=DS,MS=e=>I.useCallback(t=>{var n=t,{className:r,style:i,line:l}=n,o=vm(n,["className","style","line"]);const a=ko(Ot({},o),{className:gm("token-line",r)});return typeof e=="object"&&"plain"in e&&(a.style=e.plain),typeof i=="object"&&(a.style=Ot(Ot({},a.style||{}),i)),a},[e]),BS=e=>{const t=I.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 I.useCallback(n=>{var r=n,{token:i,className:l,style:o}=r,a=vm(r,["token","className","style"]);const s=ko(Ot({},a),{className:gm("token",...i.types,l),children:i.content,style:t(i)});return o!=null&&(s.style=Ot(Ot({},s.style||{}),o)),s},[t])},$S=/\r\n|\r|\n/,Uf=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
69
69
|
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
70
|
-
`,e[0].empty=!0)},Hf=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},US=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 p=n[o][l];if(typeof p=="string"?(f=o>0?f:["plain"],u=p):(f=Hf(f,p.type),p.alias&&(f=Hf(f,p.alias)),u=p.content),typeof u!="string"){o++,t.push(f),n.push(u),r.push(0),i.push(u.length);continue}const h=u.split($S),m=h.length;a.push({types:f,content:h[0]});for(let v=1;v<m;v++)Uf(a),s.push(a=[]),a.push({types:f,content:h[v]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return Uf(a),s},Vf=US,HS=({prism:e,code:t,grammar:n,language:r})=>I.useMemo(()=>{if(n==null)return Vf([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),Vf(i.tokens)},[t,n,r,e]),VS=(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=
|
|
70
|
+
`,e[0].empty=!0)},Hf=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},US=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 p=n[o][l];if(typeof p=="string"?(f=o>0?f:["plain"],u=p):(f=Hf(f,p.type),p.alias&&(f=Hf(f,p.alias)),u=p.content),typeof u!="string"){o++,t.push(f),n.push(u),r.push(0),i.push(u.length);continue}const h=u.split($S),m=h.length;a.push({types:f,content:h[0]});for(let v=1;v<m;v++)Uf(a),s.push(a=[]),a.push({types:f,content:h[v]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return Uf(a),s},Vf=US,HS=({prism:e,code:t,grammar:n,language:r})=>I.useMemo(()=>{if(n==null)return Vf([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),Vf(i.tokens)},[t,n,r,e]),VS=(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=Ot(Ot({},i[s]),a);i[s]=u}),i},{});return r.root=n,r.plain=ko(Ot({},n),{backgroundColor:void 0}),r},WS=VS,GS=({children:e,language:t,code:n,theme:r,prism:i})=>{const l=t.toLowerCase(),o=WS(r,l),a=MS(o),s=BS(o),u=i.languages[l],f=HS({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})},qS=e=>I.createElement(GS,ko(Ot({},e),{prism:e.prism||A,theme:e.theme||wm,code:e.code,language:e.language}));/*! Bundled license information:
|
|
71
71
|
|
|
72
72
|
prismjs/prism.js:
|
|
73
73
|
(**
|
|
@@ -86,4 +86,4 @@ prismjs/prism.js:
|
|
|
86
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 lE(e,t){const n=rE(e??"",t??""),r=[];for(const i of n){const l=i.added?"add":i.removed?"del":"ctx",o=i.value.split(`
|
|
87
87
|
`);o.length>1&&o[o.length-1]===""&&o.pop();for(const a of o)r.push({type:l,text:a})}return r}const oE={add:"+",del:"−",ctx:" "};function vl({oldText:e,newText:t,maxRows:n=80}){const r=lE(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 d.jsxs("div",{className:"diff-view","data-testid":"diff-view",children:[d.jsxs("div",{className:"diff-stat",children:[d.jsxs("span",{className:"diff-stat-add",children:["+",i]}),d.jsxs("span",{className:"diff-stat-del",children:["−",l]})]}),d.jsx("pre",{className:"diff-body",children:o.map((a,s)=>d.jsxs("div",{className:`diff-line ${a.type}`,children:[d.jsx("span",{className:"diff-gutter",children:oE[a.type]}),d.jsx("span",{className:"diff-text",children:a.text===""?" ":a.text})]},s))}),r.length>n&&d.jsxs("div",{className:"diff-more",children:["+",r.length-n," more lines"]})]})}function Wf(e){if(!e)return"";const t=String(e).split(/[\\/]+/).filter(Boolean);return t.length>2?"…/"+t.slice(-2).join("/"):t.join("/")}function aE(e){if(!e||typeof e!="object")return"";for(const t of Object.values(e))if(typeof t=="string"&&t)return t;return""}const sE={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 uE(e,t){if(!t)return"";switch(e){case"Read":case"Edit":case"MultiEdit":case"Write":return Wf(t.file_path);case"NotebookEdit":return Wf(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 aE(t)}}function cE({name:e,input:t}){return(t==null?void 0:t._raw)!=null?d.jsx("pre",{className:"tool-raw",children:String(t._raw)}):e==="Edit"?d.jsx(vl,{oldText:t.old_string||"",newText:t.new_string||""}):e==="MultiEdit"&&Array.isArray(t.edits)?d.jsx(d.Fragment,{children:t.edits.map((n,r)=>d.jsx(vl,{oldText:n.old_string||"",newText:n.new_string||""},r))}):e==="Write"?d.jsx(vl,{oldText:"",newText:t.content||""}):(e==="Bash"||e==="PowerShell")&&t.description?d.jsx("div",{className:"tool-desc",children:t.description}):null}function fE({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
88
|
… (truncated)`:n,l=n.split(`
|
|
89
|
-
`).find(o=>o.trim())||(t?"error":"done");return d.jsxs("details",{className:`tool-result ${t?"err":""}`,open:t,children:[d.jsxs("summary",{children:[t?"✗ ":"",l.slice(0,140)]}),d.jsx("pre",{children:i})]})}function dE({block:e}){const{name:t,input:n={},result:r,done:i,isError:l}=e,o=sE[t]||{icon:"⚙",verb:t},a=uE(t,n),s=i?l?"error":"done":"running";return d.jsxs("div",{className:`tool-card ${s}`,"data-testid":"tool-card","data-tool":t,children:[d.jsxs("div",{className:"tool-head",children:[d.jsx("span",{className:"tool-icon",children:o.icon}),d.jsx("span",{className:"tool-verb",children:o.verb}),a&&d.jsx("code",{className:"tool-target",children:a}),t==="Edit"&&n.replace_all&&d.jsx("span",{className:"tool-tag",children:"all"}),d.jsx("span",{className:"tool-status","data-status":s,children:s==="running"?d.jsx("span",{className:"tool-spinner","aria-label":"running"}):s==="error"?"✗":"✓"})]}),d.jsx(cE,{name:t,input:n}),d.jsx(fE,{content:r,isError:l})]})}const il="wild-workspace.chat.v2";function pE(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 Gf(e,t,n){const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]=pE(i[r],n),i}function hE(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 mE({role:e,capabilities:t,mode:n,token:r}){const[i,l]=I.useState(()=>{try{const j=localStorage.getItem(il);if(j)return JSON.parse(j)}catch{}return[]}),[o,a]=I.useState(null),[s,u]=I.useState(!1),[f,c]=I.useState(""),[p,h]=I.useState(!1),m=I.useRef(null),v=I.useRef(null),w=I.useRef(!0);I.useEffect(()=>{try{localStorage.setItem(il,JSON.stringify(i.slice(-120)))}catch{}},[i]),I.useEffect(()=>{const j=v.current;j&&w.current&&(j.scrollTop=j.scrollHeight)},[i]);function y(){const j=v.current;j&&(w.current=j.scrollHeight-j.scrollTop-j.clientHeight<90)}I.useEffect(()=>{let j=!1,_=0,L=null,C=null;const R=()=>{if(j)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=()=>{_=0,h(!0)},C.onmessage=B=>{let F;try{F=JSON.parse(B.data)}catch{return}if(F.type==="chunk")l(W=>Gf(W,F.messageId,F.chunk));else if(F.type==="stderr")l(W=>hE(W,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(W=>Gf(W,F.messageId,{type:"error",message:F.message||"agent error"})):l(W=>[...W,{id:`err-${Date.now()}`,role:"error",text:F.message||"agent error"}]);else if(F.type==="turn-begin")l(W=>{if(W.some(O=>O.id===F.messageId))return W;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:[]}),[...W,...Z]}),a(F.messageId),u(!0);else if(F.type==="reset"){l([]),a(null),u(!1);try{localStorage.removeItem(il)}catch{}}},C.onerror=()=>u(!1),C.onclose=()=>{if(h(!1),u(!1),a(null),j)return;const B=Math.min(1e3*2**_,1e4);_+=1,L=setTimeout(R,B)}};return R(),()=>{j=!0,clearTimeout(L);try{C==null||C.close()}catch{}}},[r]);function x(){if(!t.chatWrite)return;const j=f.trim();if(!j||s)return;const _=m.current,L=_==null?void 0:_.readyState;if(!_||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:j},{id:C,role:"agent",blocks:[]}]),a(C),u(!0),c("");const R=JSON.stringify({type:"send",text:j,mode:n,messageId:C});L===WebSocket.OPEN?_.send(R):_.addEventListener("open",()=>{try{_.send(R)}catch{}},{once:!0})}function g(){var j;((j=m.current)==null?void 0:j.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"cancel"})),u(!1),a(null)}function S(){var j;((j=m.current)==null?void 0:j.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"reset"})),l([]),a(null),u(!1);try{localStorage.removeItem(il)}catch{}}function N(j){j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),x())}const b=i.length===0;return d.jsxs(d.Fragment,{children:[!b&&t.chatWrite&&d.jsx("div",{className:"chat-toolbar","data-testid":"chat-toolbar",children:d.jsx("button",{className:"chat-newbtn",onClick:S,disabled:s,"data-testid":"new-chat-btn",title:"Start a fresh conversation — the agent forgets the current thread",children:"+ New chat"})}),d.jsxs("div",{className:"chat-messages",ref:v,onScroll:y,"data-testid":"chat-messages",children:[b&&d.jsx(kE,{role:e,connected:p}),i.map(j=>d.jsx(gE,{message:j,streaming:j.id===o},j.id))]}),t.chatWrite&&d.jsxs("div",{className:"chat-input","data-testid":"chat-input",children:[d.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:j=>c(j.target.value),onKeyDown:N,disabled:s,rows:2}),s?d.jsx("button",{onClick:g,"data-testid":"cancel-btn",children:"Stop"}):d.jsx("button",{className:"primary send-btn",onClick:x,disabled:!f.trim(),"data-testid":"send-btn",children:"Send"})]}),!t.chatWrite&&e==="viewer"&&d.jsx("div",{className:"chat-readonly-banner",children:"You’re viewing a shared workspace (read-only)."})]})}function gE({message:e,streaming:t}){if(e.role==="user")return d.jsx("div",{className:"chat-msg user","data-testid":"chat-msg-user",children:d.jsx("div",{className:"msg-plain",children:e.text})});if(e.role==="system")return d.jsx("div",{className:"chat-msg system","data-testid":"chat-msg-system",children:e.text});if(e.role==="error")return d.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 d.jsxs("div",{className:"chat-msg agent","data-testid":"chat-msg-agent",children:[n.map((o,a)=>d.jsx(yE,{block:o,cursor:a===i},o.id||`${o.type}-${a}`)),l&&d.jsx(xE,{}),e.usage&&d.jsx(vE,{usage:e.usage,costUsd:e.costUsd,durationMs:e.durationMs}),e.stderr&&d.jsxs("details",{className:"stderr-block",children:[d.jsx("summary",{children:"stderr"}),d.jsx("pre",{children:e.stderr})]})]})}function yE({block:e,cursor:t}){return e.type==="text"?d.jsxs("div",{className:"agent-text",children:[d.jsx(JS,{text:e.text}),t&&d.jsx("span",{className:"stream-cursor"})]}):e.type==="thinking"?d.jsxs("details",{className:"thinking-block",children:[d.jsx("summary",{children:"💭 Thought process"}),d.jsx("div",{className:"thinking-body",children:e.text})]}):e.type==="tool"?d.jsx(dE,{block:e}):e.type==="error"?d.jsxs("div",{className:"agent-error",children:["⚠ ",e.text]}):null}function xE(){return d.jsxs("div",{className:"agent-working","data-testid":"agent-working",children:[d.jsxs("span",{className:"dots",children:[d.jsx("i",{}),d.jsx("i",{}),d.jsx("i",{})]}),"working"]})}function vE({usage:e,costUsd:t,durationMs:n}){const r=typeof t=="number"?t:e==null?void 0:e.cost_usd;return d.jsxs("div",{className:"usage-footer","data-testid":"usage-footer",children:[(e==null?void 0:e.output_tokens)!=null&&d.jsxs("span",{title:"output tokens",children:["↑ ",e.output_tokens.toLocaleString()]}),typeof r=="number"&&r>0&&d.jsxs("span",{title:"cost (USD)",children:["$",r.toFixed(4)]}),n!=null&&d.jsxs("span",{children:[(n/1e3).toFixed(1),"s"]})]})}function kE({role:e,connected:t}){return d.jsxs("div",{className:"chat-empty","data-testid":"chat-empty",children:[d.jsx("div",{className:"chat-empty-mark",children:"✦"}),d.jsx("p",{className:"chat-empty-title",children:e==="client"?"Describe what you’d like changed":"Build something by chatting"}),d.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"&&d.jsxs("div",{className:"chat-empty-hints",children:[d.jsx("span",{children:"“What’s in this workspace?”"}),d.jsx("span",{children:"“Build a landing page in /web”"}),d.jsx("span",{children:"“Fix the failing test”"})]}),!t&&d.jsx("p",{className:"chat-empty-warn",children:"connecting to the agent bridge…"})]})}function wE({onCollapse:e,workspaceRoot:t,onOpen:n}){const[r,i]=I.useState(null),[l,o]=I.useState(null),[a,s]=I.useState(new Set);I.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(p=>{const h=new Set(p);return h.has(c)?h.delete(c):h.add(c),h})}function f(c,p=0){var v;const h=c.type==="dir",m=a.has(c.path);return d.jsxs("div",{children:[d.jsxs("div",{className:`tree-node ${h?"dir":""}`,onClick:()=>h?u(c.path):n==null?void 0:n(c.path),style:{paddingLeft:p*12+4},"data-testid":`tree-node-${c.path}`,children:[d.jsx("span",{style:{width:12,display:"inline-block"},children:h?m?"▾":"▸":" "}),d.jsx("span",{children:c.name})]}),h&&m&&((v=c.children)==null?void 0:v.map(w=>f(w,p+1)))]},c.path)}return d.jsxs("aside",{className:"tree-pane","data-testid":"file-tree",children:[d.jsxs("div",{className:"tree-header",children:[d.jsx("span",{children:"Files"}),d.jsx("button",{onClick:e,style:{padding:"2px 6px",fontSize:11},children:"⟨"})]}),d.jsxs("div",{className:"tree-list",children:[l&&d.jsx("div",{style:{color:"var(--error)",padding:4},children:l}),!r&&!l&&d.jsxs("div",{style:{color:"var(--text-muted)",padding:4},children:[d.jsx("span",{className:"spinner"})," loading…"]}),(r==null?void 0:r.length)===0&&d.jsx("div",{style:{color:"var(--text-muted)",padding:4},children:"Empty workspace"}),r==null?void 0:r.map(c=>f(c,0))]})]})}const bE=[{id:"preview",label:"Preview"},{id:"code",label:"Code"},{id:"logs",label:"Logs"},{id:"deploy",label:"Deploy"}];function SE({focus:e,workspaceRoot:t}){const[n,r]=I.useState("preview"),[i,l]=I.useState([]),[o,a]=I.useState(null),[s,u]=I.useState("3000"),[f,c]=I.useState(null);return I.useEffect(()=>{e&&(r("code"),fetch(`/api/workspace/file?path=${encodeURIComponent(e)}`).then(p=>p.json()).then(p=>c(p)))},[e]),I.useEffect(()=>{if(n!=="preview")return;let p=!1;async function h(){var y;const v=await fetch("/api/preview/ports").catch(()=>null);if(!v||p)return;const w=await v.json();p||(l(w.ports||[]),!o&&((y=w.ports)==null?void 0:y.length)>0&&a(w.ports[0].port))}h();const m=setInterval(h,4e3);return()=>{p=!0,clearInterval(m)}},[n,o]),d.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[d.jsxs("div",{className:"preview-tabs","data-testid":"preview-tabs",children:[bE.map(p=>d.jsx("button",{className:n===p.id?"active":"",onClick:()=>r(p.id),"data-testid":`preview-tab-${p.id}`,children:p.label},p.id)),d.jsx("span",{style:{flex:1}}),n==="preview"&&d.jsxs("div",{className:"preview-port-input",children:[d.jsx("input",{value:s,onChange:p=>u(p.target.value),placeholder:"port","data-testid":"preview-port-input"}),d.jsx("button",{onClick:()=>a(Number(s)),"data-testid":"preview-port-go",children:"Load"})]})]}),d.jsxs("div",{className:"preview-body",children:[n==="preview"&&(o?d.jsx("iframe",{className:"preview-iframe",src:`http://localhost:${o}`,title:`localhost:${o}`,"data-testid":"preview-iframe"},o):d.jsxs("div",{className:"preview-empty","data-testid":"preview-empty",children:[d.jsxs("p",{style:{maxWidth:320,lineHeight:1.6},children:["No dev server detected yet. Ask the agent to start one (e.g. ",d.jsx("code",{children:"bun dev"}),", ",d.jsx("code",{children:"npm run dev"}),"), then I’ll auto-detect it."]}),i.length>0&&d.jsxs("p",{style:{fontSize:12},children:["Detected: ",i.map(p=>`:${p.port}`).join(", ")]})]})),n==="code"&&d.jsx("div",{className:"preview-code-view","data-testid":"preview-code",children:f?d.jsxs(d.Fragment,{children:[d.jsxs("div",{style:{color:"var(--text-muted)",fontSize:11,marginBottom:8},children:[e," (",f.size," bytes",f.truncated?", truncated":"",")"]}),d.jsx("pre",{children:f.content})]}):d.jsx("div",{className:"preview-empty",children:"Click a file in the tree to inspect it."})}),n==="logs"&&d.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"&&d.jsxs("div",{className:"preview-empty","data-testid":"preview-deploy",children:["Deploy — Cloudflare Pages + custom-domain wizard ships in v1.1.",d.jsx("br",{}),"For now: run ",d.jsx("code",{children:"npx wrangler pages deploy"})," in the terminal."]})]})]})}function EE({onClose:e}){const[t,n]=I.useState("viewer"),[r,i]=I.useState(24),[l,o]=I.useState(""),[a,s]=I.useState(null),[u,f]=I.useState([]),[c,p]=I.useState(null),[h,m]=I.useState(!1);I.useEffect(()=>{v()},[]);async function v(){const g=await fetch("/api/share").catch(()=>null);if(!g||!g.ok)return;const S=await g.json();f(S.tokens||[])}async function w(){p(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})}),S=await g.json();if(!g.ok)throw new Error(S.error||`HTTP ${g.status}`);s(S),v()}catch(g){p(g.message||String(g))}finally{m(!1)}}async function y(g){await fetch(`/api/share/${encodeURIComponent(g)}`,{method:"DELETE"}),v()}async function x(g){try{await navigator.clipboard.writeText(g)}catch{}}return d.jsx("div",{className:"modal-backdrop",onClick:e,children:d.jsxs("div",{className:"modal",onClick:g=>g.stopPropagation(),"data-testid":"share-dialog",children:[d.jsx("h2",{children:"Share workspace"}),d.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."}),d.jsx("label",{children:"Role"}),d.jsx("div",{className:"row",children:d.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[d.jsx("input",{type:"radio",name:"role",value:"viewer",checked:t==="viewer",onChange:()=>n("viewer"),"data-testid":"share-role-viewer"}),d.jsx("span",{children:"Viewer — read-only chat + preview"})]})}),d.jsx("div",{className:"row",children:d.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[d.jsx("input",{type:"radio",name:"role",value:"client",checked:t==="client",onChange:()=>n("client"),"data-testid":"share-role-client"}),d.jsx("span",{children:"Client — chat + request changes (for AI-installer GTM)"})]})}),d.jsxs("div",{className:"row",children:[d.jsxs("div",{children:[d.jsx("label",{children:"Expires in"}),d.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"}),d.jsx("span",{style:{marginLeft:6,color:"var(--text-muted)",fontSize:12},children:"hours"})]}),d.jsxs("div",{style:{flex:1},children:[d.jsx("label",{children:"Label (optional)"}),d.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&&d.jsx("div",{style:{color:"var(--error)",fontSize:12,marginBottom:8},"data-testid":"share-error",children:c}),a&&d.jsxs(d.Fragment,{children:[d.jsx("label",{children:"Share URL"}),d.jsx("div",{className:"url-output","data-testid":"share-url",children:a.shareUrl}),d.jsxs("div",{style:{display:"flex",gap:8},children:[d.jsx("button",{onClick:()=>x(a.shareUrl),"data-testid":"share-copy",children:"Copy"}),d.jsx("a",{href:a.shareUrl,target:"_blank",rel:"noreferrer",children:d.jsx("button",{children:"Open"})})]})]}),u.length>0&&d.jsxs("div",{style:{marginTop:16},children:[d.jsx("label",{children:"Active share tokens"}),d.jsx("div",{style:{maxHeight:140,overflow:"auto",border:"1px solid var(--border)",borderRadius:6},children:u.map(g=>d.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:[d.jsxs("div",{children:[d.jsx("strong",{children:g.label||g.role})," ",d.jsxs("span",{style:{color:"var(--text-muted)"},children:["(",g.role,", expires ",new Date(g.exp*1e3).toLocaleString(),")"]})]}),d.jsx("button",{onClick:()=>y(g.sub),style:{fontSize:11},"data-testid":`revoke-${g.sub}`,children:"Revoke"})]},g.sub))})]}),d.jsxs("div",{className:"actions",children:[d.jsx("button",{onClick:e,"data-testid":"share-close",children:"Close"}),d.jsx("button",{className:"primary",onClick:w,disabled:h,"data-testid":"share-issue",children:h?d.jsx("span",{className:"spinner"}):"Issue URL"})]})]})})}function CE({onClose:e,token:t}){var R,M;const[n,r]=I.useState(null),[i,l]=I.useState(!1),[o,a]=I.useState(null),[s,u]=I.useState(!1),[f,c]=I.useState(""),[p,h]=I.useState(""),[m,v]=I.useState(168),[w,y]=I.useState(null);I.useEffect(()=>{g()},[]);function x(U,B={}){const F={...B.headers||{}};return t&&(F.Authorization=`Bearer ${t}`),fetch(U,{...B,headers:F})}async function g(){a(null),l(!1);const U=await x("/api/sync/status").catch(()=>null);if(!U||!U.ok){l(!0);return}r(await U.json())}async function S(U){a(null),u(!0);try{await U()}catch(B){a(B.message||String(B))}finally{u(!1)}}const N=()=>S(async()=>{const U=await x("/api/sync/pair",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({inviteCode:f})}),B=await U.json();if(!U.ok)throw new Error(B.error||`HTTP ${U.status}`);c(""),await g()}),b=()=>S(async()=>{var F,W;const U=await x("/api/sync/invite",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectCode:(W=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:W.projectId,displayName:p,expiresHours:Math.max(1,Number(m)||168)})}),B=await U.json();if(!U.ok)throw new Error(B.error||`HTTP ${U.status}`);y(B.invite)}),j=()=>S(async()=>{var F,W;const U=await x("/api/sync/detach",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({workspaceId:(W=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:W.workspaceId})}),B=await U.json();if(!U.ok)throw new Error(B.error||`HTTP ${U.status}`);y(null),await g()});async function _(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 d.jsx("div",{className:"modal-backdrop",onClick:e,children:d.jsxs("div",{className:"modal",onClick:U=>U.stopPropagation(),"data-testid":"sync-dialog",children:[d.jsx("h2",{children:"Collaborate on this folder"}),d.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&&d.jsxs("div",{className:"muted",children:[d.jsx("span",{className:"spinner"})," Checking sync status…"]}),i&&d.jsxs("div",{className:"sync-state warn","data-testid":"sync-load-failed",children:[d.jsx("strong",{children:"Couldn't load sync status."}),d.jsx("span",{className:"muted",children:"The workspace server didn't answer. Try again."})]}),C&&d.jsxs("div",{className:"sync-state warn","data-testid":"sync-daemon-down",children:[d.jsx("strong",{children:"The bmo-sync daemon isn't running."}),d.jsx("span",{className:"muted",children:"Folder sharing needs the background sync service running on this machine. Start it, then recheck."})]}),n&&!C&&!L&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sync-state","data-testid":"sync-unpaired",children:[d.jsxs("strong",{children:[n.workspaceName," isn't shared yet."]}),d.jsx("span",{className:"muted",children:"Got an invite code from a collaborator? Paste it to sync this folder with theirs."})]}),d.jsx("label",{children:"Invite code"}),d.jsxs("div",{className:"row",children:[d.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"}),d.jsx("button",{className:"primary",onClick:N,disabled:s||!f.trim(),"data-testid":"sync-join",children:s?d.jsx("span",{className:"spinner"}):"Connect folder"})]})]}),n&&!C&&L&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sync-state ok","data-testid":"sync-paired",children:[d.jsxs("strong",{children:["✓ Synced — ",L.projectName||L.projectId]}),d.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?d.jsxs(d.Fragment,{children:[d.jsx("label",{children:"Invite a collaborator"}),d.jsxs("div",{className:"row",children:[d.jsx("input",{className:"sync-input",style:{flex:1},value:p,onChange:U=>h(U.target.value),placeholder:"Their name — e.g. Mel","data-testid":"sync-invite-name"}),d.jsx("input",{className:"sync-input",style:{width:64},type:"number",min:"1",value:m,onChange:U=>v(U.target.value),title:"Invite expires in (hours)"}),d.jsx("button",{onClick:b,disabled:s,"data-testid":"sync-create-invite",children:s?d.jsx("span",{className:"spinner"}):"Create invite"})]}),w&&d.jsxs(d.Fragment,{children:[d.jsx("label",{children:"Send this code to your collaborator"}),d.jsx("div",{className:"url-output","data-testid":"sync-invite-code",children:w.code}),d.jsxs("div",{className:"row",style:{marginBottom:0},children:[d.jsx("button",{onClick:()=>_(w.code),"data-testid":"sync-copy-code",children:"Copy code"}),w.expiresAt&&d.jsxs("span",{className:"muted",style:{margin:0},children:["expires ",new Date(w.expiresAt*1e3).toLocaleDateString()]})]})]})]}):d.jsxs("p",{className:"muted","data-testid":"sync-no-invite",children:["Inviting from here needs a bmo-sync admin key (set"," ",d.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&&d.jsx("div",{style:{color:"var(--error)",fontSize:12,marginTop:8},"data-testid":"sync-error",children:o}),d.jsxs("div",{className:"actions",children:[(C||i)&&d.jsx("button",{onClick:g,disabled:s,"data-testid":"sync-recheck",children:"Recheck"}),L&&!C&&d.jsx("button",{onClick:j,disabled:s,"data-testid":"sync-disconnect",children:"Disconnect"}),d.jsx("button",{onClick:e,"data-testid":"sync-close",children:"Close"})]})]})})}function NE({alert:e,onDismiss:t}){if(!e)return null;const n=e.kind==="fatal";return d.jsxs("div",{className:"conflict-banner","data-testid":"conflict-banner",role:"status",children:[d.jsx("span",{className:"ico",children:n?"⛔":"⚠️"}),n?d.jsxs("span",{children:[d.jsx("strong",{children:"Sync stopped."})," ",e.message||"The sync engine hit a fatal error."," Reconnect from the Collaborate dialog."]}):d.jsxs("span",{children:[d.jsx("strong",{children:"Sync conflict"})," on ",d.jsx("code",{children:e.path||"a file"})," — bmo-sync kept ",d.jsx("strong",{children:e.resolution||"the latest edit"}),e.user?` (also edited by ${e.user})`:"","."]}),d.jsx("span",{className:"spacer"}),d.jsx("button",{onClick:t,"data-testid":"conflict-dismiss",children:"Dismiss"})]})}function jE({urlToken:e,onClose:t}){const[n,r]=I.useState([]),[i,l]=I.useState(!0),[o,a]=I.useState(null),[s,u]=I.useState(null),[f,c]=I.useState({}),[p,h]=I.useState(null),m=e?{Authorization:`Bearer ${e}`}:{};function v(){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))}I.useEffect(v,[]);function w(g){return`${g.workspaceId}:${g.path}`}async function y(g){const S=w(g);if(f[S])return;const N=new URL("/api/conflicts/view",window.location.origin);N.searchParams.set("workspaceId",g.workspaceId),N.searchParams.set("path",g.path);const b=await fetch(N.toString(),{headers:m});if(!b.ok){a(`Could not load ${g.path} (HTTP ${b.status})`);return}const j=await b.json().catch(()=>null);j&&c(_=>({..._,[S]:{mine:qf(j.mine),theirs:qf(j.theirs),conflict:j.conflict}}))}async function x(g,S){const N=w(g);h(N);try{const b=await fetch("/api/conflicts/resolve",{method:"POST",headers:{"content-type":"application/json",...m},body:JSON.stringify({workspaceId:g.workspaceId,path:g.path,action:S})});if(!b.ok){const j=await b.json().catch(()=>({}));a((j==null?void 0:j.error)||`Resolve failed (HTTP ${b.status}).`);return}v(),u(null)}finally{h(null)}}return d.jsxs("div",{className:"conflict-panel","data-testid":"conflict-panel",role:"dialog","aria-label":"Open conflicts",children:[d.jsxs("header",{className:"conflict-panel-header",children:[d.jsx("strong",{children:"Open conflicts"})," ",d.jsxs("span",{className:"muted",children:["(",n.length,") · changes saved to the daemon back-office until you resolve"]}),d.jsx("span",{className:"spacer"}),d.jsx("button",{onClick:v,children:"Refresh"}),d.jsx("button",{onClick:t,children:"Close"})]}),i&&d.jsx("div",{className:"muted",children:"Loading…"}),o&&d.jsx("div",{className:"conflict-panel-error",children:o}),!i&&n.length===0&&d.jsx("div",{className:"muted",children:"No open conflicts."}),d.jsx("ul",{className:"conflict-list",children:n.map(g=>{const S=w(g),N=s===S,b=f[S];return d.jsxs("li",{className:"conflict-row",children:[d.jsxs("div",{className:"conflict-row-head",onClick:()=>{N?u(null):(u(S),g.resolution!=="remote_announced"&&y(g))},children:[d.jsx("code",{children:g.path}),d.jsxs("span",{className:"muted",children:["·"," ",g.resolution==="remote_announced"?`${g.conflictingUser||"peer"} flagged`:g.conflictingUser||"peer"," ","·"," ",new Date((g.detectedAt||0)*1e3).toLocaleTimeString()]}),d.jsx("span",{className:"spacer"}),d.jsx("span",{className:"muted",children:N?"▲":"▼"})]}),N&&g.resolution==="remote_announced"&&d.jsxs("div",{className:"conflict-row-body",children:[d.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."]}),d.jsx("div",{className:"conflict-actions",children:d.jsx("button",{disabled:p===S,onClick:()=>x(g,"keep_mine"),"data-testid":"conflict-acknowledge",children:"Acknowledge"})})]}),N&&g.resolution!=="remote_announced"&&d.jsxs("div",{className:"conflict-row-body",children:[!b&&d.jsx("div",{className:"muted",children:"Loading diff…"}),b&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"conflict-meta",children:[d.jsxs("span",{children:["mine: ",d.jsx("code",{children:ca(g.mineSha256)})]}),d.jsxs("span",{children:["theirs: ",d.jsx("code",{children:ca(g.theirsSha256)})]}),g.baseSha256&&d.jsxs("span",{children:["base: ",d.jsx("code",{children:ca(g.baseSha256)})]})]}),d.jsx(TE,{mine:b.mine,theirs:b.theirs}),d.jsxs("div",{className:"conflict-actions",children:[d.jsx("button",{disabled:p===S,onClick:()=>x(g,"keep_mine"),"data-testid":"conflict-keep-mine",children:"Keep mine"}),d.jsx("button",{disabled:p===S,onClick:()=>x(g,"take_theirs"),"data-testid":"conflict-take-theirs",children:"Take theirs"})]})]})]})]},S)})})]})}function qf(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 ca(e){return typeof e!="string"?"∅":e.length>12?`${e.slice(0,12)}…`:e}function TE({mine:e,theirs:t}){return e==null&&t==null?d.jsx("div",{className:"muted",children:"Both versions unavailable on disk."}):e==null||t==null?d.jsx("div",{className:"muted",children:"Only one side is available — the other was deleted before resolution."}):d.jsx(vl,{oldText:t,newText:e})}function _E({role:e,urlToken:t,onSyncAlert:n,onOpenConflicts:r}){const[i,l]=I.useState([]),[o,a]=I.useState({tokensIn:0,tokensOut:0,costUsd:0}),[s,u]=I.useState([]),[f,c]=I.useState(!1),[p,h]=I.useState(null),[m,v]=I.useState(0);I.useEffect(()=>{if(e!=="partner")return;const S=t?{Authorization:`Bearer ${t}`}:{};fetch("/api/sync/status",{headers:S}).then(N=>N.ok?N.json():null).then(N=>{var b;N&&h({paired:!!N.paired,daemonRunning:!!((b=N.daemon)!=null&&b.running),peer:null})}).catch(()=>{}),fetch("/api/conflicts",{headers:S}).then(N=>N.ok?N.json():{conflicts:[]}).then(N=>v(Array.isArray(N==null?void 0:N.conflicts)?N.conflicts.length:0)).catch(()=>{})},[e,t]),I.useEffect(()=>{const S=window.location.protocol==="https:"?"wss":"ws",N=new URL(`${S}://${window.location.host}/ws/activity`);t&&N.searchParams.set("t",t);const b=new WebSocket(N.toString());return b.onopen=()=>c(!0),b.onclose=()=>c(!1),b.onmessage=j=>{let _;try{_=JSON.parse(j.data)}catch{return}_.type==="snapshot"?(l(_.snapshot.presence||[]),a(_.snapshot.usage||{tokensIn:0,tokensOut:0,costUsd:0}),u(_.snapshot.recent||[])):(u(L=>[...L.slice(-49),_]),w(_))},()=>{try{b.close()}catch{}}},[t]);function w(S){S.type==="daemon-status"?h(N=>({...N||{paired:!1},daemonRunning:!!S.connected})):S.type==="sync-paired"?h(N=>({...N||{},paired:!0,daemonRunning:!0})):S.type==="sync-detached"?h(N=>({...N||{},paired:!1,peer:null})):S.type==="remote-presence"?h(N=>({...N||{paired:!0},peer:S.user||null})):S.type==="sync-conflict"?(n==null||n({kind:"conflict",path:S.path,resolution:S.resolution,user:S.conflictingUser}),(S.resolution==="local_pre_write_guard"||S.resolution==="remote_announced")&&v(N=>N+1)):S.type==="sync-conflict-resolved"?v(N=>Math.max(0,N-1)):S.type==="sync-fatal"&&(n==null||n({kind:"fatal",message:S.message}))}const y=[...s].reverse().find(S=>S.type==="chat-stream"||S.type==="chat-user"||S.type==="chat-end"),x=s.find(S=>S.type==="inbox-change");let g=null;return p!=null&&p.paired&&(g=p.daemonRunning?d.jsxs("span",{className:"pill synced","data-testid":"activity-sync",children:["⇄ Synced",p.peer?` · with ${p.peer}`:""]}):d.jsx("span",{className:"pill sync-off","data-testid":"activity-sync",children:"⇄ Sync paused"})),d.jsxs("footer",{className:"bottombar","data-testid":"activity-bar",children:[d.jsx("span",{className:`pill ${f?"live":""}`,"data-testid":"activity-connected",children:f?"live":"reconnecting…"}),d.jsxs("span",{className:"pill","data-testid":"activity-presence",children:["👥 ",i.length," viewing"]}),g,e==="partner"&&m>0&&d.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"]}),d.jsxs("span",{className:"pill","data-testid":"activity-usage",children:["↓",o.tokensIn," ↑",o.tokensOut," · $",(o.costUsd||0).toFixed(3)]}),y&&d.jsx("span",{className:"pill",style:{maxWidth:380,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"activity-last",children:y.type==="chat-end"?"✓ agent finished":"… agent streaming"}),x&&d.jsx("span",{className:"pill","data-testid":"activity-inbox",children:"📦 inbox updated"}),d.jsx("span",{style:{flex:1}}),d.jsxs("span",{style:{fontSize:11},children:["v0.1.0 · ",e]})]})}function IE(){var r;const[e,t]=I.useState(null);if(I.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:d.jsxs("div",{className:"inbox-card","data-testid":"inbox-card",children:["📦 ",d.jsx("strong",{children:"Component inbox"}),": ",n.length," pending integration",n.length!==1?"s":"",": ",n.join(", "),".",d.jsxs("span",{className:"muted",children:["Ask the agent: ",d.jsxs("em",{children:["“walk me through integrating ",n[0],"”"]})]})]})}const AE=[{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."}],Qf=["#22d3ee","#a78bfa","#f472b6","#facc15","#34d399","#fb7185"],PE=[{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"}],LE=new Set(["login","missing","subscribe"]),FE=new Set(["login","missing"]),Yf={missing:{title:"Almost there — I need Claude installed before I can think.",subtitle:"That's the brain I run on. Install it once, then come back here.",cmdLabel:"Run this in your terminal",cmd:"curl -fsSL https://claude.ai/install.sh | bash",after:"Then come back and press the button below.",retry:"Still don't see Claude on this machine. Make sure the install finished, then try again."},login:{title:"One quick thing before we dig in — sign me in to Claude.",subtitle:"It's a one-time sign-in to your own Claude account — it runs on your machine, on your plan. After this you won't be asked again.",cmdLabel:"Run this once in your terminal",cmd:"claude auth login",after:"A browser window opens — sign in with your Claude account, then come back and press the button.",retry:"Hmm — still not signed in. Finish the sign-in in your browser, then press it again."},subscribe:{title:"You're in — I just need an active Claude plan to start thinking.",subtitle:"Claude Code runs on a Claude Pro plan (or higher). Grab one on your own account, then come back — you won’t be asked again.",cmdLabel:"Get a plan, then come back",link:"https://claude.ai/upgrade",linkLabel:"Open claude.ai →",after:"Subscribe at claude.ai, then come back and press the button.",retry:"Still no active plan showing. Give it a moment after subscribing, then try again."}},RE=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 DE(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}function OE(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 zE(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=DE(a.name);if(!RE.has(u)){l.push({path:s,head:""});continue}if(a.size>100*1024){l.push({path:s,head:""});continue}try{const p=await a.slice(0,i).text();l.push({path:s,head:p})}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 ME({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 Kf(e,t=55,n=380){const[r,i]=I.useState(""),[l,o]=I.useState(!1),[a,s]=I.useState(!1);return I.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 rn({children:e,from:t="agent",accent:n,streaming:r=!1}){return d.jsx("div",{className:`ob-bubble ob-bubble-${t}${r?" ob-bubble-streaming":""}`,style:t==="user"?{borderColor:n}:void 0,children:e})}function Yn(){return d.jsx("span",{className:"ob-caret","aria-hidden":"true",children:"▍"})}function Xf(e){const t=Math.random().toString(36).slice(2,8);return`${e}-${Date.now().toString(36)}-${t}`}function BE({session:e,token:t,onComplete:n}){var Pu,Lu,Fu,Ru;const[r,i]=I.useState(1),l=I.useMemo(()=>OE(e==null?void 0:e.shareBaseUrl),[e==null?void 0:e.shareBaseUrl]),[o,a]=I.useState(((Pu=e==null?void 0:e.identity)==null?void 0:Pu.name)||""),[s,u]=I.useState(((Lu=e==null?void 0:e.identity)==null?void 0:Lu.tone)||"concise"),[f,c]=I.useState(((Fu=e==null?void 0:e.identity)==null?void 0:Fu.color)||Qf[0]),[p,h]=I.useState(!1),[m,v]=I.useState(null),[w,y]=I.useState(null),[x,g]=I.useState(!1),[S,N]=I.useState(!1),[b,j]=I.useState(null),[_,L]=I.useState(""),[C,R]=I.useState(new Set(((Ru=e==null?void 0:e.identity)==null?void 0:Ru.connectedServices)||[])),[M,U]=I.useState(!1),[B,F]=I.useState(null),[W,Z]=I.useState(null),[O,V]=I.useState(!1),k=I.useRef(null),Y=I.useRef(null),te=I.useRef({}),[E,se]=I.useState({}),_e=I.useCallback((P,Q,ie)=>{P&&se(pe=>{const Ie=pe[P]||{text:"",done:!1,error:null},jn=Q==="text"?Ie.text+(ie||""):Ie.text,pt={...pe,[P]:{...Ie,text:jn}};return te.current[P]=jn,pt})},[]),re=I.useCallback((P,Q)=>{P&&se(ie=>{const pe=ie[P]||{text:"",done:!1,error:null};return{...ie,[P]:{...pe,done:!0,error:Q||pe.error}}})},[]);I.useEffect(()=>{let P=!1,Q=0,ie=null,pe=null;const Ie=()=>{if(P)return;const jn=window.location.protocol==="https:"?"wss":"ws",pt=new URL(`${jn}://${window.location.host}/ws/chat`);t&&pt.searchParams.set("t",t),pe=new WebSocket(pt.toString()),Y.current=pe,pe.onmessage=$t=>{var Ut;let $e;try{$e=JSON.parse($t.data)}catch{return}$e.type==="chunk"&&((Ut=$e.chunk)==null?void 0:Ut.type)==="text"?_e($e.messageId,"text",$e.chunk.text):$e.type==="end"?re($e.messageId,null):$e.type==="error"&&re($e.messageId,$e.message||"agent error")},pe.onopen=()=>{Q=0},pe.onclose=()=>{if(Y.current=null,P)return;const $t=Math.min(1e3*2**Q,8e3);Q+=1,ie=setTimeout(Ie,$t)},pe.onerror=()=>{}};return Ie(),()=>{P=!0,clearTimeout(ie);try{pe==null||pe.close()}catch{}}},[t,_e,re]),I.useEffect(()=>{document.documentElement.style.setProperty("--accent",f),document.documentElement.style.setProperty("--accent-hot",f)},[f]);const ce=I.useMemo(()=>{const P={"content-type":"application/json"};return t&&(P.Authorization=`Bearer ${t}`),P},[t]);async function qe(P){const Q=await fetch("/api/agent/identity",{method:"POST",headers:ce,body:JSON.stringify({name:o,tone:s,color:f,...P})});if(!Q.ok){const ie=await Q.json().catch(()=>({}));throw new Error(ie.error||`save failed (${Q.status})`)}return Q.json()}const Qe=I.useCallback(async(P=!1)=>{g(!0);try{const Q=await fetch(`/api/agent/readiness${P?"?fresh=1":""}`,{headers:ce});return Q.ok?await Q.json():{status:"unknown"}}catch{return{status:"unknown"}}finally{g(!1)}},[ce]);async function zt(){if(v(null),!o.trim()){v("Pick a name — even just one syllable.");return}h(!0);try{await qe({});const P=await Qe(!1);if(LE.has(P.status)){y(P);return}i(2)}catch(P){v(String(P.message||P))}finally{h(!1)}}async function Gn(){const P=await Qe(!0);if(N(!0),P.status==="login"||P.status==="missing"){y(P);return}y(null),i(2)}async function Pi(){const P=await Qe(!0);if(P.status==="ready"||P.status==="unknown"){j(null),y(null),i(2);return}j(null),y(P)}async function wo(){N(!1),j({status:"starting",url:null,error:null});try{const Q=await(await fetch("/api/agent/login/start",{method:"POST",headers:ce})).json();j(Q),Q.status==="success"&&Pi()}catch{j({status:"error",url:null,error:"Could not start sign-in."})}}async function bo(){const P=_.trim();if(P){L("");try{const Q=await fetch("/api/agent/login/code",{method:"POST",headers:{...ce,"content-type":"application/json"},body:JSON.stringify({code:P})});j(await Q.json())}catch{}}}I.useEffect(()=>{if(!(b&&["starting","awaiting-browser","awaiting-code"].includes(b.status)))return;let Q=!0;const ie=setInterval(async()=>{try{const Ie=await(await fetch("/api/agent/login/status",{headers:ce})).json();if(!Q)return;j(Ie),Ie.status==="success"&&(clearInterval(ie),Pi())}catch{}},2e3);return()=>{Q=!1,clearInterval(ie)}},[b==null?void 0:b.status,ce]);const[_r,Li]=I.useState(null),wt=_r?E[_r]:null;async function Ir(P){if(Z(null),!(!P||P.length===0)){U(!0);try{const Q=await zE(P);if(Q.files.length===0){Z("That folder looks empty — try another?"),U(!1);return}F(Q);const ie=Xf("peek");Li(ie),se(Ie=>({...Ie,[ie]:{text:"",done:!1,error:null}}));const pe=await fetch("/api/onboarding/peek",{method:"POST",headers:ce,body:JSON.stringify({folderName:Q.folderName,files:Q.files,totalFiles:Q.totalFiles,messageId:ie})});if(!pe.ok){const Ie=await pe.json().catch(()=>({}));throw new Error(Ie.error||`peek failed (${pe.status})`)}}catch(Q){Z(String(Q.message||Q))}finally{U(!1)}}}function Fi(P){R(Q=>{const ie=new Set(Q);return ie.has(P)?ie.delete(P):ie.add(P),ie})}const[Cn,Ar]=I.useState(null),[Au,Pr]=I.useState(null),[Ri,Di]=I.useState(null),T=Cn?E[Cn]:null;async function $(P){Di(null),Pr(P);const Q=Xf("job");Ar(Q),se(ie=>({...ie,[Q]:{text:"",done:!1,error:null}}));try{await qe({connectedServices:[...C]});const ie=await fetch("/api/onboarding/start-job",{method:"POST",headers:ce,body:JSON.stringify({kind:P,messageId:Q,peekFolderName:(B==null?void 0:B.folderName)||null})});if(!ie.ok){const pe=await ie.json().catch(()=>({}));throw new Error(pe.error||`start-job failed (${ie.status})`)}}catch(ie){Di(String(ie.message||ie)),Ar(null),Pr(null)}}async function q(){try{await qe({connectedServices:[...C]});const P=await fetch("/api/agent/onboarded",{method:"POST",headers:ce});if(!P.ok){const Q=await P.json().catch(()=>({}));throw new Error(Q.error||`mark-onboarded failed (${P.status})`)}n==null||n()}catch(P){v(String(P.message||P))}}const K=o.trim()||"your agent",oe="Hey. I'm new here.",rt="Before we start — what should I call myself?",[Mt,Ye]=Kf(r===1?oe:"",65,420),[Nn,Bt]=Kf(r===1&&Ye?rt:"",48,520),Be=r===1?Bt:!0,en=I.useMemo(()=>ME({peekSummary:B,services:C,agentName:K}),[B,C,K]),ke=w?Yf[w.status]||Yf.login:null,bm=w?FE.has(w.status):!1;return d.jsx("div",{className:"ob-root",children:d.jsxs("div",{className:"ob-stage",children:[d.jsxs("header",{className:"ob-header",children:[d.jsx("div",{className:"ob-step-dots","aria-label":`Step ${r} of 5`,children:[1,2,3,4,5].map(P=>d.jsx("span",{className:`ob-dot ${P===r?"active":""} ${P<r?"done":""}`},P))}),r>1&&!w&&d.jsx("button",{className:"ob-back",onClick:()=>i(r-1),children:"← Back"})]}),w&&ke&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:ke.title}),d.jsx("p",{className:"ob-bubble-subtle",children:ke.subtitle})]}),d.jsxs("div",{className:"ob-card ob-reveal",children:[w.status==="login"?d.jsxs("div",{className:"ob-login-inapp",children:[(!b||b.status==="idle")&&d.jsx("button",{className:"ob-next primary",onClick:wo,children:"Sign in to Claude →"}),b&&(b.status==="starting"||b.status==="awaiting-browser")&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"ob-bubble-text",children:"Opening Claude in your browser…"}),d.jsx("p",{className:"ob-bubble-subtle",children:"Sign in there with your Claude account — I'll detect it automatically, nothing to come back and click."}),b.url&&d.jsx("a",{className:"ob-login-link",href:b.url,target:"_blank",rel:"noreferrer",children:"If the browser didn't open, click here →"})]}),b&&b.status==="awaiting-code"&&d.jsxs("div",{className:"ob-login-code",children:[d.jsx("label",{className:"ob-label",children:"Paste the code from your browser"}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("input",{className:"ob-input",value:_,onChange:P=>L(P.target.value),placeholder:"code from claude.ai"}),d.jsx("button",{className:"ob-next primary",onClick:bo,children:"Submit"})]})]}),b&&(b.status==="error"||b.status==="unsupported")&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"ob-error",children:[b.error||"I couldn't run the in-app sign-in."," You can sign in from a terminal instead:"]}),d.jsx("div",{className:"ob-login-cmd",children:d.jsx("code",{children:ke.cmd})}),d.jsx("p",{className:"ob-bubble-subtle",style:{marginTop:10},children:ke.after})]})]}):d.jsxs(d.Fragment,{children:[d.jsx("label",{className:"ob-label",children:ke.cmdLabel}),ke.cmd?d.jsx("div",{className:"ob-login-cmd",children:d.jsx("code",{children:ke.cmd})}):d.jsx("a",{className:"ob-login-link",href:ke.link,target:"_blank",rel:"noreferrer",children:ke.linkLabel}),d.jsx("p",{className:"ob-bubble-subtle",style:{marginTop:10},children:ke.after})]}),S&&d.jsx("div",{className:"ob-error",style:{marginTop:12},children:ke.retry}),d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-next primary",onClick:Gn,disabled:x,children:x?"Checking…":"I've done it — continue →"})}),!bm&&d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-skip",onClick:()=>{y(null),i(2)},children:"I already have a plan — continue"})})]})]}),r===1&&!w&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{streaming:!Ye||!Bt,children:[d.jsxs("p",{className:"ob-bubble-text",children:[Mt,!Ye&&d.jsx(Yn,{})]}),Ye&&d.jsxs("p",{className:"ob-bubble-text",children:[Nn,!Bt&&d.jsx(Yn,{})]})]}),Be&&d.jsxs("div",{className:"ob-card ob-reveal",children:[d.jsx("label",{className:"ob-label",children:"Name"}),d.jsx("input",{autoFocus:!0,className:"ob-input",placeholder:"Echo, Pip, Atlas, Sage…",value:o,onChange:P=>a(P.target.value),onKeyDown:P=>{P.key==="Enter"&&zt()},maxLength:40}),d.jsx("label",{className:"ob-label",children:"Voice"}),d.jsx("div",{className:"ob-tone-grid",children:AE.map(P=>d.jsxs("button",{className:`ob-tone ${s===P.id?"selected":""}`,onClick:()=>u(P.id),children:[d.jsx("span",{className:"ob-tone-label",children:P.label}),d.jsx("span",{className:"ob-tone-sample",children:P.sample})]},P.id))}),d.jsx("label",{className:"ob-label",children:"Color"}),d.jsx("div",{className:"ob-color-row",children:Qf.map(P=>d.jsx("button",{className:`ob-color-swatch ${f===P?"selected":""}`,style:{background:P},onClick:()=>c(P),"aria-label":`Pick ${P}`},P))}),m&&d.jsx("div",{className:"ob-error",children:m}),d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-next primary",onClick:zt,disabled:p||!o.trim(),children:p?"Saving…":`I'm ${K}. Let's go →`})})]})]}),r===2&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"Cool. Now — show me something you're working on. Drag a folder onto me."}),d.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."})]}),d.jsxs("div",{className:`ob-dropzone ${O?"over":""} ${M?"peeking":""}`,onDragOver:P=>{P.preventDefault(),V(!0)},onDragLeave:()=>V(!1),onDrop:async P=>{var ie,pe;P.preventDefault(),V(!1);const Q=(ie=P.dataTransfer)==null?void 0:ie.items;if(Q&&Q.length>0&&Q[0].webkitGetAsEntry){const Ie=[],jn=async(pt,$t="")=>{if(pt.isFile)await new Promise($e=>pt.file(Ut=>{try{Object.defineProperty(Ut,"webkitRelativePath",{value:`${$t}${Ut.name}`})}catch{}Ie.push(Ut),$e()},$e));else if(pt.isDirectory){const $e=pt.createReader();await new Promise(Ut=>$e.readEntries(async Sm=>{for(const Em of Sm)await jn(Em,`${$t}${pt.name}/`);Ut()},Ut))}};for(const pt of Q){const $t=pt.webkitGetAsEntry();$t&&await jn($t)}if(Ie.length>0){await Ir(Ie);return}}await Ir((pe=P.dataTransfer)==null?void 0:pe.files)},onClick:()=>{var P;return(P=k.current)==null?void 0:P.click()},children:[d.jsx("input",{ref:k,type:"file",webkitdirectory:"",directory:"",multiple:!0,style:{display:"none"},onChange:P=>Ir(P.target.files)}),M?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ob-drop-icon",children:"👀"}),d.jsx("div",{className:"ob-drop-title",children:"Looking…"})]}):B?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ob-drop-icon",children:"📁"}),d.jsx("div",{className:"ob-drop-title",children:B.folderName}),d.jsxs("div",{className:"ob-drop-sub",children:[B.totalFiles," file",B.totalFiles===1?"":"s"," · sampled ",B.files.length]})]}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ob-drop-icon",children:"📂"}),d.jsx("div",{className:"ob-drop-title",children:"Drop a folder here"}),d.jsx("div",{className:"ob-drop-sub",children:"or click to pick one"})]})]}),wt&&d.jsxs(rn,{streaming:!wt.done,children:[wt.text?d.jsxs("p",{className:"ob-bubble-text",children:[wt.text,!wt.done&&d.jsx(Yn,{})]}):d.jsxs("p",{className:"ob-bubble-subtle",children:["👀 ",K," is reading…",!wt.done&&d.jsx(Yn,{})]}),wt.error&&d.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:wt.error})]}),W&&d.jsx("div",{className:"ob-error",children:W}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>i(3),children:"Skip — I'd rather just chat"}),d.jsx("button",{className:"ob-next primary",onClick:()=>i(3),disabled:!B&&!W,children:"Next: connect data →"})]})]}),r===3&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"What should I have eyes on?"}),d.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."})]}),d.jsx("div",{className:"ob-tile-grid",children:PE.map(P=>d.jsxs("button",{className:`ob-tile ${C.has(P.id)?"selected":""}`,onClick:()=>Fi(P.id),children:[d.jsx("span",{className:"ob-tile-label",children:P.label}),d.jsx("span",{className:"ob-tile-note",children:P.note}),C.has(P.id)&&d.jsx("span",{className:"ob-tile-check",children:"✓"})]},P.id))}),d.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."}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>i(4),children:"Skip →"}),d.jsx("button",{className:"ob-next primary",onClick:()=>i(4),children:"Next: pair another device →"})]})]}),r===4&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"I don't live on this Mac. I live with you."}),d.jsx("p",{className:"ob-bubble-subtle",children:l?d.jsxs(d.Fragment,{children:["Open ",d.jsx("code",{children:l})," on your phone with the same login and I'll follow."]}):d.jsx(d.Fragment,{children:"Sign in on any device with the same token and I'll show up there — same memory, same conversation."})})]}),d.jsxs("div",{className:"ob-qr-placeholder",children:[d.jsx("div",{className:"ob-qr-box",children:d.jsxs("div",{className:"ob-qr-soon",children:["QR pairing",d.jsx("br",{}),"coming soon"]})}),d.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."})]}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>i(5),children:"Skip →"}),d.jsx("button",{className:"ob-next primary",onClick:()=>i(5),children:"Next: first job →"})]})]}),r===5&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"Right — what should I actually do for you first?"}),d.jsx("p",{className:"ob-bubble-subtle",children:"Pick one and I'll start now. Or close this and just talk to me."})]}),Cn?d.jsxs(d.Fragment,{children:[d.jsxs(rn,{streaming:!T||!T.done,children:[T!=null&&T.text?d.jsxs("p",{className:"ob-bubble-text",children:[T.text,!T.done&&d.jsx(Yn,{})]}):d.jsxs("p",{className:"ob-bubble-subtle",children:[K," is on it…",(!T||!T.done)&&d.jsx(Yn,{})]}),(T==null?void 0:T.error)&&d.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:T.error})]}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>{Ar(null),Pr(null)},children:"← Pick a different job"}),d.jsx("button",{className:"ob-next primary",onClick:q,disabled:!T||!T.done&&!T.error,children:T!=null&&T.done?"Open my workspace →":"Streaming…"})]})]}):d.jsx("div",{className:"ob-jobs",children:en.map(P=>d.jsxs("button",{className:"ob-job",onClick:()=>$(P.kind),children:[d.jsx("div",{className:"ob-job-title",children:P.title}),d.jsx("div",{className:"ob-job-sub",children:P.sub})]},P.kind))}),(m||Ri)&&d.jsx("div",{className:"ob-error",children:m||Ri}),!Cn&&d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-skip",onClick:q,children:"Skip to chat →"})})]}),!w&&d.jsx("p",{className:"ob-consent-note",children:"I quietly share how I'm doing — what's working, what breaks, my setup health — with the Venturewild team so they can help if you ever get stuck. Never your words or files. You can turn this off anytime."})]})})}const $E={partner:"Partner",viewer:"Viewer",client:"Client"};function UE(){var M,U;const[e,t]=I.useState(null),[n,r]=I.useState(null),[i,l]=I.useState(!1),[o,a]=I.useState(!1),[s,u]=I.useState(null),[f,c]=I.useState(!1),[p,h]=I.useState(!1),[m,v]=I.useState(!1),[w,y]=I.useState("build"),[x,g]=I.useState(null),S=I.useMemo(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("t"),[]);if(I.useEffect(()=>{async function B(){try{const F={};S&&(F.Authorization=`Bearer ${S}`);const W=await fetch("/api/session",{headers:F});if(!W.ok)throw new Error(`session fetch failed: ${W.status}`);const Z=await W.json();t(Z)}catch(F){r(F.message||String(F))}}B()},[S]),I.useEffect(()=>{var F;const B=(F=e==null?void 0:e.identity)==null?void 0:F.color;B&&(document.documentElement.style.setProperty("--accent",B),document.documentElement.style.setProperty("--accent-hot",B))},[(M=e==null?void 0:e.identity)==null?void 0:M.color]),n)return d.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:d.jsxs("div",{style:{padding:24},children:[d.jsx("h2",{children:"wild-workspace"}),d.jsxs("p",{style:{color:"var(--error)"},children:["Could not load session: ",n]}),d.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 d.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:d.jsxs("div",{style:{padding:24,color:"var(--text-muted)"},children:[d.jsx("span",{className:"spinner"})," Loading workspace…"]})});if((U=e.capabilities)!=null&&U.chatWrite&&!e.onboarded)return d.jsx(BE,{session:e,token:S,onComplete:async()=>{try{const B={};S&&(B.Authorization=`Bearer ${S}`);const F=await fetch("/api/session",{headers:B});F.ok&&t(await F.json())}catch{t({...e,onboarded:!0})}}});const{role:N,capabilities:b,workspace:j,workspaceId:_,agent:L,identity:C}=e,R=["workspace"];return b.fileTree?p&&R.push("collapsed-tree"):R.push("no-tree"),b.preview||R.push("no-preview"),d.jsxs("div",{className:"app",children:[d.jsxs("header",{className:"topbar","data-testid":"topbar",children:[d.jsx("span",{className:"brand",children:"wild-workspace"}),d.jsx("span",{className:`badge ${N}`,"data-testid":"role-badge",children:$E[N]||N}),d.jsx("span",{className:"badge","data-testid":"workspace-name",children:(j==null?void 0:j.name)||_}),C!=null&&C.name?d.jsx("span",{className:"badge","data-testid":"agent-name",style:{borderColor:C.color,color:C.color},children:C.name}):L&&d.jsx("span",{className:"badge","data-testid":"agent-name",children:L.label||L.id}),d.jsx("span",{className:"spacer"}),b.sync&&d.jsx("button",{onClick:()=>a(!0),"data-testid":"collaborate-btn",children:"Collaborate"}),b.share&&d.jsx("button",{onClick:()=>l(!0),"data-testid":"share-btn",children:"Share"}),b.terminal&&d.jsx("button",{onClick:()=>v(B=>!B),"data-testid":"terminal-toggle",children:m?"Hide terminal":"Terminal"})]}),d.jsxs("main",{className:R.join(" "),children:[b.fileTree&&!p&&d.jsx(wE,{onCollapse:()=>h(!0),workspaceRoot:j==null?void 0:j.path,onOpen:g}),b.fileTree&&p&&d.jsx("aside",{className:"tree-collapsed-rail",children:d.jsx("button",{onClick:()=>h(!1),title:"Show file tree",children:"≡"})}),d.jsxs("section",{className:"chat-pane","data-testid":"chat-pane",children:[d.jsxs("div",{className:"chat-header","data-testid":"chat-header",children:[d.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Chat"}),b.chatWrite&&d.jsxs("span",{className:"chat-mode-toggle","data-testid":"mode-toggle",children:[d.jsx("button",{className:w==="build"?"active":"",onClick:()=>y("build"),"data-testid":"mode-build",children:"Build"}),d.jsx("button",{className:w==="plan"?"active":"",onClick:()=>y("plan"),"data-testid":"mode-plan",children:"Plan"})]}),d.jsx("span",{className:"spacer"}),d.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)"})]}),b.inbox&&d.jsx(IE,{}),d.jsx(mE,{role:N,capabilities:b,mode:w,token:S})]}),b.preview&&d.jsx("section",{className:"preview-pane","data-testid":"preview-pane",children:d.jsx(SE,{focus:x,workspaceRoot:j==null?void 0:j.path})})]}),d.jsx(_E,{role:N,capabilities:b,session:e,urlToken:S,onSyncAlert:u,onOpenConflicts:()=>c(!0)}),d.jsx(NE,{alert:s,onDismiss:()=>u(null)}),f&&d.jsx(jE,{urlToken:S,onClose:()=>c(!1)}),i&&d.jsx(EE,{onClose:()=>l(!1),workspaceId:_}),o&&d.jsx(CE,{onClose:()=>a(!1),token:S}),m&&d.jsxs("div",{className:"terminal-overlay","data-testid":"terminal-overlay",children:[d.jsxs("header",{children:[d.jsx("strong",{children:"Terminal (preview)"}),d.jsx("button",{onClick:()=>v(!1),children:"close"})]}),d.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})}})();fa.createRoot(document.getElementById("root")).render(d.jsx(Bm.StrictMode,{children:d.jsx(UE,{})}));
|
|
89
|
+
`).find(o=>o.trim())||(t?"error":"done");return d.jsxs("details",{className:`tool-result ${t?"err":""}`,open:t,children:[d.jsxs("summary",{children:[t?"✗ ":"",l.slice(0,140)]}),d.jsx("pre",{children:i})]})}function dE({block:e}){const{name:t,input:n={},result:r,done:i,isError:l}=e,o=sE[t]||{icon:"⚙",verb:t},a=uE(t,n),s=i?l?"error":"done":"running";return d.jsxs("div",{className:`tool-card ${s}`,"data-testid":"tool-card","data-tool":t,children:[d.jsxs("div",{className:"tool-head",children:[d.jsx("span",{className:"tool-icon",children:o.icon}),d.jsx("span",{className:"tool-verb",children:o.verb}),a&&d.jsx("code",{className:"tool-target",children:a}),t==="Edit"&&n.replace_all&&d.jsx("span",{className:"tool-tag",children:"all"}),d.jsx("span",{className:"tool-status","data-status":s,children:s==="running"?d.jsx("span",{className:"tool-spinner","aria-label":"running"}):s==="error"?"✗":"✓"})]}),d.jsx(cE,{name:t,input:n}),d.jsx(fE,{content:r,isError:l})]})}const il="wild-workspace.chat.v2";function pE(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 Gf(e,t,n){const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]=pE(i[r],n),i}function hE(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 mE({role:e,capabilities:t,mode:n,token:r}){const[i,l]=I.useState(()=>{try{const j=localStorage.getItem(il);if(j)return JSON.parse(j)}catch{}return[]}),[o,a]=I.useState(null),[s,u]=I.useState(!1),[f,c]=I.useState(""),[p,h]=I.useState(!1),m=I.useRef(null),v=I.useRef(null),w=I.useRef(!0);I.useEffect(()=>{try{localStorage.setItem(il,JSON.stringify(i.slice(-120)))}catch{}},[i]),I.useEffect(()=>{const j=v.current;j&&w.current&&(j.scrollTop=j.scrollHeight)},[i]);function y(){const j=v.current;j&&(w.current=j.scrollHeight-j.scrollTop-j.clientHeight<90)}I.useEffect(()=>{let j=!1,_=0,L=null,C=null;const R=()=>{if(j)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=()=>{_=0,h(!0)},C.onmessage=B=>{let F;try{F=JSON.parse(B.data)}catch{return}if(F.type==="chunk")l(W=>Gf(W,F.messageId,F.chunk));else if(F.type==="stderr")l(W=>hE(W,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(W=>Gf(W,F.messageId,{type:"error",message:F.message||"agent error"})):l(W=>[...W,{id:`err-${Date.now()}`,role:"error",text:F.message||"agent error"}]);else if(F.type==="turn-begin")l(W=>{if(W.some(D=>D.id===F.messageId))return W;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:[]}),[...W,...Z]}),a(F.messageId),u(!0);else if(F.type==="reset"){l([]),a(null),u(!1);try{localStorage.removeItem(il)}catch{}}},C.onerror=()=>u(!1),C.onclose=()=>{if(h(!1),u(!1),a(null),j)return;const B=Math.min(1e3*2**_,1e4);_+=1,L=setTimeout(R,B)}};return R(),()=>{j=!0,clearTimeout(L);try{C==null||C.close()}catch{}}},[r]);function x(){if(!t.chatWrite)return;const j=f.trim();if(!j||s)return;const _=m.current,L=_==null?void 0:_.readyState;if(!_||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:j},{id:C,role:"agent",blocks:[]}]),a(C),u(!0),c("");const R=JSON.stringify({type:"send",text:j,mode:n,messageId:C});L===WebSocket.OPEN?_.send(R):_.addEventListener("open",()=>{try{_.send(R)}catch{}},{once:!0})}function g(){var j;((j=m.current)==null?void 0:j.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"cancel"})),u(!1),a(null)}function S(){var j;((j=m.current)==null?void 0:j.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"reset"})),l([]),a(null),u(!1);try{localStorage.removeItem(il)}catch{}}function N(j){j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),x())}const b=i.length===0;return d.jsxs(d.Fragment,{children:[!b&&t.chatWrite&&d.jsx("div",{className:"chat-toolbar","data-testid":"chat-toolbar",children:d.jsx("button",{className:"chat-newbtn",onClick:S,disabled:s,"data-testid":"new-chat-btn",title:"Start a fresh conversation — the agent forgets the current thread",children:"+ New chat"})}),d.jsxs("div",{className:"chat-messages",ref:v,onScroll:y,"data-testid":"chat-messages",children:[b&&d.jsx(kE,{role:e,connected:p}),i.map(j=>d.jsx(gE,{message:j,streaming:j.id===o},j.id))]}),t.chatWrite&&d.jsxs("div",{className:"chat-input","data-testid":"chat-input",children:[d.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:j=>c(j.target.value),onKeyDown:N,disabled:s,rows:2}),s?d.jsx("button",{onClick:g,"data-testid":"cancel-btn",children:"Stop"}):d.jsx("button",{className:"primary send-btn",onClick:x,disabled:!f.trim(),"data-testid":"send-btn",children:"Send"})]}),!t.chatWrite&&e==="viewer"&&d.jsx("div",{className:"chat-readonly-banner",children:"You’re viewing a shared workspace (read-only)."})]})}function gE({message:e,streaming:t}){if(e.role==="user")return d.jsx("div",{className:"chat-msg user","data-testid":"chat-msg-user",children:d.jsx("div",{className:"msg-plain",children:e.text})});if(e.role==="system")return d.jsx("div",{className:"chat-msg system","data-testid":"chat-msg-system",children:e.text});if(e.role==="error")return d.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 d.jsxs("div",{className:"chat-msg agent","data-testid":"chat-msg-agent",children:[n.map((o,a)=>d.jsx(yE,{block:o,cursor:a===i},o.id||`${o.type}-${a}`)),l&&d.jsx(xE,{}),e.usage&&d.jsx(vE,{usage:e.usage,costUsd:e.costUsd,durationMs:e.durationMs}),e.stderr&&d.jsxs("details",{className:"stderr-block",children:[d.jsx("summary",{children:"stderr"}),d.jsx("pre",{children:e.stderr})]})]})}function yE({block:e,cursor:t}){return e.type==="text"?d.jsxs("div",{className:"agent-text",children:[d.jsx(JS,{text:e.text}),t&&d.jsx("span",{className:"stream-cursor"})]}):e.type==="thinking"?d.jsxs("details",{className:"thinking-block",children:[d.jsx("summary",{children:"💭 Thought process"}),d.jsx("div",{className:"thinking-body",children:e.text})]}):e.type==="tool"?d.jsx(dE,{block:e}):e.type==="error"?d.jsxs("div",{className:"agent-error",children:["⚠ ",e.text]}):null}function xE(){return d.jsxs("div",{className:"agent-working","data-testid":"agent-working",children:[d.jsxs("span",{className:"dots",children:[d.jsx("i",{}),d.jsx("i",{}),d.jsx("i",{})]}),"working"]})}function vE({usage:e,costUsd:t,durationMs:n}){const r=typeof t=="number"?t:e==null?void 0:e.cost_usd;return d.jsxs("div",{className:"usage-footer","data-testid":"usage-footer",children:[(e==null?void 0:e.output_tokens)!=null&&d.jsxs("span",{title:"output tokens",children:["↑ ",e.output_tokens.toLocaleString()]}),typeof r=="number"&&r>0&&d.jsxs("span",{title:"cost (USD)",children:["$",r.toFixed(4)]}),n!=null&&d.jsxs("span",{children:[(n/1e3).toFixed(1),"s"]})]})}function kE({role:e,connected:t}){return d.jsxs("div",{className:"chat-empty","data-testid":"chat-empty",children:[d.jsx("div",{className:"chat-empty-mark",children:"✦"}),d.jsx("p",{className:"chat-empty-title",children:e==="client"?"Describe what you’d like changed":"Build something by chatting"}),d.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"&&d.jsxs("div",{className:"chat-empty-hints",children:[d.jsx("span",{children:"“What’s in this workspace?”"}),d.jsx("span",{children:"“Build a landing page in /web”"}),d.jsx("span",{children:"“Fix the failing test”"})]}),!t&&d.jsx("p",{className:"chat-empty-warn",children:"connecting to the agent bridge…"})]})}function wE({onCollapse:e,workspaceRoot:t,onOpen:n}){const[r,i]=I.useState(null),[l,o]=I.useState(null),[a,s]=I.useState(new Set);I.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(p=>{const h=new Set(p);return h.has(c)?h.delete(c):h.add(c),h})}function f(c,p=0){var v;const h=c.type==="dir",m=a.has(c.path);return d.jsxs("div",{children:[d.jsxs("div",{className:`tree-node ${h?"dir":""}`,onClick:()=>h?u(c.path):n==null?void 0:n(c.path),style:{paddingLeft:p*12+4},"data-testid":`tree-node-${c.path}`,children:[d.jsx("span",{style:{width:12,display:"inline-block"},children:h?m?"▾":"▸":" "}),d.jsx("span",{children:c.name})]}),h&&m&&((v=c.children)==null?void 0:v.map(w=>f(w,p+1)))]},c.path)}return d.jsxs("aside",{className:"tree-pane","data-testid":"file-tree",children:[d.jsxs("div",{className:"tree-header",children:[d.jsx("span",{children:"Files"}),d.jsx("button",{onClick:e,style:{padding:"2px 6px",fontSize:11},children:"⟨"})]}),d.jsxs("div",{className:"tree-list",children:[l&&d.jsx("div",{style:{color:"var(--error)",padding:4},children:l}),!r&&!l&&d.jsxs("div",{style:{color:"var(--text-muted)",padding:4},children:[d.jsx("span",{className:"spinner"})," loading…"]}),(r==null?void 0:r.length)===0&&d.jsx("div",{style:{color:"var(--text-muted)",padding:4},children:"Empty workspace"}),r==null?void 0:r.map(c=>f(c,0))]})]})}const bE=[{id:"preview",label:"Preview"},{id:"code",label:"Code"},{id:"logs",label:"Logs"},{id:"deploy",label:"Deploy"}];function SE({focus:e,workspaceRoot:t}){const[n,r]=I.useState("preview"),[i,l]=I.useState([]),[o,a]=I.useState(null),[s,u]=I.useState("3000"),[f,c]=I.useState(null);return I.useEffect(()=>{e&&(r("code"),fetch(`/api/workspace/file?path=${encodeURIComponent(e)}`).then(p=>p.json()).then(p=>c(p)))},[e]),I.useEffect(()=>{if(n!=="preview")return;let p=!1;async function h(){var y;const v=await fetch("/api/preview/ports").catch(()=>null);if(!v||p)return;const w=await v.json();p||(l(w.ports||[]),!o&&((y=w.ports)==null?void 0:y.length)>0&&a(w.ports[0].port))}h();const m=setInterval(h,4e3);return()=>{p=!0,clearInterval(m)}},[n,o]),d.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[d.jsxs("div",{className:"preview-tabs","data-testid":"preview-tabs",children:[bE.map(p=>d.jsx("button",{className:n===p.id?"active":"",onClick:()=>r(p.id),"data-testid":`preview-tab-${p.id}`,children:p.label},p.id)),d.jsx("span",{style:{flex:1}}),n==="preview"&&d.jsxs("div",{className:"preview-port-input",children:[d.jsx("input",{value:s,onChange:p=>u(p.target.value),placeholder:"port","data-testid":"preview-port-input"}),d.jsx("button",{onClick:()=>a(Number(s)),"data-testid":"preview-port-go",children:"Load"})]})]}),d.jsxs("div",{className:"preview-body",children:[n==="preview"&&(o?d.jsx("iframe",{className:"preview-iframe",src:`http://localhost:${o}`,title:`localhost:${o}`,"data-testid":"preview-iframe"},o):d.jsxs("div",{className:"preview-empty","data-testid":"preview-empty",children:[d.jsxs("p",{style:{maxWidth:320,lineHeight:1.6},children:["No dev server detected yet. Ask the agent to start one (e.g. ",d.jsx("code",{children:"bun dev"}),", ",d.jsx("code",{children:"npm run dev"}),"), then I’ll auto-detect it."]}),i.length>0&&d.jsxs("p",{style:{fontSize:12},children:["Detected: ",i.map(p=>`:${p.port}`).join(", ")]})]})),n==="code"&&d.jsx("div",{className:"preview-code-view","data-testid":"preview-code",children:f?d.jsxs(d.Fragment,{children:[d.jsxs("div",{style:{color:"var(--text-muted)",fontSize:11,marginBottom:8},children:[e," (",f.size," bytes",f.truncated?", truncated":"",")"]}),d.jsx("pre",{children:f.content})]}):d.jsx("div",{className:"preview-empty",children:"Click a file in the tree to inspect it."})}),n==="logs"&&d.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"&&d.jsxs("div",{className:"preview-empty","data-testid":"preview-deploy",children:["Deploy — Cloudflare Pages + custom-domain wizard ships in v1.1.",d.jsx("br",{}),"For now: run ",d.jsx("code",{children:"npx wrangler pages deploy"})," in the terminal."]})]})]})}function EE({onClose:e}){const[t,n]=I.useState("viewer"),[r,i]=I.useState(24),[l,o]=I.useState(""),[a,s]=I.useState(null),[u,f]=I.useState([]),[c,p]=I.useState(null),[h,m]=I.useState(!1);I.useEffect(()=>{v()},[]);async function v(){const g=await fetch("/api/share").catch(()=>null);if(!g||!g.ok)return;const S=await g.json();f(S.tokens||[])}async function w(){p(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})}),S=await g.json();if(!g.ok)throw new Error(S.error||`HTTP ${g.status}`);s(S),v()}catch(g){p(g.message||String(g))}finally{m(!1)}}async function y(g){await fetch(`/api/share/${encodeURIComponent(g)}`,{method:"DELETE"}),v()}async function x(g){try{await navigator.clipboard.writeText(g)}catch{}}return d.jsx("div",{className:"modal-backdrop",onClick:e,children:d.jsxs("div",{className:"modal",onClick:g=>g.stopPropagation(),"data-testid":"share-dialog",children:[d.jsx("h2",{children:"Share workspace"}),d.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."}),d.jsx("label",{children:"Role"}),d.jsx("div",{className:"row",children:d.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[d.jsx("input",{type:"radio",name:"role",value:"viewer",checked:t==="viewer",onChange:()=>n("viewer"),"data-testid":"share-role-viewer"}),d.jsx("span",{children:"Viewer — read-only chat + preview"})]})}),d.jsx("div",{className:"row",children:d.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[d.jsx("input",{type:"radio",name:"role",value:"client",checked:t==="client",onChange:()=>n("client"),"data-testid":"share-role-client"}),d.jsx("span",{children:"Client — chat + request changes (for AI-installer GTM)"})]})}),d.jsxs("div",{className:"row",children:[d.jsxs("div",{children:[d.jsx("label",{children:"Expires in"}),d.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"}),d.jsx("span",{style:{marginLeft:6,color:"var(--text-muted)",fontSize:12},children:"hours"})]}),d.jsxs("div",{style:{flex:1},children:[d.jsx("label",{children:"Label (optional)"}),d.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&&d.jsx("div",{style:{color:"var(--error)",fontSize:12,marginBottom:8},"data-testid":"share-error",children:c}),a&&d.jsxs(d.Fragment,{children:[d.jsx("label",{children:"Share URL"}),d.jsx("div",{className:"url-output","data-testid":"share-url",children:a.shareUrl}),d.jsxs("div",{style:{display:"flex",gap:8},children:[d.jsx("button",{onClick:()=>x(a.shareUrl),"data-testid":"share-copy",children:"Copy"}),d.jsx("a",{href:a.shareUrl,target:"_blank",rel:"noreferrer",children:d.jsx("button",{children:"Open"})})]})]}),u.length>0&&d.jsxs("div",{style:{marginTop:16},children:[d.jsx("label",{children:"Active share tokens"}),d.jsx("div",{style:{maxHeight:140,overflow:"auto",border:"1px solid var(--border)",borderRadius:6},children:u.map(g=>d.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:[d.jsxs("div",{children:[d.jsx("strong",{children:g.label||g.role})," ",d.jsxs("span",{style:{color:"var(--text-muted)"},children:["(",g.role,", expires ",new Date(g.exp*1e3).toLocaleString(),")"]})]}),d.jsx("button",{onClick:()=>y(g.sub),style:{fontSize:11},"data-testid":`revoke-${g.sub}`,children:"Revoke"})]},g.sub))})]}),d.jsxs("div",{className:"actions",children:[d.jsx("button",{onClick:e,"data-testid":"share-close",children:"Close"}),d.jsx("button",{className:"primary",onClick:w,disabled:h,"data-testid":"share-issue",children:h?d.jsx("span",{className:"spinner"}):"Issue URL"})]})]})})}function CE({onClose:e,token:t}){var R,M;const[n,r]=I.useState(null),[i,l]=I.useState(!1),[o,a]=I.useState(null),[s,u]=I.useState(!1),[f,c]=I.useState(""),[p,h]=I.useState(""),[m,v]=I.useState(168),[w,y]=I.useState(null);I.useEffect(()=>{g()},[]);function x(U,B={}){const F={...B.headers||{}};return t&&(F.Authorization=`Bearer ${t}`),fetch(U,{...B,headers:F})}async function g(){a(null),l(!1);const U=await x("/api/sync/status").catch(()=>null);if(!U||!U.ok){l(!0);return}r(await U.json())}async function S(U){a(null),u(!0);try{await U()}catch(B){a(B.message||String(B))}finally{u(!1)}}const N=()=>S(async()=>{const U=await x("/api/sync/pair",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({inviteCode:f})}),B=await U.json();if(!U.ok)throw new Error(B.error||`HTTP ${U.status}`);c(""),await g()}),b=()=>S(async()=>{var F,W;const U=await x("/api/sync/invite",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectCode:(W=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:W.projectId,displayName:p,expiresHours:Math.max(1,Number(m)||168)})}),B=await U.json();if(!U.ok)throw new Error(B.error||`HTTP ${U.status}`);y(B.invite)}),j=()=>S(async()=>{var F,W;const U=await x("/api/sync/detach",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({workspaceId:(W=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:W.workspaceId})}),B=await U.json();if(!U.ok)throw new Error(B.error||`HTTP ${U.status}`);y(null),await g()});async function _(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 d.jsx("div",{className:"modal-backdrop",onClick:e,children:d.jsxs("div",{className:"modal",onClick:U=>U.stopPropagation(),"data-testid":"sync-dialog",children:[d.jsx("h2",{children:"Collaborate on this folder"}),d.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&&d.jsxs("div",{className:"muted",children:[d.jsx("span",{className:"spinner"})," Checking sync status…"]}),i&&d.jsxs("div",{className:"sync-state warn","data-testid":"sync-load-failed",children:[d.jsx("strong",{children:"Couldn't load sync status."}),d.jsx("span",{className:"muted",children:"The workspace server didn't answer. Try again."})]}),C&&d.jsxs("div",{className:"sync-state warn","data-testid":"sync-daemon-down",children:[d.jsx("strong",{children:"The bmo-sync daemon isn't running."}),d.jsx("span",{className:"muted",children:"Folder sharing needs the background sync service running on this machine. Start it, then recheck."})]}),n&&!C&&!L&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sync-state","data-testid":"sync-unpaired",children:[d.jsxs("strong",{children:[n.workspaceName," isn't shared yet."]}),d.jsx("span",{className:"muted",children:"Got an invite code from a collaborator? Paste it to sync this folder with theirs."})]}),d.jsx("label",{children:"Invite code"}),d.jsxs("div",{className:"row",children:[d.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"}),d.jsx("button",{className:"primary",onClick:N,disabled:s||!f.trim(),"data-testid":"sync-join",children:s?d.jsx("span",{className:"spinner"}):"Connect folder"})]})]}),n&&!C&&L&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sync-state ok","data-testid":"sync-paired",children:[d.jsxs("strong",{children:["✓ Synced — ",L.projectName||L.projectId]}),d.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?d.jsxs(d.Fragment,{children:[d.jsx("label",{children:"Invite a collaborator"}),d.jsxs("div",{className:"row",children:[d.jsx("input",{className:"sync-input",style:{flex:1},value:p,onChange:U=>h(U.target.value),placeholder:"Their name — e.g. Mel","data-testid":"sync-invite-name"}),d.jsx("input",{className:"sync-input",style:{width:64},type:"number",min:"1",value:m,onChange:U=>v(U.target.value),title:"Invite expires in (hours)"}),d.jsx("button",{onClick:b,disabled:s,"data-testid":"sync-create-invite",children:s?d.jsx("span",{className:"spinner"}):"Create invite"})]}),w&&d.jsxs(d.Fragment,{children:[d.jsx("label",{children:"Send this code to your collaborator"}),d.jsx("div",{className:"url-output","data-testid":"sync-invite-code",children:w.code}),d.jsxs("div",{className:"row",style:{marginBottom:0},children:[d.jsx("button",{onClick:()=>_(w.code),"data-testid":"sync-copy-code",children:"Copy code"}),w.expiresAt&&d.jsxs("span",{className:"muted",style:{margin:0},children:["expires ",new Date(w.expiresAt*1e3).toLocaleDateString()]})]})]})]}):d.jsxs("p",{className:"muted","data-testid":"sync-no-invite",children:["Inviting from here needs a bmo-sync admin key (set"," ",d.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&&d.jsx("div",{style:{color:"var(--error)",fontSize:12,marginTop:8},"data-testid":"sync-error",children:o}),d.jsxs("div",{className:"actions",children:[(C||i)&&d.jsx("button",{onClick:g,disabled:s,"data-testid":"sync-recheck",children:"Recheck"}),L&&!C&&d.jsx("button",{onClick:j,disabled:s,"data-testid":"sync-disconnect",children:"Disconnect"}),d.jsx("button",{onClick:e,"data-testid":"sync-close",children:"Close"})]})]})})}function NE({alert:e,onDismiss:t}){if(!e)return null;const n=e.kind==="fatal";return d.jsxs("div",{className:"conflict-banner","data-testid":"conflict-banner",role:"status",children:[d.jsx("span",{className:"ico",children:n?"⛔":"⚠️"}),n?d.jsxs("span",{children:[d.jsx("strong",{children:"Sync stopped."})," ",e.message||"The sync engine hit a fatal error."," Reconnect from the Collaborate dialog."]}):d.jsxs("span",{children:[d.jsx("strong",{children:"Sync conflict"})," on ",d.jsx("code",{children:e.path||"a file"})," — bmo-sync kept ",d.jsx("strong",{children:e.resolution||"the latest edit"}),e.user?` (also edited by ${e.user})`:"","."]}),d.jsx("span",{className:"spacer"}),d.jsx("button",{onClick:t,"data-testid":"conflict-dismiss",children:"Dismiss"})]})}function jE({urlToken:e,onClose:t}){const[n,r]=I.useState([]),[i,l]=I.useState(!0),[o,a]=I.useState(null),[s,u]=I.useState(null),[f,c]=I.useState({}),[p,h]=I.useState(null),m=e?{Authorization:`Bearer ${e}`}:{};function v(){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))}I.useEffect(v,[]);function w(g){return`${g.workspaceId}:${g.path}`}async function y(g){const S=w(g);if(f[S])return;const N=new URL("/api/conflicts/view",window.location.origin);N.searchParams.set("workspaceId",g.workspaceId),N.searchParams.set("path",g.path);const b=await fetch(N.toString(),{headers:m});if(!b.ok){a(`Could not load ${g.path} (HTTP ${b.status})`);return}const j=await b.json().catch(()=>null);j&&c(_=>({..._,[S]:{mine:qf(j.mine),theirs:qf(j.theirs),conflict:j.conflict}}))}async function x(g,S){const N=w(g);h(N);try{const b=await fetch("/api/conflicts/resolve",{method:"POST",headers:{"content-type":"application/json",...m},body:JSON.stringify({workspaceId:g.workspaceId,path:g.path,action:S})});if(!b.ok){const j=await b.json().catch(()=>({}));a((j==null?void 0:j.error)||`Resolve failed (HTTP ${b.status}).`);return}v(),u(null)}finally{h(null)}}return d.jsxs("div",{className:"conflict-panel","data-testid":"conflict-panel",role:"dialog","aria-label":"Open conflicts",children:[d.jsxs("header",{className:"conflict-panel-header",children:[d.jsx("strong",{children:"Open conflicts"})," ",d.jsxs("span",{className:"muted",children:["(",n.length,") · changes saved to the daemon back-office until you resolve"]}),d.jsx("span",{className:"spacer"}),d.jsx("button",{onClick:v,children:"Refresh"}),d.jsx("button",{onClick:t,children:"Close"})]}),i&&d.jsx("div",{className:"muted",children:"Loading…"}),o&&d.jsx("div",{className:"conflict-panel-error",children:o}),!i&&n.length===0&&d.jsx("div",{className:"muted",children:"No open conflicts."}),d.jsx("ul",{className:"conflict-list",children:n.map(g=>{const S=w(g),N=s===S,b=f[S];return d.jsxs("li",{className:"conflict-row",children:[d.jsxs("div",{className:"conflict-row-head",onClick:()=>{N?u(null):(u(S),g.resolution!=="remote_announced"&&y(g))},children:[d.jsx("code",{children:g.path}),d.jsxs("span",{className:"muted",children:["·"," ",g.resolution==="remote_announced"?`${g.conflictingUser||"peer"} flagged`:g.conflictingUser||"peer"," ","·"," ",new Date((g.detectedAt||0)*1e3).toLocaleTimeString()]}),d.jsx("span",{className:"spacer"}),d.jsx("span",{className:"muted",children:N?"▲":"▼"})]}),N&&g.resolution==="remote_announced"&&d.jsxs("div",{className:"conflict-row-body",children:[d.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."]}),d.jsx("div",{className:"conflict-actions",children:d.jsx("button",{disabled:p===S,onClick:()=>x(g,"keep_mine"),"data-testid":"conflict-acknowledge",children:"Acknowledge"})})]}),N&&g.resolution!=="remote_announced"&&d.jsxs("div",{className:"conflict-row-body",children:[!b&&d.jsx("div",{className:"muted",children:"Loading diff…"}),b&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"conflict-meta",children:[d.jsxs("span",{children:["mine: ",d.jsx("code",{children:ca(g.mineSha256)})]}),d.jsxs("span",{children:["theirs: ",d.jsx("code",{children:ca(g.theirsSha256)})]}),g.baseSha256&&d.jsxs("span",{children:["base: ",d.jsx("code",{children:ca(g.baseSha256)})]})]}),d.jsx(TE,{mine:b.mine,theirs:b.theirs}),d.jsxs("div",{className:"conflict-actions",children:[d.jsx("button",{disabled:p===S,onClick:()=>x(g,"keep_mine"),"data-testid":"conflict-keep-mine",children:"Keep mine"}),d.jsx("button",{disabled:p===S,onClick:()=>x(g,"take_theirs"),"data-testid":"conflict-take-theirs",children:"Take theirs"})]})]})]})]},S)})})]})}function qf(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 ca(e){return typeof e!="string"?"∅":e.length>12?`${e.slice(0,12)}…`:e}function TE({mine:e,theirs:t}){return e==null&&t==null?d.jsx("div",{className:"muted",children:"Both versions unavailable on disk."}):e==null||t==null?d.jsx("div",{className:"muted",children:"Only one side is available — the other was deleted before resolution."}):d.jsx(vl,{oldText:t,newText:e})}function _E({role:e,urlToken:t,onSyncAlert:n,onOpenConflicts:r}){const[i,l]=I.useState([]),[o,a]=I.useState({tokensIn:0,tokensOut:0,costUsd:0}),[s,u]=I.useState([]),[f,c]=I.useState(!1),[p,h]=I.useState(null),[m,v]=I.useState(0);I.useEffect(()=>{if(e!=="partner")return;const S=t?{Authorization:`Bearer ${t}`}:{};fetch("/api/sync/status",{headers:S}).then(N=>N.ok?N.json():null).then(N=>{var b;N&&h({paired:!!N.paired,daemonRunning:!!((b=N.daemon)!=null&&b.running),peer:null})}).catch(()=>{}),fetch("/api/conflicts",{headers:S}).then(N=>N.ok?N.json():{conflicts:[]}).then(N=>v(Array.isArray(N==null?void 0:N.conflicts)?N.conflicts.length:0)).catch(()=>{})},[e,t]),I.useEffect(()=>{const S=window.location.protocol==="https:"?"wss":"ws",N=new URL(`${S}://${window.location.host}/ws/activity`);t&&N.searchParams.set("t",t);const b=new WebSocket(N.toString());return b.onopen=()=>c(!0),b.onclose=()=>c(!1),b.onmessage=j=>{let _;try{_=JSON.parse(j.data)}catch{return}_.type==="snapshot"?(l(_.snapshot.presence||[]),a(_.snapshot.usage||{tokensIn:0,tokensOut:0,costUsd:0}),u(_.snapshot.recent||[])):(u(L=>[...L.slice(-49),_]),w(_))},()=>{try{b.close()}catch{}}},[t]);function w(S){S.type==="daemon-status"?h(N=>({...N||{paired:!1},daemonRunning:!!S.connected})):S.type==="sync-paired"?h(N=>({...N||{},paired:!0,daemonRunning:!0})):S.type==="sync-detached"?h(N=>({...N||{},paired:!1,peer:null})):S.type==="remote-presence"?h(N=>({...N||{paired:!0},peer:S.user||null})):S.type==="sync-conflict"?(n==null||n({kind:"conflict",path:S.path,resolution:S.resolution,user:S.conflictingUser}),(S.resolution==="local_pre_write_guard"||S.resolution==="remote_announced")&&v(N=>N+1)):S.type==="sync-conflict-resolved"?v(N=>Math.max(0,N-1)):S.type==="sync-fatal"&&(n==null||n({kind:"fatal",message:S.message}))}const y=[...s].reverse().find(S=>S.type==="chat-stream"||S.type==="chat-user"||S.type==="chat-end"),x=s.find(S=>S.type==="inbox-change");let g=null;return p!=null&&p.paired&&(g=p.daemonRunning?d.jsxs("span",{className:"pill synced","data-testid":"activity-sync",children:["⇄ Synced",p.peer?` · with ${p.peer}`:""]}):d.jsx("span",{className:"pill sync-off","data-testid":"activity-sync",children:"⇄ Sync paused"})),d.jsxs("footer",{className:"bottombar","data-testid":"activity-bar",children:[d.jsx("span",{className:`pill ${f?"live":""}`,"data-testid":"activity-connected",children:f?"live":"reconnecting…"}),d.jsxs("span",{className:"pill","data-testid":"activity-presence",children:["👥 ",i.length," viewing"]}),g,e==="partner"&&m>0&&d.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"]}),d.jsxs("span",{className:"pill","data-testid":"activity-usage",children:["↓",o.tokensIn," ↑",o.tokensOut," · $",(o.costUsd||0).toFixed(3)]}),y&&d.jsx("span",{className:"pill",style:{maxWidth:380,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"activity-last",children:y.type==="chat-end"?"✓ agent finished":"… agent streaming"}),x&&d.jsx("span",{className:"pill","data-testid":"activity-inbox",children:"📦 inbox updated"}),d.jsx("span",{style:{flex:1}}),d.jsxs("span",{style:{fontSize:11},children:["v0.1.0 · ",e]})]})}function IE(){var r;const[e,t]=I.useState(null);if(I.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:d.jsxs("div",{className:"inbox-card","data-testid":"inbox-card",children:["📦 ",d.jsx("strong",{children:"Component inbox"}),": ",n.length," pending integration",n.length!==1?"s":"",": ",n.join(", "),".",d.jsxs("span",{className:"muted",children:["Ask the agent: ",d.jsxs("em",{children:["“walk me through integrating ",n[0],"”"]})]})]})}const AE=[{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."}],Qf=["#22d3ee","#a78bfa","#f472b6","#facc15","#34d399","#fb7185"],PE=[{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"}],LE=new Set(["login","missing","subscribe"]),FE=new Set(["login","missing"]),Yf={missing:{title:"Almost there — I need Claude installed before I can think.",subtitle:"That's the brain I run on. Install it once, then come back here.",cmdLabel:"Run this in your terminal",cmd:"curl -fsSL https://claude.ai/install.sh | bash",after:"Then come back and press the button below.",retry:"Still don't see Claude on this machine. Make sure the install finished, then try again."},login:{title:"One quick thing before we dig in — sign me in to Claude.",subtitle:"It's a one-time sign-in to your own Claude account — it runs on your machine, on your plan. After this you won't be asked again.",cmdLabel:"Run this once in your terminal",cmd:"claude auth login",after:"A browser window opens — sign in with your Claude account, then come back and press the button.",retry:"Hmm — still not signed in. Finish the sign-in in your browser, then press it again."},subscribe:{title:"You're in — I just need an active Claude plan to start thinking.",subtitle:"Claude Code runs on a Claude Pro plan (or higher). Grab one on your own account, then come back — you won’t be asked again.",cmdLabel:"Get a plan, then come back",link:"https://claude.ai/upgrade",linkLabel:"Open claude.ai →",after:"Subscribe at claude.ai, then come back and press the button.",retry:"Still no active plan showing. Give it a moment after subscribing, then try again."}},RE=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 OE(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}function DE(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 zE(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=OE(a.name);if(!RE.has(u)){l.push({path:s,head:""});continue}if(a.size>100*1024){l.push({path:s,head:""});continue}try{const p=await a.slice(0,i).text();l.push({path:s,head:p})}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 ME({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 Kf(e,t=55,n=380){const[r,i]=I.useState(""),[l,o]=I.useState(!1),[a,s]=I.useState(!1);return I.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 rn({children:e,from:t="agent",accent:n,streaming:r=!1}){return d.jsx("div",{className:`ob-bubble ob-bubble-${t}${r?" ob-bubble-streaming":""}`,style:t==="user"?{borderColor:n}:void 0,children:e})}function Yn(){return d.jsx("span",{className:"ob-caret","aria-hidden":"true",children:"▍"})}function Xf(e){const t=Math.random().toString(36).slice(2,8);return`${e}-${Date.now().toString(36)}-${t}`}function BE({session:e,token:t,onComplete:n}){var Pu,Lu,Fu,Ru;const[r,i]=I.useState(1),l=I.useMemo(()=>DE(e==null?void 0:e.shareBaseUrl),[e==null?void 0:e.shareBaseUrl]),[o,a]=I.useState(((Pu=e==null?void 0:e.identity)==null?void 0:Pu.name)||""),[s,u]=I.useState(((Lu=e==null?void 0:e.identity)==null?void 0:Lu.tone)||"concise"),[f,c]=I.useState(((Fu=e==null?void 0:e.identity)==null?void 0:Fu.color)||Qf[0]),[p,h]=I.useState(!1),[m,v]=I.useState(null),[w,y]=I.useState(null),[x,g]=I.useState(!1),[S,N]=I.useState(!1),[b,j]=I.useState(null),[_,L]=I.useState(""),[C,R]=I.useState(new Set(((Ru=e==null?void 0:e.identity)==null?void 0:Ru.connectedServices)||[])),[M,U]=I.useState(!1),[B,F]=I.useState(null),[W,Z]=I.useState(null),[D,V]=I.useState(!1),k=I.useRef(null),Y=I.useRef(null),te=I.useRef({}),[E,se]=I.useState({}),_e=I.useCallback((P,Q,ie)=>{P&&se(pe=>{const Ie=pe[P]||{text:"",done:!1,error:null},jn=Q==="text"?Ie.text+(ie||""):Ie.text,pt={...pe,[P]:{...Ie,text:jn}};return te.current[P]=jn,pt})},[]),re=I.useCallback((P,Q)=>{P&&se(ie=>{const pe=ie[P]||{text:"",done:!1,error:null};return{...ie,[P]:{...pe,done:!0,error:Q||pe.error}}})},[]);I.useEffect(()=>{let P=!1,Q=0,ie=null,pe=null;const Ie=()=>{if(P)return;const jn=window.location.protocol==="https:"?"wss":"ws",pt=new URL(`${jn}://${window.location.host}/ws/chat`);t&&pt.searchParams.set("t",t),pe=new WebSocket(pt.toString()),Y.current=pe,pe.onmessage=$t=>{var Ut;let $e;try{$e=JSON.parse($t.data)}catch{return}$e.type==="chunk"&&((Ut=$e.chunk)==null?void 0:Ut.type)==="text"?_e($e.messageId,"text",$e.chunk.text):$e.type==="end"?re($e.messageId,null):$e.type==="error"&&re($e.messageId,$e.message||"agent error")},pe.onopen=()=>{Q=0},pe.onclose=()=>{if(Y.current=null,P)return;const $t=Math.min(1e3*2**Q,8e3);Q+=1,ie=setTimeout(Ie,$t)},pe.onerror=()=>{}};return Ie(),()=>{P=!0,clearTimeout(ie);try{pe==null||pe.close()}catch{}}},[t,_e,re]),I.useEffect(()=>{document.documentElement.style.setProperty("--accent",f),document.documentElement.style.setProperty("--accent-hot",f)},[f]);const ce=I.useMemo(()=>{const P={"content-type":"application/json"};return t&&(P.Authorization=`Bearer ${t}`),P},[t]);async function qe(P){const Q=await fetch("/api/agent/identity",{method:"POST",headers:ce,body:JSON.stringify({name:o,tone:s,color:f,...P})});if(!Q.ok){const ie=await Q.json().catch(()=>({}));throw new Error(ie.error||`save failed (${Q.status})`)}return Q.json()}const Qe=I.useCallback(async(P=!1)=>{g(!0);try{const Q=await fetch(`/api/agent/readiness${P?"?fresh=1":""}`,{headers:ce});return Q.ok?await Q.json():{status:"unknown"}}catch{return{status:"unknown"}}finally{g(!1)}},[ce]);async function zt(){if(v(null),!o.trim()){v("Pick a name — even just one syllable.");return}h(!0);try{await qe({});const P=await Qe(!1);if(LE.has(P.status)){y(P);return}i(2)}catch(P){v(String(P.message||P))}finally{h(!1)}}async function Gn(){const P=await Qe(!0);if(N(!0),P.status==="login"||P.status==="missing"){y(P);return}y(null),i(2)}async function Pi(){const P=await Qe(!0);if(P.status==="ready"||P.status==="unknown"){j(null),y(null),i(2);return}j(null),y(P)}async function wo(){N(!1),j({status:"starting",url:null,error:null});try{const Q=await(await fetch("/api/agent/login/start",{method:"POST",headers:ce})).json();j(Q),Q.status==="success"&&Pi()}catch{j({status:"error",url:null,error:"Could not start sign-in."})}}async function bo(){const P=_.trim();if(P){L("");try{const Q=await fetch("/api/agent/login/code",{method:"POST",headers:{...ce,"content-type":"application/json"},body:JSON.stringify({code:P})});j(await Q.json())}catch{}}}I.useEffect(()=>{if(!(b&&["starting","awaiting-browser","awaiting-code"].includes(b.status)))return;let Q=!0;const ie=setInterval(async()=>{try{const Ie=await(await fetch("/api/agent/login/status",{headers:ce})).json();if(!Q)return;j(Ie),Ie.status==="success"&&(clearInterval(ie),Pi())}catch{}},2e3);return()=>{Q=!1,clearInterval(ie)}},[b==null?void 0:b.status,ce]);const[_r,Li]=I.useState(null),wt=_r?E[_r]:null;async function Ir(P){if(Z(null),!(!P||P.length===0)){U(!0);try{const Q=await zE(P);if(Q.files.length===0){Z("That folder looks empty — try another?"),U(!1);return}F(Q);const ie=Xf("peek");Li(ie),se(Ie=>({...Ie,[ie]:{text:"",done:!1,error:null}}));const pe=await fetch("/api/onboarding/peek",{method:"POST",headers:ce,body:JSON.stringify({folderName:Q.folderName,files:Q.files,totalFiles:Q.totalFiles,messageId:ie})});if(!pe.ok){const Ie=await pe.json().catch(()=>({}));throw new Error(Ie.error||`peek failed (${pe.status})`)}}catch(Q){Z(String(Q.message||Q))}finally{U(!1)}}}function Fi(P){R(Q=>{const ie=new Set(Q);return ie.has(P)?ie.delete(P):ie.add(P),ie})}const[Cn,Ar]=I.useState(null),[Au,Pr]=I.useState(null),[Ri,Oi]=I.useState(null),T=Cn?E[Cn]:null;async function $(P){Oi(null),Pr(P);const Q=Xf("job");Ar(Q),se(ie=>({...ie,[Q]:{text:"",done:!1,error:null}}));try{await qe({connectedServices:[...C]});const ie=await fetch("/api/onboarding/start-job",{method:"POST",headers:ce,body:JSON.stringify({kind:P,messageId:Q,peekFolderName:(B==null?void 0:B.folderName)||null})});if(!ie.ok){const pe=await ie.json().catch(()=>({}));throw new Error(pe.error||`start-job failed (${ie.status})`)}}catch(ie){Oi(String(ie.message||ie)),Ar(null),Pr(null)}}async function q(){try{await qe({connectedServices:[...C]});const P=await fetch("/api/agent/onboarded",{method:"POST",headers:ce});if(!P.ok){const Q=await P.json().catch(()=>({}));throw new Error(Q.error||`mark-onboarded failed (${P.status})`)}n==null||n()}catch(P){v(String(P.message||P))}}const K=o.trim()||"your agent",oe="Hey. I'm new here.",rt="Before we start — what should I call myself?",[Mt,Ye]=Kf(r===1?oe:"",65,420),[Nn,Bt]=Kf(r===1&&Ye?rt:"",48,520),Be=r===1?Bt:!0,en=I.useMemo(()=>ME({peekSummary:B,services:C,agentName:K}),[B,C,K]),ke=w?Yf[w.status]||Yf.login:null,bm=w?FE.has(w.status):!1;return d.jsx("div",{className:"ob-root",children:d.jsxs("div",{className:"ob-stage",children:[d.jsxs("header",{className:"ob-header",children:[d.jsx("div",{className:"ob-step-dots","aria-label":`Step ${r} of 5`,children:[1,2,3,4,5].map(P=>d.jsx("span",{className:`ob-dot ${P===r?"active":""} ${P<r?"done":""}`},P))}),r>1&&!w&&d.jsx("button",{className:"ob-back",onClick:()=>i(r-1),children:"← Back"})]}),w&&ke&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:ke.title}),d.jsx("p",{className:"ob-bubble-subtle",children:ke.subtitle})]}),d.jsxs("div",{className:"ob-card ob-reveal",children:[w.status==="login"?d.jsxs("div",{className:"ob-login-inapp",children:[(!b||b.status==="idle")&&d.jsx("button",{className:"ob-next primary",onClick:wo,children:"Sign in to Claude →"}),b&&(b.status==="starting"||b.status==="awaiting-browser")&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"ob-bubble-text",children:"Opening Claude in your browser…"}),d.jsx("p",{className:"ob-bubble-subtle",children:"Sign in there with your Claude account — I'll detect it automatically, nothing to come back and click."}),b.url&&d.jsx("a",{className:"ob-login-link",href:b.url,target:"_blank",rel:"noreferrer",children:"If the browser didn't open, click here →"})]}),b&&b.status==="awaiting-code"&&d.jsxs("div",{className:"ob-login-code",children:[d.jsx("label",{className:"ob-label",children:"Paste the code from your browser"}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("input",{className:"ob-input",value:_,onChange:P=>L(P.target.value),placeholder:"code from claude.ai"}),d.jsx("button",{className:"ob-next primary",onClick:bo,children:"Submit"})]})]}),b&&(b.status==="error"||b.status==="unsupported")&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"ob-error",children:[b.error||"I couldn't run the in-app sign-in."," You can sign in from a terminal instead:"]}),d.jsx("div",{className:"ob-login-cmd",children:d.jsx("code",{children:ke.cmd})}),d.jsx("p",{className:"ob-bubble-subtle",style:{marginTop:10},children:ke.after})]})]}):d.jsxs(d.Fragment,{children:[d.jsx("label",{className:"ob-label",children:ke.cmdLabel}),ke.cmd?d.jsx("div",{className:"ob-login-cmd",children:d.jsx("code",{children:ke.cmd})}):d.jsx("a",{className:"ob-login-link",href:ke.link,target:"_blank",rel:"noreferrer",children:ke.linkLabel}),d.jsx("p",{className:"ob-bubble-subtle",style:{marginTop:10},children:ke.after})]}),S&&d.jsx("div",{className:"ob-error",style:{marginTop:12},children:ke.retry}),d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-next primary",onClick:Gn,disabled:x,children:x?"Checking…":"I've done it — continue →"})}),!bm&&d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-skip",onClick:()=>{y(null),i(2)},children:"I already have a plan — continue"})})]})]}),r===1&&!w&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{streaming:!Ye||!Bt,children:[d.jsxs("p",{className:"ob-bubble-text",children:[Mt,!Ye&&d.jsx(Yn,{})]}),Ye&&d.jsxs("p",{className:"ob-bubble-text",children:[Nn,!Bt&&d.jsx(Yn,{})]})]}),Be&&d.jsxs("div",{className:"ob-card ob-reveal",children:[d.jsx("label",{className:"ob-label",children:"Name"}),d.jsx("input",{autoFocus:!0,className:"ob-input",placeholder:"Echo, Pip, Atlas, Sage…",value:o,onChange:P=>a(P.target.value),onKeyDown:P=>{P.key==="Enter"&&zt()},maxLength:40}),d.jsx("label",{className:"ob-label",children:"Voice"}),d.jsx("div",{className:"ob-tone-grid",children:AE.map(P=>d.jsxs("button",{className:`ob-tone ${s===P.id?"selected":""}`,onClick:()=>u(P.id),children:[d.jsx("span",{className:"ob-tone-label",children:P.label}),d.jsx("span",{className:"ob-tone-sample",children:P.sample})]},P.id))}),d.jsx("label",{className:"ob-label",children:"Color"}),d.jsx("div",{className:"ob-color-row",children:Qf.map(P=>d.jsx("button",{className:`ob-color-swatch ${f===P?"selected":""}`,style:{background:P},onClick:()=>c(P),"aria-label":`Pick ${P}`},P))}),m&&d.jsx("div",{className:"ob-error",children:m}),d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-next primary",onClick:zt,disabled:p||!o.trim(),children:p?"Saving…":`I'm ${K}. Let's go →`})})]})]}),r===2&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"Cool. Now — show me something you're working on. Drag a folder onto me."}),d.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."})]}),d.jsxs("div",{className:`ob-dropzone ${D?"over":""} ${M?"peeking":""}`,onDragOver:P=>{P.preventDefault(),V(!0)},onDragLeave:()=>V(!1),onDrop:async P=>{var ie,pe;P.preventDefault(),V(!1);const Q=(ie=P.dataTransfer)==null?void 0:ie.items;if(Q&&Q.length>0&&Q[0].webkitGetAsEntry){const Ie=[],jn=async(pt,$t="")=>{if(pt.isFile)await new Promise($e=>pt.file(Ut=>{try{Object.defineProperty(Ut,"webkitRelativePath",{value:`${$t}${Ut.name}`})}catch{}Ie.push(Ut),$e()},$e));else if(pt.isDirectory){const $e=pt.createReader();await new Promise(Ut=>$e.readEntries(async Sm=>{for(const Em of Sm)await jn(Em,`${$t}${pt.name}/`);Ut()},Ut))}};for(const pt of Q){const $t=pt.webkitGetAsEntry();$t&&await jn($t)}if(Ie.length>0){await Ir(Ie);return}}await Ir((pe=P.dataTransfer)==null?void 0:pe.files)},onClick:()=>{var P;return(P=k.current)==null?void 0:P.click()},children:[d.jsx("input",{ref:k,type:"file",webkitdirectory:"",directory:"",multiple:!0,style:{display:"none"},onChange:P=>Ir(P.target.files)}),M?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ob-drop-icon",children:"👀"}),d.jsx("div",{className:"ob-drop-title",children:"Looking…"})]}):B?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ob-drop-icon",children:"📁"}),d.jsx("div",{className:"ob-drop-title",children:B.folderName}),d.jsxs("div",{className:"ob-drop-sub",children:[B.totalFiles," file",B.totalFiles===1?"":"s"," · sampled ",B.files.length]})]}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"ob-drop-icon",children:"📂"}),d.jsx("div",{className:"ob-drop-title",children:"Drop a folder here"}),d.jsx("div",{className:"ob-drop-sub",children:"or click to pick one"})]})]}),wt&&d.jsxs(rn,{streaming:!wt.done,children:[wt.text?d.jsxs("p",{className:"ob-bubble-text",children:[wt.text,!wt.done&&d.jsx(Yn,{})]}):d.jsxs("p",{className:"ob-bubble-subtle",children:["👀 ",K," is reading…",!wt.done&&d.jsx(Yn,{})]}),wt.error&&d.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:wt.error})]}),W&&d.jsx("div",{className:"ob-error",children:W}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>i(3),children:"Skip — I'd rather just chat"}),d.jsx("button",{className:"ob-next primary",onClick:()=>i(3),disabled:!B&&!W,children:"Next: connect data →"})]})]}),r===3&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"What should I have eyes on?"}),d.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."})]}),d.jsx("div",{className:"ob-tile-grid",children:PE.map(P=>d.jsxs("button",{className:`ob-tile ${C.has(P.id)?"selected":""}`,onClick:()=>Fi(P.id),children:[d.jsx("span",{className:"ob-tile-label",children:P.label}),d.jsx("span",{className:"ob-tile-note",children:P.note}),C.has(P.id)&&d.jsx("span",{className:"ob-tile-check",children:"✓"})]},P.id))}),d.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."}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>i(4),children:"Skip →"}),d.jsx("button",{className:"ob-next primary",onClick:()=>i(4),children:"Next: pair another device →"})]})]}),r===4&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"I don't live on this Mac. I live with you."}),d.jsx("p",{className:"ob-bubble-subtle",children:l?d.jsxs(d.Fragment,{children:["Open ",d.jsx("code",{children:l})," on your phone with the same login and I'll follow."]}):d.jsx(d.Fragment,{children:"Sign in on any device with the same token and I'll show up there — same memory, same conversation."})})]}),d.jsxs("div",{className:"ob-qr-placeholder",children:[d.jsx("div",{className:"ob-qr-box",children:d.jsxs("div",{className:"ob-qr-soon",children:["QR pairing",d.jsx("br",{}),"coming soon"]})}),d.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."})]}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>i(5),children:"Skip →"}),d.jsx("button",{className:"ob-next primary",onClick:()=>i(5),children:"Next: first job →"})]})]}),r===5&&d.jsxs("section",{className:"ob-step",children:[d.jsxs(rn,{children:[d.jsx("p",{className:"ob-bubble-text",children:"Right — what should I actually do for you first?"}),d.jsx("p",{className:"ob-bubble-subtle",children:"Pick one and I'll start now. Or close this and just talk to me."})]}),Cn?d.jsxs(d.Fragment,{children:[d.jsxs(rn,{streaming:!T||!T.done,children:[T!=null&&T.text?d.jsxs("p",{className:"ob-bubble-text",children:[T.text,!T.done&&d.jsx(Yn,{})]}):d.jsxs("p",{className:"ob-bubble-subtle",children:[K," is on it…",(!T||!T.done)&&d.jsx(Yn,{})]}),(T==null?void 0:T.error)&&d.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:T.error})]}),d.jsxs("div",{className:"ob-actions",children:[d.jsx("button",{className:"ob-skip",onClick:()=>{Ar(null),Pr(null)},children:"← Pick a different job"}),d.jsx("button",{className:"ob-next primary",onClick:q,disabled:!T||!T.done&&!T.error,children:T!=null&&T.done?"Open my workspace →":"Streaming…"})]})]}):d.jsx("div",{className:"ob-jobs",children:en.map(P=>d.jsxs("button",{className:"ob-job",onClick:()=>$(P.kind),children:[d.jsx("div",{className:"ob-job-title",children:P.title}),d.jsx("div",{className:"ob-job-sub",children:P.sub})]},P.kind))}),(m||Ri)&&d.jsx("div",{className:"ob-error",children:m||Ri}),!Cn&&d.jsx("div",{className:"ob-actions",children:d.jsx("button",{className:"ob-skip",onClick:q,children:"Skip to chat →"})})]}),!w&&d.jsx("p",{className:"ob-consent-note",children:"I quietly share how I'm doing — what's working, what breaks, my setup health — with the Venturewild team so they can help if you ever get stuck. Never your words or files. You can turn this off anytime."})]})})}const $E={partner:"Partner",viewer:"Viewer",client:"Client"};function UE(){var M,U;const[e,t]=I.useState(null),[n,r]=I.useState(null),[i,l]=I.useState(!1),[o,a]=I.useState(!1),[s,u]=I.useState(null),[f,c]=I.useState(!1),[p,h]=I.useState(!1),[m,v]=I.useState(!1),[w,y]=I.useState("build"),[x,g]=I.useState(null),S=I.useMemo(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("t"),[]);if(I.useEffect(()=>{async function B(){try{const F={};S&&(F.Authorization=`Bearer ${S}`);const W=await fetch("/api/session",{headers:F});if(!W.ok)throw new Error(`session fetch failed: ${W.status}`);const Z=await W.json();t(Z)}catch(F){r(F.message||String(F))}}B()},[S]),I.useEffect(()=>{var F;const B=(F=e==null?void 0:e.identity)==null?void 0:F.color;B&&(document.documentElement.style.setProperty("--accent",B),document.documentElement.style.setProperty("--accent-hot",B))},[(M=e==null?void 0:e.identity)==null?void 0:M.color]),n)return d.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:d.jsxs("div",{style:{padding:24},children:[d.jsx("h2",{children:"wild-workspace"}),d.jsxs("p",{style:{color:"var(--error)"},children:["Could not load session: ",n]}),d.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 d.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:d.jsxs("div",{style:{padding:24,color:"var(--text-muted)"},children:[d.jsx("span",{className:"spinner"})," Loading workspace…"]})});if((U=e.capabilities)!=null&&U.chatWrite&&!e.onboarded)return d.jsx(BE,{session:e,token:S,onComplete:async()=>{try{const B={};S&&(B.Authorization=`Bearer ${S}`);const F=await fetch("/api/session",{headers:B});F.ok&&t(await F.json())}catch{t({...e,onboarded:!0})}}});const{role:N,capabilities:b,workspace:j,workspaceId:_,agent:L,identity:C}=e,R=["workspace"];return b.fileTree?p&&R.push("collapsed-tree"):R.push("no-tree"),b.preview||R.push("no-preview"),d.jsxs("div",{className:"app",children:[d.jsxs("header",{className:"topbar","data-testid":"topbar",children:[d.jsx("span",{className:"brand",children:"wild-workspace"}),d.jsx("span",{className:`badge ${N}`,"data-testid":"role-badge",children:$E[N]||N}),d.jsx("span",{className:"badge","data-testid":"workspace-name",children:(j==null?void 0:j.name)||_}),C!=null&&C.name?d.jsx("span",{className:"badge","data-testid":"agent-name",style:{borderColor:C.color,color:C.color},children:C.name}):L&&d.jsx("span",{className:"badge","data-testid":"agent-name",children:L.label||L.id}),d.jsx("span",{className:"spacer"}),b.sync&&d.jsx("button",{onClick:()=>a(!0),"data-testid":"collaborate-btn",children:"Collaborate"}),b.share&&d.jsx("button",{onClick:()=>l(!0),"data-testid":"share-btn",children:"Share"}),b.terminal&&d.jsx("button",{onClick:()=>v(B=>!B),"data-testid":"terminal-toggle",children:m?"Hide terminal":"Terminal"})]}),d.jsxs("main",{className:R.join(" "),children:[b.fileTree&&!p&&d.jsx(wE,{onCollapse:()=>h(!0),workspaceRoot:j==null?void 0:j.path,onOpen:g}),b.fileTree&&p&&d.jsx("aside",{className:"tree-collapsed-rail",children:d.jsx("button",{onClick:()=>h(!1),title:"Show file tree",children:"≡"})}),d.jsxs("section",{className:"chat-pane","data-testid":"chat-pane",children:[d.jsxs("div",{className:"chat-header","data-testid":"chat-header",children:[d.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Chat"}),b.chatWrite&&d.jsxs("span",{className:"chat-mode-toggle","data-testid":"mode-toggle",children:[d.jsx("button",{className:w==="build"?"active":"",onClick:()=>y("build"),"data-testid":"mode-build",children:"Build"}),d.jsx("button",{className:w==="plan"?"active":"",onClick:()=>y("plan"),"data-testid":"mode-plan",children:"Plan"})]}),d.jsx("span",{className:"spacer"}),d.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)"})]}),b.inbox&&d.jsx(IE,{}),d.jsx(mE,{role:N,capabilities:b,mode:w,token:S})]}),b.preview&&d.jsx("section",{className:"preview-pane","data-testid":"preview-pane",children:d.jsx(SE,{focus:x,workspaceRoot:j==null?void 0:j.path})})]}),d.jsx(_E,{role:N,capabilities:b,session:e,urlToken:S,onSyncAlert:u,onOpenConflicts:()=>c(!0)}),d.jsx(NE,{alert:s,onDismiss:()=>u(null)}),f&&d.jsx(jE,{urlToken:S,onClose:()=>c(!1)}),i&&d.jsx(EE,{onClose:()=>l(!1),workspaceId:_}),o&&d.jsx(CE,{onClose:()=>a(!1),token:S}),m&&d.jsxs("div",{className:"terminal-overlay","data-testid":"terminal-overlay",children:[d.jsxs("header",{children:[d.jsx("strong",{children:"Terminal (preview)"}),d.jsx("button",{onClick:()=>v(!1),children:"close"})]}),d.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 HE(e){const t=window.fetch.bind(window);window.fetch=(n,r={})=>{const i=typeof n=="string"?n:(n==null?void 0:n.url)||"";if(!(i.startsWith("/api/")||i.includes("://")===!1&&i.startsWith("api/")))return t(n,r);const o=new Headers(r.headers||{});return o.has("Authorization")||o.set("Authorization",`Bearer ${e}`),t(n,{...r,headers:o})}}function VE(){fa.createRoot(document.getElementById("root")).render(d.jsx(Bm.StrictMode,{children:d.jsx(UE,{})}))}async function WE(){const t=typeof window<"u"&&window.fetch?new URLSearchParams(window.location.search).get("t"):null;if(t){let n=!1;try{const r=await window.fetch("/api/auth/exchange",{method:"POST",headers:{Authorization:`Bearer ${t}`}});n=r.ok&&(await r.json().catch(()=>({}))).cookie===!0}catch{}if(n){const r=new URLSearchParams(window.location.search);r.delete("t");const i=r.toString(),l=window.location.pathname+(i?`?${i}`:"")+window.location.hash;window.history.replaceState(null,"",l)}else HE(t)}VE()}WE();
|