Implements full markdown editor application with: Backend (Go): - Cobra CLI with --data-dir, --port, --host flags - REST API for CRUD operations on markdown files - File storage on disk with flat structure - Logrus logging for all operations - Static asset serving for frontend - Comprehensive tests for CRUD and static assets Frontend (React + TypeScript + Tailwind): - Markdown editor with live GFM preview - File management UI (list, create, open, save, delete) - Theme system (Dark, Light, System) with persistence - Responsive design (320px to 1920px) - Component tests for core functionality Integration: - Full CRUD workflow from frontend to backend - Static asset serving verified - All tests passing (backend: 2/2, frontend: 6/6) Files added: - Backend: API handler, logger, server, tests - Frontend: Components, tests, config files - Build artifacts: compiled backend binary and frontend dist - Documentation: README and implementation summary
71 lines
296 KiB
JavaScript
71 lines
296 KiB
JavaScript
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=t(i);fetch(i.href,l)}})();var Qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var of={exports:{}},wl={},uf={exports:{}},H={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ti=Symbol.for("react.element"),Dh=Symbol.for("react.portal"),Ah=Symbol.for("react.fragment"),Fh=Symbol.for("react.strict_mode"),Rh=Symbol.for("react.profiler"),Oh=Symbol.for("react.provider"),Mh=Symbol.for("react.context"),bh=Symbol.for("react.forward_ref"),jh=Symbol.for("react.suspense"),Bh=Symbol.for("react.memo"),Uh=Symbol.for("react.lazy"),ns=Symbol.iterator;function Hh(e){return e===null||typeof e!="object"?null:(e=ns&&e[ns]||e["@@iterator"],typeof e=="function"?e:null)}var af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sf=Object.assign,cf={};function ir(e,n,t){this.props=e,this.context=n,this.refs=cf,this.updater=t||af}ir.prototype.isReactComponent={};ir.prototype.setState=function(e,n){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,n,"setState")};ir.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ff(){}ff.prototype=ir.prototype;function Mu(e,n,t){this.props=e,this.context=n,this.refs=cf,this.updater=t||af}var bu=Mu.prototype=new ff;bu.constructor=Mu;sf(bu,ir.prototype);bu.isPureReactComponent=!0;var ts=Array.isArray,pf=Object.prototype.hasOwnProperty,ju={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function hf(e,n,t){var r,i={},l=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(l=""+n.key),n)pf.call(n,r)&&!df.hasOwnProperty(r)&&(i[r]=n[r]);var u=arguments.length-2;if(u===1)i.children=t;else if(1<u){for(var a=Array(u),s=0;s<u;s++)a[s]=arguments[s+2];i.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:ti,type:e,key:l,ref:o,props:i,_owner:ju.current}}function Vh(e,n){return{$$typeof:ti,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function Bu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ti}function $h(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var rs=/\/+/g;function Vl(e,n){return typeof e=="object"&&e!==null&&e.key!=null?$h(""+e.key):n.toString(36)}function Di(e,n,t,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 ti:case Dh:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Vl(o,0):r,ts(i)?(t="",e!=null&&(t=e.replace(rs,"$&/")+"/"),Di(i,n,t,"",function(s){return s})):i!=null&&(Bu(i)&&(i=Vh(i,t+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(rs,"$&/")+"/")+e)),n.push(i)),1;if(o=0,r=r===""?".":r+":",ts(e))for(var u=0;u<e.length;u++){l=e[u];var a=r+Vl(l,u);o+=Di(l,n,t,a,i)}else if(a=Hh(e),typeof a=="function")for(e=a.call(e),u=0;!(l=e.next()).done;)l=l.value,a=r+Vl(l,u++),o+=Di(l,n,t,a,i);else if(l==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return o}function fi(e,n,t){if(e==null)return e;var r=[],i=0;return Di(e,r,"","",function(l){return n.call(t,l,i++)}),r}function Wh(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Ae={current:null},Ai={transition:null},Qh={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:Ai,ReactCurrentOwner:ju};function mf(){throw Error("act(...) is not supported in production builds of React.")}H.Children={map:fi,forEach:function(e,n,t){fi(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return fi(e,function(){n++}),n},toArray:function(e){return fi(e,function(n){return n})||[]},only:function(e){if(!Bu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=ir;H.Fragment=Ah;H.Profiler=Rh;H.PureComponent=Mu;H.StrictMode=Fh;H.Suspense=jh;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qh;H.act=mf;H.cloneElement=function(e,n,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=sf({},e.props),i=e.key,l=e.ref,o=e._owner;if(n!=null){if(n.ref!==void 0&&(l=n.ref,o=ju.current),n.key!==void 0&&(i=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in n)pf.call(n,a)&&!df.hasOwnProperty(a)&&(r[a]=n[a]===void 0&&u!==void 0?u[a]:n[a])}var a=arguments.length-2;if(a===1)r.children=t;else if(1<a){u=Array(a);for(var s=0;s<a;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:ti,type:e.type,key:i,ref:l,props:r,_owner:o}};H.createContext=function(e){return e={$$typeof:Mh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Oh,_context:e},e.Consumer=e};H.createElement=hf;H.createFactory=function(e){var n=hf.bind(null,e);return n.type=e,n};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:bh,render:e}};H.isValidElement=Bu;H.lazy=function(e){return{$$typeof:Uh,_payload:{_status:-1,_result:e},_init:Wh}};H.memo=function(e,n){return{$$typeof:Bh,type:e,compare:n===void 0?null:n}};H.startTransition=function(e){var n=Ai.transition;Ai.transition={};try{e()}finally{Ai.transition=n}};H.unstable_act=mf;H.useCallback=function(e,n){return Ae.current.useCallback(e,n)};H.useContext=function(e){return Ae.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};H.useEffect=function(e,n){return Ae.current.useEffect(e,n)};H.useId=function(){return Ae.current.useId()};H.useImperativeHandle=function(e,n,t){return Ae.current.useImperativeHandle(e,n,t)};H.useInsertionEffect=function(e,n){return Ae.current.useInsertionEffect(e,n)};H.useLayoutEffect=function(e,n){return Ae.current.useLayoutEffect(e,n)};H.useMemo=function(e,n){return Ae.current.useMemo(e,n)};H.useReducer=function(e,n,t){return Ae.current.useReducer(e,n,t)};H.useRef=function(e){return Ae.current.useRef(e)};H.useState=function(e){return Ae.current.useState(e)};H.useSyncExternalStore=function(e,n,t){return Ae.current.useSyncExternalStore(e,n,t)};H.useTransition=function(){return Ae.current.useTransition()};H.version="18.3.1";uf.exports=H;var _n=uf.exports;const Yh=Ou(_n);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Kh=_n,qh=Symbol.for("react.element"),Xh=Symbol.for("react.fragment"),Gh=Object.prototype.hasOwnProperty,Zh=Kh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jh={key:!0,ref:!0,__self:!0,__source:!0};function gf(e,n,t){var r,i={},l=null,o=null;t!==void 0&&(l=""+t),n.key!==void 0&&(l=""+n.key),n.ref!==void 0&&(o=n.ref);for(r in n)Gh.call(n,r)&&!Jh.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:qh,type:e,key:l,ref:o,props:i,_owner:Zh.current}}wl.Fragment=Xh;wl.jsx=gf;wl.jsxs=gf;of.exports=wl;var q=of.exports,No={},yf={exports:{}},qe={},kf={exports:{}},vf={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function n(D,b){var k=D.length;D.push(b);e:for(;0<k;){var Y=k-1>>>1,G=D[Y];if(0<i(G,b))D[Y]=b,D[k]=G,k=Y;else break e}}function t(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var b=D[0],k=D.pop();if(k!==b){D[0]=k;e:for(var Y=0,G=D.length,v=G>>>1;Y<v;){var ge=2*(Y+1)-1,ln=D[ge],re=ge+1,mn=D[re];if(0>i(ln,k))re<G&&0>i(mn,ln)?(D[Y]=mn,D[re]=k,Y=re):(D[Y]=ln,D[ge]=k,Y=ge);else if(re<G&&0>i(mn,k))D[Y]=mn,D[re]=k,Y=re;else break e}}return b}function i(D,b){var k=D.sortIndex-b.sortIndex;return k!==0?k:D.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],f=1,c=null,d=3,p=!1,m=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var b=t(s);b!==null;){if(b.callback===null)r(s);else if(b.startTime<=D)r(s),b.sortIndex=b.expirationTime,n(a,b);else break;b=t(s)}}function C(D){if(x=!1,y(D),!m)if(t(a)!==null)m=!0,de(_);else{var b=t(s);b!==null&&fe(C,b.startTime-D)}}function _(D,b){m=!1,x&&(x=!1,h(L),L=-1),p=!0;var k=d;try{for(y(b),c=t(a);c!==null&&(!(c.expirationTime>b)||D&&!A());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var G=Y(c.expirationTime<=b);b=e.unstable_now(),typeof G=="function"?c.callback=G:c===t(a)&&r(a),y(b)}else r(a);c=t(a)}if(c!==null)var v=!0;else{var ge=t(s);ge!==null&&fe(C,ge.startTime-b),v=!1}return v}finally{c=null,d=k,p=!1}}var w=!1,z=null,L=-1,M=5,S=-1;function A(){return!(e.unstable_now()-S<M)}function R(){if(z!==null){var D=e.unstable_now();S=D;var b=!0;try{b=z(!0,D)}finally{b?Q():(w=!1,z=null)}}else w=!1}var Q;if(typeof g=="function")Q=function(){g(R)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,V=ee.port2;ee.port1.onmessage=R,Q=function(){V.postMessage(null)}}else Q=function(){P(R,0)};function de(D){z=D,w||(w=!0,Q())}function fe(D,b){L=P(function(){D(e.unstable_now())},b)}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||p||(m=!0,de(_))},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"):M=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return t(a)},e.unstable_next=function(D){switch(d){case 1:case 2:case 3:var b=3;break;default:b=d}var k=d;d=b;try{return D()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,b){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var k=d;d=D;try{return b()}finally{d=k}},e.unstable_scheduleCallback=function(D,b,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 G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=k+G,D={id:f++,callback:b,priorityLevel:D,startTime:k,expirationTime:G,sortIndex:-1},k>Y?(D.sortIndex=k,n(s,D),t(a)===null&&D===t(s)&&(x?(h(L),L=-1):x=!0,fe(C,k-Y))):(D.sortIndex=G,n(a,D),m||p||(m=!0,de(_))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var b=d;return function(){var k=d;d=b;try{return D.apply(this,arguments)}finally{d=k}}}})(vf);kf.exports=vf;var em=kf.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var nm=_n,Ke=em;function T(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xf=new Set,Mr={};function St(e,n){Xt(e,n),Xt(e+"Capture",n)}function Xt(e,n){for(Mr[e]=n,e=0;e<n.length;e++)xf.add(n[e])}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,tm=/^[: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]*$/,is={},ls={};function rm(e){return Do.call(ls,e)?!0:Do.call(is,e)?!1:tm.test(e)?ls[e]=!0:(is[e]=!0,!1)}function im(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lm(e,n,t,r){if(n===null||typeof n>"u"||im(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Fe(e,n,t,r,i,l,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=o}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Ce[n]=new Fe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Fe(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){Ce[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Hu(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 n=e.replace(Uu,Hu);Ce[n]=new Fe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Uu,Hu);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Uu,Hu);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,n,t,r){var i=Ce.hasOwnProperty(n)?Ce[n]:null;(i!==null?i.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(lm(n,t,i,r)&&(t=null),r||i===null?rm(n)&&(t===null?e.removeAttribute(n):e.setAttribute(n,""+t)):i.mustUseProperty?e[i.propertyName]=t===null?i.type===3?!1:"":t:(n=i.attributeName,r=i.attributeNamespace,t===null?e.removeAttribute(n):(i=i.type,t=i===3||i===4&&t===!0?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}var Rn=nm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pi=Symbol.for("react.element"),Nt=Symbol.for("react.portal"),Dt=Symbol.for("react.fragment"),$u=Symbol.for("react.strict_mode"),Ao=Symbol.for("react.profiler"),wf=Symbol.for("react.provider"),Sf=Symbol.for("react.context"),Wu=Symbol.for("react.forward_ref"),Fo=Symbol.for("react.suspense"),Ro=Symbol.for("react.suspense_list"),Qu=Symbol.for("react.memo"),Bn=Symbol.for("react.lazy"),Cf=Symbol.for("react.offscreen"),os=Symbol.iterator;function fr(e){return e===null||typeof e!="object"?null:(e=os&&e[os]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,$l;function wr(e){if($l===void 0)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);$l=n&&n[1]||""}return`
|
||
`+$l+e}var Wl=!1;function Ql(e,n){if(!e||Wl)return"";Wl=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(s){var r=s}Reflect.construct(e,[],n)}else{try{n.call()}catch(s){r=s}e.call(n.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&typeof s.stack=="string"){for(var i=s.stack.split(`
|
||
`),l=r.stack.split(`
|
||
`),o=i.length-1,u=l.length-1;1<=o&&0<=u&&i[o]!==l[u];)u--;for(;1<=o&&0<=u;o--,u--)if(i[o]!==l[u]){if(o!==1||u!==1)do if(o--,u--,0>u||i[o]!==l[u]){var a=`
|
||
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Wl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wr(e):""}function om(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Oo(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 Dt:return"Fragment";case Nt:return"Portal";case Ao:return"Profiler";case $u:return"StrictMode";case Fo:return"Suspense";case Ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sf:return(e.displayName||"Context")+".Consumer";case wf:return(e._context.displayName||"Context")+".Provider";case Wu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qu:return n=e.displayName||null,n!==null?n:Oo(e.type)||"Memo";case Bn:n=e._payload,e=e._init;try{return Oo(e(n))}catch{}}return null}function um(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oo(n);case 8:return n===$u?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ef(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function am(e){var n=Ef(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,l=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function di(e){e._valueTracker||(e._valueTracker=am(e))}function Pf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Ef(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Yi(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 Mo(e,n){var t=n.checked;return se({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function us(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=et(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function _f(e,n){n=n.checked,n!=null&&Vu(e,"checked",n,!1)}function bo(e,n){_f(e,n);var t=et(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?jo(e,n.type,t):n.hasOwnProperty("defaultValue")&&jo(e,n.type,et(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function as(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function jo(e,n,t){(n!=="number"||Yi(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Sr=Array.isArray;function Vt(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+et(t),n=null,i=0;i<e.length;i++){if(e[i].value===t){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}n!==null||e[i].disabled||(n=e[i])}n!==null&&(n.selected=!0)}}function Bo(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(T(91));return se({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ss(e,n){var t=n.value;if(t==null){if(t=n.children,n=n.defaultValue,t!=null){if(n!=null)throw Error(T(92));if(Sr(t)){if(1<t.length)throw Error(T(93));t=t[0]}n=t}n==null&&(n=""),t=n}e._wrapperState={initialValue:et(t)}}function Tf(e,n){var t=et(n.value),r=et(n.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),n.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),r!=null&&(e.defaultValue=""+r)}function cs(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function zf(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 Uo(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?zf(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hi,If=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,t,r,i){MSApp.execUnsafeLocalFunction(function(){return e(n,t,r,i)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(hi=hi||document.createElement("div"),hi.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function br(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Pr={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},sm=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){sm.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Pr[n]=Pr[e]})});function Lf(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+n).trim():n+"px"}function Nf(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,i=Lf(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,i):e[t]=i}}var cm=se({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 Ho(e,n){if(n){if(cm[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(T(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(T(61))}if(n.style!=null&&typeof n.style!="object")throw Error(T(62))}}function Vo(e,n){if(e.indexOf("-")===-1)return typeof n.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 $o=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,$t=null,Wt=null;function fs(e){if(e=li(e)){if(typeof Wo!="function")throw Error(T(280));var n=e.stateNode;n&&(n=_l(n),Wo(e.stateNode,e.type,n))}}function Df(e){$t?Wt?Wt.push(e):Wt=[e]:$t=e}function Af(){if($t){var e=$t,n=Wt;if(Wt=$t=null,fs(e),n)for(e=0;e<n.length;e++)fs(n[e])}}function Ff(e,n){return e(n)}function Rf(){}var Yl=!1;function Of(e,n,t){if(Yl)return e(n,t);Yl=!0;try{return Ff(e,n,t)}finally{Yl=!1,($t!==null||Wt!==null)&&(Rf(),Af())}}function jr(e,n){var t=e.stateNode;if(t===null)return null;var r=_l(t);if(r===null)return null;t=r[n];e:switch(n){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(t&&typeof t!="function")throw Error(T(231,n,typeof t));return t}var Qo=!1;if(Nn)try{var pr={};Object.defineProperty(pr,"passive",{get:function(){Qo=!0}}),window.addEventListener("test",pr,pr),window.removeEventListener("test",pr,pr)}catch{Qo=!1}function fm(e,n,t,r,i,l,o,u,a){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(f){this.onError(f)}}var _r=!1,Ki=null,qi=!1,Yo=null,pm={onError:function(e){_r=!0,Ki=e}};function dm(e,n,t,r,i,l,o,u,a){_r=!1,Ki=null,fm.apply(pm,arguments)}function hm(e,n,t,r,i,l,o,u,a){if(dm.apply(this,arguments),_r){if(_r){var s=Ki;_r=!1,Ki=null}else throw Error(T(198));qi||(qi=!0,Yo=s)}}function Ct(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(t=n.return),e=n.return;while(e)}return n.tag===3?t:null}function Mf(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function ps(e){if(Ct(e)!==e)throw Error(T(188))}function mm(e){var n=e.alternate;if(!n){if(n=Ct(e),n===null)throw Error(T(188));return n!==e?null:e}for(var t=e,r=n;;){var i=t.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){t=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===t)return ps(i),e;if(l===r)return ps(i),n;l=l.sibling}throw Error(T(188))}if(t.return!==r.return)t=i,r=l;else{for(var o=!1,u=i.child;u;){if(u===t){o=!0,t=i,r=l;break}if(u===r){o=!0,r=i,t=l;break}u=u.sibling}if(!o){for(u=l.child;u;){if(u===t){o=!0,t=l,r=i;break}if(u===r){o=!0,r=l,t=i;break}u=u.sibling}if(!o)throw Error(T(189))}}if(t.alternate!==r)throw Error(T(190))}if(t.tag!==3)throw Error(T(188));return t.stateNode.current===t?e:n}function bf(e){return e=mm(e),e!==null?jf(e):null}function jf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=jf(e);if(n!==null)return n;e=e.sibling}return null}var Bf=Ke.unstable_scheduleCallback,ds=Ke.unstable_cancelCallback,gm=Ke.unstable_shouldYield,ym=Ke.unstable_requestPaint,pe=Ke.unstable_now,km=Ke.unstable_getCurrentPriorityLevel,Ku=Ke.unstable_ImmediatePriority,Uf=Ke.unstable_UserBlockingPriority,Xi=Ke.unstable_NormalPriority,vm=Ke.unstable_LowPriority,Hf=Ke.unstable_IdlePriority,Sl=null,xn=null;function xm(e){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:Cm,wm=Math.log,Sm=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(wm(e)/Sm|0)|0}var mi=64,gi=4194304;function Cr(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 Gi(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~i;u!==0?r=Cr(u):(l&=o,l!==0&&(r=Cr(l)))}else o=t&~i,o!==0?r=Cr(o):l!==0&&(r=Cr(l));if(r===0)return 0;if(n!==0&&n!==r&&!(n&i)&&(i=r&-r,l=n&-n,i>=l||i===16&&(l&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)t=31-fn(n),i=1<<t,r|=e[t],n&=~i;return r}function Em(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 Pm(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-fn(l),u=1<<o,a=i[o];a===-1?(!(u&t)||u&r)&&(i[o]=Em(u,n)):a<=n&&(e.expiredLanes|=u),l&=~u}}function Ko(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vf(){var e=mi;return mi<<=1,!(mi&4194240)&&(mi=64),e}function Kl(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function ri(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-fn(n),e[n]=t}function _m(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var i=31-fn(t),l=1<<i;n[i]=0,r[i]=-1,e[i]=-1,t&=~l}}function qu(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-fn(t),i=1<<r;i&n|e[r]&n&&(e[r]|=n),t&=~i}}var X=0;function $f(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wf,Xu,Qf,Yf,Kf,qo=!1,yi=[],Qn=null,Yn=null,Kn=null,Br=new Map,Ur=new Map,Hn=[],Tm="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 hs(e,n){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":Br.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(n.pointerId)}}function dr(e,n,t,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},n!==null&&(n=li(n),n!==null&&Xu(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,i!==null&&n.indexOf(i)===-1&&n.push(i),e)}function zm(e,n,t,r,i){switch(n){case"focusin":return Qn=dr(Qn,e,n,t,r,i),!0;case"dragenter":return Yn=dr(Yn,e,n,t,r,i),!0;case"mouseover":return Kn=dr(Kn,e,n,t,r,i),!0;case"pointerover":var l=i.pointerId;return Br.set(l,dr(Br.get(l)||null,e,n,t,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Ur.set(l,dr(Ur.get(l)||null,e,n,t,r,i)),!0}return!1}function qf(e){var n=ft(e.target);if(n!==null){var t=Ct(n);if(t!==null){if(n=t.tag,n===13){if(n=Mf(t),n!==null){e.blockedOn=n,Kf(e.priority,function(){Qf(t)});return}}else if(n===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var t=Xo(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(t===null){t=e.nativeEvent;var r=new t.constructor(t.type,t);$o=r,t.target.dispatchEvent(r),$o=null}else return n=li(t),n!==null&&Xu(n),e.blockedOn=t,!1;n.shift()}return!0}function ms(e,n,t){Fi(e)&&t.delete(n)}function Im(){qo=!1,Qn!==null&&Fi(Qn)&&(Qn=null),Yn!==null&&Fi(Yn)&&(Yn=null),Kn!==null&&Fi(Kn)&&(Kn=null),Br.forEach(ms),Ur.forEach(ms)}function hr(e,n){e.blockedOn===n&&(e.blockedOn=null,qo||(qo=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,Im)))}function Hr(e){function n(i){return hr(i,e)}if(0<yi.length){hr(yi[0],e);for(var t=1;t<yi.length;t++){var r=yi[t];r.blockedOn===e&&(r.blockedOn=null)}}for(Qn!==null&&hr(Qn,e),Yn!==null&&hr(Yn,e),Kn!==null&&hr(Kn,e),Br.forEach(n),Ur.forEach(n),t=0;t<Hn.length;t++)r=Hn[t],r.blockedOn===e&&(r.blockedOn=null);for(;0<Hn.length&&(t=Hn[0],t.blockedOn===null);)qf(t),t.blockedOn===null&&Hn.shift()}var Qt=Rn.ReactCurrentBatchConfig,Zi=!0;function Lm(e,n,t,r){var i=X,l=Qt.transition;Qt.transition=null;try{X=1,Gu(e,n,t,r)}finally{X=i,Qt.transition=l}}function Nm(e,n,t,r){var i=X,l=Qt.transition;Qt.transition=null;try{X=4,Gu(e,n,t,r)}finally{X=i,Qt.transition=l}}function Gu(e,n,t,r){if(Zi){var i=Xo(e,n,t,r);if(i===null)io(e,n,r,Ji,t),hs(e,r);else if(zm(i,e,n,t,r))r.stopPropagation();else if(hs(e,r),n&4&&-1<Tm.indexOf(e)){for(;i!==null;){var l=li(i);if(l!==null&&Wf(l),l=Xo(e,n,t,r),l===null&&io(e,n,r,Ji,t),l===i)break;i=l}i!==null&&r.stopPropagation()}else io(e,n,r,null,t)}}var Ji=null;function Xo(e,n,t,r){if(Ji=null,e=Yu(r),e=ft(e),e!==null)if(n=Ct(e),n===null)e=null;else if(t=n.tag,t===13){if(e=Mf(n),e!==null)return e;e=null}else if(t===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Ji=e,null}function Xf(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(km()){case Ku:return 1;case Uf:return 4;case Xi:case vm:return 16;case Hf:return 536870912;default:return 16}default:return 16}}var $n=null,Zu=null,Ri=null;function Gf(){if(Ri)return Ri;var e,n=Zu,t=n.length,r,i="value"in $n?$n.value:$n.textContent,l=i.length;for(e=0;e<t&&n[e]===i[e];e++);var o=t-e;for(r=1;r<=o&&n[t-r]===i[l-r];r++);return Ri=i.slice(e,1<r?1-r:void 0)}function Oi(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ki(){return!0}function gs(){return!1}function Xe(e){function n(t,r,i,l,o){this._reactName=t,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(t=e[u],this[u]=t?t(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?ki:gs,this.isPropagationStopped=gs,this}return se(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),n}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=Xe(lr),ii=se({},lr,{view:0,detail:0}),Dm=Xe(ii),ql,Xl,mr,Cl=se({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ea,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!==mr&&(mr&&e.type==="mousemove"?(ql=e.screenX-mr.screenX,Xl=e.screenY-mr.screenY):Xl=ql=0,mr=e),ql)},movementY:function(e){return"movementY"in e?e.movementY:Xl}}),ys=Xe(Cl),Am=se({},Cl,{dataTransfer:0}),Fm=Xe(Am),Rm=se({},ii,{relatedTarget:0}),Gl=Xe(Rm),Om=se({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Mm=Xe(Om),bm=se({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jm=Xe(bm),Bm=se({},lr,{data:0}),ks=Xe(Bm),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hm={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"},Vm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $m(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Vm[e])?!!n[e]:!1}function ea(){return $m}var Wm=se({},ii,{key:function(e){if(e.key){var n=Um[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ea,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=Xe(Wm),Ym=se({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vs=Xe(Ym),Km=se({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ea}),qm=Xe(Km),Xm=se({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gm=Xe(Xm),Zm=se({},Cl,{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}),Jm=Xe(Zm),eg=[9,13,27,32],na=Nn&&"CompositionEvent"in window,Tr=null;Nn&&"documentMode"in document&&(Tr=document.documentMode);var ng=Nn&&"TextEvent"in window&&!Tr,Zf=Nn&&(!na||Tr&&8<Tr&&11>=Tr),xs=" ",ws=!1;function Jf(e,n){switch(e){case"keyup":return eg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ep(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function tg(e,n){switch(e){case"compositionend":return ep(n);case"keypress":return n.which!==32?null:(ws=!0,xs);case"textInput":return e=n.data,e===xs&&ws?null:e;default:return null}}function rg(e,n){if(At)return e==="compositionend"||!na&&Jf(e,n)?(e=Gf(),Ri=Zu=$n=null,At=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Zf&&n.locale!=="ko"?null:n.data;default:return null}}var ig={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 Ss(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ig[e.type]:n==="textarea"}function np(e,n,t,r){Df(r),n=el(n,"onChange"),0<n.length&&(t=new Ju("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var zr=null,Vr=null;function lg(e){pp(e,0)}function El(e){var n=Ot(e);if(Pf(n))return e}function og(e,n){if(e==="change")return n}var tp=!1;if(Nn){var Zl;if(Nn){var Jl="oninput"in document;if(!Jl){var Cs=document.createElement("div");Cs.setAttribute("oninput","return;"),Jl=typeof Cs.oninput=="function"}Zl=Jl}else Zl=!1;tp=Zl&&(!document.documentMode||9<document.documentMode)}function Es(){zr&&(zr.detachEvent("onpropertychange",rp),Vr=zr=null)}function rp(e){if(e.propertyName==="value"&&El(Vr)){var n=[];np(n,Vr,e,Yu(e)),Of(lg,n)}}function ug(e,n,t){e==="focusin"?(Es(),zr=n,Vr=t,zr.attachEvent("onpropertychange",rp)):e==="focusout"&&Es()}function ag(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return El(Vr)}function sg(e,n){if(e==="click")return El(n)}function cg(e,n){if(e==="input"||e==="change")return El(n)}function fg(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var hn=typeof Object.is=="function"?Object.is:fg;function $r(e,n){if(hn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var i=t[r];if(!Do.call(n,i)||!hn(e[i],n[i]))return!1}return!0}function Ps(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _s(e,n){var t=Ps(e);e=0;for(var r;t;){if(t.nodeType===3){if(r=e+t.textContent.length,e<=n&&r>=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ps(t)}}function ip(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ip(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lp(){for(var e=window,n=Yi();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Yi(e.document)}return n}function ta(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function pg(e){var n=lp(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ip(t.ownerDocument.documentElement,t)){if(r!==null&&ta(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var i=t.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=_s(t,l);var o=_s(t,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<n.length;t++)e=n[t],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dg=Nn&&"documentMode"in document&&11>=document.documentMode,Ft=null,Go=null,Ir=null,Zo=!1;function Ts(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Zo||Ft==null||Ft!==Yi(r)||(r=Ft,"selectionStart"in r&&ta(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}),Ir&&$r(Ir,r)||(Ir=r,r=el(Go,"onSelect"),0<r.length&&(n=new Ju("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=Ft)))}function vi(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Rt={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},eo={},op={};Nn&&(op=document.createElement("div").style,"AnimationEvent"in window||(delete Rt.animationend.animation,delete Rt.animationiteration.animation,delete Rt.animationstart.animation),"TransitionEvent"in window||delete Rt.transitionend.transition);function Pl(e){if(eo[e])return eo[e];if(!Rt[e])return e;var n=Rt[e],t;for(t in n)if(n.hasOwnProperty(t)&&t in op)return eo[e]=n[t];return e}var up=Pl("animationend"),ap=Pl("animationiteration"),sp=Pl("animationstart"),cp=Pl("transitionend"),fp=new Map,zs="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 tt(e,n){fp.set(e,n),St(n,[e])}for(var no=0;no<zs.length;no++){var to=zs[no],hg=to.toLowerCase(),mg=to[0].toUpperCase()+to.slice(1);tt(hg,"on"+mg)}tt(up,"onAnimationEnd");tt(ap,"onAnimationIteration");tt(sp,"onAnimationStart");tt("dblclick","onDoubleClick");tt("focusin","onFocus");tt("focusout","onBlur");tt(cp,"onTransitionEnd");Xt("onMouseEnter",["mouseout","mouseover"]);Xt("onMouseLeave",["mouseout","mouseover"]);Xt("onPointerEnter",["pointerout","pointerover"]);Xt("onPointerLeave",["pointerout","pointerover"]);St("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));St("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));St("onBeforeInput",["compositionend","keypress","textInput","paste"]);St("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));St("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));St("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="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(" "),gg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Is(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,hm(r,n,void 0,e),e.currentTarget=null}function pp(e,n){n=(n&4)!==0;for(var t=0;t<e.length;t++){var r=e[t],i=r.event;r=r.listeners;e:{var l=void 0;if(n)for(var o=r.length-1;0<=o;o--){var u=r[o],a=u.instance,s=u.currentTarget;if(u=u.listener,a!==l&&i.isPropagationStopped())break e;Is(i,u,s),l=a}else for(o=0;o<r.length;o++){if(u=r[o],a=u.instance,s=u.currentTarget,u=u.listener,a!==l&&i.isPropagationStopped())break e;Is(i,u,s),l=a}}}if(qi)throw e=Yo,qi=!1,Yo=null,e}function ie(e,n){var t=n[ru];t===void 0&&(t=n[ru]=new Set);var r=e+"__bubble";t.has(r)||(dp(n,e,2,!1),t.add(r))}function ro(e,n,t){var r=0;n&&(r|=4),dp(t,e,r,n)}var xi="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[xi]){e[xi]=!0,xf.forEach(function(t){t!=="selectionchange"&&(gg.has(t)||ro(t,!1,e),ro(t,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[xi]||(n[xi]=!0,ro("selectionchange",!1,n))}}function dp(e,n,t,r){switch(Xf(n)){case 1:var i=Lm;break;case 4:i=Nm;break;default:i=Gu}t=i.bind(null,n,t,e),i=void 0,!Qo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(n,t,{capture:!0,passive:i}):e.addEventListener(n,t,!0):i!==void 0?e.addEventListener(n,t,{passive:i}):e.addEventListener(n,t,!1)}function io(e,n,t,r,i){var l=r;if(!(n&1)&&!(n&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;u!==null;){if(o=ft(u),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}u=u.parentNode}}r=r.return}Of(function(){var s=l,f=Yu(t),c=[];e:{var d=fp.get(e);if(d!==void 0){var p=Ju,m=e;switch(e){case"keypress":if(Oi(t)===0)break e;case"keydown":case"keyup":p=Qm;break;case"focusin":m="focus",p=Gl;break;case"focusout":m="blur",p=Gl;break;case"beforeblur":case"afterblur":p=Gl;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ys;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Fm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=qm;break;case up:case ap:case sp:p=Mm;break;case cp:p=Gm;break;case"scroll":p=Dm;break;case"wheel":p=Jm;break;case"copy":case"cut":case"paste":p=jm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=vs}var x=(n&4)!==0,P=!x&&e==="scroll",h=x?d!==null?d+"Capture":null:d;x=[];for(var g=s,y;g!==null;){y=g;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,h!==null&&(C=jr(g,h),C!=null&&x.push(Qr(g,C,y)))),P)break;g=g.return}0<x.length&&(d=new p(d,m,null,t,f),c.push({event:d,listeners:x}))}}if(!(n&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&t!==$o&&(m=t.relatedTarget||t.fromElement)&&(ft(m)||m[Dn]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=t.relatedTarget||t.toElement,p=s,m=m?ft(m):null,m!==null&&(P=Ct(m),m!==P||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=s),p!==m)){if(x=ys,C="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=vs,C="onPointerLeave",h="onPointerEnter",g="pointer"),P=p==null?d:Ot(p),y=m==null?d:Ot(m),d=new x(C,g+"leave",p,t,f),d.target=P,d.relatedTarget=y,C=null,ft(f)===s&&(x=new x(h,g+"enter",m,t,f),x.target=y,x.relatedTarget=P,C=x),P=C,p&&m)n:{for(x=p,h=m,g=0,y=x;y;y=zt(y))g++;for(y=0,C=h;C;C=zt(C))y++;for(;0<g-y;)x=zt(x),g--;for(;0<y-g;)h=zt(h),y--;for(;g--;){if(x===h||h!==null&&x===h.alternate)break n;x=zt(x),h=zt(h)}x=null}else x=null;p!==null&&Ls(c,d,p,x,!1),m!==null&&P!==null&&Ls(c,P,m,x,!0)}}e:{if(d=s?Ot(s):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var _=og;else if(Ss(d))if(tp)_=cg;else{_=ag;var w=ug}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=sg);if(_&&(_=_(e,s))){np(c,_,t,f);break e}w&&w(e,d,s),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&jo(d,"number",d.value)}switch(w=s?Ot(s):window,e){case"focusin":(Ss(w)||w.contentEditable==="true")&&(Ft=w,Go=s,Ir=null);break;case"focusout":Ir=Go=Ft=null;break;case"mousedown":Zo=!0;break;case"contextmenu":case"mouseup":case"dragend":Zo=!1,Ts(c,t,f);break;case"selectionchange":if(dg)break;case"keydown":case"keyup":Ts(c,t,f)}var z;if(na)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else At?Jf(e,t)&&(L="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(L="onCompositionStart");L&&(Zf&&t.locale!=="ko"&&(At||L!=="onCompositionStart"?L==="onCompositionEnd"&&At&&(z=Gf()):($n=f,Zu="value"in $n?$n.value:$n.textContent,At=!0)),w=el(s,L),0<w.length&&(L=new ks(L,e,null,t,f),c.push({event:L,listeners:w}),z?L.data=z:(z=ep(t),z!==null&&(L.data=z)))),(z=ng?tg(e,t):rg(e,t))&&(s=el(s,"onBeforeInput"),0<s.length&&(f=new ks("onBeforeInput","beforeinput",null,t,f),c.push({event:f,listeners:s}),f.data=z))}pp(c,n)})}function Qr(e,n,t){return{instance:e,listener:n,currentTarget:t}}function el(e,n){for(var t=n+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=jr(e,t),l!=null&&r.unshift(Qr(e,l,i)),l=jr(e,n),l!=null&&r.push(Qr(e,l,i))),e=e.return}return r}function zt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ls(e,n,t,r,i){for(var l=n._reactName,o=[];t!==null&&t!==r;){var u=t,a=u.alternate,s=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&s!==null&&(u=s,i?(a=jr(t,l),a!=null&&o.unshift(Qr(t,a,u))):i||(a=jr(t,l),a!=null&&o.push(Qr(t,a,u)))),t=t.return}o.length!==0&&e.push({event:n,listeners:o})}var yg=/\r\n?/g,kg=/\u0000|\uFFFD/g;function Ns(e){return(typeof e=="string"?e:""+e).replace(yg,`
|
||
`).replace(kg,"")}function wi(e,n,t){if(n=Ns(n),Ns(e)!==n&&t)throw Error(T(425))}function nl(){}var Jo=null,eu=null;function nu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var tu=typeof setTimeout=="function"?setTimeout:void 0,vg=typeof clearTimeout=="function"?clearTimeout:void 0,Ds=typeof Promise=="function"?Promise:void 0,xg=typeof queueMicrotask=="function"?queueMicrotask:typeof Ds<"u"?function(e){return Ds.resolve(null).then(e).catch(wg)}:tu;function wg(e){setTimeout(function(){throw e})}function lo(e,n){var t=n,r=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&i.nodeType===8)if(t=i.data,t==="/$"){if(r===0){e.removeChild(i),Hr(n);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=i}while(t);Hr(n)}function qn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function As(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(n===0)return e;n--}else t==="/$"&&n++}e=e.previousSibling}return null}var or=Math.random().toString(36).slice(2),vn="__reactFiber$"+or,Yr="__reactProps$"+or,Dn="__reactContainer$"+or,ru="__reactEvents$"+or,Sg="__reactListeners$"+or,Cg="__reactHandles$"+or;function ft(e){var n=e[vn];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Dn]||t[vn]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=As(e);e!==null;){if(t=e[vn])return t;e=As(e)}return n}e=t,t=e.parentNode}return null}function li(e){return e=e[vn]||e[Dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ot(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function _l(e){return e[Yr]||null}var iu=[],Mt=-1;function rt(e){return{current:e}}function le(e){0>Mt||(e.current=iu[Mt],iu[Mt]=null,Mt--)}function te(e,n){Mt++,iu[Mt]=e.current,e.current=n}var nt={},ze=rt(nt),be=rt(!1),gt=nt;function Gt(e,n){var t=e.type.contextTypes;if(!t)return nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in t)i[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function je(e){return e=e.childContextTypes,e!=null}function tl(){le(be),le(ze)}function Fs(e,n,t){if(ze.current!==nt)throw Error(T(168));te(ze,n),te(be,t)}function hp(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in n))throw Error(T(108,um(e)||"Unknown",i));return se({},t,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nt,gt=ze.current,te(ze,e),te(be,be.current),!0}function Rs(e,n,t){var r=e.stateNode;if(!r)throw Error(T(169));t?(e=hp(e,n,gt),r.__reactInternalMemoizedMergedChildContext=e,le(be),le(ze),te(ze,e)):le(be),te(be,t)}var Tn=null,Tl=!1,oo=!1;function mp(e){Tn===null?Tn=[e]:Tn.push(e)}function Eg(e){Tl=!0,mp(e)}function it(){if(!oo&&Tn!==null){oo=!0;var e=0,n=X;try{var t=Tn;for(X=1;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}Tn=null,Tl=!1}catch(i){throw Tn!==null&&(Tn=Tn.slice(e+1)),Bf(Ku,it),i}finally{X=n,oo=!1}}return null}var bt=[],jt=0,il=null,ll=0,Ge=[],Ze=0,yt=null,zn=1,In="";function at(e,n){bt[jt++]=ll,bt[jt++]=il,il=e,ll=n}function gp(e,n,t){Ge[Ze++]=zn,Ge[Ze++]=In,Ge[Ze++]=yt,yt=e;var r=zn;e=In;var i=32-fn(r)-1;r&=~(1<<i),t+=1;var l=32-fn(n)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,zn=1<<32-fn(n)+i|t<<i|r,In=l+e}else zn=1<<l|t<<i|r,In=e}function ra(e){e.return!==null&&(at(e,1),gp(e,1,0))}function ia(e){for(;e===il;)il=bt[--jt],bt[jt]=null,ll=bt[--jt],bt[jt]=null;for(;e===yt;)yt=Ge[--Ze],Ge[Ze]=null,In=Ge[--Ze],Ge[Ze]=null,zn=Ge[--Ze],Ge[Ze]=null}var Qe=null,We=null,oe=!1,cn=null;function yp(e,n){var t=en(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)}function Os(e,n){switch(e.tag){case 5:var t=e.type;return n=n.nodeType!==1||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Qe=e,We=qn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Qe=e,We=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(t=yt!==null?{id:zn,overflow:In}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},t=en(18,null,null,0),t.stateNode=n,t.return=e,e.child=t,Qe=e,We=null,!0):!1;default:return!1}}function lu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ou(e){if(oe){var n=We;if(n){var t=n;if(!Os(e,n)){if(lu(e))throw Error(T(418));n=qn(t.nextSibling);var r=Qe;n&&Os(e,n)?yp(r,t):(e.flags=e.flags&-4097|2,oe=!1,Qe=e)}}else{if(lu(e))throw Error(T(418));e.flags=e.flags&-4097|2,oe=!1,Qe=e}}}function Ms(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Si(e){if(e!==Qe)return!1;if(!oe)return Ms(e),oe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!nu(e.type,e.memoizedProps)),n&&(n=We)){if(lu(e))throw kp(),Error(T(418));for(;n;)yp(e,n),n=qn(n.nextSibling)}if(Ms(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(n===0){We=qn(e.nextSibling);break e}n--}else t!=="$"&&t!=="$!"&&t!=="$?"||n++}e=e.nextSibling}We=null}}else We=Qe?qn(e.stateNode.nextSibling):null;return!0}function kp(){for(var e=We;e;)e=qn(e.nextSibling)}function Zt(){We=Qe=null,oe=!1}function la(e){cn===null?cn=[e]:cn.push(e)}var Pg=Rn.ReactCurrentBatchConfig;function gr(e,n,t){if(e=t.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(T(309));var r=t.stateNode}if(!r)throw Error(T(147,e));var i=r,l=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===l?n.ref:(n=function(o){var u=i.refs;o===null?delete u[l]:u[l]=o},n._stringRef=l,n)}if(typeof e!="string")throw Error(T(284));if(!t._owner)throw Error(T(290,e))}return e}function Ci(e,n){throw e=Object.prototype.toString.call(n),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function bs(e){var n=e._init;return n(e._payload)}function vp(e){function n(h,g){if(e){var y=h.deletions;y===null?(h.deletions=[g],h.flags|=16):y.push(g)}}function t(h,g){if(!e)return null;for(;g!==null;)n(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=Jn(h,g),h.index=0,h.sibling=null,h}function l(h,g,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<g?(h.flags|=2,g):y):(h.flags|=2,g)):(h.flags|=1048576,g)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function u(h,g,y,C){return g===null||g.tag!==6?(g=ho(y,h.mode,C),g.return=h,g):(g=i(g,y),g.return=h,g)}function a(h,g,y,C){var _=y.type;return _===Dt?f(h,g,y.props.children,C,y.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bn&&bs(_)===g.type)?(C=i(g,y.props),C.ref=gr(h,g,y),C.return=h,C):(C=Vi(y.type,y.key,y.props,null,h.mode,C),C.ref=gr(h,g,y),C.return=h,C)}function s(h,g,y,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=mo(y,h.mode,C),g.return=h,g):(g=i(g,y.children||[]),g.return=h,g)}function f(h,g,y,C,_){return g===null||g.tag!==7?(g=mt(y,h.mode,C,_),g.return=h,g):(g=i(g,y),g.return=h,g)}function c(h,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=ho(""+g,h.mode,y),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case pi:return y=Vi(g.type,g.key,g.props,null,h.mode,y),y.ref=gr(h,null,g),y.return=h,y;case Nt:return g=mo(g,h.mode,y),g.return=h,g;case Bn:var C=g._init;return c(h,C(g._payload),y)}if(Sr(g)||fr(g))return g=mt(g,h.mode,y,null),g.return=h,g;Ci(h,g)}return null}function d(h,g,y,C){var _=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:u(h,g,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case pi:return y.key===_?a(h,g,y,C):null;case Nt:return y.key===_?s(h,g,y,C):null;case Bn:return _=y._init,d(h,g,_(y._payload),C)}if(Sr(y)||fr(y))return _!==null?null:f(h,g,y,C,null);Ci(h,y)}return null}function p(h,g,y,C,_){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(y)||null,u(g,h,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case pi:return h=h.get(C.key===null?y:C.key)||null,a(g,h,C,_);case Nt:return h=h.get(C.key===null?y:C.key)||null,s(g,h,C,_);case Bn:var w=C._init;return p(h,g,y,w(C._payload),_)}if(Sr(C)||fr(C))return h=h.get(y)||null,f(g,h,C,_,null);Ci(g,C)}return null}function m(h,g,y,C){for(var _=null,w=null,z=g,L=g=0,M=null;z!==null&&L<y.length;L++){z.index>L?(M=z,z=null):M=z.sibling;var S=d(h,z,y[L],C);if(S===null){z===null&&(z=M);break}e&&z&&S.alternate===null&&n(h,z),g=l(S,g,L),w===null?_=S:w.sibling=S,w=S,z=M}if(L===y.length)return t(h,z),oe&&at(h,L),_;if(z===null){for(;L<y.length;L++)z=c(h,y[L],C),z!==null&&(g=l(z,g,L),w===null?_=z:w.sibling=z,w=z);return oe&&at(h,L),_}for(z=r(h,z);L<y.length;L++)M=p(z,h,L,y[L],C),M!==null&&(e&&M.alternate!==null&&z.delete(M.key===null?L:M.key),g=l(M,g,L),w===null?_=M:w.sibling=M,w=M);return e&&z.forEach(function(A){return n(h,A)}),oe&&at(h,L),_}function x(h,g,y,C){var _=fr(y);if(typeof _!="function")throw Error(T(150));if(y=_.call(y),y==null)throw Error(T(151));for(var w=_=null,z=g,L=g=0,M=null,S=y.next();z!==null&&!S.done;L++,S=y.next()){z.index>L?(M=z,z=null):M=z.sibling;var A=d(h,z,S.value,C);if(A===null){z===null&&(z=M);break}e&&z&&A.alternate===null&&n(h,z),g=l(A,g,L),w===null?_=A:w.sibling=A,w=A,z=M}if(S.done)return t(h,z),oe&&at(h,L),_;if(z===null){for(;!S.done;L++,S=y.next())S=c(h,S.value,C),S!==null&&(g=l(S,g,L),w===null?_=S:w.sibling=S,w=S);return oe&&at(h,L),_}for(z=r(h,z);!S.done;L++,S=y.next())S=p(z,h,L,S.value,C),S!==null&&(e&&S.alternate!==null&&z.delete(S.key===null?L:S.key),g=l(S,g,L),w===null?_=S:w.sibling=S,w=S);return e&&z.forEach(function(R){return n(h,R)}),oe&&at(h,L),_}function P(h,g,y,C){if(typeof y=="object"&&y!==null&&y.type===Dt&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case pi:e:{for(var _=y.key,w=g;w!==null;){if(w.key===_){if(_=y.type,_===Dt){if(w.tag===7){t(h,w.sibling),g=i(w,y.props.children),g.return=h,h=g;break e}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bn&&bs(_)===w.type){t(h,w.sibling),g=i(w,y.props),g.ref=gr(h,w,y),g.return=h,h=g;break e}t(h,w);break}else n(h,w);w=w.sibling}y.type===Dt?(g=mt(y.props.children,h.mode,C,y.key),g.return=h,h=g):(C=Vi(y.type,y.key,y.props,null,h.mode,C),C.ref=gr(h,g,y),C.return=h,h=C)}return o(h);case Nt:e:{for(w=y.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){t(h,g.sibling),g=i(g,y.children||[]),g.return=h,h=g;break e}else{t(h,g);break}else n(h,g);g=g.sibling}g=mo(y,h.mode,C),g.return=h,h=g}return o(h);case Bn:return w=y._init,P(h,g,w(y._payload),C)}if(Sr(y))return m(h,g,y,C);if(fr(y))return x(h,g,y,C);Ci(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(t(h,g.sibling),g=i(g,y),g.return=h,h=g):(t(h,g),g=ho(y,h.mode,C),g.return=h,h=g),o(h)):t(h,g)}return P}var Jt=vp(!0),xp=vp(!1),ol=rt(null),ul=null,Bt=null,oa=null;function ua(){oa=Bt=ul=null}function aa(e){var n=ol.current;le(ol),e._currentValue=n}function uu(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Yt(e,n){ul=e,oa=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Me=!0),e.firstContext=null)}function tn(e){var n=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:n,next:null},Bt===null){if(ul===null)throw Error(T(308));Bt=e,ul.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return n}var pt=null;function sa(e){pt===null?pt=[e]:pt.push(e)}function wp(e,n,t,r){var i=n.interleaved;return i===null?(t.next=t,sa(n)):(t.next=i.next,i.next=t),n.interleaved=t,An(e,r)}function An(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Un=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Xn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),r.pending=n,An(e,t)}return i=r.interleaved,i===null?(n.next=n,sa(r)):(n.next=i.next,i.next=n),r.interleaved=n,An(e,t)}function Mi(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}function js(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var i=null,l=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};l===null?i=l=o:l=l.next=o,t=t.next}while(t!==null);l===null?i=l=n:l=l.next=n}else i=l=n;t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function al(e,n,t,r){var i=e.updateQueue;Un=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var a=u,s=a.next;a.next=null,o===null?l=s:o.next=s,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=s:u.next=s,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;o=0,f=s=a=null,u=l;do{var d=u.lane,p=u.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,x=u;switch(d=n,p=t,x.tag){case 1:if(m=x.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=se({},c,d);break e;case 2:Un=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[u]:d.push(u))}else p={eventTime:p,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(s=f=p,a=c):f=f.next=p,o|=d;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;d=u,u=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(a=c),i.baseState=a,i.firstBaseUpdate=s,i.lastBaseUpdate=f,n=i.shared.interleaved,n!==null){i=n;do o|=i.lane,i=i.next;while(i!==n)}else l===null&&(i.shared.lanes=0);vt|=o,e.lanes=o,e.memoizedState=c}}function Bs(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],i=r.callback;if(i!==null){if(r.callback=null,r=t,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var oi={},wn=rt(oi),Kr=rt(oi),qr=rt(oi);function dt(e){if(e===oi)throw Error(T(174));return e}function fa(e,n){switch(te(qr,n),te(Kr,e),te(wn,oi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Uo(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Uo(n,e)}le(wn),te(wn,n)}function er(){le(wn),le(Kr),le(qr)}function Cp(e){dt(qr.current);var n=dt(wn.current),t=Uo(n,e.type);n!==t&&(te(Kr,e),te(wn,t))}function pa(e){Kr.current===e&&(le(wn),le(Kr))}var ue=rt(0);function sl(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var uo=[];function da(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var bi=Rn.ReactCurrentDispatcher,ao=Rn.ReactCurrentBatchConfig,kt=0,ae=null,ye=null,ve=null,cl=!1,Lr=!1,Xr=0,_g=0;function Ee(){throw Error(T(321))}function ha(e,n){if(n===null)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!hn(e[t],n[t]))return!1;return!0}function ma(e,n,t,r,i,l){if(kt=l,ae=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,bi.current=e===null||e.memoizedState===null?Lg:Ng,e=t(r,i),Lr){l=0;do{if(Lr=!1,Xr=0,25<=l)throw Error(T(301));l+=1,ve=ye=null,n.updateQueue=null,bi.current=Dg,e=t(r,i)}while(Lr)}if(bi.current=fl,n=ye!==null&&ye.next!==null,kt=0,ve=ye=ae=null,cl=!1,n)throw Error(T(300));return e}function ga(){var e=Xr!==0;return Xr=0,e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?ae.memoizedState=ve=e:ve=ve.next=e,ve}function rn(){if(ye===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var n=ve===null?ae.memoizedState:ve.next;if(n!==null)ve=n,ye=e;else{if(e===null)throw Error(T(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ve===null?ae.memoizedState=ve=e:ve=ve.next=e}return ve}function Gr(e,n){return typeof n=="function"?n(e):n}function so(e){var n=rn(),t=n.queue;if(t===null)throw Error(T(311));t.lastRenderedReducer=e;var r=ye,i=r.baseQueue,l=t.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,t.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=o=null,a=null,s=l;do{var f=s.lane;if((kt&f)===f)a!==null&&(a=a.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var c={lane:f,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};a===null?(u=a=c,o=r):a=a.next=c,ae.lanes|=f,vt|=f}s=s.next}while(s!==null&&s!==l);a===null?o=r:a.next=u,hn(r,n.memoizedState)||(Me=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=a,t.lastRenderedState=r}if(e=t.interleaved,e!==null){i=e;do l=i.lane,ae.lanes|=l,vt|=l,i=i.next;while(i!==e)}else i===null&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function co(e){var n=rn(),t=n.queue;if(t===null)throw Error(T(311));t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,l=n.memoizedState;if(i!==null){t.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);hn(l,n.memoizedState)||(Me=!0),n.memoizedState=l,n.baseQueue===null&&(n.baseState=l),t.lastRenderedState=l}return[l,r]}function Ep(){}function Pp(e,n){var t=ae,r=rn(),i=n(),l=!hn(r.memoizedState,i);if(l&&(r.memoizedState=i,Me=!0),r=r.queue,ya(zp.bind(null,t,r,e),[e]),r.getSnapshot!==n||l||ve!==null&&ve.memoizedState.tag&1){if(t.flags|=2048,Zr(9,Tp.bind(null,t,r,i,n),void 0,null),xe===null)throw Error(T(349));kt&30||_p(t,n,i)}return i}function _p(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},n=ae.updateQueue,n===null?(n={lastEffect:null,stores:null},ae.updateQueue=n,n.stores=[e]):(t=n.stores,t===null?n.stores=[e]:t.push(e))}function Tp(e,n,t,r){n.value=t,n.getSnapshot=r,Ip(n)&&Lp(e)}function zp(e,n,t){return t(function(){Ip(n)&&Lp(e)})}function Ip(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!hn(e,t)}catch{return!0}}function Lp(e){var n=An(e,1);n!==null&&pn(n,e,1,-1)}function Us(e){var n=yn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:e},n.queue=e,e=e.dispatch=Ig.bind(null,ae,e),[n.memoizedState,e]}function Zr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},n=ae.updateQueue,n===null?(n={lastEffect:null,stores:null},ae.updateQueue=n,n.lastEffect=e.next=e):(t=n.lastEffect,t===null?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e)),e}function Np(){return rn().memoizedState}function ji(e,n,t,r){var i=yn();ae.flags|=e,i.memoizedState=Zr(1|n,t,void 0,r===void 0?null:r)}function zl(e,n,t,r){var i=rn();r=r===void 0?null:r;var l=void 0;if(ye!==null){var o=ye.memoizedState;if(l=o.destroy,r!==null&&ha(r,o.deps)){i.memoizedState=Zr(n,t,l,r);return}}ae.flags|=e,i.memoizedState=Zr(1|n,t,l,r)}function Hs(e,n){return ji(8390656,8,e,n)}function ya(e,n){return zl(2048,8,e,n)}function Dp(e,n){return zl(4,2,e,n)}function Ap(e,n){return zl(4,4,e,n)}function Fp(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Rp(e,n,t){return t=t!=null?t.concat([e]):null,zl(4,4,Fp.bind(null,n,e),t)}function ka(){}function Op(e,n){var t=rn();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&ha(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Mp(e,n){var t=rn();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&ha(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function bp(e,n,t){return kt&21?(hn(t,n)||(t=Vf(),ae.lanes|=t,vt|=t,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=t)}function Tg(e,n){var t=X;X=t!==0&&4>t?t:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),n()}finally{X=t,ao.transition=r}}function jp(){return rn().memoizedState}function zg(e,n,t){var r=Zn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Bp(e))Up(n,t);else if(t=wp(e,n,t,r),t!==null){var i=De();pn(t,e,r,i),Hp(t,n,r)}}function Ig(e,n,t){var r=Zn(e),i={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Up(n,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var o=n.lastRenderedState,u=l(o,t);if(i.hasEagerState=!0,i.eagerState=u,hn(u,o)){var a=n.interleaved;a===null?(i.next=i,sa(n)):(i.next=a.next,a.next=i),n.interleaved=i;return}}catch{}finally{}t=wp(e,n,i,r),t!==null&&(i=De(),pn(t,e,r,i),Hp(t,n,r))}}function Bp(e){var n=e.alternate;return e===ae||n!==null&&n===ae}function Up(e,n){Lr=cl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Hp(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}var fl={readContext:tn,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},Lg={readContext:tn,useCallback:function(e,n){return yn().memoizedState=[e,n===void 0?null:n],e},useContext:tn,useEffect:Hs,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ji(4194308,4,Fp.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ji(4194308,4,e,n)},useInsertionEffect:function(e,n){return ji(4,2,e,n)},useMemo:function(e,n){var t=yn();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=yn();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=zg.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var n=yn();return e={current:e},n.memoizedState=e},useState:Us,useDebugValue:ka,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=Us(!1),n=e[0];return e=Tg.bind(null,e[1]),yn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=ae,i=yn();if(oe){if(t===void 0)throw Error(T(407));t=t()}else{if(t=n(),xe===null)throw Error(T(349));kt&30||_p(r,n,t)}i.memoizedState=t;var l={value:t,getSnapshot:n};return i.queue=l,Hs(zp.bind(null,r,l,e),[e]),r.flags|=2048,Zr(9,Tp.bind(null,r,l,t,n),void 0,null),t},useId:function(){var e=yn(),n=xe.identifierPrefix;if(oe){var t=In,r=zn;t=(r&~(1<<32-fn(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Xr++,0<t&&(n+="H"+t.toString(32)),n+=":"}else t=_g++,n=":"+n+"r"+t.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ng={readContext:tn,useCallback:Op,useContext:tn,useEffect:ya,useImperativeHandle:Rp,useInsertionEffect:Dp,useLayoutEffect:Ap,useMemo:Mp,useReducer:so,useRef:Np,useState:function(){return so(Gr)},useDebugValue:ka,useDeferredValue:function(e){var n=rn();return bp(n,ye.memoizedState,e)},useTransition:function(){var e=so(Gr)[0],n=rn().memoizedState;return[e,n]},useMutableSource:Ep,useSyncExternalStore:Pp,useId:jp,unstable_isNewReconciler:!1},Dg={readContext:tn,useCallback:Op,useContext:tn,useEffect:ya,useImperativeHandle:Rp,useInsertionEffect:Dp,useLayoutEffect:Ap,useMemo:Mp,useReducer:co,useRef:Np,useState:function(){return co(Gr)},useDebugValue:ka,useDeferredValue:function(e){var n=rn();return ye===null?n.memoizedState=e:bp(n,ye.memoizedState,e)},useTransition:function(){var e=co(Gr)[0],n=rn().memoizedState;return[e,n]},useMutableSource:Ep,useSyncExternalStore:Pp,useId:jp,unstable_isNewReconciler:!1};function an(e,n){if(e&&e.defaultProps){n=se({},n),e=e.defaultProps;for(var t in e)n[t]===void 0&&(n[t]=e[t]);return n}return n}function au(e,n,t,r){n=e.memoizedState,t=t(r,n),t=t==null?n:se({},n,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Il={isMounted:function(e){return(e=e._reactInternals)?Ct(e)===e:!1},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=De(),i=Zn(e),l=Ln(r,i);l.payload=n,t!=null&&(l.callback=t),n=Xn(e,l,i),n!==null&&(pn(n,e,i,r),Mi(n,e,i))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=De(),i=Zn(e),l=Ln(r,i);l.tag=1,l.payload=n,t!=null&&(l.callback=t),n=Xn(e,l,i),n!==null&&(pn(n,e,i,r),Mi(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=De(),r=Zn(e),i=Ln(t,r);i.tag=2,n!=null&&(i.callback=n),n=Xn(e,i,r),n!==null&&(pn(n,e,r,t),Mi(n,e,r))}};function Vs(e,n,t,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):n.prototype&&n.prototype.isPureReactComponent?!$r(t,r)||!$r(i,l):!0}function Vp(e,n,t){var r=!1,i=nt,l=n.contextType;return typeof l=="object"&&l!==null?l=tn(l):(i=je(n)?gt:ze.current,r=n.contextTypes,l=(r=r!=null)?Gt(e,i):nt),n=new n(t,l),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Il,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),n}function $s(e,n,t,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(t,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&Il.enqueueReplaceState(n,n.state,null)}function su(e,n,t,r){var i=e.stateNode;i.props=t,i.state=e.memoizedState,i.refs={},ca(e);var l=n.contextType;typeof l=="object"&&l!==null?i.context=tn(l):(l=je(n)?gt:ze.current,i.context=Gt(e,l)),i.state=e.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(au(e,n,l,t),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(n=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),n!==i.state&&Il.enqueueReplaceState(i,i.state,null),al(e,t,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function nr(e,n){try{var t="",r=n;do t+=om(r),r=r.return;while(r);var i=t}catch(l){i=`
|
||
Error generating stack: `+l.message+`
|
||
`+l.stack}return{value:e,source:n,stack:i,digest:null}}function fo(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function cu(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var Ag=typeof WeakMap=="function"?WeakMap:Map;function $p(e,n,t){t=Ln(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){dl||(dl=!0,xu=r),cu(e,n)},t}function Wp(e,n,t){t=Ln(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;t.payload=function(){return r(i)},t.callback=function(){cu(e,n)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(t.callback=function(){cu(e,n),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})}),t}function Ws(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new Ag;var i=new Set;r.set(n,i)}else i=r.get(n),i===void 0&&(i=new Set,r.set(n,i));i.has(t)||(i.add(t),e=Yg.bind(null,e,n,t),n.then(e,e))}function Qs(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Ys(e,n,t,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Ln(-1,1),n.tag=2,Xn(t,n,1))),t.lanes|=1),e)}var Fg=Rn.ReactCurrentOwner,Me=!1;function Le(e,n,t,r){n.child=e===null?xp(n,null,t,r):Jt(n,e.child,t,r)}function Ks(e,n,t,r,i){t=t.render;var l=n.ref;return Yt(n,i),r=ma(e,n,t,r,l,i),t=ga(),e!==null&&!Me?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i,Fn(e,n,i)):(oe&&t&&ra(n),n.flags|=1,Le(e,n,r,i),n.child)}function qs(e,n,t,r,i){if(e===null){var l=t.type;return typeof l=="function"&&!_a(l)&&l.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=l,Qp(e,n,l,r,i)):(e=Vi(t.type,null,r,n,n.mode,i),e.ref=n.ref,e.return=n,n.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(t=t.compare,t=t!==null?t:$r,t(o,r)&&e.ref===n.ref)return Fn(e,n,i)}return n.flags|=1,e=Jn(l,r),e.ref=n.ref,e.return=n,n.child=e}function Qp(e,n,t,r,i){if(e!==null){var l=e.memoizedProps;if($r(l,r)&&e.ref===n.ref)if(Me=!1,n.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Me=!0);else return n.lanes=e.lanes,Fn(e,n,i)}return fu(e,n,t,r,i)}function Yp(e,n,t){var r=n.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(Ht,$e),$e|=t;else{if(!(t&1073741824))return e=l!==null?l.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,te(Ht,$e),$e|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:t,te(Ht,$e),$e|=r}else l!==null?(r=l.baseLanes|t,n.memoizedState=null):r=t,te(Ht,$e),$e|=r;return Le(e,n,i,t),n.child}function Kp(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function fu(e,n,t,r,i){var l=je(t)?gt:ze.current;return l=Gt(n,l),Yt(n,i),t=ma(e,n,t,r,l,i),r=ga(),e!==null&&!Me?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i,Fn(e,n,i)):(oe&&r&&ra(n),n.flags|=1,Le(e,n,t,i),n.child)}function Xs(e,n,t,r,i){if(je(t)){var l=!0;rl(n)}else l=!1;if(Yt(n,i),n.stateNode===null)Bi(e,n),Vp(n,t,r),su(n,t,r,i),r=!0;else if(e===null){var o=n.stateNode,u=n.memoizedProps;o.props=u;var a=o.context,s=t.contextType;typeof s=="object"&&s!==null?s=tn(s):(s=je(t)?gt:ze.current,s=Gt(n,s));var f=t.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||a!==s)&&$s(n,o,r,s),Un=!1;var d=n.memoizedState;o.state=d,al(n,r,o,i),a=n.memoizedState,u!==r||d!==a||be.current||Un?(typeof f=="function"&&(au(n,t,f,r),a=n.memoizedState),(u=Un||Vs(n,t,u,r,d,a,s))?(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"&&(n.flags|=4194308)):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=a),o.props=r,o.state=a,o.context=s,r=u):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{o=n.stateNode,Sp(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:an(n.type,u),o.props=s,c=n.pendingProps,d=o.context,a=t.contextType,typeof a=="object"&&a!==null?a=tn(a):(a=je(t)?gt:ze.current,a=Gt(n,a));var p=t.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==c||d!==a)&&$s(n,o,r,a),Un=!1,d=n.memoizedState,o.state=d,al(n,r,o,i);var m=n.memoizedState;u!==c||d!==m||be.current||Un?(typeof p=="function"&&(au(n,t,p,r),m=n.memoizedState),(s=Un||Vs(n,t,s,r,d,m,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,a)),typeof o.componentDidUpdate=="function"&&(n.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),o.props=r,o.state=m,o.context=a,r=s):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return pu(e,n,t,r,l,i)}function pu(e,n,t,r,i,l){Kp(e,n);var o=(n.flags&128)!==0;if(!r&&!o)return i&&Rs(n,t,!1),Fn(e,n,l);r=n.stateNode,Fg.current=n;var u=o&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&o?(n.child=Jt(n,e.child,null,l),n.child=Jt(n,null,u,l)):Le(e,n,u,l),n.memoizedState=r.state,i&&Rs(n,t,!0),n.child}function qp(e){var n=e.stateNode;n.pendingContext?Fs(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Fs(e,n.context,!1),fa(e,n.containerInfo)}function Gs(e,n,t,r,i){return Zt(),la(i),n.flags|=256,Le(e,n,t,r),n.child}var du={dehydrated:null,treeContext:null,retryLane:0};function hu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xp(e,n,t){var r=n.pendingProps,i=ue.current,l=!1,o=(n.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),te(ue,i&1),e===null)return ou(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(o=r.children,e=r.fallback,l?(r=n.mode,l=n.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Dl(o,r,0,null),e=mt(e,r,t,null),l.return=n,e.return=n,l.sibling=e,n.child=l,n.child.memoizedState=hu(t),n.memoizedState=du,e):va(n,o));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Rg(e,n,o,r,u,i,t);if(l){l=r.fallback,o=n.mode,i=e.child,u=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&n.child!==i?(r=n.child,r.childLanes=0,r.pendingProps=a,n.deletions=null):(r=Jn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=Jn(u,l):(l=mt(l,o,t,null),l.flags|=2),l.return=n,r.return=n,r.sibling=l,n.child=r,r=l,l=n.child,o=e.child.memoizedState,o=o===null?hu(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~t,n.memoizedState=du,r}return l=e.child,e=l.sibling,r=Jn(l,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function va(e,n){return n=Dl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Ei(e,n,t,r){return r!==null&&la(r),Jt(n,e.child,null,t),e=va(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Rg(e,n,t,r,i,l,o){if(t)return n.flags&256?(n.flags&=-257,r=fo(Error(T(422))),Ei(e,n,o,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(l=r.fallback,i=n.mode,r=Dl({mode:"visible",children:r.children},i,0,null),l=mt(l,i,o,null),l.flags|=2,r.return=n,l.return=n,r.sibling=l,n.child=r,n.mode&1&&Jt(n,e.child,null,o),n.child.memoizedState=hu(o),n.memoizedState=du,l);if(!(n.mode&1))return Ei(e,n,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(T(419)),r=fo(l,r,void 0),Ei(e,n,o,r)}if(u=(o&e.childLanes)!==0,Me||u){if(r=xe,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,An(e,i),pn(r,e,i,-1))}return Pa(),r=fo(Error(T(421))),Ei(e,n,o,r)}return i.data==="$?"?(n.flags|=128,n.child=e.child,n=Kg.bind(null,e),i._reactRetry=n,null):(e=l.treeContext,We=qn(i.nextSibling),Qe=n,oe=!0,cn=null,e!==null&&(Ge[Ze++]=zn,Ge[Ze++]=In,Ge[Ze++]=yt,zn=e.id,In=e.overflow,yt=n),n=va(n,r.children),n.flags|=4096,n)}function Zs(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),uu(e.return,n,t)}function po(e,n,t,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i}:(l.isBackwards=n,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=t,l.tailMode=i)}function Gp(e,n,t){var r=n.pendingProps,i=r.revealOrder,l=r.tail;if(Le(e,n,r.children,t),r=ue.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zs(e,t,n);else if(e.tag===19)Zs(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(te(ue,r),!(n.mode&1))n.memoizedState=null;else switch(i){case"forwards":for(t=n.child,i=null;t!==null;)e=t.alternate,e!==null&&sl(e)===null&&(i=t),t=t.sibling;t=i,t===null?(i=n.child,n.child=null):(i=t.sibling,t.sibling=null),po(n,!1,i,t,l);break;case"backwards":for(t=null,i=n.child,n.child=null;i!==null;){if(e=i.alternate,e!==null&&sl(e)===null){n.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}po(n,!0,t,null,l);break;case"together":po(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Bi(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Fn(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),vt|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(T(153));if(n.child!==null){for(e=n.child,t=Jn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=Jn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function Og(e,n,t){switch(n.tag){case 3:qp(n),Zt();break;case 5:Cp(n);break;case 1:je(n.type)&&rl(n);break;case 4:fa(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,i=n.memoizedProps.value;te(ol,r._currentValue),r._currentValue=i;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(te(ue,ue.current&1),n.flags|=128,null):t&n.child.childLanes?Xp(e,n,t):(te(ue,ue.current&1),e=Fn(e,n,t),e!==null?e.sibling:null);te(ue,ue.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Gp(e,n,t);n.flags|=128}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),te(ue,ue.current),r)break;return null;case 22:case 23:return n.lanes=0,Yp(e,n,t)}return Fn(e,n,t)}var Zp,mu,Jp,ed;Zp=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};mu=function(){};Jp=function(e,n,t,r){var i=e.memoizedProps;if(i!==r){e=n.stateNode,dt(wn.current);var l=null;switch(t){case"input":i=Mo(e,i),r=Mo(e,r),l=[];break;case"select":i=se({},i,{value:void 0}),r=se({},r,{value:void 0}),l=[];break;case"textarea":i=Bo(e,i),r=Bo(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=nl)}Ho(t,r);var o;t=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var u=i[s];for(o in u)u.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Mr.hasOwnProperty(s)?l||(l=[]):(l=l||[]).push(s,null));for(s in r){var a=r[s];if(u=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&a!==u&&(a!=null||u!=null))if(s==="style")if(u){for(o in u)!u.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in a)a.hasOwnProperty(o)&&u[o]!==a[o]&&(t||(t={}),t[o]=a[o])}else t||(l||(l=[]),l.push(s,t)),t=a;else s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(l=l||[]).push(s,a)):s==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(s,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Mr.hasOwnProperty(s)?(a!=null&&s==="onScroll"&&ie("scroll",e),l||u===a||(l=[])):(l=l||[]).push(s,a))}t&&(l=l||[]).push("style",t);var s=l;(n.updateQueue=s)&&(n.flags|=4)}};ed=function(e,n,t,r){t!==r&&(n.flags|=4)};function yr(e,n){if(!oe)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var i=e.child;i!==null;)t|=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;)t|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Mg(e,n,t){var r=n.pendingProps;switch(ia(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(n),null;case 1:return je(n.type)&&tl(),Pe(n),null;case 3:return r=n.stateNode,er(),le(be),le(ze),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Si(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,cn!==null&&(Cu(cn),cn=null))),mu(e,n),Pe(n),null;case 5:pa(n);var i=dt(qr.current);if(t=n.type,e!==null&&n.stateNode!=null)Jp(e,n,t,r,i),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(T(166));return Pe(n),null}if(e=dt(wn.current),Si(n)){r=n.stateNode,t=n.type;var l=n.memoizedProps;switch(r[vn]=n,r[Yr]=l,e=(n.mode&1)!==0,t){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(i=0;i<Er.length;i++)ie(Er[i],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":us(r,l),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ie("invalid",r);break;case"textarea":ss(r,l),ie("invalid",r)}Ho(t,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&wi(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&wi(r.textContent,u,e),i=["children",""+u]):Mr.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&ie("scroll",r)}switch(t){case"input":di(r),as(r,l,!0);break;case"textarea":di(r),cs(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=nl)}r=i,n.updateQueue=r,r!==null&&(n.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zf(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[vn]=n,e[Yr]=r,Zp(e,n,!1,!1),n.stateNode=e;e:{switch(o=Vo(t,r),t){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;i<Er.length;i++)ie(Er[i],e);i=r;break;case"source":ie("error",e),i=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),i=r;break;case"details":ie("toggle",e),i=r;break;case"input":us(e,r),i=Mo(e,r),ie("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=se({},r,{value:void 0}),ie("invalid",e);break;case"textarea":ss(e,r),i=Bo(e,r),ie("invalid",e);break;default:i=r}Ho(t,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var a=u[l];l==="style"?Nf(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&If(e,a)):l==="children"?typeof a=="string"?(t!=="textarea"||a!=="")&&br(e,a):typeof a=="number"&&br(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Mr.hasOwnProperty(l)?a!=null&&l==="onScroll"&&ie("scroll",e):a!=null&&Vu(e,l,a,o))}switch(t){case"input":di(e),as(e,r,!1);break;case"textarea":di(e),cs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+et(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Vt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Vt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=nl)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Pe(n),null;case 6:if(e&&n.stateNode!=null)ed(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(T(166));if(t=dt(qr.current),dt(wn.current),Si(n)){if(r=n.stateNode,t=n.memoizedProps,r[vn]=n,(l=r.nodeValue!==t)&&(e=Qe,e!==null))switch(e.tag){case 3:wi(r.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wi(r.nodeValue,t,(e.mode&1)!==0)}l&&(n.flags|=4)}else r=(t.nodeType===9?t:t.ownerDocument).createTextNode(r),r[vn]=n,n.stateNode=r}return Pe(n),null;case 13:if(le(ue),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&We!==null&&n.mode&1&&!(n.flags&128))kp(),Zt(),n.flags|=98560,l=!1;else if(l=Si(n),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(T(318));if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(T(317));l[vn]=n}else Zt(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;Pe(n),l=!1}else cn!==null&&(Cu(cn),cn=null),l=!0;if(!l)return n.flags&65536?n:null}return n.flags&128?(n.lanes=t,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,n.mode&1&&(e===null||ue.current&1?ke===0&&(ke=3):Pa())),n.updateQueue!==null&&(n.flags|=4),Pe(n),null);case 4:return er(),mu(e,n),e===null&&Wr(n.stateNode.containerInfo),Pe(n),null;case 10:return aa(n.type._context),Pe(n),null;case 17:return je(n.type)&&tl(),Pe(n),null;case 19:if(le(ue),l=n.memoizedState,l===null)return Pe(n),null;if(r=(n.flags&128)!==0,o=l.rendering,o===null)if(r)yr(l,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(o=sl(e),o!==null){for(n.flags|=128,yr(l,!1),r=o.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;t!==null;)l=t,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}),t=t.sibling;return te(ue,ue.current&1|2),n.child}e=e.sibling}l.tail!==null&&pe()>tr&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304)}else{if(!r)if(e=sl(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!oe)return Pe(n),null}else 2*pe()-l.renderingStartTime>tr&&t!==1073741824&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304);l.isBackwards?(o.sibling=n.child,n.child=o):(t=l.last,t!==null?t.sibling=o:n.child=o,l.last=o)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=pe(),n.sibling=null,t=ue.current,te(ue,r?t&1|2:t&1),n):(Pe(n),null);case 22:case 23:return Ea(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?$e&1073741824&&(Pe(n),n.subtreeFlags&6&&(n.flags|=8192)):Pe(n),null;case 24:return null;case 25:return null}throw Error(T(156,n.tag))}function bg(e,n){switch(ia(n),n.tag){case 1:return je(n.type)&&tl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return er(),le(be),le(ze),da(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return pa(n),null;case 13:if(le(ue),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(T(340));Zt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return le(ue),null;case 4:return er(),null;case 10:return aa(n.type._context),null;case 22:case 23:return Ea(),null;case 24:return null;default:return null}}var Pi=!1,_e=!1,jg=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ut(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ce(e,n,r)}else t.current=null}function gu(e,n,t){try{t()}catch(r){ce(e,n,r)}}var Js=!1;function Bg(e,n){if(Jo=Zi,e=lp(),ta(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{t.nodeType,l.nodeType}catch{t=null;break e}var o=0,u=-1,a=-1,s=0,f=0,c=e,d=null;n:for(;;){for(var p;c!==t||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break n;if(d===t&&++s===i&&(u=o),d===l&&++f===r&&(a=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}t=u===-1||a===-1?null:{start:u,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;for(eu={focusedElem:e,selectionRange:t},Zi=!1,F=n;F!==null;)if(n=F,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,F=e;else for(;F!==null;){n=F;try{var m=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,P=m.memoizedState,h=n.stateNode,g=h.getSnapshotBeforeUpdate(n.elementType===n.type?x:an(n.type,x),P);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(C){ce(n,n.return,C)}if(e=n.sibling,e!==null){e.return=n.return,F=e;break}F=n.return}return m=Js,Js=!1,m}function Nr(e,n,t){var r=n.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&&gu(n,t,l)}i=i.next}while(i!==r)}}function Ll(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function yu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function nd(e){var n=e.alternate;n!==null&&(e.alternate=null,nd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[vn],delete n[Yr],delete n[ru],delete n[Sg],delete n[Cg])),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 td(e){return e.tag===5||e.tag===3||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(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 ku(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=nl));else if(r!==4&&(e=e.child,e!==null))for(ku(e,n,t),e=e.sibling;e!==null;)ku(e,n,t),e=e.sibling}function vu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vu(e,n,t),e=e.sibling;e!==null;)vu(e,n,t),e=e.sibling}var we=null,sn=!1;function bn(e,n,t){for(t=t.child;t!==null;)rd(e,n,t),t=t.sibling}function rd(e,n,t){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Sl,t)}catch{}switch(t.tag){case 5:_e||Ut(t,n);case 6:var r=we,i=sn;we=null,bn(e,n,t),we=r,sn=i,we!==null&&(sn?(e=we,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):we.removeChild(t.stateNode));break;case 18:we!==null&&(sn?(e=we,t=t.stateNode,e.nodeType===8?lo(e.parentNode,t):e.nodeType===1&&lo(e,t),Hr(e)):lo(we,t.stateNode));break;case 4:r=we,i=sn,we=t.stateNode.containerInfo,sn=!0,bn(e,n,t),we=r,sn=i;break;case 0:case 11:case 14:case 15:if(!_e&&(r=t.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)&&gu(t,n,o),i=i.next}while(i!==r)}bn(e,n,t);break;case 1:if(!_e&&(Ut(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){ce(t,n,u)}bn(e,n,t);break;case 21:bn(e,n,t);break;case 22:t.mode&1?(_e=(r=_e)||t.memoizedState!==null,bn(e,n,t),_e=r):bn(e,n,t);break;default:bn(e,n,t)}}function nc(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new jg),n.forEach(function(r){var i=qg.bind(null,e,r);t.has(r)||(t.add(r),r.then(i,i))})}}function un(e,n){var t=n.deletions;if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];try{var l=e,o=n,u=o;e:for(;u!==null;){switch(u.tag){case 5:we=u.stateNode,sn=!1;break e;case 3:we=u.stateNode.containerInfo,sn=!0;break e;case 4:we=u.stateNode.containerInfo,sn=!0;break e}u=u.return}if(we===null)throw Error(T(160));rd(l,o,i),we=null,sn=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(s){ce(i,n,s)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)id(n,e),n=n.sibling}function id(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(un(n,e),gn(e),r&4){try{Nr(3,e,e.return),Ll(3,e)}catch(x){ce(e,e.return,x)}try{Nr(5,e,e.return)}catch(x){ce(e,e.return,x)}}break;case 1:un(n,e),gn(e),r&512&&t!==null&&Ut(t,t.return);break;case 5:if(un(n,e),gn(e),r&512&&t!==null&&Ut(t,t.return),e.flags&32){var i=e.stateNode;try{br(i,"")}catch(x){ce(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=t!==null?t.memoizedProps:l,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&_f(i,l),Vo(u,o);var s=Vo(u,l);for(o=0;o<a.length;o+=2){var f=a[o],c=a[o+1];f==="style"?Nf(i,c):f==="dangerouslySetInnerHTML"?If(i,c):f==="children"?br(i,c):Vu(i,f,c,s)}switch(u){case"input":bo(i,l);break;case"textarea":Tf(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var p=l.value;p!=null?Vt(i,!!l.multiple,p,!1):d!==!!l.multiple&&(l.defaultValue!=null?Vt(i,!!l.multiple,l.defaultValue,!0):Vt(i,!!l.multiple,l.multiple?[]:"",!1))}i[Yr]=l}catch(x){ce(e,e.return,x)}}break;case 6:if(un(n,e),gn(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){ce(e,e.return,x)}}break;case 3:if(un(n,e),gn(e),r&4&&t!==null&&t.memoizedState.isDehydrated)try{Hr(n.containerInfo)}catch(x){ce(e,e.return,x)}break;case 4:un(n,e),gn(e);break;case 13:un(n,e),gn(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Sa=pe())),r&4&&nc(e);break;case 22:if(f=t!==null&&t.memoizedState!==null,e.mode&1?(_e=(s=_e)||f,un(n,e),_e=s):un(n,e),gn(e),r&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!f&&e.mode&1)for(F=e,f=e.child;f!==null;){for(c=F=f;F!==null;){switch(d=F,p=d.child,d.tag){case 0:case 11:case 14:case 15:Nr(4,d,d.return);break;case 1:Ut(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,t=d.return;try{n=r,m.props=n.memoizedProps,m.state=n.memoizedState,m.componentWillUnmount()}catch(x){ce(r,t,x)}}break;case 5:Ut(d,d.return);break;case 22:if(d.memoizedState!==null){rc(c);continue}}p!==null?(p.return=d,F=p):rc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,s?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=c.stateNode,a=c.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=Lf("display",o))}catch(x){ce(e,e.return,x)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=s?"":c.memoizedProps}catch(x){ce(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:un(n,e),gn(e),r&4&&nc(e);break;case 21:break;default:un(n,e),gn(e)}}function gn(e){var n=e.flags;if(n&2){try{e:{for(var t=e.return;t!==null;){if(td(t)){var r=t;break e}t=t.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(br(i,""),r.flags&=-33);var l=ec(e);vu(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,u=ec(e);ku(e,u,o);break;default:throw Error(T(161))}}catch(a){ce(e,e.return,a)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ug(e,n,t){F=e,ld(e)}function ld(e,n,t){for(var r=(e.mode&1)!==0;F!==null;){var i=F,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Pi;if(!o){var u=i.alternate,a=u!==null&&u.memoizedState!==null||_e;u=Pi;var s=_e;if(Pi=o,(_e=a)&&!s)for(F=i;F!==null;)o=F,a=o.child,o.tag===22&&o.memoizedState!==null?ic(i):a!==null?(a.return=o,F=a):ic(i);for(;l!==null;)F=l,ld(l),l=l.sibling;F=i,Pi=u,_e=s}tc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,F=l):tc(e)}}function tc(e){for(;F!==null;){var n=F;if(n.flags&8772){var t=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:_e||Ll(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!_e)if(t===null)r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:an(n.type,t.memoizedProps);r.componentDidUpdate(i,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&Bs(n,l,r);break;case 3:var o=n.updateQueue;if(o!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}Bs(n,o,t)}break;case 5:var u=n.stateNode;if(t===null&&n.flags&4){t=u;var a=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&t.focus();break;case"img":a.src&&(t.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var s=n.alternate;if(s!==null){var f=s.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Hr(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}_e||n.flags&512&&yu(n)}catch(d){ce(n,n.return,d)}}if(n===e){F=null;break}if(t=n.sibling,t!==null){t.return=n.return,F=t;break}F=n.return}}function rc(e){for(;F!==null;){var n=F;if(n===e){F=null;break}var t=n.sibling;if(t!==null){t.return=n.return,F=t;break}F=n.return}}function ic(e){for(;F!==null;){var n=F;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{Ll(4,n)}catch(a){ce(n,t,a)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var i=n.return;try{r.componentDidMount()}catch(a){ce(n,i,a)}}var l=n.return;try{yu(n)}catch(a){ce(n,l,a)}break;case 5:var o=n.return;try{yu(n)}catch(a){ce(n,o,a)}}}catch(a){ce(n,n.return,a)}if(n===e){F=null;break}var u=n.sibling;if(u!==null){u.return=n.return,F=u;break}F=n.return}}var Hg=Math.ceil,pl=Rn.ReactCurrentDispatcher,xa=Rn.ReactCurrentOwner,nn=Rn.ReactCurrentBatchConfig,K=0,xe=null,me=null,Se=0,$e=0,Ht=rt(0),ke=0,Jr=null,vt=0,Nl=0,wa=0,Dr=null,Oe=null,Sa=0,tr=1/0,Pn=null,dl=!1,xu=null,Gn=null,_i=!1,Wn=null,hl=0,Ar=0,wu=null,Ui=-1,Hi=0;function De(){return K&6?pe():Ui!==-1?Ui:Ui=pe()}function Zn(e){return e.mode&1?K&2&&Se!==0?Se&-Se:Pg.transition!==null?(Hi===0&&(Hi=Vf()),Hi):(e=X,e!==0||(e=window.event,e=e===void 0?16:Xf(e.type)),e):1}function pn(e,n,t,r){if(50<Ar)throw Ar=0,wu=null,Error(T(185));ri(e,t,r),(!(K&2)||e!==xe)&&(e===xe&&(!(K&2)&&(Nl|=t),ke===4&&Vn(e,Se)),Be(e,r),t===1&&K===0&&!(n.mode&1)&&(tr=pe()+500,Tl&&it()))}function Be(e,n){var t=e.callbackNode;Pm(e,n);var r=Gi(e,e===xe?Se:0);if(r===0)t!==null&&ds(t),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(t!=null&&ds(t),n===1)e.tag===0?Eg(lc.bind(null,e)):mp(lc.bind(null,e)),xg(function(){!(K&6)&&it()}),t=null;else{switch($f(r)){case 1:t=Ku;break;case 4:t=Uf;break;case 16:t=Xi;break;case 536870912:t=Hf;break;default:t=Xi}t=dd(t,od.bind(null,e))}e.callbackPriority=n,e.callbackNode=t}}function od(e,n){if(Ui=-1,Hi=0,K&6)throw Error(T(327));var t=e.callbackNode;if(Kt()&&e.callbackNode!==t)return null;var r=Gi(e,e===xe?Se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||n)n=ml(e,r);else{n=r;var i=K;K|=2;var l=ad();(xe!==e||Se!==n)&&(Pn=null,tr=pe()+500,ht(e,n));do try{Wg();break}catch(u){ud(e,u)}while(!0);ua(),pl.current=l,K=i,me!==null?n=0:(xe=null,Se=0,n=ke)}if(n!==0){if(n===2&&(i=Ko(e),i!==0&&(r=i,n=Su(e,i))),n===1)throw t=Jr,ht(e,0),Vn(e,r),Be(e,pe()),t;if(n===6)Vn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Vg(i)&&(n=ml(e,r),n===2&&(l=Ko(e),l!==0&&(r=l,n=Su(e,l))),n===1))throw t=Jr,ht(e,0),Vn(e,r),Be(e,pe()),t;switch(e.finishedWork=i,e.finishedLanes=r,n){case 0:case 1:throw Error(T(345));case 2:st(e,Oe,Pn);break;case 3:if(Vn(e,r),(r&130023424)===r&&(n=Sa+500-pe(),10<n)){if(Gi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=tu(st.bind(null,e,Oe,Pn),n);break}st(e,Oe,Pn);break;case 4:if(Vn(e,r),(r&4194240)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-fn(r);l=1<<o,o=n[o],o>i&&(i=o),r&=~l}if(r=i,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hg(r/1960))-r,10<r){e.timeoutHandle=tu(st.bind(null,e,Oe,Pn),r);break}st(e,Oe,Pn);break;case 5:st(e,Oe,Pn);break;default:throw Error(T(329))}}}return Be(e,pe()),e.callbackNode===t?od.bind(null,e):null}function Su(e,n){var t=Dr;return e.current.memoizedState.isDehydrated&&(ht(e,n).flags|=256),e=ml(e,n),e!==2&&(n=Oe,Oe=t,n!==null&&Cu(n)),e}function Cu(e){Oe===null?Oe=e:Oe.push.apply(Oe,e)}function Vg(e){for(var n=e;;){if(n.flags&16384){var t=n.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var r=0;r<t.length;r++){var i=t[r],l=i.getSnapshot;i=i.value;try{if(!hn(l(),i))return!1}catch{return!1}}}if(t=n.child,n.subtreeFlags&16384&&t!==null)t.return=n,n=t;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Vn(e,n){for(n&=~wa,n&=~Nl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-fn(n),r=1<<t;e[t]=-1,n&=~r}}function lc(e){if(K&6)throw Error(T(327));Kt();var n=Gi(e,0);if(!(n&1))return Be(e,pe()),null;var t=ml(e,n);if(e.tag!==0&&t===2){var r=Ko(e);r!==0&&(n=r,t=Su(e,r))}if(t===1)throw t=Jr,ht(e,0),Vn(e,n),Be(e,pe()),t;if(t===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,st(e,Oe,Pn),Be(e,pe()),null}function Ca(e,n){var t=K;K|=1;try{return e(n)}finally{K=t,K===0&&(tr=pe()+500,Tl&&it())}}function xt(e){Wn!==null&&Wn.tag===0&&!(K&6)&&Kt();var n=K;K|=1;var t=nn.transition,r=X;try{if(nn.transition=null,X=1,e)return e()}finally{X=r,nn.transition=t,K=n,!(K&6)&&it()}}function Ea(){$e=Ht.current,le(Ht)}function ht(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,vg(t)),me!==null)for(t=me.return;t!==null;){var r=t;switch(ia(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tl();break;case 3:er(),le(be),le(ze),da();break;case 5:pa(r);break;case 4:er();break;case 13:le(ue);break;case 19:le(ue);break;case 10:aa(r.type._context);break;case 22:case 23:Ea()}t=t.return}if(xe=e,me=e=Jn(e.current,null),Se=$e=n,ke=0,Jr=null,wa=Nl=vt=0,Oe=Dr=null,pt!==null){for(n=0;n<pt.length;n++)if(t=pt[n],r=t.interleaved,r!==null){t.interleaved=null;var i=r.next,l=t.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}t.pending=r}pt=null}return e}function ud(e,n){do{var t=me;try{if(ua(),bi.current=fl,cl){for(var r=ae.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cl=!1}if(kt=0,ve=ye=ae=null,Lr=!1,Xr=0,xa.current=null,t===null||t.return===null){ke=1,Jr=n,me=null;break}e:{var l=e,o=t.return,u=t,a=n;if(n=Se,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,f=u,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=Qs(o);if(p!==null){p.flags&=-257,Ys(p,o,u,l,n),p.mode&1&&Ws(l,s,n),n=p,a=s;var m=n.updateQueue;if(m===null){var x=new Set;x.add(a),n.updateQueue=x}else m.add(a);break e}else{if(!(n&1)){Ws(l,s,n),Pa();break e}a=Error(T(426))}}else if(oe&&u.mode&1){var P=Qs(o);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Ys(P,o,u,l,n),la(nr(a,u));break e}}l=a=nr(a,u),ke!==4&&(ke=2),Dr===null?Dr=[l]:Dr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,n&=-n,l.lanes|=n;var h=$p(l,a,n);js(l,h);break e;case 1:u=a;var g=l.type,y=l.stateNode;if(!(l.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gn===null||!Gn.has(y)))){l.flags|=65536,n&=-n,l.lanes|=n;var C=Wp(l,u,n);js(l,C);break e}}l=l.return}while(l!==null)}cd(t)}catch(_){n=_,me===t&&t!==null&&(me=t=t.return);continue}break}while(!0)}function ad(){var e=pl.current;return pl.current=fl,e===null?fl:e}function Pa(){(ke===0||ke===3||ke===2)&&(ke=4),xe===null||!(vt&268435455)&&!(Nl&268435455)||Vn(xe,Se)}function ml(e,n){var t=K;K|=2;var r=ad();(xe!==e||Se!==n)&&(Pn=null,ht(e,n));do try{$g();break}catch(i){ud(e,i)}while(!0);if(ua(),K=t,pl.current=r,me!==null)throw Error(T(261));return xe=null,Se=0,ke}function $g(){for(;me!==null;)sd(me)}function Wg(){for(;me!==null&&!gm();)sd(me)}function sd(e){var n=pd(e.alternate,e,$e);e.memoizedProps=e.pendingProps,n===null?cd(e):me=n,xa.current=null}function cd(e){var n=e;do{var t=n.alternate;if(e=n.return,n.flags&32768){if(t=bg(t,n),t!==null){t.flags&=32767,me=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,me=null;return}}else if(t=Mg(t,n,$e),t!==null){me=t;return}if(n=n.sibling,n!==null){me=n;return}me=n=e}while(n!==null);ke===0&&(ke=5)}function st(e,n,t){var r=X,i=nn.transition;try{nn.transition=null,X=1,Qg(e,n,t,r)}finally{nn.transition=i,X=r}return null}function Qg(e,n,t,r){do Kt();while(Wn!==null);if(K&6)throw Error(T(327));t=e.finishedWork;var i=e.finishedLanes;if(t===null)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var l=t.lanes|t.childLanes;if(_m(e,l),e===xe&&(me=xe=null,Se=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||_i||(_i=!0,dd(Xi,function(){return Kt(),null})),l=(t.flags&15990)!==0,t.subtreeFlags&15990||l){l=nn.transition,nn.transition=null;var o=X;X=1;var u=K;K|=4,xa.current=null,Bg(e,t),id(t,e),pg(eu),Zi=!!Jo,eu=Jo=null,e.current=t,Ug(t),ym(),K=u,X=o,nn.transition=l}else e.current=t;if(_i&&(_i=!1,Wn=e,hl=i),l=e.pendingLanes,l===0&&(Gn=null),xm(t.stateNode),Be(e,pe()),n!==null)for(r=e.onRecoverableError,t=0;t<n.length;t++)i=n[t],r(i.value,{componentStack:i.stack,digest:i.digest});if(dl)throw dl=!1,e=xu,xu=null,e;return hl&1&&e.tag!==0&&Kt(),l=e.pendingLanes,l&1?e===wu?Ar++:(Ar=0,wu=e):Ar=0,it(),null}function Kt(){if(Wn!==null){var e=$f(hl),n=nn.transition,t=X;try{if(nn.transition=null,X=16>e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,hl=0,K&6)throw Error(T(331));var i=K;for(K|=4,F=e.current;F!==null;){var l=F,o=l.child;if(F.flags&16){var u=l.deletions;if(u!==null){for(var a=0;a<u.length;a++){var s=u[a];for(F=s;F!==null;){var f=F;switch(f.tag){case 0:case 11:case 15:Nr(8,f,l)}var c=f.child;if(c!==null)c.return=f,F=c;else for(;F!==null;){f=F;var d=f.sibling,p=f.return;if(nd(f),f===s){F=null;break}if(d!==null){d.return=p,F=d;break}F=p}}}var m=l.alternate;if(m!==null){var x=m.child;if(x!==null){m.child=null;do{var P=x.sibling;x.sibling=null,x=P}while(x!==null)}}F=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,F=o;else e:for(;F!==null;){if(l=F,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Nr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,F=h;break e}F=l.return}}var g=e.current;for(F=g;F!==null;){o=F;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,F=y;else e:for(o=g;F!==null;){if(u=F,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Ll(9,u)}}catch(_){ce(u,u.return,_)}if(u===o){F=null;break e}var C=u.sibling;if(C!==null){C.return=u.return,F=C;break e}F=u.return}}if(K=i,it(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(Sl,e)}catch{}r=!0}return r}finally{X=t,nn.transition=n}}return!1}function oc(e,n,t){n=nr(t,n),n=$p(e,n,1),e=Xn(e,n,1),n=De(),e!==null&&(ri(e,1,n),Be(e,n))}function ce(e,n,t){if(e.tag===3)oc(e,e,t);else for(;n!==null;){if(n.tag===3){oc(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gn===null||!Gn.has(r))){e=nr(t,e),e=Wp(n,e,1),n=Xn(n,e,1),e=De(),n!==null&&(ri(n,1,e),Be(n,e));break}}n=n.return}}function Yg(e,n,t){var r=e.pingCache;r!==null&&r.delete(n),n=De(),e.pingedLanes|=e.suspendedLanes&t,xe===e&&(Se&t)===t&&(ke===4||ke===3&&(Se&130023424)===Se&&500>pe()-Sa?ht(e,0):wa|=t),Be(e,n)}function fd(e,n){n===0&&(e.mode&1?(n=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):n=1);var t=De();e=An(e,n),e!==null&&(ri(e,n,t),Be(e,t))}function Kg(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),fd(e,t)}function qg(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(t=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(n),fd(e,t)}var pd;pd=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||be.current)Me=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return Me=!1,Og(e,n,t);Me=!!(e.flags&131072)}else Me=!1,oe&&n.flags&1048576&&gp(n,ll,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Bi(e,n),e=n.pendingProps;var i=Gt(n,ze.current);Yt(n,t),i=ma(null,n,r,e,i,t);var l=ga();return n.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,je(r)?(l=!0,rl(n)):l=!1,n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ca(n),i.updater=Il,n.stateNode=i,i._reactInternals=n,su(n,r,e,t),n=pu(null,n,r,!0,l,t)):(n.tag=0,oe&&l&&ra(n),Le(null,n,i,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Bi(e,n),e=n.pendingProps,i=r._init,r=i(r._payload),n.type=r,i=n.tag=Gg(r),e=an(r,e),i){case 0:n=fu(null,n,r,e,t);break e;case 1:n=Xs(null,n,r,e,t);break e;case 11:n=Ks(null,n,r,e,t);break e;case 14:n=qs(null,n,r,an(r.type,e),t);break e}throw Error(T(306,r,""))}return n;case 0:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),fu(e,n,r,i,t);case 1:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),Xs(e,n,r,i,t);case 3:e:{if(qp(n),e===null)throw Error(T(387));r=n.pendingProps,l=n.memoizedState,i=l.element,Sp(e,n),al(n,r,null,t);var o=n.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){i=nr(Error(T(423)),n),n=Gs(e,n,r,t,i);break e}else if(r!==i){i=nr(Error(T(424)),n),n=Gs(e,n,r,t,i);break e}else for(We=qn(n.stateNode.containerInfo.firstChild),Qe=n,oe=!0,cn=null,t=xp(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zt(),r===i){n=Fn(e,n,t);break e}Le(e,n,r,t)}n=n.child}return n;case 5:return Cp(n),e===null&&ou(n),r=n.type,i=n.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,nu(r,i)?o=null:l!==null&&nu(r,l)&&(n.flags|=32),Kp(e,n),Le(e,n,o,t),n.child;case 6:return e===null&&ou(n),null;case 13:return Xp(e,n,t);case 4:return fa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jt(n,null,r,t):Le(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),Ks(e,n,r,i,t);case 7:return Le(e,n,n.pendingProps,t),n.child;case 8:return Le(e,n,n.pendingProps.children,t),n.child;case 12:return Le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,i=n.pendingProps,l=n.memoizedProps,o=i.value,te(ol,r._currentValue),r._currentValue=o,l!==null)if(hn(l.value,o)){if(l.children===i.children&&!be.current){n=Fn(e,n,t);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ln(-1,t&-t),a.tag=2;var s=l.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a}}l.lanes|=t,a=l.alternate,a!==null&&(a.lanes|=t),uu(l.return,t,n),u.lanes|=t;break}a=a.next}}else if(l.tag===10)o=l.type===n.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(T(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),uu(o,t,n),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===n){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Le(e,n,i.children,t),n=n.child}return n;case 9:return i=n.type,r=n.pendingProps.children,Yt(n,t),i=tn(i),r=r(i),n.flags|=1,Le(e,n,r,t),n.child;case 14:return r=n.type,i=an(r,n.pendingProps),i=an(r.type,i),qs(e,n,r,i,t);case 15:return Qp(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),Bi(e,n),n.tag=1,je(r)?(e=!0,rl(n)):e=!1,Yt(n,t),Vp(n,r,i),su(n,r,i,t),pu(null,n,r,!0,e,t);case 19:return Gp(e,n,t);case 22:return Yp(e,n,t)}throw Error(T(156,n.tag))};function dd(e,n){return Bf(e,n)}function Xg(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 en(e,n,t,r){return new Xg(e,n,t,r)}function _a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gg(e){if(typeof e=="function")return _a(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wu)return 11;if(e===Qu)return 14}return 2}function Jn(e,n){var t=e.alternate;return t===null?(t=en(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Vi(e,n,t,r,i,l){var o=2;if(r=e,typeof e=="function")_a(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Dt:return mt(t.children,i,l,n);case $u:o=8,i|=8;break;case Ao:return e=en(12,t,n,i|2),e.elementType=Ao,e.lanes=l,e;case Fo:return e=en(13,t,n,i),e.elementType=Fo,e.lanes=l,e;case Ro:return e=en(19,t,n,i),e.elementType=Ro,e.lanes=l,e;case Cf:return Dl(t,i,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wf:o=10;break e;case Sf:o=9;break e;case Wu:o=11;break e;case Qu:o=14;break e;case Bn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return n=en(o,t,n,i),n.elementType=e,n.type=r,n.lanes=l,n}function mt(e,n,t,r){return e=en(7,e,r,n),e.lanes=t,e}function Dl(e,n,t,r){return e=en(22,e,r,n),e.elementType=Cf,e.lanes=t,e.stateNode={isHidden:!1},e}function ho(e,n,t){return e=en(6,e,null,n),e.lanes=t,e}function mo(e,n,t){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zg(e,n,t,r,i){this.tag=n,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=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ta(e,n,t,r,i,l,o,u,a){return e=new Zg(e,n,t,u,a),n===1?(n=1,l===!0&&(n|=8)):n=0,l=en(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ca(l),e}function Jg(e,n,t){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Nt,key:r==null?null:""+r,children:e,containerInfo:n,implementation:t}}function hd(e){if(!e)return nt;e=e._reactInternals;e:{if(Ct(e)!==e||e.tag!==1)throw Error(T(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(je(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(T(171))}if(e.tag===1){var t=e.type;if(je(t))return hp(e,t,n)}return n}function md(e,n,t,r,i,l,o,u,a){return e=Ta(t,r,!0,e,i,l,o,u,a),e.context=hd(null),t=e.current,r=De(),i=Zn(t),l=Ln(r,i),l.callback=n??null,Xn(t,l,i),e.current.lanes=i,ri(e,i,r),Be(e,r),e}function Al(e,n,t,r){var i=n.current,l=De(),o=Zn(i);return t=hd(t),n.context===null?n.context=t:n.pendingContext=t,n=Ln(l,o),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=Xn(i,n,o),e!==null&&(pn(e,i,o,l),Mi(e,i,o)),o}function gl(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,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<n?t:n}}function za(e,n){uc(e,n),(e=e.alternate)&&uc(e,n)}function ey(){return null}var gd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ia(e){this._internalRoot=e}Fl.prototype.render=Ia.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(T(409));Al(e,n,null,null)};Fl.prototype.unmount=Ia.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;xt(function(){Al(null,e,null,null)}),n[Dn]=null}};function Fl(e){this._internalRoot=e}Fl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Yf();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Hn.length&&n!==0&&n<Hn[t].priority;t++);Hn.splice(t,0,e),t===0&&qf(e)}};function La(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ac(){}function ny(e,n,t,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var s=gl(o);l.call(s)}}var o=md(n,r,e,0,null,!1,!1,"",ac);return e._reactRootContainer=o,e[Dn]=o.current,Wr(e.nodeType===8?e.parentNode:e),xt(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var s=gl(a);u.call(s)}}var a=Ta(e,0,!1,null,null,!1,!1,"",ac);return e._reactRootContainer=a,e[Dn]=a.current,Wr(e.nodeType===8?e.parentNode:e),xt(function(){Al(n,a,t,r)}),a}function Ol(e,n,t,r,i){var l=t._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var u=i;i=function(){var a=gl(o);u.call(a)}}Al(n,o,e,i)}else o=ny(t,n,e,i,r);return gl(o)}Wf=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=Cr(n.pendingLanes);t!==0&&(qu(n,t|1),Be(n,pe()),!(K&6)&&(tr=pe()+500,it()))}break;case 13:xt(function(){var r=An(e,1);if(r!==null){var i=De();pn(r,e,1,i)}}),za(e,1)}};Xu=function(e){if(e.tag===13){var n=An(e,134217728);if(n!==null){var t=De();pn(n,e,134217728,t)}za(e,134217728)}};Qf=function(e){if(e.tag===13){var n=Zn(e),t=An(e,n);if(t!==null){var r=De();pn(t,e,n,r)}za(e,n)}};Yf=function(){return X};Kf=function(e,n){var t=X;try{return X=e,n()}finally{X=t}};Wo=function(e,n,t){switch(n){case"input":if(bo(e,t),n=t.name,t.type==="radio"&&n!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var i=_l(r);if(!i)throw Error(T(90));Pf(r),bo(r,i)}}}break;case"textarea":Tf(e,t);break;case"select":n=t.value,n!=null&&Vt(e,!!t.multiple,n,!1)}};Ff=Ca;Rf=xt;var ty={usingClientEntryPoint:!1,Events:[li,Ot,_l,Df,Af,Ca]},kr={findFiberByHostInstance:ft,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ry={bundleType:kr.bundleType,version:kr.version,rendererPackageName:kr.rendererPackageName,rendererConfig:kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bf(e),e===null?null:e.stateNode},findFiberByHostInstance:kr.findFiberByHostInstance||ey,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ti.isDisabled&&Ti.supportsFiber)try{Sl=Ti.inject(ry),xn=Ti}catch{}}qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ty;qe.createPortal=function(e,n){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!La(n))throw Error(T(200));return Jg(e,n,null,t)};qe.createRoot=function(e,n){if(!La(e))throw Error(T(299));var t=!1,r="",i=gd;return n!=null&&(n.unstable_strictMode===!0&&(t=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),n=Ta(e,1,!1,null,null,t,!1,r,i),e[Dn]=n.current,Wr(e.nodeType===8?e.parentNode:e),new Ia(n)};qe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=bf(n),e=e===null?null:e.stateNode,e};qe.flushSync=function(e){return xt(e)};qe.hydrate=function(e,n,t){if(!Rl(n))throw Error(T(200));return Ol(null,e,n,!0,t)};qe.hydrateRoot=function(e,n,t){if(!La(e))throw Error(T(405));var r=t!=null&&t.hydratedSources||null,i=!1,l="",o=gd;if(t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),n=md(n,null,e,1,t??null,i,!1,l,o),e[Dn]=n.current,Wr(e),r)for(e=0;e<r.length;e++)t=r[e],i=t._getVersion,i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i);return new Fl(n)};qe.render=function(e,n,t){if(!Rl(n))throw Error(T(200));return Ol(null,e,n,!1,t)};qe.unmountComponentAtNode=function(e){if(!Rl(e))throw Error(T(40));return e._reactRootContainer?(xt(function(){Ol(null,null,e,!1,function(){e._reactRootContainer=null,e[Dn]=null})}),!0):!1};qe.unstable_batchedUpdates=Ca;qe.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!Rl(t))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Ol(e,n,t,!1,r)};qe.version="18.3.1-next-f1338f8080-20240426";function yd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yd)}catch(e){console.error(e)}}yd(),yf.exports=qe;var iy=yf.exports,sc=iy;No.createRoot=sc.createRoot,No.hydrateRoot=sc.hydrateRoot;function ly(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const oy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ay={};function cc(e,n){return(ay.jsx?uy:oy).test(e)}const sy=/[ \t\n\f\r]/g;function cy(e){return typeof e=="object"?e.type==="text"?fc(e.value):!1:fc(e)}function fc(e){return e.replace(sy,"")===""}class ui{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}ui.prototype.normal={};ui.prototype.property={};ui.prototype.space=void 0;function kd(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new ui(t,r,n)}function Eu(e){return e.toLowerCase()}class Ue{constructor(n,t){this.attribute=t,this.property=n}}Ue.prototype.attribute="";Ue.prototype.booleanish=!1;Ue.prototype.boolean=!1;Ue.prototype.commaOrSpaceSeparated=!1;Ue.prototype.commaSeparated=!1;Ue.prototype.defined=!1;Ue.prototype.mustUseProperty=!1;Ue.prototype.number=!1;Ue.prototype.overloadedBoolean=!1;Ue.prototype.property="";Ue.prototype.spaceSeparated=!1;Ue.prototype.space=void 0;let fy=0;const B=Et(),he=Et(),Pu=Et(),I=Et(),ne=Et(),qt=Et(),Ve=Et();function Et(){return 2**++fy}const _u=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:he,commaOrSpaceSeparated:Ve,commaSeparated:qt,number:I,overloadedBoolean:Pu,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),go=Object.keys(_u);class Na extends Ue{constructor(n,t,r,i){let l=-1;if(super(n,t),pc(this,"space",i),typeof r=="number")for(;++l<go.length;){const o=go[l];pc(this,go[l],(r&_u[o])===_u[o])}}}Na.prototype.defined=!0;function pc(e,n,t){t&&(e[n]=t)}function ur(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Na(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[Eu(r)]=r,t[Eu(l.attribute)]=r}return new ui(n,t,e.space)}const vd=ur({properties:{ariaActiveDescendant:null,ariaAtomic:he,ariaAutoComplete:null,ariaBusy:he,ariaChecked:he,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:he,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:he,ariaFlowTo:ne,ariaGrabbed:he,ariaHasPopup:null,ariaHidden:he,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:I,ariaLive:null,ariaModal:he,ariaMultiLine:he,ariaMultiSelectable:he,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:he,ariaReadOnly:he,ariaRelevant:null,ariaRequired:he,ariaRoleDescription:ne,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:he,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function xd(e,n){return n in e?e[n]:n}function wd(e,n){return xd(e,n.toLowerCase())}const py=ur({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qt,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:ne,autoFocus:B,autoPlay:B,blocking:ne,capture:null,charSet:null,checked:B,cite:null,className:ne,cols:I,colSpan:null,content:null,contentEditable:he,controls:B,controlsList:ne,coords:I|qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:Pu,draggable:he,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:ne,height:I,hidden:Pu,high:I,href:null,hrefLang:null,htmlFor:ne,httpEquiv:ne,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:ne,itemRef:ne,itemScope:B,itemType:ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,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:B,optimum:I,pattern:null,ping:ne,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:ne,required:B,reversed:B,rows:I,rowSpan:I,sandbox:ne,scope:null,scoped:B,seamless:B,selected:B,shadowRootClonable:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:he,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:he,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:he,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:wd}),dy=ur({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:Ve,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:ne,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:qt,g2:qt,glyphName:qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:Ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ve,rev:Ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ve,requiredFeatures:Ve,requiredFonts:Ve,requiredFormats:Ve,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:Ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ve,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xd}),Sd=ur({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Cd=ur({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wd}),Ed=ur({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),hy={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},my=/[A-Z]/g,dc=/-[a-z]/g,gy=/^data[-\w.:]+$/i;function yy(e,n){const t=Eu(n);let r=n,i=Ue;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&gy.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(dc,vy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!dc.test(l)){let o=l.replace(my,ky);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Na}return new i(r,n)}function ky(e){return"-"+e.toLowerCase()}function vy(e){return e.charAt(1).toUpperCase()}const xy=kd([vd,py,Sd,Cd,Ed],"html"),Da=kd([vd,dy,Sd,Cd,Ed],"svg");function wy(e){return e.join(" ").trim()}var Aa={},hc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sy=/\n/g,Cy=/^\s*/,Ey=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Py=/^:\s*/,_y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ty=/^[;\s]*/,zy=/^\s+|\s+$/g,Iy=`
|
||
`,mc="/",gc="*",ct="",Ly="comment",Ny="declaration";function Dy(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(m){var x=m.match(Sy);x&&(t+=x.length);var P=m.lastIndexOf(Iy);r=~P?m.length-P:r+m.length}function l(){var m={line:t,column:r};return function(x){return x.position=new o(m),s(),x}}function o(m){this.start=m,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function u(m){var x=new Error(n.source+":"+t+":"+r+": "+m);if(x.reason=m,x.filename=n.source,x.line=t,x.column=r,x.source=e,!n.silent)throw x}function a(m){var x=m.exec(e);if(x){var P=x[0];return i(P),e=e.slice(P.length),x}}function s(){a(Cy)}function f(m){var x;for(m=m||[];x=c();)x!==!1&&m.push(x);return m}function c(){var m=l();if(!(mc!=e.charAt(0)||gc!=e.charAt(1))){for(var x=2;ct!=e.charAt(x)&&(gc!=e.charAt(x)||mc!=e.charAt(x+1));)++x;if(x+=2,ct===e.charAt(x-1))return u("End of comment missing");var P=e.slice(2,x-2);return r+=2,i(P),e=e.slice(x),r+=2,m({type:Ly,comment:P})}}function d(){var m=l(),x=a(Ey);if(x){if(c(),!a(Py))return u("property missing ':'");var P=a(_y),h=m({type:Ny,property:yc(x[0].replace(hc,ct)),value:P?yc(P[0].replace(hc,ct)):ct});return a(Ty),h}}function p(){var m=[];f(m);for(var x;x=d();)x!==!1&&(m.push(x),f(m));return m}return s(),p()}function yc(e){return e?e.replace(zy,ct):ct}var Ay=Dy,Fy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.default=Oy;const Ry=Fy(Ay);function Oy(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Ry.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?n(o,u,l):u&&(t=t||{},t[o]=u)}),t}var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.camelCase=void 0;var My=/^--[a-zA-Z0-9_-]+$/,by=/-([a-z])/g,jy=/^[^-]+$/,By=/^-(webkit|moz|ms|o|khtml)-/,Uy=/^-(ms)-/,Hy=function(e){return!e||jy.test(e)||My.test(e)},Vy=function(e,n){return n.toUpperCase()},kc=function(e,n){return"".concat(n,"-")},$y=function(e,n){return n===void 0&&(n={}),Hy(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Uy,kc):e=e.replace(By,kc),e.replace(by,Vy))};Ml.camelCase=$y;var Wy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Qy=Wy(Aa),Yy=Ml;function Tu(e,n){var t={};return!e||typeof e!="string"||(0,Qy.default)(e,function(r,i){r&&i&&(t[(0,Yy.camelCase)(r,n)]=i)}),t}Tu.default=Tu;var Ky=Tu;const qy=Ou(Ky),Pd=_d("end"),Fa=_d("start");function _d(e){return n;function n(t){const r=t&&t.position&&t.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 Xy(e){const n=Fa(e),t=Pd(e);if(n&&t)return{start:n,end:t}}function Fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vc(e.position):"start"in e||"end"in e?vc(e):"line"in e||"column"in e?zu(e):""}function zu(e){return xc(e&&e.line)+":"+xc(e&&e.column)}function vc(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function xc(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const u=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=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Fr(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}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const Ra={}.hasOwnProperty,Gy=new Map,Zy=/[A-Z]/g,Jy=new Set(["table","tbody","thead","tfoot","tr"]),e1=new Set(["td","th"]),Td="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n1(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=s1(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=a1(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Da:xy,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=zd(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function zd(e,n,t){if(n.type==="element")return t1(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return r1(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return l1(e,n,t);if(n.type==="mdxjsEsm")return i1(e,n);if(n.type==="root")return o1(e,n,t);if(n.type==="text")return u1(e,n)}function t1(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=Ld(e,n.tagName,!1),o=c1(e,n);let u=Ma(e,n);return Jy.has(n.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!cy(a):!0})),Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function r1(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ei(e,n.position)}function i1(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ei(e,n.position)}function l1(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Ld(e,n.name,!0),o=f1(e,n),u=Ma(e,n);return Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function o1(e,n,t){const r={};return Oa(r,Ma(e,n)),e.create(n,e.Fragment,r,t)}function u1(e,n){return n.value}function Id(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Oa(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function a1(e,n,t){return r;function r(i,l,o,u){const s=Array.isArray(o.children)?t:n;return u?s(l,o,u):s(l,o)}}function s1(e,n){return t;function t(r,i,l,o){const u=Array.isArray(l.children),a=Fa(r);return n(i,l,o,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function c1(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ra.call(n.properties,i)){const l=p1(e,i,n.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&e1.has(n.tagName)?r=u:t[o]=u}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function f1(e,n){const t={};for(const r of n.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 u=o.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else ei(e,n.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 u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else ei(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Ma(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Gy;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const a=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(a){const s=i.get(a)||0;o=a+"-"+s,i.set(a,s+1)}}const u=zd(e,l,o);u!==void 0&&t.push(u)}return t}function p1(e,n,t){const r=yy(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?ly(t):wy(t)),r.property==="style"){let i=typeof t=="object"?t:d1(e,String(t));return e.stylePropertyNameCase==="css"&&(i=h1(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?hy[r.property]||r.property:r.attribute,t]}}function d1(e,n){try{return qy(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Ie("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=Td+"#cannot-parse-style-attribute",i}}function Ld(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const u=cc(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}r=o}else r=cc(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Ra.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ei(e)}function ei(e,n){const t=new Ie("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Td+"#cannot-handle-mdx-estrees-without-createevaluater",t}function h1(e){const n={};let t;for(t in e)Ra.call(e,t)&&(n[m1(t)]=e[t]);return n}function m1(e){let n=e.replace(Zy,g1);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function g1(e){return"-"+e.toLowerCase()}const yo={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"]},y1={};function ba(e,n){const t=y1,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Nd(e,r,i)}function Nd(e,n,t){if(k1(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wc(e.children,n,t)}return Array.isArray(e)?wc(e,n,t):""}function wc(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Nd(e[i],n,t);return r.join("")}function k1(e){return!!(e&&typeof e=="object")}const Sc=document.createElement("i");function ja(e){const n="&"+e+";";Sc.innerHTML=n;const t=Sc.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ye(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function Je(e,n){return e.length>0?(Ye(e,e.length,0,n),e):n}const Cc={}.hasOwnProperty;function Dd(e){const n={};let t=-1;for(;++t<e.length;)v1(n,e[t]);return n}function v1(e,n){let t;for(t in n){const i=(Cc.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Cc.call(i,o)||(i[o]=[]);const u=l[o];x1(i[o],Array.isArray(u)?u:u?[u]:[])}}}function x1(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Ye(e,0,0,r)}function Ad(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"<22>":String.fromCodePoint(t)}function dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne=lt(/[A-Za-z]/),Te=lt(/[\dA-Za-z]/),w1=lt(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Iu=lt(/\d/),S1=lt(/[\dA-Fa-f]/),C1=lt(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const bl=lt(new RegExp("\\p{P}|\\p{S}","u")),wt=lt(/\s/);function lt(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ar(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&Te(e.charCodeAt(t+1))&&Te(e.charCodeAt(t+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 u=e.charCodeAt(t+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="<22>"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return U(a)?(e.enter(t),u(a)):n(a)}function u(a){return U(a)&&l++<i?(e.consume(a),u):(e.exit(t),n(a))}}const E1={tokenize:P1};function P1(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return O(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const _1={tokenize:T1},Ec={tokenize:z1};function T1(e){const n=this,t=[];let r=0,i,l,o;return u;function u(y){if(r<t.length){const C=t[r];return n.containerState=C[1],e.attempt(C[0].continuation,a,s)(y)}return s(y)}function a(y){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&g();const C=n.events.length;let _=C,w;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){w=n.events[_][1].end;break}h(r);let z=C;for(;z<n.events.length;)n.events[z][1].end={...w},z++;return Ye(n.events,_+1,0,n.events.slice(C)),n.events.length=z,s(y)}return u(y)}function s(y){if(r===t.length){if(!i)return d(y);if(i.currentConstruct&&i.currentConstruct.concrete)return m(y);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ec,f,c)(y)}function f(y){return i&&g(),h(r),d(y)}function c(y){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,m(y)}function d(y){return n.containerState={},e.attempt(Ec,p,m)(y)}function p(y){return r++,t.push([n.currentConstruct,n.containerState]),d(y)}function m(y){if(y===null){i&&g(),h(0),e.consume(y);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),x(y)}function x(y){if(y===null){P(e.exit("chunkFlow"),!0),h(0),e.consume(y);return}return O(y)?(e.consume(y),P(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(y),x)}function P(y,C){const _=n.sliceStream(y);if(C&&_.push(null),y.previous=l,l&&(l.next=y),l=y,i.defineSkip(y.start),i.write(_),n.parser.lazy[y.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const z=n.events.length;let L=z,M,S;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if(M){S=n.events[L][1].end;break}M=!0}for(h(r),w=z;w<n.events.length;)n.events[w][1].end={...S},w++;Ye(n.events,L+1,0,n.events.slice(z)),n.events.length=w}}function h(y){let C=t.length;for(;C-- >y;){const _=t[C];n.containerState=_[1],_[0].exit.call(n,e)}t.length=y}function g(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function z1(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rr(e){if(e===null||J(e)||wt(e))return 1;if(bl(e))return 2}function jl(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Lu={name:"attention",resolveAll:I1,tokenize:L1};function I1(e,n){let t=-1,r,i,l,o,u,a,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[t][1].start};Pc(c,-a),Pc(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[t][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Je(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=Je(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=Je(s,jl(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=Je(s,[["exit",l,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=Je(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Ye(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function L1(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=rr(r);let l;return o;function o(a){return l=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===l)return e.consume(a),u;const s=e.exit("attentionSequence"),f=rr(a),c=!f||f===2&&i||t.includes(a),d=!i||i===2&&f||t.includes(r);return s._open=!!(l===42?c:c&&(i||!d)),s._close=!!(l===42?d:d&&(f||!c)),n(a)}}function Pc(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const N1={name:"autolink",tokenize:D1};function D1(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return Ne(p)?(e.consume(p),o):p===64?t(p):s(p)}function o(p){return p===43||p===45||p===46||Te(p)?(r=1,u(p)):s(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Te(p))&&r++<32?(e.consume(p),u):(r=0,s(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||yl(p)?t(p):(e.consume(p),a)}function s(p){return p===64?(e.consume(p),f):w1(p)?(e.consume(p),s):t(p)}function f(p){return Te(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||Te(p))&&r++<63){const m=p===45?d:c;return e.consume(p),m}return t(p)}}const ai={partial:!0,tokenize:A1};function A1(e,n,t){return r;function r(l){return U(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||O(l)?n(l):t(l)}}const Fd={continuation:{tokenize:R1},exit:O1,name:"blockQuote",tokenize:F1};function F1(e,n,t){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return U(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function R1(e,n,t){const r=this;return i;function i(o){return U(o)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Fd,n,t)(o)}}function O1(e){e.exit("blockQuote")}const Rd={name:"characterEscape",tokenize:M1};function M1(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return C1(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Od={name:"characterReference",tokenize:b1};function b1(e,n,t){const r=this;let i=0,l,o;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),l=31,o=Te,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=S1,f):(e.enter("characterReferenceValue"),l=7,o=Iu,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===Te&&!ja(r.sliceSerialize(d))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<l?(e.consume(c),f):t(c)}}const _c={partial:!0,tokenize:B1},Tc={concrete:!0,name:"codeFenced",tokenize:j1};function j1(e,n,t){const r=this,i={partial:!0,tokenize:_};let l=0,o=0,u;return a;function a(w){return s(w)}function s(w){const z=r.events[r.events.length-1];return l=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===u?(o++,e.consume(w),f):o<3?t(w):(e.exit("codeFencedFenceSequence"),U(w)?W(e,c,"whitespace")(w):c(w))}function c(w){return w===null||O(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(_c,x,C)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,p,"whitespace")(w)):w===96&&w===u?t(w):(e.consume(w),d)}function p(w){return w===null||O(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===u?t(w):(e.consume(w),m)}function x(w){return e.attempt(i,C,P)(w)}function P(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h}function h(w){return l>0&&U(w)?W(e,g,"linePrefix",l+1)(w):g(w)}function g(w){return w===null||O(w)?e.check(_c,x,C)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||O(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),y)}function C(w){return e.exit("codeFenced"),n(w)}function _(w,z,L){let M=0;return S;function S(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),A}function A(V){return w.enter("codeFencedFence"),U(V)?W(w,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):R(V)}function R(V){return V===u?(w.enter("codeFencedFenceSequence"),Q(V)):L(V)}function Q(V){return V===u?(M++,w.consume(V),Q):M>=o?(w.exit("codeFencedFenceSequence"),U(V)?W(w,ee,"whitespace")(V):ee(V)):L(V)}function ee(V){return V===null||O(V)?(w.exit("codeFencedFence"),z(V)):L(V)}}}function B1(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const ko={name:"codeIndented",tokenize:H1},U1={partial:!0,tokenize:V1};function H1(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(s)}function l(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?a(s):O(s)?e.attempt(U1,o,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||O(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),n(s)}}function V1(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):O(o)?i(o):t(o)}}const $1={name:"codeText",previous:Q1,resolve:W1,tokenize:Y1};function W1(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||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),n-=r-i-2,r=i+2),i=void 0);return e}function Q1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Y1(e,n,t){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):O(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||O(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(l.type="codeTextData",s(c))}}class K1{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&vr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),vr(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),vr(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);vr(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);vr(this.left,t.reverse())}}}function vr(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Md(e){const n={};let t=-1,r,i,l,o,u,a,s;const f=new K1(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,l=0,l<a.length&&a[l][1].type==="lineEndingBlank"&&(l+=2),l<a.length&&a[l][1].type==="content"))for(;++l<a.length&&a[l][1].type!=="content";)a[l][1].type==="chunkText"&&(a[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,q1(f,t)),t=n[t],s=!0);else if(r[1]._container){for(l=t,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},u=f.slice(i,t),u.unshift(r),f.splice(i,t-i+1,u))}}return Ye(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function q1(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const u=o.events,a=[],s={};let f,c,d=-1,p=t,m=0,x=0;const P=[x];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++d<u.length;)u[d][0]==="exit"&&u[d-1][0]==="enter"&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(x=d+1,P.push(x),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):P.pop(),d=P.length;d--;){const h=u.slice(P[d],P[d+1]),g=l.pop();a.push([g,g+h.length-1]),e.splice(g,2,h)}for(a.reverse(),d=-1;++d<a.length;)s[m+a[d][0]]=m+a[d][1],m+=a[d][1]-a[d][0]-1;return s}const X1={resolve:Z1,tokenize:J1},G1={partial:!0,tokenize:ek};function Z1(e){return Md(e),e}function J1(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?l(u):O(u)?e.check(G1,o,l)(u):(e.consume(u),i)}function l(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function o(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ek(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(o){if(o===null||O(o))return t(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function bd(e,n,t,r,i,l,o,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||yl(h)?t(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(u),d(h)):h===null||h===60||O(h)?t(h):(e.consume(h),h===92?m:p)}function m(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function x(h){return!f&&(h===null||h===41||J(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(h)):f<s&&h===40?(e.consume(h),f++,x):h===41?(e.consume(h),f--,x):h===null||h===32||h===40||yl(h)?t(h):(e.consume(h),h===92?P:x)}function P(h){return h===40||h===41||h===92?(e.consume(h),x):x(h)}}function jd(e,n,t,r,i,l){const o=this;let u=0,a;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||O(p)||u++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!U(p)),p===92?d:c)}function d(p){return p===91||p===92||p===93?(e.consume(p),u++,c):c(p)}}function Bd(e,n,t,r,i,l){let o;return u;function u(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,a):t(d)}function a(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),a(o)):d===null?t(d):O(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),W(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||O(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function Rr(e,n){let t;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):U(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const nk={name:"definition",tokenize:rk},tk={partial:!0,tokenize:ik};function rk(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return jd.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):t(p)}function a(p){return J(p)?Rr(e,s)(p):s(p)}function s(p){return bd(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(tk,c,c)(p)}function c(p){return U(p)?W(e,d,"whitespace")(p):d(p)}function d(p){return p===null||O(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function ik(e,n,t){return r;function r(u){return J(u)?Rr(e,i)(u):t(u)}function i(u){return Bd(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return U(u)?W(e,o,"whitespace")(u):o(u)}function o(u){return u===null||O(u)?n(u):t(u)}}const lk={name:"hardBreakEscape",tokenize:ok};function ok(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return O(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const uk={name:"headingAtx",resolve:ak,tokenize:sk};function ak(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ye(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function sk(e,n,t){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||J(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||O(f)?(e.exit("atxHeading"),n(f)):U(f)?W(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||J(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const ck=["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"],zc=["pre","script","style","textarea"],fk={concrete:!0,name:"htmlFlow",resolveTo:hk,tokenize:mk},pk={partial:!0,tokenize:yk},dk={partial:!0,tokenize:gk};function hk(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function mk(e,n,t){const r=this;let i,l,o,u,a;return s;function s(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),c}function c(v){return v===33?(e.consume(v),d):v===47?(e.consume(v),l=!0,x):v===63?(e.consume(v),i=3,r.interrupt?n:k):Ne(v)?(e.consume(v),o=String.fromCharCode(v),P):t(v)}function d(v){return v===45?(e.consume(v),i=2,p):v===91?(e.consume(v),i=5,u=0,m):Ne(v)?(e.consume(v),i=4,r.interrupt?n:k):t(v)}function p(v){return v===45?(e.consume(v),r.interrupt?n:k):t(v)}function m(v){const ge="CDATA[";return v===ge.charCodeAt(u++)?(e.consume(v),u===ge.length?r.interrupt?n:R:m):t(v)}function x(v){return Ne(v)?(e.consume(v),o=String.fromCharCode(v),P):t(v)}function P(v){if(v===null||v===47||v===62||J(v)){const ge=v===47,ln=o.toLowerCase();return!ge&&!l&&zc.includes(ln)?(i=1,r.interrupt?n(v):R(v)):ck.includes(o.toLowerCase())?(i=6,ge?(e.consume(v),h):r.interrupt?n(v):R(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(v):l?g(v):y(v))}return v===45||Te(v)?(e.consume(v),o+=String.fromCharCode(v),P):t(v)}function h(v){return v===62?(e.consume(v),r.interrupt?n:R):t(v)}function g(v){return U(v)?(e.consume(v),g):S(v)}function y(v){return v===47?(e.consume(v),S):v===58||v===95||Ne(v)?(e.consume(v),C):U(v)?(e.consume(v),y):S(v)}function C(v){return v===45||v===46||v===58||v===95||Te(v)?(e.consume(v),C):_(v)}function _(v){return v===61?(e.consume(v),w):U(v)?(e.consume(v),_):y(v)}function w(v){return v===null||v===60||v===61||v===62||v===96?t(v):v===34||v===39?(e.consume(v),a=v,z):U(v)?(e.consume(v),w):L(v)}function z(v){return v===a?(e.consume(v),a=null,M):v===null||O(v)?t(v):(e.consume(v),z)}function L(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||J(v)?_(v):(e.consume(v),L)}function M(v){return v===47||v===62||U(v)?y(v):t(v)}function S(v){return v===62?(e.consume(v),A):t(v)}function A(v){return v===null||O(v)?R(v):U(v)?(e.consume(v),A):t(v)}function R(v){return v===45&&i===2?(e.consume(v),de):v===60&&i===1?(e.consume(v),fe):v===62&&i===4?(e.consume(v),Y):v===63&&i===3?(e.consume(v),k):v===93&&i===5?(e.consume(v),b):O(v)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(pk,G,Q)(v)):v===null||O(v)?(e.exit("htmlFlowData"),Q(v)):(e.consume(v),R)}function Q(v){return e.check(dk,ee,G)(v)}function ee(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),V}function V(v){return v===null||O(v)?Q(v):(e.enter("htmlFlowData"),R(v))}function de(v){return v===45?(e.consume(v),k):R(v)}function fe(v){return v===47?(e.consume(v),o="",D):R(v)}function D(v){if(v===62){const ge=o.toLowerCase();return zc.includes(ge)?(e.consume(v),Y):R(v)}return Ne(v)&&o.length<8?(e.consume(v),o+=String.fromCharCode(v),D):R(v)}function b(v){return v===93?(e.consume(v),k):R(v)}function k(v){return v===62?(e.consume(v),Y):v===45&&i===2?(e.consume(v),k):R(v)}function Y(v){return v===null||O(v)?(e.exit("htmlFlowData"),G(v)):(e.consume(v),Y)}function G(v){return e.exit("htmlFlow"),n(v)}}function gk(e,n,t){const r=this;return i;function i(o){return O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function yk(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ai,n,t)}}const kk={name:"htmlText",tokenize:vk};function vk(e,n,t){const r=this;let i,l,o;return u;function u(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),s):k===47?(e.consume(k),_):k===63?(e.consume(k),y):Ne(k)?(e.consume(k),L):t(k)}function s(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):Ne(k)?(e.consume(k),g):t(k)}function f(k){return k===45?(e.consume(k),p):t(k)}function c(k){return k===null?t(k):k===45?(e.consume(k),d):O(k)?(o=c,fe(k)):(e.consume(k),c)}function d(k){return k===45?(e.consume(k),p):c(k)}function p(k){return k===62?de(k):k===45?d(k):c(k)}function m(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?x:m):t(k)}function x(k){return k===null?t(k):k===93?(e.consume(k),P):O(k)?(o=x,fe(k)):(e.consume(k),x)}function P(k){return k===93?(e.consume(k),h):x(k)}function h(k){return k===62?de(k):k===93?(e.consume(k),h):x(k)}function g(k){return k===null||k===62?de(k):O(k)?(o=g,fe(k)):(e.consume(k),g)}function y(k){return k===null?t(k):k===63?(e.consume(k),C):O(k)?(o=y,fe(k)):(e.consume(k),y)}function C(k){return k===62?de(k):y(k)}function _(k){return Ne(k)?(e.consume(k),w):t(k)}function w(k){return k===45||Te(k)?(e.consume(k),w):z(k)}function z(k){return O(k)?(o=z,fe(k)):U(k)?(e.consume(k),z):de(k)}function L(k){return k===45||Te(k)?(e.consume(k),L):k===47||k===62||J(k)?M(k):t(k)}function M(k){return k===47?(e.consume(k),de):k===58||k===95||Ne(k)?(e.consume(k),S):O(k)?(o=M,fe(k)):U(k)?(e.consume(k),M):de(k)}function S(k){return k===45||k===46||k===58||k===95||Te(k)?(e.consume(k),S):A(k)}function A(k){return k===61?(e.consume(k),R):O(k)?(o=A,fe(k)):U(k)?(e.consume(k),A):M(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?t(k):k===34||k===39?(e.consume(k),i=k,Q):O(k)?(o=R,fe(k)):U(k)?(e.consume(k),R):(e.consume(k),ee)}function Q(k){return k===i?(e.consume(k),i=void 0,V):k===null?t(k):O(k)?(o=Q,fe(k)):(e.consume(k),Q)}function ee(k){return k===null||k===34||k===39||k===60||k===61||k===96?t(k):k===47||k===62||J(k)?M(k):(e.consume(k),ee)}function V(k){return k===47||k===62||J(k)?M(k):t(k)}function de(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):t(k)}function fe(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return U(k)?W(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):b(k)}function b(k){return e.enter("htmlTextData"),o(k)}}const Ba={name:"labelEnd",resolveAll:Ck,resolveTo:Ek,tokenize:Pk},xk={tokenize:_k},wk={tokenize:Tk},Sk={tokenize:zk};function Ck(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Ye(e,0,e.length,t),e}function Ek(e,n){let t=e.length,r=0,i,l,o,u;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const a={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},s={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 u=[["enter",a,n],["enter",s,n]],u=Je(u,e.slice(l+1,l+r+3)),u=Je(u,[["enter",f,n]]),u=Je(u,jl(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),u=Je(u,[["exit",f,n],e[o-2],e[o-1],["exit",s,n]]),u=Je(u,e.slice(o+1)),u=Je(u,[["exit",a,n]]),Ye(e,l,e.length,u),e}function Pk(e,n,t){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 u;function u(d){return l?l._inactive?c(d):(o=r.parser.defined.includes(dn(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),a):t(d)}function a(d){return d===40?e.attempt(xk,f,o?f:c)(d):d===91?e.attempt(wk,f,o?s:c)(d):o?f(d):c(d)}function s(d){return e.attempt(Sk,f,c)(d)}function f(d){return n(d)}function c(d){return l._balanced=!0,t(d)}}function _k(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return J(c)?Rr(e,l)(c):l(c)}function l(c){return c===41?f(c):bd(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return J(c)?Rr(e,a)(c):f(c)}function u(c){return t(c)}function a(c){return c===34||c===39||c===40?Bd(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return J(c)?Rr(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Tk(e,n,t){const r=this;return i;function i(u){return jd.call(r,e,l,o,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function o(u){return t(u)}}function zk(e,n,t){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"),n):t(l)}}const Ik={name:"labelStartImage",resolveAll:Ba.resolveAll,tokenize:Lk};function Lk(e,n,t){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):t(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const Nk={name:"labelStartLink",resolveAll:Ba.resolveAll,tokenize:Dk};function Dk(e,n,t){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?t(o):n(o)}}const vo={name:"lineEnding",tokenize:Ak};function Ak(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const $i={name:"thematicBreak",tokenize:Fk};function Fk(e,n,t){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||O(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),U(s)?W(e,u,"whitespace")(s):u(s))}}const Re={continuation:{tokenize:bk},exit:Bk,name:"list",tokenize:Mk},Rk={partial:!0,tokenize:Uk},Ok={partial:!0,tokenize:jk};function Mk(e,n,t){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 u;function u(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Iu(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($i,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return t(p)}function a(p){return Iu(p)&&++o<10?(e.consume(p),a):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(ai,r.interrupt?t:f,e.attempt(Rk,d,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function c(p){return U(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function bk(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(ai,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!U(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ok,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(Re,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function jk(e,n,t){const r=this;return W(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?n(l):t(l)}}function Bk(e){e.exit(this.containerState.type)}function Uk(e,n,t){const r=this;return W(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!U(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ic={name:"setextUnderline",resolveTo:Hk,tokenize:Vk};function Hk(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);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,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Vk(e,n,t){const r=this;let i;return l;function l(s){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=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),U(s)?W(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||O(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const $k={tokenize:Wk};function Wk(e){const n=this,t=e.attempt(ai,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(X1,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Qk={resolveAll:Hd()},Yk=Ud("string"),Kk=Ud("text");function Ud(e){return{resolveAll:Hd(e==="text"?qk:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,u);return o;function o(f){return s(f)?l(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),a}function a(f){return s(f)?(t.exit("data"),l(f)):(t.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const p=c[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Hd(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function qk(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,u=0,a;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(s===-2)a=!0,u++;else if(s!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(u=0),u){const s={type:t===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const Xk={42:Re,43:Re,45:Re,48:Re,49:Re,50:Re,51:Re,52:Re,53:Re,54:Re,55:Re,56:Re,57:Re,62:Fd},Gk={91:nk},Zk={[-2]:ko,[-1]:ko,32:ko},Jk={35:uk,42:$i,45:[Ic,$i],60:fk,61:Ic,95:$i,96:Tc,126:Tc},ev={38:Od,92:Rd},nv={[-5]:vo,[-4]:vo,[-3]:vo,33:Ik,38:Od,42:Lu,60:[N1,kk],91:Nk,92:[lk,Rd],93:Ba,95:Lu,96:$1},tv={null:[Lu,Qk]},rv={null:[42,95]},iv={null:[]},lv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rv,contentInitial:Gk,disable:iv,document:Xk,flow:Jk,flowInitial:Zk,insideSpan:tv,string:ev,text:nv},Symbol.toStringTag,{value:"Module"}));function ov(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],u=[];const a={attempt:z(_),check:z(w),consume:g,enter:y,exit:C,interrupt:z(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:x,events:[],now:m,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:c};let f=n.tokenize.call(s,a);return n.resolveAll&&l.push(n),s;function c(A){return o=Je(o,A),P(),o[o.length-1]!==null?[]:(L(n,0),s.events=jl(l,s.events,s),s.events)}function d(A,R){return av(p(A),R)}function p(A){return uv(o,A)}function m(){const{_bufferIndex:A,_index:R,line:Q,column:ee,offset:V}=r;return{_bufferIndex:A,_index:R,line:Q,column:ee,offset:V}}function x(A){i[A.line]=A.column,S()}function P(){let A;for(;r._index<o.length;){const R=o[r._index];if(typeof R=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<R.length;)h(R.charCodeAt(r._bufferIndex));else h(R)}}function h(A){f=f(A)}function g(A){O(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,S()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=A}function y(A,R){const Q=R||{};return Q.type=A,Q.start=m(),s.events.push(["enter",Q,s]),u.push(Q),Q}function C(A){const R=u.pop();return R.end=m(),s.events.push(["exit",R,s]),R}function _(A,R){L(A,R.from)}function w(A,R){R.restore()}function z(A,R){return Q;function Q(ee,V,de){let fe,D,b,k;return Array.isArray(ee)?G(ee):"tokenize"in ee?G([ee]):Y(ee);function Y(re){return mn;function mn(Mn){const Pt=Mn!==null&&re[Mn],_t=Mn!==null&&re.null,ci=[...Array.isArray(Pt)?Pt:Pt?[Pt]:[],...Array.isArray(_t)?_t:_t?[_t]:[]];return G(ci)(Mn)}}function G(re){return fe=re,D=0,re.length===0?de:v(re[D])}function v(re){return mn;function mn(Mn){return k=M(),b=re,re.partial||(s.currentConstruct=re),re.name&&s.parser.constructs.disable.null.includes(re.name)?ln():re.tokenize.call(R?Object.assign(Object.create(s),R):s,a,ge,ln)(Mn)}}function ge(re){return A(b,k),V}function ln(re){return k.restore(),++D<fe.length?v(fe[D]):de}}}function L(A,R){A.resolveAll&&!l.includes(A)&&l.push(A),A.resolve&&Ye(s.events,R,s.events.length-R,A.resolve(s.events.slice(R),s)),A.resolveTo&&(s.events=A.resolveTo(s.events,s))}function M(){const A=m(),R=s.previous,Q=s.currentConstruct,ee=s.events.length,V=Array.from(u);return{from:ee,restore:de};function de(){r=A,s.previous=R,s.currentConstruct=Q,s.events.length=ee,u=V,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function uv(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function av(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
||
`;break}case-3:{o=`\r
|
||
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function sv(e){const r={constructs:Dd([lv,...(e||{}).extensions||[]]),content:i(E1),defined:[],document:i(_1),flow:i($k),lazy:{},string:i(Yk),text:i(Kk)};return r;function i(l){return o;function o(u){return ov(r,l,u)}}}function cv(e){for(;!Md(e););return e}const Lc=/[\0\t\n\r]/g;function fv(){let e=1,n="",t=!0,r;return i;function i(l,o,u){const a=[];let s,f,c,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,n="",t&&(l.charCodeAt(0)===65279&&c++,t=void 0);c<l.length;){if(Lc.lastIndex=c,s=Lc.exec(l),d=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(d),!s){n=l.slice(c);break}if(p===10&&c===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<d&&(a.push(l.slice(c,d)),e+=d-c),p){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return u&&(r&&a.push(-5),n&&a.push(n),a.push(null)),a}}const pv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dv(e){return e.replace(pv,hv)}function hv(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Ad(t.slice(l?2:1),l?16:10)}return ja(t)||e}const Vd={}.hasOwnProperty;function mv(e,n,t){return typeof n!="string"&&(t=n,n=void 0),gv(t)(cv(sv(t).document().write(fv()(e,n,!0))))}function gv(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ja),autolinkProtocol:M,autolinkEmail:M,atxHeading:l(Xa),blockQuote:l(_t),characterEscape:M,characterReference:M,codeFenced:l(ci),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(ci,o),codeText:l(Ch,o),codeTextData:M,data:M,codeFlowValue:M,definition:l(Eh),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Ph),hardBreakEscape:l(Ga),hardBreakTrailing:l(Ga),htmlFlow:l(Za,o),htmlFlowData:M,htmlText:l(Za,o),htmlTextData:M,image:l(_h),label:o,link:l(Ja),listItem:l(Th),listItemValue:d,listOrdered:l(es,c),listUnordered:l(es),paragraph:l(zh),reference:v,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Xa),strong:l(Ih),thematicBreak:l(Nh)},exit:{atxHeading:a(),atxHeadingSequence:_,autolink:a(),autolinkEmail:Pt,autolinkProtocol:Mn,blockQuote:a(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:ln,characterReferenceMarkerNumeric:ln,characterReferenceValue:re,characterReference:mn,codeFenced:a(P),codeFencedFence:x,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:S,codeIndented:a(h),codeText:a(V),codeTextData:S,data:S,definition:a(),definitionDestinationString:C,definitionLabelString:g,definitionTitleString:y,emphasis:a(),hardBreakEscape:a(R),hardBreakTrailing:a(R),htmlFlow:a(Q),htmlFlowData:S,htmlText:a(ee),htmlTextData:S,image:a(fe),label:b,labelText:D,lineEnding:A,link:a(de),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ge,resourceDestinationString:k,resourceTitleString:Y,resource:G,setextHeading:a(L),setextHeadingLineSequence:z,setextHeadingText:w,strong:a(),thematicBreak:a()}};$d(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(E){let N={type:"root",children:[]};const j={stack:[N],tokenStack:[],config:n,enter:u,exit:s,buffer:o,resume:f,data:t},$=[];let Z=-1;for(;++Z<E.length;)if(E[Z][1].type==="listOrdered"||E[Z][1].type==="listUnordered")if(E[Z][0]==="enter")$.push(Z);else{const on=$.pop();Z=i(E,on,Z)}for(Z=-1;++Z<E.length;){const on=n[E[Z][0]];Vd.call(on,E[Z][1].type)&&on[E[Z][1].type].call(Object.assign({sliceSerialize:E[Z][2].sliceSerialize},j),E[Z][1])}if(j.tokenStack.length>0){const on=j.tokenStack[j.tokenStack.length-1];(on[1]||Nc).call(j,void 0,on[0])}for(N.position={start:jn(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:jn(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<n.transforms.length;)N=n.transforms[Z](N)||N;return N}function i(E,N,j){let $=N-1,Z=-1,on=!1,ot,Cn,sr,cr;for(;++$<=j;){const He=E[$];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?Z++:Z--,cr=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(ot&&!cr&&!Z&&!sr&&(sr=$),cr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:cr=void 0}if(!Z&&He[0]==="enter"&&He[1].type==="listItemPrefix"||Z===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(ot){let Tt=$;for(Cn=void 0;Tt--;){const En=E[Tt];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;Cn&&(E[Cn][1].type="lineEndingBlank",on=!0),En[1].type="lineEnding",Cn=Tt}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}sr&&(!Cn||sr<Cn)&&(ot._spread=!0),ot.end=Object.assign({},Cn?E[Cn][1].start:He[1].end),E.splice(Cn||$,0,["exit",ot,He[2]]),$++,j++}if(He[1].type==="listItemPrefix"){const Tt={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};ot=Tt,E.splice($,0,["enter",Tt,He[2]]),$++,j++,sr=void 0,cr=!0}}}return E[N][1]._spread=on,j}function l(E,N){return j;function j($){u.call(this,E($),$),N&&N.call(this,$)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(E,N,j){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([N,j||void 0]),E.position={start:jn(N.start),end:void 0}}function a(E){return N;function N(j){E&&E.call(this,j),s.call(this,j)}}function s(E,N){const j=this.stack.pop(),$=this.tokenStack.pop();if($)$[0].type!==E.type&&(N?N.call(this,E,$[0]):($[1]||Nc).call(this,E,$[0]));else throw new Error("Cannot close `"+E.type+"` ("+Fr({start:E.start,end:E.end})+"): it’s not open");j.position.end=jn(E.end)}function f(){return ba(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(E){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function p(){const E=this.resume(),N=this.stack[this.stack.length-1];N.lang=E}function m(){const E=this.resume(),N=this.stack[this.stack.length-1];N.meta=E}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const E=this.resume(),N=this.stack[this.stack.length-1];N.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const E=this.resume(),N=this.stack[this.stack.length-1];N.value=E.replace(/(\r?\n|\r)$/g,"")}function g(E){const N=this.resume(),j=this.stack[this.stack.length-1];j.label=N,j.identifier=dn(this.sliceSerialize(E)).toLowerCase()}function y(){const E=this.resume(),N=this.stack[this.stack.length-1];N.title=E}function C(){const E=this.resume(),N=this.stack[this.stack.length-1];N.url=E}function _(E){const N=this.stack[this.stack.length-1];if(!N.depth){const j=this.sliceSerialize(E).length;N.depth=j}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function z(E){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function M(E){const j=this.stack[this.stack.length-1].children;let $=j[j.length-1];(!$||$.type!=="text")&&($=Lh(),$.position={start:jn(E.start),end:void 0},j.push($)),this.stack.push($)}function S(E){const N=this.stack.pop();N.value+=this.sliceSerialize(E),N.position.end=jn(E.end)}function A(E){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=N.children[N.children.length-1];j.position.end=jn(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(N.type)&&(M.call(this,E),S.call(this,E))}function R(){this.data.atHardBreak=!0}function Q(){const E=this.resume(),N=this.stack[this.stack.length-1];N.value=E}function ee(){const E=this.resume(),N=this.stack[this.stack.length-1];N.value=E}function V(){const E=this.resume(),N=this.stack[this.stack.length-1];N.value=E}function de(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=N,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function fe(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=N,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function D(E){const N=this.sliceSerialize(E),j=this.stack[this.stack.length-2];j.label=dv(N),j.identifier=dn(N).toLowerCase()}function b(){const E=this.stack[this.stack.length-1],N=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const $=E.children;j.children=$}else j.alt=N}function k(){const E=this.resume(),N=this.stack[this.stack.length-1];N.url=E}function Y(){const E=this.resume(),N=this.stack[this.stack.length-1];N.title=E}function G(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function ge(E){const N=this.resume(),j=this.stack[this.stack.length-1];j.label=N,j.identifier=dn(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function ln(E){this.data.characterReferenceType=E.type}function re(E){const N=this.sliceSerialize(E),j=this.data.characterReferenceType;let $;j?($=Ad(N,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=ja(N);const Z=this.stack[this.stack.length-1];Z.value+=$}function mn(E){const N=this.stack.pop();N.position.end=jn(E.end)}function Mn(E){S.call(this,E);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(E)}function Pt(E){S.call(this,E);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(E)}function _t(){return{type:"blockquote",children:[]}}function ci(){return{type:"code",lang:null,meta:null,value:""}}function Ch(){return{type:"inlineCode",value:""}}function Eh(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ph(){return{type:"emphasis",children:[]}}function Xa(){return{type:"heading",depth:0,children:[]}}function Ga(){return{type:"break"}}function Za(){return{type:"html",value:""}}function _h(){return{type:"image",title:null,url:"",alt:null}}function Ja(){return{type:"link",title:null,url:"",children:[]}}function es(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function Th(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function zh(){return{type:"paragraph",children:[]}}function Ih(){return{type:"strong",children:[]}}function Lh(){return{type:"text",value:""}}function Nh(){return{type:"thematicBreak"}}}function jn(e){return{line:e.line,column:e.column,offset:e.offset}}function $d(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?$d(e,r):yv(e,r)}}function yv(e,n){let t;for(t in n)if(Vd.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Nc(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fr({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fr({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fr({start:n.start,end:n.end})+") is still open")}function kv(e){const n=this;n.parser=t;function t(r){return mv(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function vv(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function xv(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
||
`}]}function wv(e,n){const t=n.value?n.value+`
|
||
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Sv(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Cv(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ev(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ar(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(n,s),e.applyData(n,s)}function Pv(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function _v(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Wd(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),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 Tv(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Wd(e,n);const i={src:ar(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function zv(e,n){const t={src:ar(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Iv(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Lv(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Wd(e,n);const i={href:ar(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Nv(e,n){const t={href:ar(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Dv(e,n,t){const r=e.all(n),i=t?Av(t):Qd(n),l={},o=[];if(typeof n.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:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
|
||
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:`
|
||
`});const s={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,s),e.applyData(n,s)}function Av(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Qd(t[r])}return n}function Qd(e){const n=e.spread;return n??e.children.length>1}function Fv(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.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")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function Rv(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ov(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Mv(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function bv(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Fa(n.children[1]),a=Pd(n.children[n.children.length-1]);u&&a&&(o.position={start:u,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function jv(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,u=o?o.length:n.children.length;let a=-1;const s=[];for(;++a<u;){const c=n.children[a],d={},p=o?o[a]:void 0;p&&(d.align=p);let m={type:"element",tagName:l,properties:d,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),s.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function Bv(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Dc=9,Ac=32;function Uv(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(Fc(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Fc(n.slice(i),i>0,!1)),l.join("")}function Fc(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Dc||l===Ac;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Dc||l===Ac;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Hv(e,n){const t={type:"text",value:Uv(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Vv(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const $v={blockquote:vv,break:xv,code:wv,delete:Sv,emphasis:Cv,footnoteReference:Ev,heading:Pv,html:_v,imageReference:Tv,image:zv,inlineCode:Iv,linkReference:Lv,link:Nv,listItem:Dv,list:Fv,paragraph:Rv,root:Ov,strong:Mv,table:bv,tableCell:Bv,tableRow:jv,text:Hv,thematicBreak:Vv,toml:zi,yaml:zi,definition:zi,footnoteDefinition:zi};function zi(){}const Yd=-1,Bl=0,Or=1,kl=2,Ua=3,Ha=4,Va=5,$a=6,Kd=7,qd=8,Rc=typeof self=="object"?self:globalThis,Wv=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Bl:case Yd:return t(o,i);case Or:{const u=t([],i);for(const a of o)u.push(r(a));return u}case kl:{const u=t({},i);for(const[a,s]of o)u[r(a)]=r(s);return u}case Ua:return t(new Date(o),i);case Ha:{const{source:u,flags:a}=o;return t(new RegExp(u,a),i)}case Va:{const u=t(new Map,i);for(const[a,s]of o)u.set(r(a),r(s));return u}case $a:{const u=t(new Set,i);for(const a of o)u.add(r(a));return u}case Kd:{const{name:u,message:a}=o;return t(new Rc[u](a),i)}case qd:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return t(new DataView(u),o)}}return t(new Rc[l](o),i)};return r},Oc=e=>Wv(new Map,e)(0),It="",{toString:Qv}={},{keys:Yv}=Object,xr=e=>{const n=typeof e;if(n!=="object"||!e)return[Bl,n];const t=Qv.call(e).slice(8,-1);switch(t){case"Array":return[Or,It];case"Object":return[kl,It];case"Date":return[Ua,It];case"RegExp":return[Ha,It];case"Map":return[Va,It];case"Set":return[$a,It];case"DataView":return[Or,t]}return t.includes("Array")?[Or,t]:t.includes("Error")?[Kd,t]:[kl,t]},Ii=([e,n])=>e===Bl&&(n==="function"||n==="symbol"),Kv=(e,n,t,r)=>{const i=(o,u)=>{const a=r.push(o)-1;return t.set(u,a),a},l=o=>{if(t.has(o))return t.get(o);let[u,a]=xr(o);switch(u){case Bl:{let f=o;switch(a){case"bigint":u=qd,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Yd],o)}return i([u,f],o)}case Or:{if(a){let d=o;return a==="DataView"?d=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(o)),i([a,[...d]],o)}const f=[],c=i([u,f],o);for(const d of o)f.push(l(d));return c}case kl:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const d of Yv(o))(e||!Ii(xr(o[d])))&&f.push([l(d),l(o[d])]);return c}case Ua:return i([u,o.toISOString()],o);case Ha:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case Va:{const f=[],c=i([u,f],o);for(const[d,p]of o)(e||!(Ii(xr(d))||Ii(xr(p))))&&f.push([l(d),l(p)]);return c}case $a:{const f=[],c=i([u,f],o);for(const d of o)(e||!Ii(xr(d)))&&f.push(l(d));return c}}const{message:s}=o;return i([u,{name:a,message:s}],o)};return l},Mc=(e,{json:n,lossy:t}={})=>{const r=[];return Kv(!(n||t),!!n,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Oc(Mc(e,n)):structuredClone(e):(e,n)=>Oc(Mc(e,n));function qv(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Xv(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Gv(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||qv,r=e.options.footnoteBackLabel||Xv,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),d=ar(c.toLowerCase());let p=0;const m=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++p<=x;){m.length>0&&m.push({type:"text",value:" "});let g=typeof t=="string"?t:t(a,p);typeof g=="string"&&(g={type:"text",value:g}),m.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const P=f[f.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const g=P.children[P.children.length-1];g&&g.type==="text"?g.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...m)}else f.push(...m);const h={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(f,!0)};e.patch(s,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...vl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
||
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
||
`}]}}const Ul=function(e){if(e==null)return n0;if(typeof e=="function")return Hl(e);if(typeof e=="object")return Array.isArray(e)?Zv(e):Jv(e);if(typeof e=="string")return e0(e);throw new Error("Expected function, string, or object as test")};function Zv(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Ul(e[t]);return Hl(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Jv(e){const n=e;return Hl(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function e0(e){return Hl(n);function n(t){return t&&t.type===e}}function Hl(e){return n;function n(t,r,i){return!!(t0(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function n0(){return!0}function t0(e){return e!==null&&typeof e=="object"&&"type"in e}const Xd=[],r0=!0,Nu=!1,i0="skip";function Gd(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=Ul(i),o=r?-1:1;u(e,void 0,[])();function u(a,s,f){const c=a&&typeof a=="object"?a:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=Xd,m,x,P;if((!n||l(a,s,f[f.length-1]||void 0))&&(p=l0(t(a,f)),p[0]===Nu))return p;if("children"in a&&a.children){const h=a;if(h.children&&p[0]!==i0)for(x=(r?h.children.length:-1)+o,P=f.concat(h);x>-1&&x<h.children.length;){const g=h.children[x];if(m=u(g,x,P)(),m[0]===Nu)return m;x=typeof m[1]=="number"?m[1]:x+o}}return p}}}function l0(e){return Array.isArray(e)?e:typeof e=="number"?[r0,e]:e==null?Xd:[e]}function Wa(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),Gd(e,l,u,i);function u(a,s){const f=s[s.length-1],c=f?f.children.indexOf(a):void 0;return o(a,c,f)}}const Du={}.hasOwnProperty,o0={};function u0(e,n){const t=n||o0,r=new Map,i=new Map,l=new Map,o={...$v,...t.handlers},u={all:s,applyData:s0,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:a,options:t,patch:a0,wrap:f0};return Wa(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),u;function a(f,c){const d=f.type,p=u.handlers[d];if(Du.call(u.handlers,d)&&p)return p(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(d)){if("children"in f){const{children:x,...P}=f,h=vl(P);return h.children=u.all(f),h}return vl(f)}return(u.options.unknownHandler||c0)(u,f,c)}function s(f){const c=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const m=u.one(d[p],f);if(m){if(p&&d[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=bc(m.value)),!Array.isArray(m)&&m.type==="element")){const x=m.children[0];x&&x.type==="text"&&(x.value=bc(x.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function a0(e,n){e.position&&(n.position=Xy(e))}function s0(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,vl(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function c0(e,n){const t=n.data||{},r="value"in n&&!(Du.call(t,"hProperties")||Du.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function f0(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
||
`});++r<e.length;)r&&t.push({type:"text",value:`
|
||
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
||
`}),t}function bc(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function jc(e,n){const t=u0(e,n),r=t.one(e,void 0),i=Gv(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
||
`},i),l}function p0(e,n){return e&&"run"in e?async function(t,r){const i=jc(t,{file:r,...n});await e.run(i,r)}:function(t,r){return jc(t,{file:r,...e||n})}}function Bc(e){if(e)throw e}var Wi=Object.prototype.hasOwnProperty,Zd=Object.prototype.toString,Uc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,Vc=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Zd.call(n)==="[object Array]"},$c=function(n){if(!n||Zd.call(n)!=="[object Object]")return!1;var t=Wi.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Wi.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Wi.call(n,i)},Wc=function(n,t){Uc&&t.name==="__proto__"?Uc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Qc=function(n,t){if(t==="__proto__")if(Wi.call(n,t)){if(Hc)return Hc(n,t).value}else return;return n[t]},d0=function e(){var n,t,r,i,l,o,u=arguments[0],a=1,s=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<s;++a)if(n=arguments[a],n!=null)for(t in n)r=Qc(u,t),i=Qc(n,t),u!==i&&(f&&i&&($c(i)||(l=Vc(i)))?(l?(l=!1,o=r&&Vc(r)?r:[]):o=r&&$c(r)?r:{},Wc(u,{name:t,newValue:e(f,o,i)})):typeof i<"u"&&Wc(u,{name:t,newValue:i}));return u};const xo=Ou(d0);function Au(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function h0(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...i);function u(a,...s){const f=e[++l];let c=-1;if(a){o(a);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?m0(f,u)(...s):o(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function m0(e,n){let t;return r;function r(...o){const u=e.length>o.length;let a;u&&o.push(i);try{a=e.apply(this,o)}catch(s){const f=s;if(u&&t)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...u){t||(t=!0,n(o,...u))}function l(o){i(null,o)}}const kn={basename:g0,dirname:y0,extname:k0,join:v0,sep:"/"};function g0(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');si(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function y0(e){if(si(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function k0(e){si(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const u=e.codePointAt(n);if(u===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),u===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function v0(...e){let n=-1,t;for(;++n<e.length;)si(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":x0(t)}function x0(e){si(e);const n=e.codePointAt(0)===47;let t=w0(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function w0(e,n){let t="",r=0,i=-1,l=0,o=-1,u,a;for(;++o<=e.length;){if(o<e.length)u=e.codePointAt(o);else{if(u===47)break;u=47}if(u===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return t}function si(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const S0={cwd:C0};function C0(){return"/"}function Fu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function E0(e){if(typeof e=="string")e=new URL(e);else if(!Fu(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return P0(e)}function P0(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 n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+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(n)}const wo=["history","path","basename","stem","extname","dirname"];class Jd{constructor(n){let t;n?Fu(n)?t={path:n}:typeof n=="string"||_0(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":S0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<wo.length;){const l=wo[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)wo.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?kn.basename(this.path):void 0}set basename(n){Co(n,"basename"),So(n,"basename"),this.path=kn.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?kn.dirname(this.path):void 0}set dirname(n){Yc(this.basename,"dirname"),this.path=kn.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?kn.extname(this.path):void 0}set extname(n){if(So(n,"extname"),Yc(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kn.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Fu(n)&&(n=E0(n)),Co(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?kn.basename(this.path,this.extname):void 0}set stem(n){Co(n,"stem"),So(n,"stem"),this.path=kn.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Ie(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function So(e,n){if(e&&e.includes(kn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+kn.sep+"`")}function Co(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Yc(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function _0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const T0=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},z0={}.hasOwnProperty;class Qa extends T0{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=h0()}copy(){const n=new Qa;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(xo(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(_o("data",this.frozen),this.namespace[n]=t,this):z0.call(this.namespace,n)&&this.namespace[n]||void 0:n?(_o("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Li(n),r=this.parser||this.Parser;return Eo("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Eo("process",this.parser||this.Parser),Po("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const u=Li(n),a=r.parse(u);r.run(a,u,function(f,c,d){if(f||!c||!d)return s(f);const p=c,m=r.stringify(p,d);N0(m)?d.value=m:d.result=m,s(f,d)});function s(f,c){f||!c?o(f):l?l(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),Eo("processSync",this.parser||this.Parser),Po("processSync",this.compiler||this.Compiler),this.process(n,i),qc("processSync","process",t),r;function i(l,o){t=!0,Bc(l),r=o}}run(n,t,r){Kc(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,u){const a=Li(t);i.run(n,a,s);function s(f,c,d){const p=c||n;f?u(f):o?o(p):r(void 0,p,d)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),qc("runSync","run",r),i;function l(o,u){Bc(o),i=u,r=!0}}stringify(n,t){this.freeze();const r=Li(t),i=this.compiler||this.Compiler;return Po("stringify",i),Kc(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(_o("use",this.frozen),n!=null)if(typeof n=="function")a(n,t);else if(typeof n=="object")Array.isArray(n)?u(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;a(f,c)}else o(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function o(s){if(!("plugins"in s)&&!("settings"in s))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");u(s.plugins),s.settings&&(i.settings=xo(!0,i.settings,s.settings))}function u(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===s){d=c;break}if(d===-1)r.push([s,...f]);else if(f.length>0){let[p,...m]=f;const x=r[d][1];Au(x)&&Au(p)&&(p=xo(!0,x,p)),r[d]=[s,p,...m]}}}}const I0=new Qa().freeze();function Eo(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _o(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Kc(e){if(!Au(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Li(e){return L0(e)?e:new Jd(e)}function L0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function N0(e){return typeof e=="string"||D0(e)}function D0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const A0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xc=[],Gc={allowDangerousHtml:!0},F0=/^(https?|ircs?|mailto|xmpp)$/i,R0=[{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:"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 O0(e){const n=M0(e),t=b0(e);return j0(n.runSync(n.parse(t),t),e)}function M0(e){const n=e.rehypePlugins||Xc,t=e.remarkPlugins||Xc,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gc}:Gc;return I0().use(kv).use(t).use(p0,r).use(n)}function b0(e){const n=e.children||"",t=new Jd;return typeof n=="string"&&(t.value=n),t}function j0(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,u=n.unwrapDisallowed,a=n.urlTransform||B0;for(const f of R0)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+A0+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Wa(e,s),n1(e,{Fragment:q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function s(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in yo)if(Object.hasOwn(yo,p)&&Object.hasOwn(f.properties,p)){const m=f.properties[p],x=yo[p];(x===null||x.includes(f.tagName))&&(f.properties[p]=a(String(m||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,d)),p&&d&&typeof c=="number")return u&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function B0(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||F0.test(e.slice(0,n))?e:""}function Zc(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function U0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function H0(e,n,t){const i=Ul((t||{}).ignore||[]),l=V0(n);let o=-1;for(;++o<l.length;)Gd(e,"text",u);function u(s,f){let c=-1,d;for(;++c<f.length;){const p=f[c],m=d?d.children:void 0;if(i(p,m?m.indexOf(p):void 0,d))return;d=p}if(d)return a(s,f)}function a(s,f){const c=f[f.length-1],d=l[o][0],p=l[o][1];let m=0;const P=c.children.indexOf(s);let h=!1,g=[];d.lastIndex=0;let y=d.exec(s.value);for(;y;){const C=y.index,_={index:y.index,input:y.input,stack:[...f,s]};let w=p(...y,_);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=C+1:(m!==C&&g.push({type:"text",value:s.value.slice(m,C)}),Array.isArray(w)?g.push(...w):w&&g.push(w),m=C+y[0].length,h=!0),!d.global)break;y=d.exec(s.value)}return h?(m<s.value.length&&g.push({type:"text",value:s.value.slice(m)}),c.children.splice(P,1,...g)):g=[s],P+g.length}}function V0(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([$0(i[0]),W0(i[1])])}return n}function $0(e){return typeof e=="string"?new RegExp(U0(e),"g"):e}function W0(e){return typeof e=="function"?e:function(){return e}}const To="phrasing",zo=["autolink","link","image","label"];function Q0(){return{transforms:[J0],enter:{literalAutolink:K0,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:Z0,literalAutolinkEmail:G0,literalAutolinkHttp:q0,literalAutolinkWww:X0}}}function Y0(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:To,notInConstruct:zo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:To,notInConstruct:zo},{character:":",before:"[ps]",after:"\\/",inConstruct:To,notInConstruct:zo}]}}function K0(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Io(e){this.config.enter.autolinkProtocol.call(this,e)}function q0(e){this.config.exit.autolinkProtocol.call(this,e)}function X0(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function G0(e){this.config.exit.autolinkEmail.call(this,e)}function Z0(e){this.exit(e)}function J0(e){H0(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ex],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),nx]],{ignore:["link","linkReference"]})}function ex(e,n,t,r,i){let l="";if(!eh(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!tx(t)))return!1;const o=rx(t+r);if(!o[0])return!1;const u={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function nx(e,n,t,r){return!eh(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function tx(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function rx(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Zc(e,"(");let l=Zc(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function eh(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||wt(t)||bl(t))&&(!n||t!==47)}nh.peek=px;function ix(){this.buffer()}function lx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ox(){this.buffer()}function ux(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ax(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=dn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function sx(e){this.exit(e)}function cx(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=dn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function fx(e){this.exit(e)}function px(){return"["}function nh(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),u=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function dx(){return{enter:{gfmFootnoteCallString:ix,gfmFootnoteCall:lx,gfmFootnoteDefinitionLabelString:ox,gfmFootnoteDefinition:ux},exit:{gfmFootnoteCallString:ax,gfmFootnoteCall:sx,gfmFootnoteDefinitionLabelString:cx,gfmFootnoteDefinition:fx}}}function hx(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:nh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const u=l.createTracker(o);let a=u.move("[^");const s=l.enter("footnoteDefinition"),f=l.enter("label");return a+=u.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((n?`
|
||
`:" ")+l.indentLines(l.containerFlow(r,u.current()),n?th:mx))),s(),a}}function mx(e,n,t){return n===0?e:th(e,n,t)}function th(e,n,t){return(t?"":" ")+e}const gx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rh.peek=wx;function yx(){return{canContainEols:["delete"],enter:{strikethrough:vx},exit:{strikethrough:xx}}}function kx(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gx}],handlers:{delete:rh}}}function vx(e){this.enter({type:"delete",children:[]},e)}function xx(e){this.exit(e)}function rh(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function wx(){return"~"}function Sx(e){return e.length}function Cx(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Sx,l=[],o=[],u=[],a=[];let s=0,f=-1;for(;++f<e.length;){const x=[],P=[];let h=-1;for(e[f].length>s&&(s=e[f].length);++h<e[f].length;){const g=Ex(e[f][h]);if(t.alignDelimiters!==!1){const y=i(g);P[h]=y,(a[h]===void 0||y>a[h])&&(a[h]=y)}x.push(g)}o[f]=x,u[f]=P}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)l[c]=Jc(r[c]);else{const x=Jc(r);for(;++c<s;)l[c]=x}c=-1;const d=[],p=[];for(;++c<s;){const x=l[c];let P="",h="";x===99?(P=":",h=":"):x===108?P=":":x===114&&(h=":");let g=t.alignDelimiters===!1?1:Math.max(1,a[c]-P.length-h.length);const y=P+"-".repeat(g)+h;t.alignDelimiters!==!1&&(g=P.length+g+h.length,g>a[c]&&(a[c]=g),p[c]=g),d[c]=y}o.splice(1,0,d),u.splice(1,0,p),f=-1;const m=[];for(;++f<o.length;){const x=o[f],P=u[f];c=-1;const h=[];for(;++c<s;){const g=x[c]||"";let y="",C="";if(t.alignDelimiters!==!1){const _=a[c]-(P[c]||0),w=l[c];w===114?y=" ".repeat(_):w===99?_%2?(y=" ".repeat(_/2+.5),C=" ".repeat(_/2-.5)):(y=" ".repeat(_/2),C=y):C=" ".repeat(_)}t.delimiterStart!==!1&&!c&&h.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&g==="")&&(t.delimiterStart!==!1||c)&&h.push(" "),t.alignDelimiters!==!1&&h.push(y),h.push(g),t.alignDelimiters!==!1&&h.push(C),t.padding!==!1&&h.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&h.push("|")}m.push(t.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return m.join(`
|
||
`)}function Ex(e){return e==null?"":String(e)}function Jc(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Px(e,n,t,r){const i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),_x);return i(),o}function _x(e,n,t){return">"+(t?"":" ")+e}function Tx(e,n){return ef(e,n.inConstruct,!0)&&!ef(e,n.notInConstruct,!1)}function ef(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function nf(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
|
||
`&&Tx(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
||
`}function zx(e,n){const t=String(e);let r=t.indexOf(n),i=r,l=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Ix(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Lx(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Nx(e,n,t,r){const i=Lx(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Ix(e,t)){const c=t.enter("codeIndented"),d=t.indentLines(l,Dx);return c(),d}const u=t.createTracker(r),a=i.repeat(Math.max(zx(l,i)+1,3)),s=t.enter("codeFenced");let f=u.move(a);if(e.lang){const c=t.enter(`codeFencedLang${o}`);f+=u.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(t.safe(e.meta,{before:f,after:`
|
||
`,encode:["`"],...u.current()})),c()}return f+=u.move(`
|
||
`),l&&(f+=u.move(l+`
|
||
`)),f+=u.move(a),s(),f}function Dx(e,n,t){return(t?"":" ")+e}function Ya(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Ax(e,n,t,r){const i=Ya(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("[");return s+=a.move(t.safe(t.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":`
|
||
`,...a.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),o(),s}function Fx(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ni(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xl(e,n,t){const r=rr(e),i=rr(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ih.peek=Rx;function ih(e,n,t,r){const i=Fx(t),l=t.enter("emphasis"),o=t.createTracker(r),u=o.move(i);let a=o.move(t.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=xl(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=ni(s)+a.slice(1));const c=a.charCodeAt(a.length-1),d=xl(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+ni(c));const p=o.move(i);return l(),t.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},u+a+p}function Rx(e,n,t){return t.options.emphasis||"*"}function Ox(e,n){let t=!1;return Wa(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Nu}),!!((!e.depth||e.depth<3)&&ba(e)&&(n.options.setext||t))}function Mx(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(Ox(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),d=t.containerPhrasing(e,{...l.current(),before:`
|
||
`,after:`
|
||
`});return c(),f(),d+`
|
||
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
||
`))+1))}const o="#".repeat(i),u=t.enter("headingAtx"),a=t.enter("phrasing");l.move(o+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
|
||
`,...l.current()});return/^[\t ]/.test(s)&&(s=ni(s.charCodeAt(0))+s.slice(1)),s=s?o+" "+s:o,t.options.closeAtx&&(s+=" "+o),a(),u(),s}lh.peek=bx;function lh(e){return e.value||""}function bx(){return"<"}oh.peek=jx;function oh(e,n,t,r){const i=Ya(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("![");return s+=a.move(t.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),o(),s}function jx(){return"!"}uh.peek=Bx;function uh(e,n,t,r){const i=e.referenceType,l=t.enter("imageReference");let o=t.enter("label");const u=t.createTracker(r);let a=u.move("![");const s=t.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return o(),t.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Bx(){return"!"}ah.peek=Ux;function ah(e,n,t){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<t.unsafe.length;){const o=t.unsafe[l],u=t.compilePattern(o);let a;if(o.atBreak)for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function Ux(){return"`"}function sh(e,n){const t=ba(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ch.peek=Hx;function ch(e,n,t,r){const i=Ya(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let u,a;if(sh(e,t)){const f=t.stack;t.stack=[],u=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),t.stack=f,c}u=t.enter("link"),a=t.enter("label");let s=o.move("[");return s+=o.move(t.containerPhrasing(e,{before:s,after:"](",...o.current()})),s+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(a=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=t.enter(`title${l}`),s+=o.move(" "+i),s+=o.move(t.safe(e.title,{before:s,after:i,...o.current()})),s+=o.move(i),a()),s+=o.move(")"),u(),s}function Hx(e,n,t){return sh(e,t)?"<":"["}fh.peek=Vx;function fh(e,n,t,r){const i=e.referenceType,l=t.enter("linkReference");let o=t.enter("label");const u=t.createTracker(r);let a=u.move("[");const s=t.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return o(),t.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Vx(){return"["}function Ka(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function $x(e){const n=Ka(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Wx(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ph(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Qx(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?Wx(t):Ka(t);const u=e.ordered?o==="."?")":".":$x(t);let a=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(a=!0),ph(t)===o&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(o=u),t.bulletCurrent=o;const s=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=l,i(),s}function Yx(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Kx(e,n,t,r){const i=Yx(t);let l=t.bulletCurrent||Ka(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=t.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const a=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),f);return a(),s;function f(c,d,p){return d?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function qx(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const Xx=Ul(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Gx(e,n,t,r){return(e.children.some(function(o){return Xx(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Zx(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}dh.peek=Jx;function dh(e,n,t,r){const i=Zx(t),l=t.enter("strong"),o=t.createTracker(r),u=o.move(i+i);let a=o.move(t.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=xl(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=ni(s)+a.slice(1));const c=a.charCodeAt(a.length-1),d=xl(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+ni(c));const p=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},u+a+p}function Jx(e,n,t){return t.options.strong||"*"}function ew(e,n,t,r){return t.safe(e.value,r)}function nw(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function tw(e,n,t){const r=(ph(t)+(t.options.ruleSpaces?" ":"")).repeat(nw(t));return t.options.ruleSpaces?r.slice(0,-1):r}const hh={blockquote:Px,break:nf,code:Nx,definition:Ax,emphasis:ih,hardBreak:nf,heading:Mx,html:lh,image:oh,imageReference:uh,inlineCode:ah,link:ch,linkReference:fh,list:Qx,listItem:Kx,paragraph:qx,root:Gx,strong:dh,text:ew,thematicBreak:tw};function rw(){return{enter:{table:iw,tableData:tf,tableHeader:tf,tableRow:ow},exit:{codeText:uw,table:lw,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function iw(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function lw(e){this.exit(e),this.data.inTable=void 0}function ow(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function tf(e){this.enter({type:"tableCell",children:[]},e)}function uw(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,aw));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function aw(e,n){return n==="|"?n:e}function sw(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
||
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:a,tableRow:u}};function o(p,m,x,P){return s(f(p,x,P),p.align)}function u(p,m,x,P){const h=c(p,x,P),g=s([h]);return g.slice(0,g.indexOf(`
|
||
`))}function a(p,m,x,P){const h=x.enter("tableCell"),g=x.enter("phrasing"),y=x.containerPhrasing(p,{...P,before:l,after:l});return g(),h(),y}function s(p,m){return Cx(p,{align:m,alignDelimiters:r,padding:t,stringLength:i})}function f(p,m,x){const P=p.children;let h=-1;const g=[],y=m.enter("table");for(;++h<P.length;)g[h]=c(P[h],m,x);return y(),g}function c(p,m,x){const P=p.children;let h=-1;const g=[],y=m.enter("tableRow");for(;++h<P.length;)g[h]=a(P[h],p,m,x);return y(),g}function d(p,m,x){let P=hh.inlineCode(p,m,x);return x.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function cw(){return{exit:{taskListCheckValueChecked:rf,taskListCheckValueUnchecked:rf,paragraph:pw}}}function fw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dw}}}function rf(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function pw(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let l=-1,o;for(;++l<i.length;){const u=i[l];if(u.type==="paragraph"){o=u;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function dw(e,n,t,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",u=t.createTracker(r);l&&u.move(o);let a=hh.listItem(e,n,t,{...r,...u.current()});return l&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(f){return f+o}}function hw(){return[Q0(),dx(),yx(),rw(),cw()]}function mw(e){return{extensions:[Y0(),hx(e),kx(),sw(e),fw()]}}const gw={tokenize:Sw,partial:!0},mh={tokenize:Cw,partial:!0},gh={tokenize:Ew,partial:!0},yh={tokenize:Pw,partial:!0},yw={tokenize:_w,partial:!0},kh={name:"wwwAutolink",tokenize:xw,previous:xh},vh={name:"protocolAutolink",tokenize:ww,previous:wh},On={name:"emailAutolink",tokenize:vw,previous:Sh},Sn={};function kw(){return{text:Sn}}let ut=48;for(;ut<123;)Sn[ut]=On,ut++,ut===58?ut=65:ut===91&&(ut=97);Sn[43]=On;Sn[45]=On;Sn[46]=On;Sn[95]=On;Sn[72]=[On,vh];Sn[104]=[On,vh];Sn[87]=[On,kh];Sn[119]=[On,kh];function vw(e,n,t){const r=this;let i,l;return o;function o(c){return!Ru(c)||!Sh.call(r,r.previous)||qa(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Ru(c)?(e.consume(c),u):c===64?(e.consume(c),a):t(c)}function a(c){return c===46?e.check(yw,f,s)(c):c===45||c===95||Te(c)?(l=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return l&&i&&Ne(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function xw(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!xh.call(r,r.previous)||qa(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gw,e.attempt(mh,e.attempt(gh,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function ww(e,n,t){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&wh.call(r,r.previous)&&!qa(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):t(c)}function u(c){if(Ne(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),a}return t(c)}function a(c){return c===47?(e.consume(c),l?s:(l=!0,a)):t(c)}function s(c){return c===null||yl(c)||J(c)||wt(c)||bl(c)?t(c):e.attempt(mh,e.attempt(gh,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Sw(e,n,t){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):t(o)}function l(o){return o===null?t(o):n(o)}}function Cw(e,n,t){let r,i,l;return o;function o(s){return s===46||s===95?e.check(yh,a,u)(s):s===null||J(s)||wt(s)||s!==45&&bl(s)?a(s):(l=!0,e.consume(s),o)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),o}function a(s){return i||r||!l?t(s):n(s)}}function Ew(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?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(yh,n,l)(o):o===null||J(o)||wt(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Pw(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),i):u===60||u===null||J(u)||wt(u)?n(u):t(u)}function i(u){return u===null||u===40||u===91||J(u)||wt(u)?n(u):r(u)}function l(u){return Ne(u)?o(u):t(u)}function o(u){return u===59?(e.consume(u),r):Ne(u)?(e.consume(u),o):t(u)}}function _w(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return Te(l)?t(l):n(l)}}function xh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||J(e)}function wh(e){return!Ne(e)}function Sh(e){return!(e===47||Ru(e))}function Ru(e){return e===43||e===45||e===46||e===95||Te(e)}function qa(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Tw={tokenize:Rw,partial:!0};function zw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Dw,continuation:{tokenize:Aw},exit:Fw}},text:{91:{name:"gfmFootnoteCall",tokenize:Nw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Iw,resolveTo:Lw}}}}function Iw(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!o||!o._balanced)return t(a);const s=dn(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function Lw(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+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)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function Nw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!o||c===null||c===91||J(c))return t(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(dn(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return J(c)||(o=!0),l++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function Dw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return a;function a(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(m)}function f(m){if(o>999||m===93&&!u||m===null||m===91||J(m))return t(m);if(m===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=dn(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return J(m)||(u=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),W(e,p,"gfmFootnoteDefinitionWhitespace")):t(m)}function p(m){return n(m)}}function Aw(e,n,t){return e.check(ai,n,e.attempt(Tw,n,t))}function Fw(e){e.exit("gfmFootnoteDefinition")}function Rw(e,n,t){const r=this;return W(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?n(l):t(l)}}function Ow(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let a=-1;for(;++a<o.length;)if(o[a][0]==="enter"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._close){let s=a;for(;s--;)if(o[s][0]==="exit"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._open&&o[a][1].end.offset-o[a][1].start.offset===o[s][1].end.offset-o[s][1].start.offset){o[a][1].type="strikethroughSequence",o[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[s][1].start),end:Object.assign({},o[a][1].end)},c={type:"strikethroughText",start:Object.assign({},o[s][1].end),end:Object.assign({},o[a][1].start)},d=[["enter",f,u],["enter",o[s][1],u],["exit",o[s][1],u],["enter",c,u]],p=u.parser.constructs.insideSpan.null;p&&Ye(d,d.length,0,jl(p,o.slice(s+1,a),u)),Ye(d,d.length,0,[["exit",c,u],["enter",o[a][1],u],["exit",o[a][1],u],["exit",f,u]]),Ye(o,s-1,a-s+3,d),a=s+d.length-2;break}}for(a=-1;++a<o.length;)o[a][1].type==="strikethroughSequenceTemporary"&&(o[a][1].type="data");return o}function l(o,u,a){const s=this.previous,f=this.events;let c=0;return d;function d(m){return s===126&&f[f.length-1][1].type!=="characterEscape"?a(m):(o.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const x=rr(s);if(m===126)return c>1?a(m):(o.consume(m),c++,p);if(c<2&&!t)return a(m);const P=o.exit("strikethroughSequenceTemporary"),h=rr(m);return P._open=!h||h===2&&!!x,P._close=!x||x===2&&!!h,u(m)}}}class Mw{constructor(){this.map=[]}add(n,t,r){bw(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function bw(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function jw(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-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"&&(t=!0);n+=1}return r}function Bw(){return{flow:{null:{name:"table",tokenize:Uw,resolveAll:Hw}}}}function Uw(e,n,t){const r=this;let i=0,l=0,o;return u;function u(S){let A=r.events.length-1;for(;A>-1;){const ee=r.events[A][1].type;if(ee==="lineEnding"||ee==="linePrefix")A--;else break}const R=A>-1?r.events[A][1].type:null,Q=R==="tableHead"||R==="tableRow"?w:a;return Q===w&&r.parser.lazy[r.now().line]?t(S):Q(S)}function a(S){return e.enter("tableHead"),e.enter("tableRow"),s(S)}function s(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?t(S):O(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),p):t(S):U(S)?W(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||J(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?d:c)}function d(S){return S===92||S===124?(e.consume(S),c):c(S)}function p(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(S):(e.enter("tableDelimiterRow"),o=!1,U(S)?W(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):m(S))}function m(S){return S===45||S===58?P(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),x):_(S)}function x(S){return U(S)?W(e,P,"whitespace")(S):P(S)}function P(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(l+=1,h(S)):S===null||O(S)?C(S):_(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),g(S)):_(S)}function g(S){return S===45?(e.consume(S),g):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(S))}function y(S){return U(S)?W(e,C,"whitespace")(S):C(S)}function C(S){return S===124?m(S):S===null||O(S)?!o||i!==l?_(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(S)):_(S)}function _(S){return t(S)}function w(S){return e.enter("tableRow"),z(S)}function z(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),z):S===null||O(S)?(e.exit("tableRow"),n(S)):U(S)?W(e,z,"whitespace")(S):(e.enter("data"),L(S))}function L(S){return S===null||S===124||J(S)?(e.exit("data"),z(S)):(e.consume(S),S===92?M:L)}function M(S){return S===92||S===124?(e.consume(S),L):L(S)}}function Hw(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,a=0,s,f,c;const d=new Mw;for(;++t<e.length;){const p=e[t],m=p[1];p[0]==="enter"?m.type==="tableHead"?(u=!1,a!==0&&(lf(d,n,a,s,f),f=void 0,a=0),s={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(t,0,[["enter",s,n]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,t+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(t,0,[["enter",f,n]])),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=Ni(d,n,l,i,void 0,c),l=[0,0,0,0]),o[2]=t)):m.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Ni(d,n,l,i,void 0,c)),l=o,o=[l[1],t,0,0])):m.type==="tableHead"?(u=!0,a=t):m.type==="tableRow"||m.type==="tableDelimiterRow"?(a=t,l[1]!==0?(o[0]=o[1],c=Ni(d,n,l,i,t,c)):o[1]!==0&&(c=Ni(d,n,o,i,t,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=t)}for(a!==0&&lf(d,n,a,s,f),d.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=jw(n.events,t))}return e}function Ni(e,n,t,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(l.end=Object.assign({},Lt(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const a=Lt(n.events,t[1]);if(l={type:o,start:Object.assign({},a),end:Object.assign({},a)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const s=Lt(n.events,t[2]),f=Lt(n.events,t[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const d=n.events[t[2]],p=n.events[t[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",t[3]>t[2]+1){const m=t[2]+1,x=t[3]-t[2]-1;e.add(m,x,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},Lt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function lf(e,n,t,r,i){const l=[],o=Lt(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Lt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Vw={name:"tasklistCheck",tokenize:Ww};function $w(){return{text:{91:Vw}}}function Ww(e,n,t){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return J(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):t(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(a)}function u(a){return O(a)?n(a):U(a)?e.check({tokenize:Qw},n,t)(a):t(a)}}function Qw(e,n,t){return W(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Yw(e){return Dd([kw(),zw(),Ow(e),Bw(),$w()])}const Kw={};function qw(e){const n=this,t=e||Kw,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Yw(t)),l.push(hw()),o.push(mw(t))}const Xw=()=>{const[e,n]=_n.useState([]),[t,r]=_n.useState(""),[i,l]=_n.useState(""),[o,u]=_n.useState("system");_n.useEffect(()=>{s(),a(o)},[]),_n.useEffect(()=>{t&&f(t)},[t]);const a=p=>{if(p==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",m)}else document.documentElement.classList.toggle("dark",p==="dark")},s=async()=>{try{const p=await fetch("/api");if(p.ok){const m=await p.json();n(m.files||[])}}catch(p){console.error("Error loading files:",p)}},f=async p=>{try{const m=await fetch(`/api/${p}`);if(m.ok){const x=await m.text();l(x)}}catch(m){console.error("Error loading file:",m)}},c=async p=>{try{await fetch(`/api/${p}`,{method:"POST",body:`# New Document
|
||
|
||
Write your markdown here...`}),r(p),await s()}catch(m){console.error("Error creating file:",m)}},d=async p=>{try{await fetch(`/api/${p}`,{method:"PUT",body:i})}catch(m){console.error("Error saving file:",m)}};return q.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[q.jsx("nav",{className:"bg-blue-600 text-white p-4",children:q.jsxs("div",{className:"container mx-auto flex justify-between items-center",children:[q.jsx("h1",{className:"text-xl font-bold",children:"Markdown Editor"}),q.jsx("div",{className:"flex items-center space-x-4",children:q.jsxs("select",{value:o,onChange:p=>{const m=p.target.value;u(m),a(m)},className:"bg-blue-700 text-white p-2 rounded",children:[q.jsx("option",{value:"system",children:"System"}),q.jsx("option",{value:"light",children:"Light"}),q.jsx("option",{value:"dark",children:"Dark"})]})})]})}),q.jsxs("div",{className:"container mx-auto p-4 flex flex-col lg:flex-row gap-4",children:[q.jsxs("div",{className:"w-full lg:w-1/4 bg-white dark:bg-gray-800 rounded-lg shadow p-4",children:[q.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Files"}),q.jsx("div",{className:"space-y-2 mb-4",children:e.map(p=>q.jsx("div",{className:`p-2 rounded cursor-pointer ${t===p?"bg-blue-100 dark:bg-blue-900":"hover:bg-gray-100 dark:hover:bg-gray-700"}`,onClick:()=>r(p),children:p},p))}),q.jsx("button",{onClick:()=>c(`document-${Date.now()}.md`),className:"w-full bg-green-500 text-white p-2 rounded hover:bg-green-600",children:"New Document"})]}),q.jsxs("div",{className:"flex-1 flex flex-col gap-4",children:[q.jsxs("div",{className:"flex justify-between items-center",children:[t&&q.jsx("h2",{className:"text-lg font-semibold",children:t}),t&&q.jsx("button",{onClick:()=>d(t),className:"bg-blue-500 text-white p-2 rounded hover:bg-blue-600",children:"Save"})]}),q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[q.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow p-4",children:[q.jsx("h3",{className:"text-md font-medium mb-2",children:"Editor"}),q.jsx("textarea",{value:i,onChange:p=>l(p.target.value),className:"w-full h-96 p-2 border rounded dark:bg-gray-900 dark:text-white dark:border-gray-700",placeholder:"Write markdown here..."})]}),q.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow p-4",children:[q.jsx("h3",{className:"text-md font-medium mb-2",children:"Preview"}),q.jsx("div",{className:"w-full h-96 p-2 border rounded overflow-auto dark:bg-gray-900 dark:text-white dark:border-gray-700 prose dark:prose-invert",children:q.jsx(O0,{remarkPlugins:[qw],children:i})})]})]})]})]})]})};No.createRoot(document.getElementById("root")).render(q.jsx(Yh.StrictMode,{children:q.jsx(Xw,{})}));
|